diff options
Diffstat (limited to 'crates/material_theme/src')
| -rw-r--r-- | crates/material_theme/src/utils.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/material_theme/src/utils.rs b/crates/material_theme/src/utils.rs index 963c9fc..4c62ec3 100644 --- a/crates/material_theme/src/utils.rs +++ b/crates/material_theme/src/utils.rs @@ -116,7 +116,7 @@ pub fn mix(color1: Color, color2: Color, p2: f32) -> Color { let p1 = 1.0 - p2; if (color1.a - 1.0).abs() > COLOR_ERROR_MARGIN - || (color2.a - 1.0) > COLOR_ERROR_MARGIN + || (color2.a - 1.0).abs() > COLOR_ERROR_MARGIN { let a = color1.a * p1 + color2.a * p2; if a > 0.0 { |
