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

房东的猫 提交于 2019-12-12 08:55:05

问题


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.

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

I can't tell which css file to edit or which field to change in gnome tweak tool.

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.

Any help would rock!

Here's my .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. But it's not changing the color on the titlebar of the window of 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:

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

回答1:


You can edit title bar colours here:

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

Edit these two sections:

name="titlebar_fill_focused"

name="titlebar_fill_unfocused"

It will change colours of all windows (checked in fedora)



来源:https://stackoverflow.com/questions/23900779/how-can-i-change-the-title-bar-of-a-gnome-theme-to-black

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!