如何将gnome主题的标题栏更改为黑色 [英] How can I change the title bar of a gnome theme to black
问题描述
更新:
我尝试将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 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.
我正在对桌面进行一些调整(Ubuntu 14.04带有Gnome-shell 3.9.90),我想将标题栏设为黑色.标题栏是指您双击以最大化窗口或在窗口中拖动的东西. (Adwaita)现在变成灰色.
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).
我无法在gnome调整工具中确定要编辑的css文件或要更改的字段.
I can't tell which css file to edit or which field to change in gnome tweak tool.
理想情况下,我可以在.gtkrc-2.0或.gtkrc-3.0文件中添加一些替代,因为最终我只是想更改标题栏颜色的只是gVim,Firefox和Gnome Terminal.
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
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"
到目前为止,这只是在gVim上修复了一个很小的灰色底边框.但这并没有改变gVim窗口标题栏上的颜色.
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.
更新: 尝试在〜/.themes/Adwaita-borderless/metacity-1/metacity-theme-3.xml中进行此更改,并在gnome-tweak-tool中为窗口主题选择"Adwaita-bordeless",但没有似乎有什么作用:
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>
推荐答案
您可以在此处编辑标题栏颜色:
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
编辑这两部分:
name ="titlebar_fill_focused"
name="titlebar_fill_focused"
name ="titlebar_fill_unfocused"
name="titlebar_fill_unfocused"
它将更改所有窗口的颜色(在fedora中选中)
It will change colours of all windows (checked in fedora)
这篇关于如何将gnome主题的标题栏更改为黑色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!