Skip to content
New issue

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

Follow system dark mode #510

Closed
sindresorhus opened this issue Jun 27, 2018 · 3 comments
Closed

Follow system dark mode #510

sindresorhus opened this issue Jun 27, 2018 · 3 comments

Comments

@sindresorhus
Copy link
Owner

macOS Mojave will have a system-wide dark mode. It would be nice to have an option to follow the system theme.

@CvX
Copy link
Collaborator

CvX commented Jun 27, 2018

(Depends on electron/electron#13387)

@sindresorhus
Copy link
Owner Author

@CvX It's already possible.

We can check whether it's dark mode with systemPreferences.isDarkMode() and detect dark mode changes with systemPreferences.subscribeNotification('AppleInterfaceThemeChangedNotification', () => {}).

@CvX
Copy link
Collaborator

CvX commented Jun 27, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants