Skip to content

Commit

Permalink
fix(window): ensure menubar background matches window
Browse files Browse the repository at this point in the history
  • Loading branch information
heapwolf committed Mar 19, 2024
1 parent 86703b9 commit d49889b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/window/linux.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1239,6 +1239,12 @@ namespace SSC {
menubar = menubar == nullptr ? gtk_menu_bar_new() : clear(menubar);
}

GtkStyleContext *context = gtk_widget_get_style_context(this->window);

GdkRGBA color;
gtk_style_context_get_background_color(context, gtk_widget_get_state_flags(this->window), &color);
gtk_widget_override_background_color(menubar, GTK_STATE_FLAG_NORMAL, &color);

auto menus = split(menuSource, ';');

for (auto m : menus) {
Expand Down

0 comments on commit d49889b

Please sign in to comment.