diff options
author | jan Iversen <jan@casacondor.com> | 2020-01-22 12:54:18 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-01-24 20:20:41 -0800 |
commit | e22943fa21027917cd8d2de98cd13ae7d12d751a (patch) | |
tree | 3360f3205bacaaa7433a9209cb9310d97d411a89 /mobile-widgets/qml/DivePlannerSetup.qml | |
parent | 20a1b4befb84b0dd88f4d0132dfa7de6faa7037e (diff) | |
download | subsurface-e22943fa21027917cd8d2de98cd13ae7d12d751a.tar.gz |
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>
Diffstat (limited to 'mobile-widgets/qml/DivePlannerSetup.qml')
-rw-r--r-- | mobile-widgets/qml/DivePlannerSetup.qml | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/mobile-widgets/qml/DivePlannerSetup.qml b/mobile-widgets/qml/DivePlannerSetup.qml index aa715f03a..ec1e14ca4 100644 --- a/mobile-widgets/qml/DivePlannerSetup.qml +++ b/mobile-widgets/qml/DivePlannerSetup.qml @@ -24,7 +24,7 @@ Kirigami.ScrollablePage { Column { width: parent.width spacing: 1 - Layout.margins: 10 + Layout.margins: Kirigami.Units.gridUnit TemplateSection { id: rates @@ -32,8 +32,8 @@ Kirigami.ScrollablePage { GridLayout { columns: 2 - rowSpacing: 10 - columnSpacing: 20 + rowSpacing: Kirigami.Units.smallSpacing * 2 + columnSpacing: Kirigami.Units.smallSpacing visible: rates.isExpanded TemplateLabel { @@ -134,8 +134,8 @@ Kirigami.ScrollablePage { GridLayout { columns: 2 - rowSpacing: 10 - columnSpacing: 20 + rowSpacing: Kirigami.Units.smallSpacing * 2 + columnSpacing: Kirigami.Units.smallSpacing visible: planning.isExpanded // Only support "Open circuit" @@ -204,8 +204,8 @@ Kirigami.ScrollablePage { GridLayout { columns: 2 - rowSpacing: 10 - columnSpacing: 20 + rowSpacing: Kirigami.Units.smallSpacing * 2 + columnSpacing: Kirigami.Units.smallSpacing visible: gasoptions.isExpanded TemplateLabel { |