diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2017-06-23 19:35:48 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-06-23 19:49:57 -0700 |
commit | 206df227f8cf7026af7f67a49d717ba67a51d944 (patch) | |
tree | 0bd08af223a474fa178abb9e119c3c2fe66b32b1 /mobile-widgets/qml/main.qml | |
parent | 26b206af1ffdc2c73c5f2bd5f82e6559710b480b (diff) | |
download | subsurface-206df227f8cf7026af7f67a49d717ba67a51d944.tar.gz |
QML UI: remember the theme
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets/qml/main.qml')
-rw-r--r-- | mobile-widgets/qml/main.qml | 8 |
1 files changed, 7 insertions, 1 deletions
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 |