[solved] Can anyone use gtk inspector and tell me the class name of the sidebar of gtk4 apps like nautilus
Basically I am using this gtk.css file in ~/.config/gtk-4.0/gtk.css but it's weird that the sidebar is not themed correctly. If anyone knows about this, please do tell. My only lead at this moment is to find the class and add it in gtk.css file. For some reason I can't install the gtk inspector app, So if anyone has it already or knows the classname, please help.
GTK Inspector comes with GTK, you don't need to install it.
Enable it with gsettings
gsettings get org.gtk.Settings.Debug enable-inspector-keybinding true
so you can invoke it either by running GTK_DEBUG=interactive application-name-here or, when alredy using the application, via Control + Shift + I/Control + Shift + D
I wanted to add on this, for anyone else stumbling across this post and struggling with sidebar theming: The above will work 90% of the time, but in case your some-random-theme.css overrides @sidebar_, or doesn't follow the naming convention to begin with, search your gtk.css for .sidebar-pane, which should be the actual css selector for @sidebar_, and .content-pane for @secondary-sidebar_.
I got the same issue, I was using Gradience to set gtk3/4 themes and that panel never got themed. Apps like Overskride have this issue too. I already had my preferred apps themed correctly so I did not bother.