Caprine: Follow system dark mode

Created on 27 Jun 2018  路  3Comments  路  Source: sindresorhus/caprine

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

enhancement help wanted

Most helpful comment

@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', () => {}).

All 3 comments

(Depends on https://github.com/electron/electron/issues/13387)

@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', () => {}).

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ChristianKlee picture ChristianKlee  路  4Comments

petersng picture petersng  路  3Comments

plexp picture plexp  路  4Comments

Yukaii picture Yukaii  路  3Comments

Vexorify picture Vexorify  路  3Comments