theme is never changed after pressing the button

Bug #1557295 reported by XiaoGuo, Liu
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-ui-toolkit (Ubuntu)
New
Undecided
Unassigned

Bug Description

https://developer.ubuntu.com/api/apps/qml/sdk-15.04.1/Ubuntu.Components.ThemeSettings/

on the page, the code has a little problem. The default theme is:

Ubuntu.Components.Themes.Ambiance

There is no chance to change the them at all according to the code. I have modified the code a little bit:

        Button {
            text: theme.name == "Ubuntu.Components.Themes.Ambiance" ?
                      "SuruDark" : "Ambiance"
            onClicked: {

                theme.name = (text == "Ambiance" ?
                       "Ubuntu.Components.Themes.Ambiance" :
                       "Ubuntu.Components.Themes.SuruDark" )
            }
        }

With the code, it works fine.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.