diff --git a/atom/browser/browser_mac.mm b/atom/browser/browser_mac.mm index affeead255a2..f5859df97aaa 100644 --- a/atom/browser/browser_mac.mm +++ b/atom/browser/browser_mac.mm @@ -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"]; }