Skip to content

Instantly share code, notes, and snippets.

@addisaden
Created September 7, 2019 16:04
Show Gist options
  • Save addisaden/1040e6d073c8f3aacf5f81f4a149805e to your computer and use it in GitHub Desktop.
Save addisaden/1040e6d073c8f3aacf5f81f4a149805e to your computer and use it in GitHub Desktop.
Awesome slimm titlebars in Gnome 3 - Reload with alt+F2 "r"
/* Place this file in ~/.config/gtk-3.0/gtk.css
**
** Thanks to Robert Lu and Benjamin Leinweber.
**
** Source: https://unix.stackexchange.com/questions/257163/reduce-title-bar-height-in-gnome-3-gtk-3
**
*/
/* 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;
padding-left: 3px;
padding-right:3px;
min-height: 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment