mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2024-11-22 08:46:39 -06:00
Ensure that pgAdmin4 should be compiled with older OSX SDK's.
This commit is contained in:
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
Block a user