Hofknecht/SystemTrayMenu

[BUG] Blurry tray icon

verdammt89x opened this issue · 2 comments

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

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

  • OS: Microsoft Windows 10 Enterprise
  • Version: 1.3.1.0

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?

@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