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

Check for dark theme preference #837

Draft
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

keller-mark
Copy link
Member

Description

What was changed in this pull request?

This pull request updates the setTheme() function to check for prefers-color-theme: dark if no theme (or invalid theme) has been passed.

Why is it necessary?

More of an enhancement. Setting this as a draft PR since it should probably wait until theming is no longer in the beta stage.

Fixes #804

Checklist

  • Set proper GitHub labels (e.g. v1.6+, ignore if you don't know)
  • Unit tests added or updated
  • Documentation added or updated
  • Example(s) added or updated
  • Update schema.json if there are changes to the viewconf JSON structure format
  • Screenshot for visual changes (e.g. new tracks or UI changes)
  • Updated CHANGELOG.md

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.

Automatically darkify HiGlass using CSS' prefers-color-scheme
1 participant