Public bug reported: 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. ** Affects: ubuntu-ui-toolkit (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to ubuntu-ui-toolkit in Ubuntu. https://bugs.launchpad.net/bugs/1557295 Title: theme is never changed after pressing the button Status in ubuntu-ui-toolkit package in Ubuntu: New 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 manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ubuntu-ui-toolkit/+bug/1557295/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp