在 Gnome 3.18 中,可以通过~/.config/gtk-3.0/gtk.css根据Reduce title bar height in gnome 3 / gtk+ 3更改 css 来更改所有窗口的标题栏高度。
.header-bar.default-decoration {
padding-top: 0px;
padding-bottom: 0px;
}
.header-bar.default-decoration .button.titlebutton {
padding-top: 0px;
padding-bottom: 0px;
}
/* No line below the title bar */
.ssd .titlebar {
border-width: 0;
box-shadow: none;
}
Run Code Online (Sandbox Code Playgroud)
在 Gnome 3.20 中,这似乎不再适用于带有标题栏/CSD(标题栏中的 gnome 特定按钮)的窗口,例如 Nautilus(文件)、设置、照片、联系人等。调整仍然降低了标题栏的高度对于其他应用程序,例如 gnome-terminal 和 gVim。如何降低 gnome 程序(例如 Gnome 3.20 中的 Nautilus)中标题栏的高度?
我也尝试过这个 reddit thread 中的建议。我两个都试过window.ssd,.ssd只有,没有骰子。 …