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

Upgrade palette dependency #1875

Merged
merged 4 commits into from
May 26, 2023
Merged

Upgrade palette dependency #1875

merged 4 commits into from
May 26, 2023

Conversation

clarkmoody
Copy link
Contributor

  • Upgrades palette to 0.7 across the library
  • Fixes breakages
    • Use rgb::Rgb instead of Srgb directly
    • RelativeContrast trait has been deprecated in favor of color_difference::Wcag21RelativeContrast
    • Hue::to_positive_degrees() -> Hue::into_positive_degrees()

Comment on lines 187 to 189
impl From<Rgba> for Color {
fn from(rgba: Rgba) -> Self {
Color::new(rgba.red, rgba.green, rgba.blue, rgba.alpha)
Copy link
Member

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.

Copy link
Member

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.

Copy link
Member

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.

@hecrj hecrj added improvement An internal improvement styling labels May 25, 2023
@hecrj hecrj added this to the 0.10.0 milestone May 25, 2023
@hecrj
Copy link
Member

hecrj commented May 25, 2023

Thanks! Not sure what's up with CI. Let me take a look.

Copy link
Member

@hecrj hecrj left a 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.

@clarkmoody
Copy link
Contributor Author

Sticking with Srgb is fine with me :shipit:

@hecrj hecrj merged commit fcb1b45 into iced-rs:master May 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement An internal improvement styling
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants