gnome3 – 减少gnome 3 / gtk 3中的标题栏高度

我正在运行gnome 3.18,我想减少标题栏的高度.

有任何想法吗 ?

最佳答案
在Gnome 3.20之后,.header-bar.default-decoration不起作用.

您可以将以下内容放入〜/ .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;
}

通过https://ogbe.net/blog/gnome_titles.html

转载注明原文:gnome3 – 减少gnome 3 / gtk 3中的标题栏高度 - 代码日志