Thread
:
Changing ambience favorites using dbus in qml
View Single Post
Zeta
2018-07-23 , 19:28
Posts: 339 | Thanked: 1,623 times | Joined on Oct 2013 @ France
#
6
Not answering directly your question, but looking for ambience in /usr/share where all the qml files of Sailfish are stored, I found this file:
/usr/share/lipstick-jolla-home-qt5/powerkey/PowerKeyMenu.qml
In which you can find the following line to remove from favorites:
onClicked: ambienceModel.setProperty(powerMenu.currentIndex, "favorite", false)
Obviously, setting the property to true should also make it a favorite.
It uses the object "AmbienceModel", that should come from the import Sailfish.Ambience.
Some other files are related to the AmbienceModel too, which could give you some other examples.
Hope this can help.
Quote & Reply
|
The Following User Says Thank You to Zeta For This Useful Post:
juiceme
Zeta
View Public Profile
Send a private message to Zeta
Find all posts by Zeta