From 8c8484b1aace944ab1e291316633d39b15cc261f Mon Sep 17 00:00:00 2001 From: Dave Patrick Caberto Date: Wed, 21 Feb 2024 11:16:15 +0800 Subject: [PATCH] misc(progress_icon): properly set bg color This shouldn't change anythong, but would be less problematic if the color has non-1 alpha value. --- src/window/progress_icon.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/window/progress_icon.rs b/src/window/progress_icon.rs index 2ae57f9a..af7f4eba 100644 --- a/src/window/progress_icon.rs +++ b/src/window/progress_icon.rs @@ -81,7 +81,7 @@ mod imp { ctx.arc(cx, cy, radius, -FRAC_PI_2, arc_end); ctx.stroke().unwrap(); - ctx.set_source_color(&color.with_alpha(0.15)); + ctx.set_source_color(&color.with_alpha(color.alpha() * 0.15)); ctx.move_to(cx + radius * arc_end.cos(), cy + radius * arc_end.sin()); ctx.arc(cx, cy, radius, arc_end, 3.0 * FRAC_PI_2); ctx.stroke().unwrap();