diff options
-rw-r--r-- | mobile-widgets/qml/DivePlannerSetup.qml | 3 | ||||
-rw-r--r-- | mobile-widgets/qml/Settings.qml | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/mobile-widgets/qml/DivePlannerSetup.qml b/mobile-widgets/qml/DivePlannerSetup.qml index 6c065606f..4c014aaf5 100644 --- a/mobile-widgets/qml/DivePlannerSetup.qml +++ b/mobile-widgets/qml/DivePlannerSetup.qml @@ -7,9 +7,8 @@ import QtQuick.Dialogs 1.3 import org.subsurfacedivelog.mobile 1.0 import org.kde.kirigami 2.4 as Kirigami -Kirigami.ScrollablePage { +TemplatePage { title: qsTr("Dive planner setup") - background: Rectangle { color: subsurfaceTheme.backgroundColor } property string speedUnit: (Backend.length === Enums.METERS) ? qsTr(" m/min") : qsTr(" ft/min") property string volumeUnit: (Backend.volume === Enums.LITER) ? qsTr(" l/min") : qsTr(" cuft/min") diff --git a/mobile-widgets/qml/Settings.qml b/mobile-widgets/qml/Settings.qml index af64b58be..33b515070 100644 --- a/mobile-widgets/qml/Settings.qml +++ b/mobile-widgets/qml/Settings.qml @@ -5,14 +5,13 @@ import QtQuick.Controls 2.12 import org.kde.kirigami 2.4 as Kirigami import org.subsurfacedivelog.mobile 1.0 -Kirigami.ScrollablePage { +TemplatePage { objectName: "Settings" id: settingsPage property alias defaultCylinderModel: defaultCylinderBox.model property alias defaultCylinderIndex: defaultCylinderBox.currentIndex title: qsTr("Settings") - background: Rectangle { color: subsurfaceTheme.backgroundColor } property real gridWidth: settingsPage.width - Kirigami.Units.gridUnit property var describe: [qsTr("Undefined"), |