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

Enable the use of named colors #10

Merged
merged 6 commits into from
Jul 27, 2024
Merged

Enable the use of named colors #10

merged 6 commits into from
Jul 27, 2024

Conversation

TimJentzsch
Copy link
Owner

Objective

Close #1.

It's usually a bad idea to hard-code colors, as it makes it harder to use a consistent color-scheme throughout the app.
Instead, we should allow named colors to be used.

Solution

  • A new ColorMap resource can be used to define color names
  • The names can be used instead of hex values in the tags: [c=primary]
  • Should the color for a name be updated, the update is efficiently applied to all usages of that name, without reconstructing the UI hierarchy

@TimJentzsch TimJentzsch merged commit fcec8aa into main Jul 27, 2024
4 checks passed
@TimJentzsch TimJentzsch deleted the 1-named-colors branch July 27, 2024 08:14
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.

Support named colors
1 participant