Skip to content

Upgrade palette dependency#1875

Merged
hecrj merged 4 commits into
iced-rs:masterfrom
clarkmoody:palette-0.7
May 26, 2023
Merged

Upgrade palette dependency#1875
hecrj merged 4 commits into
iced-rs:masterfrom
clarkmoody:palette-0.7

Conversation

@clarkmoody

Copy link
Copy Markdown
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 thread core/src/color.rs Outdated
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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

hecrj commented May 25, 2023

Copy link
Copy Markdown
Member

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

@hecrj hecrj left a comment

Copy link
Copy Markdown
Member

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
Copy Markdown
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