`DesignSystem` improvements
This PR is making an effort to improve upon existing DesignSystem.
- Set up lightness and muted parameters on per theme basis instead relying on hard-coded values
- Add some documentation
- Add
hslhelper function
Bumped to 1.90 as floor was constified at this rust version.
Hmm. I thought that this would improve the performance of the style pass but it doesn't actually seem to make a difference.
What was the motivation for this change?
There is a regression on disabled text color
While we use Color that is just an alias for AlphaColor<Srgb> that is all I can do.
Styles in most places accept a Brush which can be any color space (or a gradient/image)
The motivation was to make it do more work at compile time instead of runtime, but if its not making a difference then yeah, feel free to close it.
I think all of the clippy if let chains would be good to merge. Maybe let's just revert the changes to theme.rs
Will do that. However, will keep hsl function as an alternative way of constructing color, which might be useful when you are trying your theme out. Will add also a way to customize background elevation level.
@jrmoulton PR is ready for review.