简体   繁体   English

如何将gnome主题的标题栏更改为黑色

[英]How can I change the title bar of a gnome theme to black

Update: 更新:

I tried changing the top line in my gtkrc2.0 file to this gtk-color-scheme = "base_color:#000000\\nfg_color:#000000\\ntooltip_fg_color:#000000\\nselected_bg_color:#000000\\nselected_fg_color:#000000\\ntext_color:#000000\\nbg_color:#000000\\ntooltip_bg_color:#000000" but that didn't seem to help either. 我尝试将gtkrc2.0文件中的顶行更改为此gtk-color-scheme = "base_color:#000000\\nfg_color:#000000\\ntooltip_fg_color:#000000\\nselected_bg_color:#000000\\nselected_fg_color:#000000\\ntext_color:#000000\\nbg_color:#000000\\ntooltip_bg_color:#000000"但这似乎也没有帮助。

I'm making some tweaks to my desktop (Ubuntu 14.04 with Gnome-shell 3.9.90) and I want to get my title bar black. 我正在对我的桌面进行一些调整(Ubuntu 14.04与Gnome-shell 3.9.90)并且我想让我的标题栏变黑。 By title bar I mean the thing you double click on to maximize the window or drag it around. 按标题栏我的意思是你双击以最大化窗口或拖动它的东西。 It's grey now with (Adwaita). (Adwaita)现在是灰色的。

I can't tell which css file to edit or which field to change in gnome tweak tool. 我不知道要编辑哪个css文件或在gnome tweak工具中更改哪个字段。

Ideally I could just add a few overrides to the .gtkrc-2.0 or .gtkrc-3.0 file, because ultimately it's just gVim, Firefox and the Gnome Terminal that I'd like to change that titlebar color on. 理想情况下,我可以在.gtkrc-2.0或.gtkrc-3.0文件中添加一些覆盖,因为最终它只是gVim,Firefox和Gnome终端,我想改变标题栏颜色。

Any help would rock! 任何帮助都会摇滚!

Here's my .gtkrc-2.0 这是我的.gtkrc-2.0

style "vimfix" {
  bg[NORMAL] = "#000000" # this matches my vim theme 'Normal' bg color.
}
widget "vim-main-window.*GtkForm" style "vimfix"

So far this just fixes a tiny grey bottom-border on gVim. 到目前为止,这只是在gVim上修复了一个微小的灰色底边框。 But it's not changing the color on the titlebar of the window of gVim. 但它没有改变gVim窗口标题栏上的颜色。

Update: Tried making this change in ~/.themes/Adwaita-borderless/metacity-1/metacity-theme-3.xml, and selecting 'Adwaita-bordeless' for the window theme in the gnome-tweak-tool, but it didn't seem to effect anything: 更新:尝试在〜/ .themes / Adwaita-borderless / metacity-1 / metacity-theme-3.xml中进行此更改,并在gnome-tweak-tool中为窗口主题选择“Adwaita-bordeless”,但它没有好像什么影响:

<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>

You can edit title bar colours here: 您可以在此处编辑标题栏颜色:

sudo gedit /usr/share/themes/Adwaita/metacity-1/metacity-theme-3.xml sudo gedit /usr/share/themes/Adwaita/metacity-1/metacity-theme-3.xml

Edit these two sections: 编辑这两部分:

name="titlebar_fill_focused" NAME = “titlebar_fill_focused”

name="titlebar_fill_unfocused" NAME = “titlebar_fill_unfocused”

It will change colours of all windows (checked in fedora) 它将改变所有窗口的颜色(在fedora中检查)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM