diff options
Diffstat (limited to 'mobile-widgets/qml')
-rw-r--r-- | mobile-widgets/qml/Preferences.qml | 1 | ||||
-rw-r--r-- | mobile-widgets/qml/main.qml | 8 |
2 files changed, 8 insertions, 1 deletions
diff --git a/mobile-widgets/qml/Preferences.qml b/mobile-widgets/qml/Preferences.qml index 7e18e29d0..4e0ac87f1 100644 --- a/mobile-widgets/qml/Preferences.qml +++ b/mobile-widgets/qml/Preferences.qml @@ -17,6 +17,7 @@ Kirigami.Page { onTriggered: { manager.distanceThreshold = distanceThreshold.text manager.timeThreshold = timeThreshold.text + manager.theme = subsurfaceTheme.currentTheme manager.savePreferences() stackView.pop() } diff --git a/mobile-widgets/qml/main.qml b/mobile-widgets/qml/main.qml index 508e1edfe..fe8c58353 100644 --- a/mobile-widgets/qml/main.qml +++ b/mobile-widgets/qml/main.qml @@ -404,7 +404,13 @@ Kirigami.ApplicationWindow { Kirigami.Theme.buttonHoverColor = Qt.binding(function() { return darkerPrimaryColor }) // this needs to pick the theme from persistent preference settings - blueTheme() + var theme = manager.theme + if (theme == "Blue") + blueTheme() + else if (theme == "Pink") + pinkTheme() + else + darkTheme() } } property Item stackView: pageStack |