勉强算是把默认主题Titlebar Height调的差不多了
GtkInspector
使用GtkInspector抓瞎找到了gedit,settings的几个margin把设置和gedit还有几个其他内置应用的标题栏调低了一点 。比过非gnome-style的应用和gnome-style的应用高度还是不一致,强迫症自己想办法改一下 我是搞不定了。
.config/gtk-3.0/gtk.css
headerbar {
min-height: 14px;
padding-left: 2px;
padding-right: 2px;
}
headerbar entry,
headerbar spinbutton,
headerbar button,
headerbar separator {
margin-top: 1px; /* same as headerbar side padding for nicer proportions */
margin-bottom: 1px;
}
/* shrink ssd titlebars */
.default-decoration {
min-height: 2; /* let the entry and button drive the titlebar size */
padding: 2px;
}
.default-decoration .titlebutton {
min-height: 1px; /* tweak these two props to reduce button size */
min-width: 1px;
}
window.ssd headerbar.titlebar {
padding-top: 0px;
padding-bottom: 0px;
min-height: 0;
}
window.ssd headerbar.titlebar button.titlebutton {
padding-top: 4px;
padding-bottom:4px;
padding-left: 4px;
padding-right: 4px;
min-height: 0;
}
/* gedit */
notebook > header > tabs > arrow, button.titlebutton, button { min-height: 18px; min-width: 16px; padding: 6px 8px;}
.titlebar:not(headerbar), headerbar { padding: 0 0px; min-height: 0px;}
/*gnome-settings */
headerbar switch { margin-top: 4px; margin-bottom: 4px; }