From 206df227f8cf7026af7f67a49d717ba67a51d944 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Fri, 23 Jun 2017 19:35:48 -0700 Subject: QML UI: remember the theme Signed-off-by: Dirk Hohndel --- mobile-widgets/qml/main.qml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'mobile-widgets/qml/main.qml') 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 -- cgit v1.2.3-70-g09d2