Skip to content

FIX: Bad headerbar toolbar

I cannot open pull request. so I push as patch:

diff --git a/thunar/thunar-application.c b/thunar/thunar-application.c
index 068607c58..656eaf60c 100644
--- a/thunar/thunar-application.c
+++ b/thunar/thunar-application.c
@@ -695,6 +695,8 @@ thunar_application_load_css (void)
   css_provider = gtk_css_provider_new ();
 
   gtk_css_provider_load_from_data (css_provider,
+                                   /* for the toolbar transparent background */
+                                   ".toolbar { background: none; }"
                                    /* for the location-buttons any margin looks ugly */
                                    ".location-button { margin-right: 0; }"
                                    /* add missing top border to side pane */
diff --git a/thunar/thunar-window.c b/thunar/thunar-window.c
index 6dfc485f5..5103ea56b 100644
--- a/thunar/thunar-window.c
+++ b/thunar/thunar-window.c
@@ -6714,6 +6714,10 @@ thunar_window_location_toolbar_create (ThunarWindow *window)
                              small_icons ? GTK_ICON_SIZE_SMALL_TOOLBAR : GTK_ICON_SIZE_LARGE_TOOLBAR);
   gtk_widget_set_hexpand (window->location_toolbar, TRUE);
 
+  GtkStyleContext *context;
+  context = gtk_widget_get_style_context (GTK_WIDGET (window->location_toolbar));
+  gtk_style_context_add_class (context, "toolbar");
+
   g_signal_connect (G_OBJECT (window->location_toolbar), "button-press-event", G_CALLBACK (thunar_window_toolbar_button_press_event), window);
 
   /* add toolbar items */

Old look

resim

New look

resim