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

Add night mode detection #339

Conversation

SISheogorath
Copy link
Contributor

Firefox and Safari power a new CSS media query which allows to detect
user's dark mode. This patch adds a JS implementation that toggles the
our night mode automatically when a user's theme requests a dark mode.

Resources:
https://hacks.mozilla.org/2019/05/firefox-67-dark-mode-css-webrender/
https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-color-scheme

Firefox and Safari power a new CSS media query which allows to detect
user's dark mode. This patch adds a JS implementation that toggles the
our night mode automatically when a user's theme requests a dark mode.

Resources:
https://hacks.mozilla.org/2019/05/firefox-67-dark-mode-css-webrender/
https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-color-scheme

Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
@SISheogorath SISheogorath added the type: feature Adds or requests new functionality label Apr 25, 2020
@SISheogorath SISheogorath added this to the Release 2.0 milestone Apr 25, 2020
@SISheogorath
Copy link
Contributor Author

@DerMolly Might want to look into this for the new frontend. Don't think it makes lots of sense to provide any new frontend code for 2.0 into this repository.

@mrdrogdrog
Copy link
Member

Please create an issue in the react client repo

@InnayTool InnayTool added this to In progress in Release 2.0 via automation Jul 7, 2020
@davidmehren
Copy link
Member

I think we can close this here, as there is already a corresponding issue for the new frontend.

Release 2.0 automation moved this from In progress to Done Jul 11, 2020
@SISheogorath SISheogorath removed this from Done in Release 2.0 Nov 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: feature Adds or requests new functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants