-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Upgrade palette
dependency
#1875
Conversation
core/src/color.rs
Outdated
impl From<Rgba> for Color { | ||
fn from(rgba: Rgba) -> Self { | ||
Color::new(rgba.red, rgba.green, rgba.blue, rgba.alpha) |
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.
Why has this been changed? Color
is in the sRGB color space.
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.
Ah, I see. It's a type definition! Still, it seems more descriptive to use Srgb
directly.
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.
Reverted it in b741893 for now.
Thanks! Not sure what's up with CI. Let me take a look. |
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.
Looks good to me! Let me know if you agree with the Srgb
change.
Sticking with |
palette
to 0.7 across the libraryrgb::Rgb
instead ofSrgb
directlyRelativeContrast
trait has been deprecated in favor ofcolor_difference::Wcag21RelativeContrast
Hue::to_positive_degrees()
->Hue::into_positive_degrees()