Skip to content

Commit 96b893f

Browse files
Update extra_widgets.cc
1 parent afff42d commit 96b893f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/ui/extra_widgets.cc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,9 @@ void acrylic_background_widget::render(nanovg_context ctx) {
3636
widget::render(ctx);
3737
cv.notify_all();
3838

39-
bg_color.a = *opacity / 255.f;
40-
ctx.fillColor(bg_color);
39+
auto bg_color_tmp = bg_color;
40+
bg_color_tmp.a *= *opacity / 255.f;
41+
ctx.fillColor(bg_color_tmp);
4142
ctx.fillRoundedRect(*x, *y, *width, *height, use_dwm ? 8.f : **radius);
4243

4344
offset_x = ctx.offset_x;

0 commit comments

Comments
 (0)