-
Notifications
You must be signed in to change notification settings - Fork 457
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
Feature request: support retina display for OS X #8
Comments
@carsonefv or @Derekf5 you guys want to take a look at this? |
It is far easier than you think you have to create 2 png (imagemagick convert) files with 2x increment in size and then squash them together into a tiff (tiffutil) and then load as normal:
|
@xor-gate Awesome! It woks like a charm. |
@xor-gate I meet another problem: After I packaged my golang-app into a OSX application, say foo.app, the retina icon is gone. |
The icon is gone? You must make sure you load the tiff as byte array and not the png. |
I mean the retina icon is not shown, only the default one is shown. |
Probably the application bundle loader is not properly configured to have support for multiimage. Could you paste your |
Below is my
|
Try adding:
Probably it changes behaviour how the Foundation.framework is loaded and the image load process. See my |
I still can not make it work after adding |
@xor-gate With some luck, the problem is solved by adding:
Many thanks for your help. |
I'm a bit confused reading the code it seems that 16x16 is hardcoded as icon size: Is that not true? Does the library support other icon sizes for OS X? |
Fix changing properties, scale images and other improvements
Systray only uses the same icon for both normal and retina display which makes systray icon looks not smooth for retina display.
To support retina display icon, it may need to update some OC codes. As I am not a OC programmer, hope someone will implement it.
The text was updated successfully, but these errors were encountered: