[Lazarus] Component icons howto ?
Arne Hanssen
lists at kingel.net
Wed Mar 30 10:20:12 CEST 2022
Den 30.03.2022 09:57, skreiv Michael Van Canneyt via lazarus:
>
> [...]
>
> Why do you think I know this is a scaling factor ?
>
> I didn't have a clue until Werner explained.
>
> Sorry, you can argue all you like, but if I see a list of icon files
> xyz_24x24.png then I know *exactly* what to create, just from the
> filenames. No need to do math, open file whatnot.
>
> With your method, I need to open the file (unless I know standard size is
> 24), check the size, and then possibly multiply (if I know that the
> suffix
> is the scaling factor in %).
>
> [...]
>
I would guess that naming the files 'xyz_24x24.png' (base size 24px),
'xyz_24x24_150.png' (150% 36px) and 'xyz_24x24_200.png' (200% 48px)
could be a reasonable naming solution?
--
Best regards
Arne Hanssen
More information about the lazarus
mailing list