chore: fixing linter warnings
This commit is contained in:
parent
ebcfa5f2d0
commit
8e99406a8b
17 changed files with 79 additions and 75 deletions
|
|
@ -92,11 +92,11 @@ pub trait ColorExt {
|
|||
|
||||
impl ColorExt for iced::Color {
|
||||
fn blend_alpha(self, background: Self, alpha: f32) -> Self {
|
||||
Color {
|
||||
Self {
|
||||
a: 1.0,
|
||||
r: background.r + (self.r - background.r) * alpha,
|
||||
g: background.g + (self.g - background.g) * alpha,
|
||||
b: background.b + (self.b - background.b) * alpha,
|
||||
r: (self.r - background.r).mul_add(alpha, background.r),
|
||||
g: (self.g - background.g).mul_add(alpha, background.g),
|
||||
b: (self.b - background.b).mul_add(alpha, background.b),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue