Skip to content

Commit 856e67a

Browse files
fix(shell): animation for spacer
1 parent 0d466ac commit 856e67a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/shell/contextmenu/menu_widget.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ void mb_shell::menu_item_normal_widget::render(ui::nanovg_context ctx) {
2525
auto has_icon = has_icon_padding || icon_img;
2626
auto c = menu_render::current.value()->light_color ? 0 : 1;
2727
if (item.type == menu_item::type::spacer) {
28-
ctx.fillColor(nvgRGBAf(c, c, c, 0.1));
28+
ctx.fillColor(nvgRGBAf(c, c, c, 0.1 * *opacity / 255.f));
2929
ctx.fillRect(x->dest(), *y, *width, *height);
3030
return;
3131
}

0 commit comments

Comments
 (0)