diff --git a/app/data/Info.plist b/app/data/Info.plist index 59810cf11..4ef87675f 100644 --- a/app/data/Info.plist +++ b/app/data/Info.plist @@ -45,6 +45,8 @@ + NSRequiresAquaSystemAppearance + True CFBundleExecutable ${EXECUTABLE_NAME} CFBundleIconFile diff --git a/core_lib/src/external/macosx/macosxnative.mm b/core_lib/src/external/macosx/macosxnative.mm index 1bd789b86..b468a7579 100644 --- a/core_lib/src/external/macosx/macosxnative.mm +++ b/core_lib/src/external/macosx/macosxnative.mm @@ -28,11 +28,12 @@ void setMouseCoalescingEnabled(bool enabled) bool isDarkMode() { - NSAppearance* apperance = NSAppearance.currentAppearance; - - #ifdef __MAC_10_14 - return apperance.name == NSAppearanceNameDarkAqua; - #endif +// #ifdef __MAC_10_14 +// #if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_14 +// NSAppearance* apperance = NSAppearance.currentAppearance; +// return apperance.name == NSAppearanceNameDarkAqua; +// #endif +// #endif return false; }