mirror of
https://github.com/subsurface/subsurface.git
synced 2024-12-11 03:21:29 +00:00
mobile-widgets/qml: use Kirigami Units instead of hardcoded values
This allows for better scaling of the UI. Signed-off-by: jan Iversen <jan@casacondor.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
20a1b4befb
commit
e22943fa21
5 changed files with 12 additions and 12 deletions
|
@ -13,7 +13,7 @@ Kirigami.ScrollablePage {
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
width: parent.width
|
width: parent.width
|
||||||
spacing: 1
|
spacing: 1
|
||||||
Layout.margins: 10
|
Layout.margins: Kirigami.Units.gridUnit
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
text: "Dive planner edit"
|
text: "Dive planner edit"
|
||||||
|
|
|
@ -13,7 +13,7 @@ Kirigami.ScrollablePage {
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
width: parent.width
|
width: parent.width
|
||||||
spacing: 1
|
spacing: 1
|
||||||
Layout.margins: 10
|
Layout.margins: Kirigami.Units.gridUnit
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
text: "Dive planner manager"
|
text: "Dive planner manager"
|
||||||
|
|
|
@ -24,7 +24,7 @@ Kirigami.ScrollablePage {
|
||||||
Column {
|
Column {
|
||||||
width: parent.width
|
width: parent.width
|
||||||
spacing: 1
|
spacing: 1
|
||||||
Layout.margins: 10
|
Layout.margins: Kirigami.Units.gridUnit
|
||||||
|
|
||||||
TemplateSection {
|
TemplateSection {
|
||||||
id: rates
|
id: rates
|
||||||
|
@ -32,8 +32,8 @@ Kirigami.ScrollablePage {
|
||||||
|
|
||||||
GridLayout {
|
GridLayout {
|
||||||
columns: 2
|
columns: 2
|
||||||
rowSpacing: 10
|
rowSpacing: Kirigami.Units.smallSpacing * 2
|
||||||
columnSpacing: 20
|
columnSpacing: Kirigami.Units.smallSpacing
|
||||||
visible: rates.isExpanded
|
visible: rates.isExpanded
|
||||||
|
|
||||||
TemplateLabel {
|
TemplateLabel {
|
||||||
|
@ -134,8 +134,8 @@ Kirigami.ScrollablePage {
|
||||||
|
|
||||||
GridLayout {
|
GridLayout {
|
||||||
columns: 2
|
columns: 2
|
||||||
rowSpacing: 10
|
rowSpacing: Kirigami.Units.smallSpacing * 2
|
||||||
columnSpacing: 20
|
columnSpacing: Kirigami.Units.smallSpacing
|
||||||
visible: planning.isExpanded
|
visible: planning.isExpanded
|
||||||
|
|
||||||
// Only support "Open circuit"
|
// Only support "Open circuit"
|
||||||
|
@ -204,8 +204,8 @@ Kirigami.ScrollablePage {
|
||||||
|
|
||||||
GridLayout {
|
GridLayout {
|
||||||
columns: 2
|
columns: 2
|
||||||
rowSpacing: 10
|
rowSpacing: Kirigami.Units.smallSpacing * 2
|
||||||
columnSpacing: 20
|
columnSpacing: Kirigami.Units.smallSpacing
|
||||||
visible: gasoptions.isExpanded
|
visible: gasoptions.isExpanded
|
||||||
|
|
||||||
TemplateLabel {
|
TemplateLabel {
|
||||||
|
|
|
@ -13,7 +13,7 @@ Kirigami.ScrollablePage {
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
width: parent.width
|
width: parent.width
|
||||||
spacing: 1
|
spacing: 1
|
||||||
Layout.margins: 10
|
Layout.margins: Kirigami.Units.gridUnit
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
text: "Dive planner view"
|
text: "Dive planner view"
|
||||||
|
|
|
@ -34,8 +34,8 @@ Kirigami.ScrollablePage {
|
||||||
standardButtons: StandardButton.Apply | StandardButton.Cancel
|
standardButtons: StandardButton.Apply | StandardButton.Cancel
|
||||||
|
|
||||||
GridLayout {
|
GridLayout {
|
||||||
rowSpacing: 10
|
rowSpacing: Kirigami.Units.smallSpacing * 2
|
||||||
columnSpacing: 10
|
columnSpacing: Kirigami.Units.smallSpacing
|
||||||
columns: 2
|
columns: 2
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
|
|
Loading…
Reference in a new issue