gpt4 book ai didi

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

转载 作者:太空宇宙 更新时间:2023-11-03 16:52:13 27 4
gpt4 key购买 nike

更新:

我尝试将我的 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"
但这似乎也没有帮助。

我正在对我的桌面(Ubuntu 14.04 和 Gnome-shell 3.9.90)进行一些调整,我想让我的标题栏变黑。标题栏是指您双击以最大化窗口或拖动它的东西。 (Adwaita) 现在是灰色的。

我不知道在 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/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>

最佳答案

您可以在此处编辑标题栏颜色:

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

编辑这两个部分:

name="titlebar_fill_focused"

name="titlebar_fill_unfocused"

它会改变所有窗口的颜色(在 fedora 中勾选)

关于ubuntu - 如何将 gnome 主题的标题栏更改为黑色,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23900779/

27 4 0