Gnome-terminal选项卡:活动和非活动选项卡之间没有对比

在Ubuntu 13.04中,我经常在gnome-terminal中打开多个选项卡。 问题在于,虽然我可以设置每个选项卡的标题,但很难分辨哪个选项卡处于活动状态 – 活动选项卡和非活动选项卡之间的颜色和渲染区别是如此微妙,以至于必须研究选项卡栏非常小心。

有没有办法让这种对比更明显?

我正在使用Ambience主题运行Ubuntu 13.10 – 遇到了同样的问题。

解决方案:编辑~/.config/gtk-3.0/gtk.css (您可能需要创建它)并添加:

 TerminalWindow, TerminalWindow.background { background-color: #6e6e6e; color: #000000; } TerminalWindow .notebook tab { padding: 2; background-color: #6e6e6e; } TerminalWindow .notebook tab:active { background-color: #d1d1d1; } 

这是在ubuntu 14.04中对我有用的东西,我试图保持类似的整体外观,并使非活动标签不那么明亮。

编辑文件~/.config/gtk-3.0/gtk.css

包含装有

 TerminalWindow .notebook tab:active { background-color: #f5f4f3; foreground-color: #000000; } TerminalWindow .notebook tab { background-color: #d2d1d0; foreground-color: #2e2d2c; } 

关闭所有终端窗口启动并测试

编辑 :使用它一段时间后,很明显活动和非活动标签之间的明显差异是不够的。

我认为有必要在第一眼看到一个不活动的标签 – 而不是侧面看。

所以这是更新的配置(更暗的非活动选项卡):

 TerminalWindow .notebook tab:active { background-color: #f5f4f3; foreground-color: #000000; } TerminalWindow .notebook tab { background-color: #a2a1a0; foreground-color: #1e1d1c; } 

如果您希望使活动选项卡的文本更明显,您可以像这样修改它的标签,

编辑文件~/.config/gtk-3.0/gtk.css

 TerminalTabLabel.active-page .label { color: cyan; font-weight: bold; } 

在gnome-terminal 3.17.91中测试

在此处输入图像描述

在此处输入图像描述

以下是我在使用gnome-terminal 3.16.2在Ubuntu 15.10上工作的内容。 较小的标签尺寸允许终端使用更多的屏幕区域,并且我已经尝试了活动和非活动标签之间的对比。 我认为标签标签文本看起来更好,没有应用粗体样式。

 /* gnome-terminal */ @define-color term-win-bg #262626; @define-color term-tab-inactive-bg #333333; @define-color term-tab-active-bg #424242; @define-color ubuntu-orange #fb9267; TerminalScreen { -TerminalScreen-background-darkness: 0.95; background-color: @term-win-bg; } TerminalWindow .notebook { border: 0; padding: 0; } TerminalWindow .notebook tab { border: 0; border-radius: 0px; border-image: -gtk-gradient (linear, left top, left bottom, from (alpha (shade (@term-win-bg, 0.9), 0.0)), to (shade (@term-win-bg, 0.9))) 1; border-image-width: 0 1px; border-color: transparent; border-width: 0; box-shadow: none; background-color: shade(@term-tab-inactive-bg, 1); } TerminalWindow .notebook tab:active { border: 0; border-radius: 0px; background-color: shade(@term-tab-active-bg, 1); } TerminalTabLabel.active-page .label { /*color: @bg_color; font-weight: bold color: @ubuntu-orange; */ color: cyan; } 

在此处输入图像描述

使用默认的Ubuntu主题 – Ambiance来区分gnome-terminal中的活动和非活动选项卡没有任何问题。

在Launchpad上看,我发现这是一个影响很多人的确认错误: 很难区分选择哪个选项卡 。

如果这对您也有影响,您可以通过更改Ubuntu主题来解决此问题:右键单击桌面,选择更改桌面背景,然后在新打开的窗口中将主题更改为高对比度

改变ubuntu主题

然后你可以毫无问题地区分gnome-terminal中的活动和非活动选项卡:

终端标签