Hello!
I am looking for guidance on creating ACT toolbar and Tree icons. Previously I was able to create PNG or BMP files for toolbar icons and BMP files for 16x16 tree icons, however it seems that no matter what I try I cannot get my icons to work starting in 2024R1 where the new Dark/Light Themes have been released.
From looking at the bolt extension it appears my icons should be working by simply have 4 BMP icons (each for 16x16, 24x24, 32x32, and 48x48 using 24 bit colors. However any custom Icon I make does not appear in the toolbar and my tree icons do not have transparency in the dark mode.
Any guidance would be helpful, The ACT Class has a "guide" but I'm wondering if its outdated.
Here is what the ACT Class has:
`An icon that is to be shown on the toolbar must have those areas which are to be
transparent colored to RGB hexrgb=c0c0c0 or decimal r=192 g=192 b=192.
The tree (i.e. CodeJock control) will use the lower left pixel to determine the
transparent color, but if also to show on the toolbar then must use #c0c0c0.
So for a 16x16 pixel icon:
[ ][ ][ ][ ][ ][ ][ ][ ][ ][ ][ ][ ][ ][ ][ ][ ]
[ ][ ][ ][ ][ ][ ][ ][ ][ ][ ][ ][ ][ ][ ][ ][ ]
[ ][ ][ ][ ][ ][ ][ ][ ][ ][ ][ ][ ][ ][ ][ ][ ]
[ ][ ][ ][ ][ ][ ][ ][ ][ ][ ][ ][ ][ ][ ][ ][ ]
[ ][ ][ ][ ][ ][ ][ ][ ][ ][ ][ ][ ][ ][ ][ ][ ]
[ ][ ][ ][ ][ ][ ][ ][ ][ ][ ][ ][ ][ ][ ][ ][ ]
[ ][ ][ ][ ][ ][ ][ ][ ][ ][ ][ ][ ][ ][ ][ ][ ]
[ ][ ][ ][ ][ ][ ][ ][ ][ ][ ][ ][ ][ ][ ][ ][ ]
[ ][ ][ ][ ][ ][ ][ ][ ][ ][ ][ ][ ][ ][ ][ ][ ]
[ ][ ][ ][ ][ ][ ][ ][ ][ ][ ][ ][ ][ ][ ][ ][ ]
[ ][ ][ ][ ][ ][ ][ ][ ][ ][ ][ ][ ][ ][ ][ ][ ]
[ ][ ][ ][ ][ ][ ][ ][ ][ ][ ][ ][ ][ ][ ][ ][ ]
[ ][ ][ ][ ][ ][ ][ ][ ][ ][ ][ ][ ][ ][ ][ ][ ]
[ ][ ][ ][ ][ ][ ][ ][ ][ ][ ][ ][ ][ ][ ][ ][ ]
[ ][ ][ ][ ][ ][ ][ ][ ][ ][ ][ ][ ][ ][ ][ ][ ]
[*][ ][ ][ ][ ][ ][ ][ ][ ][ ][ ][ ][ ][ ][ ][ ]
- This pixel is the transparent color
The icon must be an indexed bmp file so the process used w.r.t. GIMP is to
create a PNG icon without a transparent alpha channel and a solid background
which provides correct coloring.
Exported to a png file and then opened with GIMP (just for a backup).
In the transparent pixel make it a color not being used by the icon currently (green screen).
Remove the transparent alpha channel, if present, Layer->Transparency->Remove Alpha Channel
Convert to an indexed image, Image->Mode->Indexed... then Convert
Open the colormap dialog, Windows->Dockable Dialogs->Colormap. Find the
"green screen" color and choose to edit and change the entry for HTML notation
to c0c0c0 and OK. Click on the color index (should show c0c0c0) to change
active color to the "transparent" color. Now choose to bucket fill (e.g. Shift+B) and fill all the
pixels that are to be transparent.
File->Export As... and enter {icon_name}.bmp to export
Select "Do not write color space information" and then Export
`