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

ui: allow choosing theme color with native input #2393

Merged
merged 28 commits into from
May 31, 2022
Merged

Conversation

Forfold
Copy link
Contributor

@Forfold Forfold commented May 12, 2022

This PR adds a color picker to the Theme Mode (now renamed to Appearance) ButtonGroup in the Settings Popover, so users can choose whichever color they prefer as their source for GoAlert's palette. The color's hex # is saved in local storage and works for both light and dark modes.

The main primary theme has been changed to leverage @material/material-color-utilities for calculating the proper hex colors. This is the backend for the tool we used as a team to pick the hard-coded color values currently in master.

Screenshots:

Screen Shot 2022-05-12 at 2 26 12 PM

Screen Shot 2022-05-12 at 2 26 00 PM

mastercactapus
mastercactapus previously approved these changes May 17, 2022
mastercactapus
mastercactapus previously approved these changes May 20, 2022
Copy link
Collaborator

@tony-tvu tony-tvu left a comment

Choose a reason for hiding this comment

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

LGTM

@mastercactapus mastercactapus merged commit 880ed3d into master May 31, 2022
@mastercactapus mastercactapus deleted the color-picker branch May 31, 2022 15:16
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.

3 participants