HP Forums

Full Version: Icons
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
where to find icons for the Apps?
What parameters must they have?

Thank you

Salvo
To add an icon, the application file should have a name of "icon.png". You can either make it on the device by doing something like DIMGROB_P(G1,38,38); RECT(G1,RGB(255,255,0)); AFiles("icon.png"):=G1 (giving you a plain yellow square for your icon).

You can also use the connkit. Right click on an application in the tree, do the add icon option, pick a picture file, it will resize it down to 38x38pix and create an icon.png for you.

When the application is sent (you need to edit something in the app itself and then save, not just add a file) your icon will show up. Here's an example:

[Image: icon_example.png]
Nice Feature! Thanks.

[attachment=1970]
(05-14-2015 12:34 AM)Tim Wessman Wrote: [ -> ]When the application is sent (you need to edit something in the app itself and then save, not just add a file) your icon will show up. Here's an example:

hi, I know the man in the example :-)

thanks, very useful; also graphic is important for a better experience with the Prime...
I'm trying with some images.

Salvo
Very nice trick !

[Image: ico_perso.png]
It seems the new custom icons almost handles alpha correctly...

[Image: G7apNV2.png]

Also, the fact that I can make things go from PNG to grobs automatically is REALLY NICE. It makes PNG import/export with HPPL a snap, for one. This will also lower the memory cost for images in apps; no more ICONs! While I suggest keeping ICON around, it IS nice.
It handles transparency ON/OFF (is a region fully transparent). Since we are 16bit on the system though, you can't do alpha.
Reference URL's