Download your favorite Linux distribution at LQ ISO.
Go Back > Blogs > linux-related notes
User Name


Just annotations of little "how to's", so I know I can find how to do something I've already done when I need to do it again, in case I don't remember anymore, which is not unlikely. Hopefully they can be useful to others, but I can't guarantee that it will work, or that it won't even make things worse.
Rate this Entry

Minor but significant fix/tweak on GTK3's "clearlooks", getting away with excessive padding

Posted 07-14-2017 at 07:39 PM by the dsc
Updated 07-14-2017 at 07:41 PM by the dsc

I'm not a maintainer of this theme, this is a fix I did just for myself. Perhaps the theme's owners wouldn't even agree with it being a "fix".

GTK3's clearlooks had significantly more wasted space than its GTK2 predecessor. I guess it's due to the fad of "mobile first" design.

It's not that hard to make them more similar in this regard, all it requires is to open the CSS file and reduce several of the "padding" values.

I found particulary good to have zero padding in the "treeview" "element". But it may be somewhat tricker to actually adjust this padding as it's apparently stated twice or multiple times in the CSS file. I couldn't fix it properly yet so I just copied yet another instance of the CSS definitions to the end of the file, the laziest way out possible. But it works for now.

Related tip: GTK3 may have been compiled with an embedded "inspector", similar to that browser inspector thingie Chrome and Firefox have, that you can edit the CSS or whatever on the page you're visiting.

If it has been enabled on compilation time, as it's the case with Debian testing's GTK3, you enable it by running:

gsettings set org.gtk.Settings.Debug enable-inspector-keybinding true

And then you press Control+shift+D in the program you want to "inspect". It's less intuitive than the browser's version of this functionality but at least helps fixing some annoying stuff with GTK3 themes. But apparently it doesn't show the actual CSS for you to edit. You'd have to come up with from the top of your head. Or, like I did, opening the GTK CSS file and copying and pasting the "suspicious" parts, as indicated by the click-on-the-element-to-show-stuff-about-it inspecting function.

I kind of prefer Mist over clearlooks, but on QT the most mist-like, CDE, for some reason requires some annoying extra-clicking at some buttons, and the text selection is hard to get used to, quite invisible. QT's "cleanlooks" is also a built-in theme, so it's probably almost as good, performance-wise.
Posted in Uncategorized
Views 338 Comments 0
« Prev     Main     Next »
Total Comments 0




All times are GMT -5. The time now is 03:47 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration