diff --git a/crates/yakui-core/Cargo.toml b/crates/yakui-core/Cargo.toml index 6f214365..be8b21f4 100644 --- a/crates/yakui-core/Cargo.toml +++ b/crates/yakui-core/Cargo.toml @@ -14,7 +14,7 @@ bitflags = "1.3.2" glam = "0.24.2" keyboard-types = { version = "0.6.2", default-features = false } log = "0.4.17" -palette = "0.6.0" +palette = "0.7.4" profiling = "1.0.6" smallvec = "1.9.0" thunderdome = "0.6.0" diff --git a/crates/yakui-core/src/geometry/color.rs b/crates/yakui-core/src/geometry/color.rs index f2be8924..98236037 100644 --- a/crates/yakui-core/src/geometry/color.rs +++ b/crates/yakui-core/src/geometry/color.rs @@ -49,9 +49,7 @@ impl Color { /// Create a new `Color` from a linear RGB color. pub fn from_linear(value: Vec4) -> Self { let linear = palette::LinSrgba::new(value.x, value.y, value.z, value.w); - let (r, g, b, a) = palette::Srgba::from_linear(linear) - .into_format::() - .into_components(); + let (r, g, b, a) = palette::Srgba::::from_linear(linear).into_components(); Self::rgba(r, g, b, a) }