How can I change the title bar of a gnome theme to black
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)
Costa Michailidis
Learned how to code when I tried to start an online business after college. The business failed basically instantaneously, but I found a love for code that's lasted and come to impact the way I think about entrepreneurship and many other things in life. More about me here: general bio I was in the 2014 summer batch at Hacker School, now The Recurse Center, which was incredible! I had never met any other developers before, I didn't know how to pronounce gif (I still don't)... not to mention, it's an incredible community for developers. These days I work mostly with scientists, NASA, the National Science Foundation, etc, by designing and facilitating 5-day innovative research conferences. Tons of fun : ) Check out Knowinnovation for more. Looking forward to Q&A'ing with everyone here.
Updated on June 04, 2022Comments
-
Costa Michailidis almost 2 years
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>