Skip to content

ui: allow choosing theme color with native input#2393

Merged
mastercactapus merged 28 commits into
masterfrom
color-picker
May 31, 2022
Merged

ui: allow choosing theme color with native input#2393
mastercactapus merged 28 commits into
masterfrom
color-picker

Conversation

@Lanithane
Copy link
Copy Markdown
Contributor

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

Comment thread web/src/app/styles/base/elements.css Outdated
mastercactapus
mastercactapus previously approved these changes May 17, 2022
Comment thread web/src/app/theme/ThemePicker.tsx Outdated
mastercactapus
mastercactapus previously approved these changes May 20, 2022
Copy link
Copy Markdown
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