projects
/
platform
/
framework
/
web
/
crosswalk-tizen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c4049cb
)
Simplify the isDarkModeEnabled check
author
Daniel Pham
<pham.dany@gmail.com>
Fri, 4 Mar 2016 04:48:30 +0000
(23:48 -0500)
committer
Daniel Pham
<pham.dany@gmail.com>
Fri, 4 Mar 2016 04:48:30 +0000
(23:48 -0500)
atom/browser/browser_mac.mm
patch
|
blob
|
history
diff --git
a/atom/browser/browser_mac.mm
b/atom/browser/browser_mac.mm
index
affeead
..
f5859df
100644
(file)
--- 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"];
}