diff options
author | jan Iversen <jan@casacondor.com> | 2020-01-15 09:40:54 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-02-03 17:30:35 -0800 |
commit | 35de9c49a4f2c2ab5abc3f52e8d005c0d1225971 (patch) | |
tree | 75190bcbf37239cfabfa1e47a40fc6e94c28d8cd /mobile-widgets/qml/Settings.qml | |
parent | 38120d555f45fb36c3d7de5b429f8a5e00ffa1e7 (diff) | |
download | subsurface-35de9c49a4f2c2ab5abc3f52e8d005c0d1225971.tar.gz |
mobile-widgets: switch to new subsurfaceTheme
Remove subsurfaceTheme from main.qml
Replace ThemeNew -> subsurfaceTheme
change registration ThemeNew -> subsurfaceTheme
Signed-off-by: jan Iversen <jan@casacondor.com>
Diffstat (limited to 'mobile-widgets/qml/Settings.qml')
-rw-r--r-- | mobile-widgets/qml/Settings.qml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mobile-widgets/qml/Settings.qml b/mobile-widgets/qml/Settings.qml index f7b0f9087..ef641e51f 100644 --- a/mobile-widgets/qml/Settings.qml +++ b/mobile-widgets/qml/Settings.qml @@ -145,15 +145,15 @@ TemplatePage { TemplateComboBox { editable: false Layout.columnSpan: 2 - currentIndex: (ThemeNew.currentTheme === "Blue") ? 0 : - (ThemeNew.currentTheme === "Pink") ? 1 : 2 + currentIndex: (subsurfaceTheme.currentTheme === "Blue") ? 0 : + (subsurfaceTheme.currentTheme === "Pink") ? 1 : 2 model: ListModel { ListElement {text: qsTr("Blue")} ListElement {text: qsTr("Pink")} ListElement {text: qsTr("Dark")} } onActivated: { - ThemeNew.currentTheme = currentIndex === 0 ? "Blue" : + subsurfaceTheme.currentTheme = currentIndex === 0 ? "Blue" : currentIndex === 1 ? "Pink" : "Dark" } } |