2

In Gnome 3.20, I can no longer remove the small border under the titlebar using this snippet in ~/.config/gtk-3.0/gtk.css (suggested here Reduce title bar height in gnome 3 / gtk+ 3).

.ssd .titlebar {
    border-width: 0;
    box-shadow: none;
}

Does anyone know what the equivalent would be in Gnome 3.20?

joelostblom
  • 1,889
  • 2
  • 19
  • 32

2 Answers2

3

After a bit of tweaking I found that the following CSS snippet when placed in ~/.config/gtk-3.0/gtk.css works a little better and more inline with the older approach.

window.ssd headerbar.titlebar {
  border: none;
  box-shadow: none;
  background-image: linear-gradient(to bottom,
    shade(@theme_bg_color, 1.05),
    shade(@theme_bg_color, 1.00));
}

This also fixes the problem with the small color difference at the bottom of the title bar (due to shading to 1.00 instead of 0.99). I don't know if the box-shadow setting is necessary (couldn't tell a difference) but it's mainly just to be consistent.

Eric
  • 31
  • 2
2

I can use the following to remove the titlebar border in the default adwaita theme. From https://bbs.archlinux.org/viewtopic.php?id=211102

window.ssd headerbar.titlebar {
  border: none;
  background-image: linear-gradient(to bottom,
  shade(@theme_bg_color, 1.05),
  shade(@theme_bg_color, 0.99));
  box-shadow: inset 0 1px shade(@theme_bg_color, 1.4);
}

I still have not found a way to do this for other themes, such as Numix.

joelostblom
  • 1,889
  • 2
  • 19
  • 32
  • I'm on ArchLinux and this didn't work for me after restarting the shell. Is it still working for you? I'm on gnome-shell 3.20.4. – oblitum Oct 02 '16 at 00:54
  • Ah... I'm sorry. I'm looking for removing the titlebar entirely. Do you know whether it's possible to shrink it to 0? – oblitum Oct 02 '16 at 00:55