QML UI: remember the theme

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2017-06-23 19:35:48 -07:00
parent 26b206af1f
commit 206df227f8
4 changed files with 28 additions and 1 deletions

View file

@ -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