Fix menu bar background color for GTK3

Closes #108
This commit is contained in:
Ghislain Antony Vaillant 2020-11-20 17:55:11 +01:00
parent 67d8586720
commit 1e98c9b82c
1 changed files with 5 additions and 0 deletions

View File

@ -158,6 +158,11 @@ auto pWindow::construct() -> void {
gtkMenu = gtk_menu_bar_new();
gtk_box_pack_start(GTK_BOX(menuContainer), gtkMenu, false, false, 0);
#if HIRO_GTK==3
GdkRGBA gtkMenuBackgroundColor;
gdk_rgba_parse(&gtkMenuBackgroundColor, "lightgray");
gtk_widget_override_background_color(gtkMenu, GTK_STATE_FLAG_NORMAL, &gtkMenuBackgroundColor);
#endif
formContainer = gtk_fixed_new();
gtk_box_pack_start(GTK_BOX(menuContainer), formContainer, true, true, 0);