-
-
Notifications
You must be signed in to change notification settings - Fork 7k
[OS X] Retina display support (NSHighResolutionCapable and image@2x) #2309
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
Comments
Tried adding |
You have to reload some OS cache, and I don't know of any other way of doing that than renaming |
Are you using the java6 or java7 version? It looks like the java6 already have that flag set: |
I'm not sure which branch of Arduino I'm using. I have Arduino 1.5.7 and Java 7 (just updated to 7 Update 71). My application's Info.plist did not come with that flag, set or not. |
I don't really mind about the icons, though it would be nice to have them @2x. Thanks @jacobseptember for the solution. |
The key was present in Info.plist but missing in appbundler.jar. BTW now it's fixed and will be available in the next release. |
That's great — should be fixed for the text/UI stuff! That's 95% of the whole thing. |
To refresh cache, no need to reboot Mac OS, just use in terminal: |
Crossposting here and at the Google Groups page; it's not clear which one is more active.
There are two issues regarding Retina support: Text/buttons/UI in general, and high-quality images.
The "simple" text/buttons/etc issue can be addressed by adding the following to Info.plist:
<key>NSHighResolutionCapable</key> <true/>
This was apparently done with this commit in August 2012, but the version of 1.5.7 that I downloaded in August 2014 did not have this key in its Info.plist.
The images issue is a bit more complicated. I'm used to working with iOS, in which the OS will generally accept either
image.png
orimage@2x.png
(the high-resolution version). This is apparently not the case with OS X; when I try to use an image I created for the little down-triangle in the top right of the IDE, it doesn't show up at all if the filename includes the "@2x" and shows up twice as large as should be if the filename doesn't include the "@2x".The fix here is more involved, but shouldn't be too difficult (I think). First, high-def images need to be created for the eleven images in
Arduino.app/Contents/Java/lib/theme
. Then, the source code needs to be modified to look for the "@2x" images as well as the regular ones, and take the correct one. I don't know exactly how this is done, and I suspect it will be more involved in Java than Obj-C. Sorry.SEE ALSO: Google Code issue 982, Github issue 982, Github issue 2204, Google Code issue 1140
The text was updated successfully, but these errors were encountered: