Skip to content

Commit 15ad4e1

Browse files
committed
Fix nwjs#7124: menubar background
1 parent bd15d23 commit 15ad4e1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/browser/menubar_view.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ class MenuBarButton : public views::MenuButton {
5454
MenuBarView::MenuBarView() {
5555
auto layout = std::make_unique<views::BoxLayout>(views::BoxLayout::kHorizontal, gfx::Insets(), 0);
5656
SetLayoutManager(std::move(layout));
57+
SetBackground(views::CreateSolidBackground(GetNativeTheme()->GetSystemColor(
58+
ui::NativeTheme::kColorId_MenuBackgroundColor)));
5759
}
5860

5961
MenuBarView::~MenuBarView() {

0 commit comments

Comments
 (0)