You are not logged in.
Hi,
I am working on a theme (GitHub URL: https://github.com/fusion809/OSX-Arc-White) that presently works fine for GNOME but on Xfce it gives , as you can see it's impossible to see the non-selected items in the Thunar sidebar. Which GTK class(s) do I need to edit in order to adjust this background colour? Plus it would help if there was some way I could look at which GTK classes that are being applied to each element under Xfce. I know under GNOME that adding: GTK_DEBUG=interactive to before the command that launches the program I want to debug will launch the GTK Inspector app, to inspect the GTK classes being applied to each element.
Thanks for your time,
Brenton
Last edited by fusion809 (2016-06-23 13:01:09)
Offline
Try something like:
style "my-thunar-sidebar"
{
GtkTreeView::odd_row_color = "#ff0000"
GtkTreeView::even_row_color = "#ff0000"
base[NORMAL] = "#ff0000"
base[INSENSITIVE] = "#ff0000"
text[NORMAL] = "#00ff00"
text[ACTIVE] = "#0000ff"
text[SELECTED] = "#0000ff"
}
widget_class "*ThunarShortcutsView*" style "my-thunar-sidebar"
widget_class "*ThunarTreeView*" style "my-thunar-sidebar"
widget_class "*GtkFileChooserWidget.GtkFileChooserDefault.GtkVBox.GtkHPaned.GtkVBox.GtkScrolledWindow.GtkTreeView*" style "my-thunar-sidebar"
Plus it would help if there was some way I could look at which GTK classes that are being applied to each element under Xfce. I know under GNOME that adding: GTK_DEBUG=interactive to before the command that launches the program I want to debug will launch the GTK Inspector app, to inspect the GTK classes being applied to each element.
Since Thunar is still a GTK2 based app, you need to use GTK Parasite to get this debug view. Install gtk-parasite and run:
GTK_MODULES=gtkparasite thunar
Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
Ah, your little tweak hasn't had any effect for me (I tried to apply it by adding it to the gtk-2.0/gtkrc file in my theme folder, I even ran xfce4-panel -r to ensure it wasn't a mere matter of reloading to see the difference). Running GTK_MODULES=gtkparasite thunar after installing gtkparasite with:
yaourt -S gtkparasite-gtk2
(as you can guess I am using Arch Linux), launched thunar but without the GTK parasite window
Last edited by fusion809 (2016-06-23 14:27:46)
Offline
If you're wondering if this is some bug in gtkparasite, well it seems less likely as running GTK_MODULES=gtkparasite mousepad launches the GTK Parasite and Mousepad windows without a problem. Likewise running GTK_MODULES=gtkparasite leafpad launches both the GTK Parasite and Leafpad windows without problem.
Last edited by fusion809 (2016-06-23 14:43:44)
Offline
Restarting the panel won't help here. Try killing all instances of Thunar (including the daemon) first:
thunar -q
I'm also running Arch and put the snippet in ~/.gtkrc-2.0 and it works. You should be able to embed this snippet in your theme's gtk-2.0/gtkrc file as well.
Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
Thanks a million! 'tis working now.
Offline
[ Generated in 0.013 seconds, 7 queries executed - Memory usage: 537.04 KiB (Peak: 538.32 KiB) ]