moses-palmer / pystray

GNU General Public License v3.0
461 stars 57 forks source link

Blurry icons on MacOS #163

Open andreypolyak opened 3 months ago

andreypolyak commented 3 months ago

Hi, thanks for the lib!

I have a problem with setting up high-quality retina icons on MacOS.

I think it happens because of this code: https://github.com/moses-palmer/pystray/blob/1907f8681d6d421517c63d94f425f9cdd74d0034/lib/pystray/_darwin.py#L166-L174

On my laptop (13" MacBook Air M1), self._status_bar.thickness() is 22px. So, to make it retina-quality (2x), I need to pass an icon with a 44x44px resolution. But then the code above resizes it back to 22x22px, and the icon becomes blurry.

Would be great to have some way to pass high-quality retina icons!