Permalink
Browse files

Make OpenSCAD look better on retina displays.

Apps need an NSPrincipalClass entry in Info.plist to look good on retina
displays, see "Framework-Scaled Mode Provides Automatic Scaling" in
http://developer.apple.com/library/mac/#documentation/GraphicsAnimation/Conceptual/HighResolutionOSX/Explained/Explained.html

It's also what we did in Chromium ( https://codereview.chromium.org/10069029 )
and what was suggested in openscad issue #279.

This only makes the window decoration and all text pretty. The 3d view
is still pixel-doubled: OpenGL is a pixel-based API and needs an
explicit opt-in. This can be addressed in a future patch.

While here, also consistently use tabs instead of spaces.
  • Loading branch information...
1 parent 8ea615c commit 894c9fe561e9178b3d4004c1370c3a45a945c507 @nico nico committed Mar 23, 2013
Showing with 6 additions and 4 deletions.
  1. +6 −4 Info.plist
View
@@ -35,15 +35,17 @@
<string>Editor</string>
<key>CFBundleTypeIconFile</key>
<string>SCAD.icns</string>
- <key>LSIsAppleDefaultForType</key>
+ <key>LSIsAppleDefaultForType</key>
<true/>
</dict>
</array>
<key>NSAppleScriptEnabled</key>
- <true/>
+ <true/>
+ <key>NSPrincipalClass</key>
+ <string>NSApplication</string>
<key>OSAScriptingDefinition</key>
<string>OpenSCAD.sdef</string>
- <key>SUPublicDSAKeyFile</key>
- <string>dsa_pub.pem</string>
+ <key>SUPublicDSAKeyFile</key>
+ <string>dsa_pub.pem</string>
</dict>
</plist>

0 comments on commit 894c9fe

Please sign in to comment.