Ensure that pgAdmin4 should be compiled with older OSX SDK's.
parent
dba5761ad0
commit
8a06a836f4
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue