layout: Fix background color premultiplication

This commit is contained in:
Ivan Molodetskikh
2025-11-13 09:13:35 +03:00
parent 5b77107161
commit a52df533c4
3 changed files with 11 additions and 9 deletions
+6
View File
@@ -77,6 +77,12 @@ impl MulAssign<f32> for Color {
}
}
impl From<Color> for Color32F {
fn from(value: Color) -> Self {
Color32F::from(value.to_array_premul())
}
}
#[derive(knuffel::Decode, Debug, Clone, Copy, PartialEq)]
pub struct Gradient {
#[knuffel(property, str)]