mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
38120d555f
commit
35de9c49a4
5 changed files with 8 additions and 32 deletions
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue