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

feat: remove needless additional mojave dark mode APIs #14895

Merged
merged 1 commit into from Oct 2, 2018

Conversation

MarshallOfSound
Copy link
Member

@MarshallOfSound MarshallOfSound commented Oct 1, 2018

  • Removes the APIs added to track OS dark mode
  • Add instructions on how to use the macOS replacement

Basically, these 2 APIs are not required, you can compile on < 10.14 SDK and still have macOS adjust the appearance of your app automatically for you. You just need the NSRequiresAquaSystemAppearance key set to false in your app's Info.plist. We can't set this by default in Electron because you should only set it if your app actually supports dark mode but we can add support to electron-packager and document this keys behavior in our dark mode docs.

Refs: electron/packager#893 .
Refs: https://developer.apple.com/documentation/appkit/nsappearancecustomization/choosing_a_specific_appearance_for_your_app

Notes: Simplified mojave dark mode APIs

@MarshallOfSound MarshallOfSound requested review from a team October 1, 2018 14:46
Copy link
Member

@ckerr ckerr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I love this -- we knew this was a temporary API; I just didn't expect it to be this temporary. Thanks for finding a more straightforward way to do it.

@MarshallOfSound MarshallOfSound merged commit d628aad into master Oct 2, 2018
@release-clerk
Copy link

release-clerk bot commented Oct 2, 2018

Release Notes Persisted

Simplified mojave dark mode APIs

@MarshallOfSound MarshallOfSound deleted the mojave-dark-mode-follow-up branch October 2, 2018 04:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants