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.
_______________________________________________
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Reply via email to