Page 1 of 1

Saving PNG Project icons with Iconic

Posted: Tue Jan 23, 2024 2:22 pm
by jPV
PNG icons can't be saved as a Project icon unless you provide a DefaultTool. It's inconsistent with other icon formats, which do change the Type even without providing the DefaultTool option. Tested on MorphOS.

Code: Select all

@REQUIRE "iconic"
CreateBrush(1, 64, 64, #BLUE)
CreateIcon(1, {{Type=#BRUSH, Image=1}})
SetIconProperties(1, {Type=#AMIGAICON_PROJECT, ToolTypes={{Key="TEST", Value="0"}}})
; SetIconProperties(1, {DefaultTool=""}) ; This is a work-around
SaveIcon(1, "ram:testPNG.info", #ICNFMT_PNG)       ; Type is wrong (Tool), ToolTypes are OK
SaveIcon(1, "ram:testOS4.info", #ICNFMT_AMIGAOS) ; Type is OK (Project), ToolTypes are OK

Re: Saving PNG Project icons with Iconic

Posted: Sun Jan 28, 2024 12:30 pm
by airsoftsoftwair
Right, this is clearly a bug. Will be fixed.

Re: Saving PNG Project icons with Iconic

Posted: Fri Sep 13, 2024 9:57 pm
by airsoftsoftwair

Code: Select all

- Fix: Saving PNG icons of type #AMIGAICON_PROJECT only worked if you also specifed a default tool