Hofknecht / SystemTrayMenu

SystemTrayMenu - Browse and open your files easily
http://hofknecht.eu/systemtraymenu/
GNU General Public License v3.0
663 stars 46 forks source link

[BUG] Blurry tray icon #462

Closed verdammt89x closed 2 years ago

verdammt89x commented 2 years ago

From time to time, the tray icon becomes blurry: systemtraymenu_before

After clicking on it, the icon returns to normal: systemtraymenu_after

verdammt89x commented 2 years ago

Found this: https://social.msdn.microsoft.com/Forums/vstudio/en-US/5719a514-1438-434d-ba22-fc9f6bd4a26b/notifyicons-icon-is-sometimes-blurry?forum=csharpgeneral

So maybe changing private static readonly Icon SystemTrayMenu = Properties.Resources.SystemTrayMenu; to private static readonly Icon SystemTrayMenu = new Icon(Properties.Resources.SystemTrayMenu, SystemInformation.SmallIconSize);

in Config.cs will do the trick?

Hofknecht commented 2 years ago

@verdammt89x Hey Mario , thank you for the hint! yes your code change improves it! see here compare at my side

2022-10-20 17_38_09-

works great!

committed it for you and added it to thx section in readme and about