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

Donald Ziesig donald at ziesig.org
Fri Feb 24 17:23:44 CET 2017


On 02/24/2017 05:03 AM, Ondrej Pokorny via Lazarus wrote:
> 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.
>
*I mis-understood what "register" meant.  I thought there was a process 
that needed to be done, rather than just adding the image file name to 
the list.  I am trying that now.*
>>
>> 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.

*linux mint 18 / gtk2*
>
> Ondrej


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20170224/1f25faa2/attachment.html>


More information about the Lazarus mailing list