使用多个标签从gnome-terminal移除丑陋的肥胖瞪羚

当我启动gnome-terminal它看起来很愉快但是当我打开另一个标签时它的边框变得丑陋:

脂肪难看-的gnome-terminal-挡板

如何在使用多个标签时保留薄边框?

经过一番捣乱,我想通了。

编辑/usr/share/themes/Ambiance/gtk-3.0/apps/gnome-terminal.css并添加:

  TerminalWindow .notebook { padding: 0; border-width: 0; } 

在此发现的错误: https : //bugs.launchpad.net/ubuntu/+source/gnome-terminal/+bug/694468

嗯,这是一个很好的做法,一般不修改原始文件,但根据您的喜好覆盖他们的值。

如果您还没有,请在此路径中创建或打开gtk.css文件

 ~/.config/gtk-3.0/gtk.css 

粘贴以下代码,关闭所有终端并启动一个新终端。

 @ define-color bg-grey#222;
 @ define-color active-grey#333;
 @ define-color border-grey#555;


 TerminalWindow .notebook {
  边界:0;
  填充:0;
  颜色:#eee;
   background-color:shade(@ active-grey,1);
 }

 TerminalWindow .notebook tab:active {
   border:1px solid @ border-grey;
   background-color:shade(@ active-grey,1);
 }

 TerminalWindow .notebook tab {
   background-color:shade(@ bg-grey,1);
 }

现在,它不仅会按照您的意图移除边框,而且还会在深色背景下更好地“贴合”,我的眼睛会因浅灰色而“受伤”。 当您有多个选项卡时,结果应如下所示,当然您可以根据自己的喜好篡改颜色变量来自定义它。

在此处输入图像描述

我的基于@topless和@jibreel的答案。
透明背景和黑暗的主题。 真棒。

 @define-color bg-grey #222; @define-color active #313131; TerminalWindow .notebook { border: 0; padding: 0; color: #fff; background-color: shade(@active, 1); } TerminalWindow .notebook tab:active { background-color: shade(@active,1); } TerminalWindow .notebook tab { border-radius: 0px; padding: 3px; background-color: shade(@bg-grey, 1); } 

在此处输入图像描述

谢谢@topless,也进一步编辑它看起来像这样,注意border-radius:0,以避免空白

 @define-color bg-grey #222; @define-color active #300A24; TerminalWindow .notebook { border: 0; padding: 0; color: #eee; background-color: shade(@active-grey, 1); } TerminalWindow .notebook tab:active { background-color: shade(@active, 1); } TerminalWindow .notebook tab { border-radius: 0px; background-color: shade(@bg-grey, 1); } 

在此处输入图像描述

您可以尝试另一个主题,根据您的喜好配置Ambiance,或者从Ubuntu软件中心获取其中一个(来自Ubuntu软件中心):

  • 终结者
  • 的xterm
  • Roxterm
  • 蒂尔达
  • Guake