fix switching theme
commit8f44a64bd697fe0935e9e77b86294562f25707d6
authorLukáš Tinkl <lukas.tinkl@canonical.com>
dateThu 10 Mar 2016, 21:10 (11 years ago)
parenta12b265
qml/Wizard/Wizard.qml+3−2
@@ -33,7 +33,10 @@ Showable {
3333
3434 onRequiredChanged: {
3535 if (!required) {
36+ theme.name = "Ubuntu.Components.Themes.SuruDark";
3637 System.wizardEnabled = false;
38+ } else {
39+ theme.name = "Ubuntu.Components.Themes.Ambiance";
3740 }
3841 }
3942
@@ -47,7 +50,5 @@ Showable {
4750 target: loader.item
4851 onQuit: root.hide()
4952 }
50−
51− onLoaded: theme.name = "Ubuntu.Components.Themes.Ambiance";
5253 }
5354}