summarylogtreecommitdiffstats
path: root/appearance__file-chooser.patch
blob: a7455454d6b9a0d745ba23c89587b5313686d57e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
Index: src/gtk+-3.24.12/gtk/gtkfilechooserwidget.c
===================================================================
--- src.orig/gtk+-3.24.12/gtk/gtkfilechooserwidget.c
+++ src/gtk+-3.24.12/gtk/gtkfilechooserwidget.c
@@ -78,6 +78,7 @@
 #include "gtkseparator.h"
 #include "gtkmodelbutton.h"
 #include "gtkgesturelongpress.h"
+#include "gtkcssprovider.h"
 
 #include <cairo-gobject.h>
 
@@ -8797,6 +8798,16 @@ post_process_ui (GtkFileChooserWidget *i
   gtk_popover_set_relative_to (GTK_POPOVER (impl->priv->rename_file_popover), impl->priv->browse_files_tree_view);
 
   add_actions (impl);
+  static gboolean style_added = FALSE;
+  if (!style_added)
+    {
+      style_added = TRUE;
+      GtkCssProvider *provider = gtk_css_provider_new ();
+      gtk_css_provider_load_from_data (provider,
+        "filechooser .sidebar-icon, filechooser .path-bar, filechooser .path-bar + button { opacity: 1; -gtk-icon-style: regular; }", -1, NULL);
+      gtk_style_context_add_provider_for_screen (gtk_widget_get_screen (GTK_WIDGET (impl)),
+        GTK_STYLE_PROVIDER (provider), GTK_STYLE_PROVIDER_PRIORITY_APPLICATION);
+    }
 }
 
 void