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:
parent
e8cb4015a7
commit
8d2b0ba363
|
@ -113,6 +113,7 @@
|
||||||
,(version))
|
,(version))
|
||||||
(assoc-pair "NSPrincipalClass" "NSApplicationMain")
|
(assoc-pair "NSPrincipalClass" "NSApplicationMain")
|
||||||
(assoc-pair "NSHighResolutionCapable" (true))
|
(assoc-pair "NSHighResolutionCapable" (true))
|
||||||
|
(assoc-pair "NSRequiresAquaSystemAppearance" (false))
|
||||||
(assoc-pair "NSSupportsAutomaticGraphicsSwitching" (true))))
|
(assoc-pair "NSSupportsAutomaticGraphicsSwitching" (true))))
|
||||||
|
|
||||||
(create-app (build-path (current-directory) (if for-3m? 'up 'same))
|
(create-app (build-path (current-directory) (if for-3m? 'up 'same))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user