更新:
我试着将gtkrc2.0文件的最上面一行更改为这个gtk-color-scheme = "base_color:#000000nfg_color:#000000ntooltip_fg_color:#000000nselected_bg_color:#000000nselected_fg_color:#000000ntext_color:#000000nbg_color:#000000ntooltip_bg_color:#000000"
,但这似乎也没有帮助。
我正在对我的桌面进行一些调整(Ubuntu 14.04和Gnome shell 3.9.90(,我想让我的标题栏变黑。我所说的标题栏是指双击以最大化窗口或拖动窗口的内容。现在是灰色的(阿(。
我无法在gnome调整工具中判断要编辑哪个css文件或更改哪个字段。
理想情况下,我可以在.gtkrc-2.0或.gtkrc-3.0文件中添加一些覆盖,因为最终我只想更改gVim、Firefox和Gnome终端上的标题栏颜色。
任何帮助都会动摇!
这是我的.gtkrc-2.0
style "vimfix" {
bg[NORMAL] = "#000000" # this matches my vim theme 'Normal' bg color.
}
widget "vim-main-window.*GtkForm" style "vimfix"
到目前为止,这只是修复了gVim上的一个微小的灰色底部边界。但它并没有改变gVim窗口标题栏上的颜色。
更新:尝试在~/.themes/Adwaita borderless/mecity-1/metacity-theme-3.xml中进行此更改,并在gnome调整工具中为窗口主题选择"Adwaita borderles",但似乎没有任何影响:
<draw_ops name="titlebar_fill_focused">
<gradient type="vertical" x="0" y="0" width="width" height="height">
<color value="#000000" />
<color value="#000000" />
</gradient>
</draw_ops>
<draw_ops name="titlebar_fill_unfocused">
<rectangle color="C_titlebar_unfocused" x="0" y="0" width="width" height="height" filled="true" />
<rectangle color="#000000" x="0" y="0" width="width" height="height" filled="true" />
</draw_ops>
您可以在此处编辑标题栏颜色:
sudo gedit/usr/share/themes/Adwaita/mecity-1/metacity-theme-3.xml
编辑这两个部分:
name=";title栏_ fill_;
name=";标题栏_ fill_;
它将更改所有窗口的颜色(在软帽中检查(