如何让 Ubuntu GNOME 标题栏变瘦?

20 gnome configuration customization window titlebar

以前,Windows 的标题栏比现在在 Ubuntu GNOME 16.04.1 和 GNOME 3.20 上要细得多。为什么会这样,我该如何改变?我喜欢用numix-gtk-theme. 没有任何主题。

它的肥度是这样的:

标题栏肥厚

Anw*_*war 19

您看到这个更粗的标题栏是因为您使用的是 Gnome-Shell。在 Gnome-Shell 中,Numix 主题的标题栏比 Unity 的版本要胖得多。

检查这两个图像

  1. 统一

    团结一致

  2. 侏儒壳

    gnome-shell 中的 numix

减少标题栏的粗细

要减少这种肥胖,请按照以下步骤操作

  1. ~/.config/gtk-3.0/gtk.css用这些内容创建一个文件
.header-bar.default-decoration {
    padding-top: 4px;
    padding-bottom: 4px;
    }

.header-bar.default-decoration .button.titlebutton {
    padding-top: 4px;
    padding-bottom: 4px;
}

/* No line below the title bar */
.ssd .titlebar {
    border-width: 2px;
    box-shadow: none;
}
Run Code Online (Sandbox Code Playgroud)
  1. 注销并重新登录。

    更改后 gnome-shell 会话的屏幕截图

    更改后的zenity对话框

但是,据报道,此调整有时不适用于 GNOME 3.20。为了解决这个问题,您可能需要这个问题的解决方案

来源:https : //unix.stackexchange.com/questions/257163/reduce-title-bar-height-in-gnome-3-gtk-3

  • 没有为我工作。https://unix.stackexchange.com/a/291040/249545 做到了。 (3认同)