Ensure that pgAdmin4 should be compiled with older OSX SDK's.

This commit is contained in:
Akshay Joshi 2020-05-12 17:22:04 +05:30
parent dba5761ad0
commit 8a06a836f4

View File

@ -10,13 +10,18 @@
//////////////////////////////////////////////////////////////////////////
#import <Cocoa/Cocoa.h>
#import <Availability.h>
// Detect if we're running in Dark mode
bool IsDarkMode() {
#ifdef __MAC_10_14
if (@available(macOS 10.14, *)) {
NSString *interfaceStyle = [NSUserDefaults.standardUserDefaults valueForKey:@"AppleInterfaceStyle"];
return [interfaceStyle isEqualToString:@"Dark"];
} else {
return NO;
}
#else
return NO;
#endif
}