[Lazarus] LCL High-DPI request for help adding images

Ondrej Pokorny lazarus at kluug.net
Fri Feb 24 11:03:36 CET 2017


On 22.02.2017 17:55, Donald Ziesig via Lazarus wrote:
> Hi Ondrej!
>
> I downloaded the latest lazarus from svn. Then make bigide.
>
> When I started lazarus, the CoolBar is empty (except for the Save icon 
> which is the correct size).  The component icons are definitely bigger 
> than the last version, but appear more like 125% rather than the 150% 
> that I would expect for 144 dpi.
>
> I rebuilt the laz_images.res (at least the file time stamp changed) 
> and the ide but there was no change in the empty CoolBar.
>
> images/README.txt says:
>
> To use a high-DPI icon, register the icon with the suffix "_150" 
> (150%) or "_200" (200%). See e.g. actions/laz_save_150.png
>
> How do I do that?  I can create the bigger icons with gimp and store 
> them in the actions directory but that doesn't seem to help (tried 
> this with the menu_run icon but it still uses the old one.

You have to register them in laz_images_list.txt as well and recreate 
res files. Please read the whole README.txt, not only the last chapter.

>
> Also, in the sub-menus there is only ONE icon (for File|Save).

What is you OS/WidgetSet? It looks like the icons don't scale for you - 
you are obviously getting empty icons.

Ondrej


More information about the Lazarus mailing list