shrink title bar
The title bar on the applications are thick, how do I shrink the title bar?
The title bar on the applications are thick, how do I shrink the title bar?
Create a file ~/.config/gtk-3.0/gtk.css
containng the following CSS, changing the padding, font-size, etc, to your liking.
(Credit for this fix goes to @crobinso who corrected the CSS you can find online for older versions of Gnome.)
headerbar.default-decoration {
padding-top: 0;
padding-bottom: 0;
min-height: 0;
font-size: 0.8em;
}
headerbar.default-decoration button.titlebutton {
padding: 0;
min-height: 0;
}
You can use gconf-editor (yum install gconf-editor
if you don't have it yet) and change the value for /apps/metacity/general/titlebar_font
: a smaller font results in a smaller titlebar. [1]
Alternatively, you can edit your theme to reduce the padding as suggested at http://mikeyshelpdesk.blogspot.com/20... :
sudo sed -i "/title_vertical_pad/s/value=\"[0-9]\{1,2\}\"/value=\"0\"/g" /usr/share/themes/Adwaita/metacity-1/metacity-theme-3.xml
restart
Instead of restart
you can use r
in the command box that pops up.
If your user isn't a superuser, you may need to use su
to login as root
(assuming you know the administrator password).
NB: I have only used the first method so far, though the comments at [2] suggest that the second method should work as well.
[1] [http://ubuntuforums.org/showthread.php?t=1737632](http://ubuntuforums.org/showthread.php?t=1737632)
[2] [http://mikeyshelpdesk.blogspot.com/2011/04/gnome-3-massive-title-bar.html](http://mikeyshelpdesk.blogspot.com/2011/04/gnome-3-massive-title-bar.html)
Here's one way to do it:
http://dnmouse.org/autoten/gnome-3-extra-tips/189-resize-the-massive-titlebar.html
I used gnome-tweak-tools (Advanced Settings) in the menu and changed the size of the title bar font which helped as well.
I've been using a similar solution to the css bit posted above, but it no longer works on Fedora 24/gnome 3.20. My new working css is:
$ cat ~/.config/gtk-3.0/gtk.css
headerbar.default-decoration {
padding-top: 3px;
padding-bottom: 3px;
min-height: 0px;
font-size: 0.6em;
}
headerbar.default-decoration button.titlebutton {
padding: 0px;
min-height: 0px;
}
i used cascading stylesheet on gtk-3.0
Make file "gtk.css", on /home/(userdirectory)/.config/gtk-3.0/gtk.css
(example : /home/bandithijo/.config/gtk-3.0/gtk.css)
$ cd /home/(userdirectory) //change with your username directory
$ gedit .config/gtk-3.0/gtk.css
And than copy paste code below
.header-bar.default-decoration {
padding-top : 4px;
padding-bottom : 4px;
}
.header-bar.default-decoration .button.titlebutton {
padding-top : 2.5px;
padding-bottom : 2.5px;
}
Quit and Save Gedit
Voillaa
// you can change the css padding value if you want
[my computer info]
On gnome-shell, iirc this can be done by modifying /usr/share/gnome-shell/theme/gnome-shell.css Not sure though, haven't tweaked gnome-shell myself. Do wait for other replies :)
Asked: 2011-11-12 23:28:40 -0600
Seen: 26,730 times
Last updated: Jul 27 '16
Hi! What DE is this?