Skip to content

Improve color schemes handling - #583

Merged
giuscris merged 4 commits into
2.xfrom
feature/improved-color-schemes
Oct 6, 2024
Merged

Improve color schemes handling#583
giuscris merged 4 commits into
2.xfrom
feature/improved-color-schemes

Conversation

@giuscris

@giuscris giuscris commented Oct 6, 2024

Copy link
Copy Markdown
Member

This PR changes how color schemes are handled in the panel.
Instead of having separate assets for light and dark themes, color schemes are switched via css variables and classes on the root element.
The ColorScheme enum simplifies the specification of current and supported color schemes.
Now when the color scheme is auto, themes are switched when prefers-color-scheme changes.

@giuscris giuscris added the enhancement New feature or request label Oct 6, 2024
@giuscris giuscris added this to the 2.0.0 milestone Oct 6, 2024
@giuscris giuscris self-assigned this Oct 6, 2024
@giuscris
giuscris merged commit d1978be into 2.x Oct 6, 2024
@giuscris
giuscris deleted the feature/improved-color-schemes branch October 6, 2024 14:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant