Re: Application Finder (xfce4-appfinder) tweak on .gtkrc-2.0

gnanini wrote:

1) Is there a way or app to discover gtk properties and ids of other applications?

For GTK2 apps, gtkparasite is a helpful tool. For GTK3 apps, looks at the Gtk Inspector tool. The GTK3 version is much better. So basically, install gtk-parasite and first kill any instance of xfce4-appfinder that might be running ("pkill xfce4-appfinder") then:

GTK_MODULES=gtkparasite xfce4-appfinder

...and you'll get something like:Unfortunately, all it will tell you is that the xfce4-appfinder's widget name is "XfceAppfinderWindow", but that's enough to get us started. You can enable edit mode in that program and change some of the properties on the right side to see some immediate changes. On the left side, you can see the Gtk components that are used in this app. Once you know this list, you can fiddle with gtk tweaking.

For Gtk2, this is the definitive guide of all widgets, properties, styles, etc. So, lets walk through a few basic tweaks. You can change the application background by using the "bg[NORMAL]" style. Doing so, you'll notice that it isn't applied to the whole window, because the GtkTreeView widget overlays itself. So we need to apply the same to the GtkTreeView widget. To get the info about the GtkTreeView widget, go to its page and see that we can adjust the "even-row-color" and "odd-row-color" properties. (We also have to set "allow-rules" to 1 to allow the changes to have an effect. We can also change the foreground colour to yellow using the "fg[NORMAL]" style and "text[NORMAL]" for the GtkTreeView widget. Here is our example now: