[SailfishDevel] Custom in-app icons
decon
coding at userspace.se
Sat Mar 4 16:09:16 UTC 2017
Hi,
Does anyone know how to use custom icons (monocrome) with Silica theme highlighting?
If I do as described at https://sailfishos.org/develop/docs/jolla-ambient/ it works with Silica icons, but I have not managed to do it with custom icons. The following code displays the icon, but highlighting does not work when clicking on the icon.
IconButton {
icon.source: "qrc:/icons/z1.00/icon-m-case-sensitive.png?" + (pressed ?
Theme.highlightColor :
Theme.primaryColor)
onClicked: { console.log("Clicked icon") }
}
There were no error messages in the log either.
More information about the Devel
mailing list