Closed peter277 closed 1 year ago
@peter277 I'm planning on pushing out a new major version release (4.0.0) later tonight. I will implement this functionality by default in that version. Thank you so much for opening this issue. I was not aware of this!
Hi,
I am unable to obtain a higher resolution than 16x16 for the tray icon on Windows, which makes it appear very low res compared to other icons on Windows 10.
After a bit of searching I tried a suggestion hinted on a Stack Overflow comment here, suggesting to turn on auto size using setAutoImageSize, otherwise the Windows implementation of AWT TrayIcon targets 16x16. This suggestion actually worked so I'm sharing the concept code below. Think it would be great if functionality to enable higher res icons could be incorporated into the main library by default.
Resulting icon from above code on Windows 10:
Resulting icon from above code on Windows 10 (higher resolution attained):