Thread: PATCH: Support for HiDPI Displays on OS X (pgAdmin4)

PATCH: Support for HiDPI Displays on OS X (pgAdmin4)

From
Leonard Hecker
Date:
Hi!

This quite trivial patch adds support for HiDPI (i.e. "retina") displays on OS X.

The reason for this issue is that you guys use a heavily trimmed down Info.plist file, which among others doesn't
containthe NSPrincipalClass key. 
Without that key an OS X application is treated as a legacy one and thus won't support many "new" features including
HiDPIdisplays. 
By adding the key back, you a) follow the recommended Info.plist style and b) get HiDPI support for free!

Apart from that I _really_ recommend adding the following keys too (mostly keys added by default by Xcode - I've
guessedthe values): 

<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>pgAdmin 4</string>
<key>CFBundleShortVersionString</key>
<string>1.0.0</string>
<key>CFBundleVersion</key>
<string>1.0.0</string>
<key>LSMinimumSystemVersion</key>
<string>10.9</string>
<key>NSHumanReadableCopyright</key>
<string>Copyright © 2016 The pgAdmin Development Team. All rights reserved.</string>

Regards,
Leonard Hecker


Attachment

Re: PATCH: Support for HiDPI Displays on OS X (pgAdmin4)

From
Dave Page
Date:
Thanks - patch applied!

On Sat, Jun 11, 2016 at 1:01 PM, Leonard Hecker <leonard@hecker.io> wrote:
> Hi!
>
> This quite trivial patch adds support for HiDPI (i.e. "retina") displays on OS X.
>
> The reason for this issue is that you guys use a heavily trimmed down Info.plist file, which among others doesn't
containthe NSPrincipalClass key. 
> Without that key an OS X application is treated as a legacy one and thus won't support many "new" features including
HiDPIdisplays. 
> By adding the key back, you a) follow the recommended Info.plist style and b) get HiDPI support for free!
>
> Apart from that I _really_ recommend adding the following keys too (mostly keys added by default by Xcode - I've
guessedthe values): 
>
> <key>CFBundleInfoDictionaryVersion</key>
> <string>6.0</string>
> <key>CFBundleName</key>
> <string>pgAdmin 4</string>
> <key>CFBundleShortVersionString</key>
> <string>1.0.0</string>
> <key>CFBundleVersion</key>
> <string>1.0.0</string>
> <key>LSMinimumSystemVersion</key>
> <string>10.9</string>
> <key>NSHumanReadableCopyright</key>
> <string>Copyright © 2016 The pgAdmin Development Team. All rights reserved.</string>
>
> Regards,
> Leonard Hecker
>
>
>
> --
> Sent via pgadmin-hackers mailing list (pgadmin-hackers@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgadmin-hackers
>



--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake

EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company