summaryrefslogtreecommitdiffstats
path: root/mobile-widgets/qml/main.qml
diff options
context:
space:
mode:
authorGravatar jan Iversen <jani@apache.org>2018-09-12 13:50:24 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-09-12 20:18:32 -0700
commitc9122283cc652b953cbfc2cdea47902b9f20eea2 (patch)
treec05affb25e66ab431c472e49cbdf5f285b8e8dbe /mobile-widgets/qml/main.qml
parent51bc41b5179ff12bf2767cd568dbf8266b72ca7e (diff)
downloadsubsurface-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/main.qml')
-rw-r--r--mobile-widgets/qml/main.qml2
1 files changed, 1 insertions, 1 deletions
diff --git a/mobile-widgets/qml/main.qml b/mobile-widgets/qml/main.qml
index bdd3335e3..b20ff4d2b 100644
--- a/mobile-widgets/qml/main.qml
+++ b/mobile-widgets/qml/main.qml
@@ -506,7 +506,7 @@ if you have network connectivity and want to sync your data to cloud storage."),
property int columnWidth: Math.round(rootItem.width/(Kirigami.Units.gridUnit*28)) > 0 ? Math.round(rootItem.width / Math.round(rootItem.width/(Kirigami.Units.gridUnit*28))) : rootItem.width
Component.onCompleted: {
// this needs to pick the theme from persistent preference settings
- var theme = prefs.theme
+ var theme = PrefDisplay.theme
if (theme == "Blue")
blueTheme()
else if (theme == "Pink")