Sure.
The official information is here:
https://wiki.gnome.org/Projects/GTK%2B/Inspector
This is what I did:
-
Install libgtk-3-dev:
sudo apt install libgtk-3-dev
-
Enable gtk debugging:
gsettings set org.gtk.Settings.Debug enable-inspector-keybinding true
-
Reboot to apply
-
Click on the status bar to show one of its menu. While the menu is open, press Ctrl+shift+I or Ctrl+Shift+D to show the inspector.
-
Some confirmation is shown before opening Gtk Inspector
-
Click the “Objects” tab and choose “CSS Nodes” to show all the available properties that the control has. For example click on “PanelApplet”.
-
Click on the CSS tab and type some CSS code to see the changes on the fly!
#fast-user-switch-menubar {
background-color:red;
} -
Save the CSS changes in ~/.config/gtk-3.0/gtk.css to make them permanent
-
enjoy!
see also:
https://developer.gnome.org/gtk3/stable/chap-css-overview.html