mirror of
https://github.com/niri-wm/niri.git
synced 2026-06-23 02:05:33 +07:00
layout: Fix background color premultiplication
This commit is contained in:
@@ -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)]
|
||||
|
||||
Reference in New Issue
Block a user