.ico file format

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
roel_v
Posts: 24
Joined: 13 Jul 2014 12:39

.ico file format

Post by roel_v »

I'm trying to assign custom icons to my toolbar buttons. I'm wondering which size and color depth is chosen from the .ico file I select. I have some icons that seem to work fine with their alpha channel, and others that are resized and alpha-blended with artefacts. I have tried pretty much everything I think - 36, 48, 64 and 128 px; with 8- and 32 bit color depth; with just one icon in the .ico file or several. But for the life of me I can't get nicely rendered icons. What icon is extracted in the XYplorer code, or does it use standard GDI/GDI+ routines? If so, with which settings? Hopefully I can then figure out how it's supposed to work... (or if there are detailed instructions that would be even better of course, but the manual doesn't say afaik).

highend
Posts: 14953
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: .ico file format

Post by highend »

The only format you didn't try is 24x24 and that's the optimal one :)
You could use 256 (indexed) colors but RGBA looks much better.
One of my scripts helped you out? Please donate via Paypal

roel_v
Posts: 24
Joined: 13 Jul 2014 12:39

Re: .ico file format

Post by roel_v »

Oh I see, I thought it was bigger because XYplorer gets resized by windows on my monitor because of the item size settings... Anyway it works now, thanks!

(any chance for an XYplorer version that natively supports high dpi displays :twisted: ?

Stef123

Re: .ico file format

Post by Stef123 »

roel_v wrote:any chance for an XYplorer version that natively supports high dpi displays :twisted: ?
+1
The strange fact - XY is almost there already, you can zoom the lists and sidebars
What's (desperately) needed imo are 1) set of high-res icons, and 2) +/- symbols in tree nodes that scale with the font (in fact, are taken from that special Windows font, don't remember the name for it - Windows itself uses it for its own +/- signs in Explorer tree)

Post Reply