We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
http://www.macworld.co.uk/how-to/mac-software/turn-on-yosemites-dark-mode-on-mac-3534690/
Dark Mode was introduced in OS X 10.10.
I'm thinking a method app.isDarkMode() and a app.on('dark-mode') event.
app.isDarkMode()
app.on('dark-mode')
This is useful so you have the ability to make your app dark when Dark Mode is enabled.
For the method you could use:
NSString *mode = CFBridgingRelease(CFPreferencesCopyValue((CFStringRef)@"AppleInterfaceStyle", kCFPreferencesAnyApplication, kCFPreferencesCurrentUser, kCFPreferencesCurrentHost));
And for the event, there's:
[[NSDistributedNotificationCenter defaultCenter] addObserver:self selector:@selector(darkModeChanged:) name:@"AppleInterfaceThemeChangedNotification" object:nil]; -(void)darkModeChanged:(NSNotification *)notif { NSLog(@"Dark mode changed"); }
Similar to #1861, but this is IMHO a separate, and more actionable and focused request.
The text was updated successfully, but these errors were encountered:
Closed with #4646.
Sorry, something went wrong.
No branches or pull requests
http://www.macworld.co.uk/how-to/mac-software/turn-on-yosemites-dark-mode-on-mac-3534690/
Dark Mode was introduced in OS X 10.10.
I'm thinking a method
app.isDarkMode()
and aapp.on('dark-mode')
event.This is useful so you have the ability to make your app dark when Dark Mode is enabled.
For the method you could use:
And for the event, there's:
Similar to #1861, but this is IMHO a separate, and more actionable and focused request.
The text was updated successfully, but these errors were encountered: