Created
March 5, 2019 13:07
-
-
Save PI-Victor/590c924d6cbc1f0491a64d2b17f79773 to your computer and use it in GitHub Desktop.
gtk minimize titlebar headers
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
original https://unix.stackexchange.com/questions/257163/reduce-title-bar-height-in-gnome-3-gtk-3 | |
After Gnome 3.20, .header-bar.default-decoration doesn't work. | |
You can put follow content into ~/.config/gtk-3.0/gtk.css: | |
/* shrink headerbars (don't forget semicolons after each property) */ | |
headerbar { | |
min-height: 0px; | |
padding-left: 2px; /* same as childrens vertical margins for nicer proportions */ | |
padding-right: 2px; | |
background-color: #2d2d2d; | |
} | |
headerbar entry, | |
headerbar spinbutton, | |
headerbar button, | |
headerbar separator { | |
margin-top: 0px; /* same as headerbar side padding for nicer proportions */ | |
margin-bottom: 0px; | |
} | |
/* shrink ssd titlebars */ | |
.default-decoration { | |
min-height: 0; /* let the entry and button drive the titlebar size */ | |
padding: 0px; | |
background-color: #2d2d2d; | |
} | |
.default-decoration .titlebutton { | |
min-height: 0px; /* tweak these two props to reduce button size */ | |
min-width: 0px; | |
} | |
window.ssd headerbar.titlebar { | |
padding-top: 3px; | |
padding-bottom: 3px; | |
min-height: 0; | |
} | |
window.ssd headerbar.titlebar button.titlebutton { | |
padding-top: 3px; | |
padding-bottom:3px; | |
min-height: 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://ogbe.net/blog/gnome_titles.html