Simplify the isDarkModeEnabled check
This commit is contained in:
parent
c4049cb393
commit
b1eefbdcd9
1 changed files with 1 additions and 1 deletions
|
@ -27,7 +27,7 @@ void Browser::Show() {
|
|||
}
|
||||
|
||||
bool Browser::IsDarkModeEnabled() {
|
||||
NSString *mode = CFBridgingRelease(CFPreferencesCopyValue((CFStringRef)@"AppleInterfaceStyle", kCFPreferencesAnyApplication, kCFPreferencesCurrentUser, kCFPreferencesCurrentHost));
|
||||
NSString *mode = [[NSUserDefaults standardUserDefaults] stringForKey:@"AppleInterfaceStyle"];
|
||||
return [mode isEqualToString: @"Dark"];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue