gtk3-nocsd
gtk3-nocsd copied to clipboard
Duplicated title
Is there a way to remove the duplicated window title? It's a little bit annoying... besides that the hack is amazing! Everything I needed!
Thanks for the great work!
https://s31.postimg.org/gvh7r38vf/Screenshot_from_2016_08_02_13_02_48.png
I've been able to hide the second title by making its color the same as window background of current theme. I.e. I added the following to ~/.config/gtk-3.0/gtk.css
:
.title {
color: #f4f4f4;
}
See the screenshot:
Nice work, but why not just "transparent"?
[evert@niflheim ~]$ cat ~/.config/gtk-3.0/gtk.css
.title {
color: transparent;
}
Ah, transparent is even better. I don't know CSS much, so I didn't even suppose it's possible.
I think it would be even better to add headerbar
before .title
, because without it card title in Chrome(-ium) is invisible (if you enabled Use system title bar and borders
and you're using GTK+
theme):
headerbar .title {
color: transparent;
}
Here's my take. "collapse" the entire leftover CSD, except when functional elements are present, then it will uncollapse and show only these elements (so no titles and such are visible)
/* CSD: collapse leftover when using gtk3-nocsd */
headerbar {
margin-top: -100px;
border-bottom-width: 0;
}
/* but not when functional elements are in it */
headerbar button,
headerbar spinbutton,
headerbar entry,
headerbar separator {
margin-top: 103px;
margin-bottom: 3px;
}