-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Blurry icons on MacOS #163
Comments
I worked around this (and added various other functionality) here in case it helps. |
Thank you for your report and suggestions! I have incorporated some of your changes in fixup/general. @andreypolyak, does this resolve your issue? |
haha, I figured all of this out yesterday, only to find your branch today. 🤦 @moses-palmer I think there's still one issue. Since you resize the image before loading the NSImage, it will still be blurry, as the image resolution is too small. The size is in "points" on a Mac, not pixels. The image should have at least 3x more pixels than the points for high resolution displays. I took a stab at the fix here: #176 . The alternative is don't do any image resizing on Mac, just set the size, and let NSImage handle it (which it can). |
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:
pystray/lib/pystray/_darwin.py
Lines 166 to 174 in 1907f86
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!
The text was updated successfully, but these errors were encountered: