summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2025-02-26 13:31:13 +0100
committerLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2025-02-26 13:31:13 +0100
commitbeddf49c76f3b43e7b33452831e1293cad28fd89 (patch)
tree291a020f6683d3c3f2564d545e29fa002de6ee37
parentcf2b28fd7458173162888778782ad3fa60f9c651 (diff)
downloadiced-beddf49c76f3b43e7b33452831e1293cad28fd89.tar.gz
iced-beddf49c76f3b43e7b33452831e1293cad28fd89.tar.bz2
iced-beddf49c76f3b43e7b33452831e1293cad28fd89.zip
Improve contrast of light deviation in `palette`
-rw-r--r--core/src/theme/palette.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/theme/palette.rs b/core/src/theme/palette.rs
index ed49063c..faffee8b 100644
--- a/core/src/theme/palette.rs
+++ b/core/src/theme/palette.rs
@@ -635,7 +635,7 @@ fn deviate(color: Color, amount: f32) -> Color {
if is_dark(color) {
lighten(color, amount)
} else {
- darken(color, amount * 0.7)
+ darken(color, amount * 0.8)
}
}