-
Notifications
You must be signed in to change notification settings - Fork 15.7k
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
Add API's to support dark mode in Mojave #13387
Comments
@MarshallOfSound thanks for taking care. will this also fix the issue that currently native tabs in dark mode show in light colors? See below: |
@bpasero Yes, calling |
@MarshallOfSound great. wouldn't it make more sense to call this automatically within electron based on the OS setting and then maybe have a way to opt out? This would reduce the likelyhood of seeing tons of Electron apps not looking nice in dark mode because the developer forgot to call this. |
The automatic API we have implemented at the moment ( |
Oke |
This also applies to more things:
|
@MarshallOfSound even though this is new API, we would probably be interested in getting some support for dark mode down to |
@bpasero It's traditionally against semver but with Mojave going out to the world as of this week and the earliest this feature coming in being |
@MarshallOfSound yeah we can easily ship a native module with VSCode. Not sure about other applications though. |
* feat: add APIs to support mojave dark mode Closes #13387 * docs: fix system-prefs typo
* feat: add APIs to support mojave dark mode Closes #13387 * docs: fix system-prefs typo
macOS Mojave adds a whole bunch of API's and utilities around a OS level concept of "dark mode", we should add API's to Electron that allow users to determine the current OS level "dark mode" setting and to configure the dark mode setting for the individual application.
Proposed APIs
API Docs:
NSAppearance
- These are the enum values we will have to use for theget
andset
APIseffectiveAppearance
Notes:
10.14
SDKAdditional context
People like dark mode... 😄
The text was updated successfully, but these errors were encountered: