diff options
author | jan Iversen <jani@apache.org> | 2018-09-12 13:50:24 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2018-09-12 20:18:32 -0700 |
commit | c9122283cc652b953cbfc2cdea47902b9f20eea2 (patch) | |
tree | c05affb25e66ab431c472e49cbdf5f285b8e8dbe /mobile-widgets/qml/Settings.qml | |
parent | 51bc41b5179ff12bf2767cd568dbf8266b72ca7e (diff) | |
download | subsurface-c9122283cc652b953cbfc2cdea47902b9f20eea2.tar.gz |
mobile-widgets: replace qmlprefs::theme with qPrefDisplay::theme
Shortcut and use qPrefDisplay::theme() direct
Signed-off-by: Jan Iversen <jani@apache.org>
Diffstat (limited to 'mobile-widgets/qml/Settings.qml')
-rw-r--r-- | mobile-widgets/qml/Settings.qml | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/mobile-widgets/qml/Settings.qml b/mobile-widgets/qml/Settings.qml index 68562a871..9f6f1f8cb 100644 --- a/mobile-widgets/qml/Settings.qml +++ b/mobile-widgets/qml/Settings.qml @@ -139,8 +139,7 @@ Kirigami.ScrollablePage { enabled: subsurfaceTheme.currentTheme !== "Blue" onClicked: { blueTheme() - prefs.theme = subsurfaceTheme.currentTheme - manager.savePreferences() + PrefDisplay.theme = subsurfaceTheme.currentTheme } } @@ -192,8 +191,7 @@ Kirigami.ScrollablePage { enabled: subsurfaceTheme.currentTheme !== "Pink" onClicked: { pinkTheme() - prefs.theme = subsurfaceTheme.currentTheme - manager.savePreferences() + PrefDisplay.theme = subsurfaceTheme.currentTheme } } @@ -244,8 +242,7 @@ Kirigami.ScrollablePage { enabled: subsurfaceTheme.currentTheme !== "Dark" onClicked: { darkTheme() - prefs.theme = subsurfaceTheme.currentTheme - manager.savePreferences() + PrefDisplay.theme = subsurfaceTheme.currentTheme } } } |