Thank you both for your answers! I tried Kimmo's IconProvider and it worked perfectly.
Regards, Decon On Sat, 04 Mar 2017 16:18:08 +0000, "Andrey Kozhevnikov" <coderusin...@gmail.com> wrote: > Or just use such shader: > https://github.com/CODeRUS/harbour-screentapshot/blob/master/qml/overlay.qml#L171 > > ------ Исходное сообщение ------ > От: "Kimmo Lindholm" <kimmo.lindh...@eke.fi> > Кому: "cod...@userspace.se" <cod...@userspace.se>; "Sailfish OS > Developers" <devel@lists.sailfishos.org> > Отправлено: 04.03.2017 19:12:02 > Тема: Re: [SailfishDevel] Custom in-app icons > > >Hi, > > > >You need to make your own iconprovider. Explained here > >https://together.jolla.com/question/44325/iconbutton-how-to-use-own-icons-with-highlight/ > > > >-kimmo > >-----Original Message----- > >From: Devel [mailto:devel-boun...@lists.sailfishos.org] On Behalf Of > >decon > >Sent: 4. maaliskuuta 2017 18:09 > >To: devel > >Subject: [SailfishDevel] Custom in-app icons > > > >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 > >_______________________________________________ > >SailfishOS.org Devel mailing list > >To unsubscribe, please send a mail to > >devel-unsubscr...@lists.sailfishos.org _______________________________________________ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org