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>
This commit is contained in:
jan Iversen 2020-01-15 09:40:54 +01:00 committed by Dirk Hohndel
parent 38120d555f
commit 35de9c49a4
5 changed files with 8 additions and 32 deletions

View file

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