Skip to content

Commit

Permalink
misc(progress_icon): properly set bg color
Browse files Browse the repository at this point in the history
This shouldn't change anythong, but would be less problematic if the color has non-1 alpha value.
  • Loading branch information
SeaDve committed Feb 21, 2024
1 parent b25eae5 commit 8c8484b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/window/progress_icon.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 8c8484b

Please sign in to comment.