Same approach, different code... I am using solution from Kimmo for doing 
that:

https://together.jolla.com/question/44325/iconbutton-how-to-use-own-icons-with-highlight/

Dne úterý 10. prosince 2019 18:24:40 CET Slava Monich napsal(a):
> I use this image provider in my Jolla store apps to colorize grayscale
> svgs according to the theme:
> 
> https://github.com/monich/harbour-lib/blob/master/src/HarbourImageProvider.c
> pp
> 
> Sample usage:
> 
> https://github.com/monich/harbour-matkakortti/blob/master/qml/MainPage.qml#L
> 11
> 
> and registration:
> 
> https://github.com/monich/harbour-matkakortti/blob/master/src/main.cpp#L117
> 
> Cheers,
> 
> -Slava
> 
> > On light theme, icons is like image.png
> > 
> > On sailfish3 theme, icons is like image.png
> > 
> > What's the magic? I made an icon, it's not work on light theme as expect.

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Reply via email to