Add native dark mode to macOS apps

Enables native dark mode UI elements in macOS 10.14 and above. Adds the
'NSRequiresAquaSystemAppearance' key with a value of 'false' to the
Info.plist file, while allows UI elements to match the system theme even
when not building against the latest SDK.
This commit is contained in:
Nick Thompson 2019-08-03 09:46:33 -04:00 committed by Matthew Flatt
parent e8cb4015a7
commit 8d2b0ba363

View File

@ -113,6 +113,7 @@
,(version))
(assoc-pair "NSPrincipalClass" "NSApplicationMain")
(assoc-pair "NSHighResolutionCapable" (true))
(assoc-pair "NSRequiresAquaSystemAppearance" (false))
(assoc-pair "NSSupportsAutomaticGraphicsSwitching" (true))))
(create-app (build-path (current-directory) (if for-3m? 'up 'same))