[SailfishDevel] using icon image provider with custom icons
Julien Blanc
julien.blanc at tgcm.eu
Tue May 26 05:10:25 UTC 2020
Le lundi 25 mai 2020 à 14:47 +0300, David Llewellyn-Jones a écrit :
> On 25/05/2020 14:31, Julien Blanc wrote:
> [snip]
> >
> > Isn't there something smarter to do ? I can't find where the theme
> > image provider gets registered, but i suppose it would be a far
> > better
> > solution to just extend it somehow, and provide a search path for
> > the
> > app folder (the logic being the same).
>
> Creating an ImageProvider as you've described, is the approach I've
> always used. This has always been my go-to reference for this:
>
> https://sailfishdev.tumblr.com/post/87464226712/iconbutton-how-to-use-own-icons-with-highlight
>
> Even though I agree it'd be good to have a simpler, more generic
> approach, as far as I'm aware there isn't one. I'd be happy to be
> proven wrong though.
Thanks for the link. This covers colorization, but unfortunately not
size selection. I’ll use this as a base, though.
Thanks everyone for your detailed answers.
Regards,
Julien
More information about the Devel
mailing list