summaryrefslogtreecommitdiffstats
path: root/mobile-widgets/qml/Preferences.qml
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2017-06-23 13:06:17 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-06-23 18:48:41 -0700
commit694e833f906bb6ff3464525ac4ce0bf52c74dd6d (patch)
treef195738805f71e33719e15a38313328929636ba6 /mobile-widgets/qml/Preferences.qml
parentdac9ce578b7ddf78c1421911546862d2bc2cb12a (diff)
downloadsubsurface-694e833f906bb6ff3464525ac4ce0bf52c74dd6d.tar.gz
QML UI: move theme setting into preferences
And reorganize settings and preferences a bit. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets/qml/Preferences.qml')
-rw-r--r--mobile-widgets/qml/Preferences.qml33
1 files changed, 33 insertions, 0 deletions
diff --git a/mobile-widgets/qml/Preferences.qml b/mobile-widgets/qml/Preferences.qml
index 14b4ec6c5..ef3395ba8 100644
--- a/mobile-widgets/qml/Preferences.qml
+++ b/mobile-widgets/qml/Preferences.qml
@@ -41,6 +41,39 @@ Kirigami.Page {
}
Kirigami.Heading {
+ text: qsTr("Theme")
+ level: 3
+ Layout.topMargin: Kirigami.Units.largeSpacing
+ Layout.bottomMargin: Kirigami.Units.largeSpacing / 2
+ Layout.columnSpan: 2
+ }
+
+ RadioButton {
+ text: qsTr("Blue")
+ checked: subsurfaceTheme.currentTheme === "Blue"
+ Layout.columnSpan: 2
+ onClicked: {
+ blueTheme()
+ }
+ }
+ RadioButton {
+ text: qsTr("Pink")
+ checked: subsurfaceTheme.currentTheme === "Pink"
+ Layout.columnSpan: 2
+ onClicked: {
+ pinkTheme()
+ }
+ }
+ RadioButton {
+ text: qsTr("Dark")
+ checked: subsurfaceTheme.currentTheme === "Dark"
+ Layout.columnSpan: 2
+ onClicked: {
+ darkTheme()
+ }
+ }
+
+ Kirigami.Heading {
text: qsTr("Subsurface GPS data webservice")
level: 3
Layout.topMargin: Kirigami.Units.largeSpacing