ubuntu-sdk-bugs team mailing list archive
-
ubuntu-sdk-bugs team
-
Mailing list archive
-
Message #05904
[Bug 1557295] [NEW] theme is never changed after pressing the button
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
SDK bug tracking, 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