-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Update color scheme seed generation to use color utils package #95175
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
Update color scheme seed generation to use color utils package #95175
Conversation
guidezpl
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
_ ___ _____ __ __
| | / __|_ _| \/ |
| |_| (_ | | | | |\/| |
|____\___| |_| |_| |_|
darrenaustin
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for doing this. It was on my list for this morning actually. I originally did something like this but thought it was going to be a more stable implementation and didn't want to have the overhead of constructing Scheme object only to copy all the stuff into the ColorScheme. Given that it has changed already, it makes more sense to rely only the Scheme. I am a little concerned about future changes like this as once this hits stable we won't want to be changing the generated schemes as people may start to depend on them.
All that said, this looks good. However it looks like we need to update the theme_data scheme generation test as it is failing:
darrenaustin
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks again.
|
This pull request is not suitable for automatic merging in its current state.
|
|
This pull request is not suitable for automatic merging in its current state.
|
This updates the version of
material_color_utilitiesand uses theSchemeobject to create the color scheme instead of doing the mappings ourselves. This ensures we match the spec/source of truth for color schemes.Closes #95172
Pre-launch Checklist
///).If you need help, consider asking for advice on the #hackers-new channel on Discord.