gtk3-nocsd icon indicating copy to clipboard operation
gtk3-nocsd copied to clipboard

Duplicated title

Open joaojotta opened this issue 8 years ago • 6 comments

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

joaojotta avatar Aug 02 '16 12:08 joaojotta

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: screenshot_2018-06-24_11-17-35

10110111 avatar Jun 24 '18 08:06 10110111

Nice work, but why not just "transparent"?

[evert@niflheim ~]$ cat ~/.config/gtk-3.0/gtk.css
.title {
	color: transparent;
}

evert-mouw avatar Jun 25 '18 14:06 evert-mouw

Ah, transparent is even better. I don't know CSS much, so I didn't even suppose it's possible.

10110111 avatar Jun 25 '18 15:06 10110111

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;
} 

pshe94 avatar Oct 25 '18 14:10 pshe94

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;
}

haarp avatar Feb 20 '20 12:02 haarp