1.1.33.00 tray icon no longer pick 16x16 icon automatically

Report problems with documented functionality
User avatar
uname
Posts: 22
Joined: 25 Oct 2013, 12:50

1.1.33.00 tray icon no longer pick 16x16 icon automatically

01 Jul 2020, 01:50

Code: Select all

Menu, Tray, Icon, % executable_path, 1
Prior to 1.1.33.00 the lowest resolution icon from file was used, but since the update the script automatically pick the largest one.
Is that intentional? High resolution icon isn't the most suitable as a tray icon, it's way too detailed.
lexikos
Posts: 6854
Joined: 30 Sep 2013, 04:07
GitHub: Lexikos

Re: 1.1.33.00 tray icon no longer pick 16x16 icon automatically

01 Jul 2020, 03:57

It is designed to pick a close match, preferring the next larger icon if an exact match is not available. For instance, my DPI is set to 125%, therefore the "small icon size" is 20x20, and the icon loading procedure will prefer to downscale a 32x32 icon over upscaling a 16x16 one. I have confirmed that it still behaves as intended in v1.1.33.00, selecting the 32x32 icon even though 48x48, 96x96 and 256x256 icons precede it.

One thing that did change: if a 256x256 icon is considered the best match (because the next size down is too small), it will be selected. This never happened in previous versions, because the icon size fields actually contain 0 (being 8-bit integers, they cannot contain 256).

If you have a problem, post files that demonstrate it.

Return to “Bug Reports”

Who is online

Users browsing this forum: No registered users and 19 guests