Lazarus

Programming => Operating Systems => Linux => Topic started by: stormfinger on April 30, 2020, 02:37:02 pm

Title: icon within executable is blurry
Post by: stormfinger on April 30, 2020, 02:37:02 pm
hi
i tried to set up an icon for my litle project ...so i selected some picture and created png ..whatever the size ..the picture becames blury on task bar when program is started ..but if i take that same picture and put it in *.desktop file the picture is sharp. i have come upon this issue on elementary os hera. with lazarus 2.0.8 made 14-4-2020

 regards
Title: Re: icon within executable is blurry
Post by: Josh on April 30, 2020, 02:45:55 pm
You might get better results if you convert the png to on icon file.

if you google png to ico converter you should find a lot of online converters,

you might also have better result if you have multiple resolutions of the ico files, these can be assembled into icns files, again if you google there are various online sites that will convert a single png into various resolutions for icns files, if deploying for Mac this is really a must.

hope that helps.
Title: Re: icon within executable is blurry
Post by: stormfinger on May 05, 2020, 09:39:01 pm
hi

thank you for your reply. yes i also tried with ico file same result icon in task bar is blurry if icon is loaded in executable. tried several dimensions.
Title: Re: icon within executable is blurry
Post by: Ñuño_Martínez on May 07, 2020, 11:03:36 am
I happens because the icon should be scaled.  To prevent that, your ICO file should include several sizes (from 32x32 up to 512x512).  See the default icon provided by Lazarus itself.
TinyPortal © 2005-2018