From 8d2b0ba3637c686c33f0b08b72b287a2ba6a0041 Mon Sep 17 00:00:00 2001 From: Nick Thompson Date: Sat, 3 Aug 2019 09:46:33 -0400 Subject: [PATCH] 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. --- racket/src/mac/osx_appl.rkt | 1 + 1 file changed, 1 insertion(+) diff --git a/racket/src/mac/osx_appl.rkt b/racket/src/mac/osx_appl.rkt index 114ec77e9d..9f14ffce05 100644 --- a/racket/src/mac/osx_appl.rkt +++ b/racket/src/mac/osx_appl.rkt @@ -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))