After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 769877 - [HighContrast(|Inverse)] dual-headerbars broken
[HighContrast(|Inverse)] dual-headerbars broken
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Themes
3.22.x
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2016-08-14 05:30 UTC by Arnaud B.
Modified: 2017-10-05 22:05 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Screenshot. (16.86 KB, image/png)
2016-08-14 05:30 UTC, Arnaud B.
  Details
before (4.52 KB, image/png)
2017-09-11 20:46 UTC, Daniel Boles
  Details
after (4.39 KB, image/png)
2017-09-11 20:47 UTC, Daniel Boles
  Details
HighContrast: Fix titlebar containing >1 headerbar (18.57 KB, patch)
2017-09-11 20:53 UTC, Daniel Boles
none Details | Review
HighContrast: Fix titlebar containing >1 headerbar (19.02 KB, patch)
2017-10-05 20:53 UTC, Daniel Boles
committed Details | Review

Description Arnaud B. 2016-08-14 05:30:05 UTC
Created attachment 333261 [details]
Screenshot.

When using HighContrast or HighContrastInverse theme, dual-headerbars like in Gedit or Polari are broken (margins everywhere).
Comment 1 Daniel Boles 2017-09-11 20:34:41 UTC
It probably needs this from Adwaita:

.titlebar:not(headerbar) {
  window.csd > & {
    // in csd we assume every titlebar is a headerbar so reset anything, this is needed for split toolbars cases
    padding: 0;
    background-color: transparent;
    background-image: none;
    border-style: none;
    border-color: transparent;
    box-shadow: none;
  }

  > separator { background-color: $borders_color; }  // FIXME: use darker border?

  @extend %titlebar;
}
Comment 2 Daniel Boles 2017-09-11 20:46:12 UTC
Created attachment 359558 [details]
before
Comment 3 Daniel Boles 2017-09-11 20:47:11 UTC
Created attachment 359559 [details]
after

That fragment does seem to improve things.

Oddly, gedit has a strange separator in its headerbar, both before and after. I've never noticed this on any other app I've run in HC (though I don't use it permanently).
Comment 4 Daniel Boles 2017-09-11 20:48:51 UTC
not sure what this was about, or whether we should take it along for the ride:

(In reply to Daniel Boles from comment #1)
>   > separator { background-color: $borders_color; }  // FIXME: use darker
> border?
Comment 5 Daniel Boles 2017-09-11 20:53:43 UTC
Created attachment 359560 [details] [review]
HighContrast: Fix titlebar containing >1 headerbar

by migrating the relevant code from Adwaita

--

This assumes the stuff from Adwaita is sufficient for all cases and that we do
not need to theme the separator specifically. I only tested quickly, so maybe
this isn’t 100%, but it does seem to resolve the reported problem.
Comment 6 Daniel Boles 2017-10-04 08:37:05 UTC
See also https://bugzilla.gnome.org/show_bug.cgi?id=784562 where one of the patches looks, at first glance, like it may address this in a different way. I've not been able to test either set yet though
Comment 7 Daniel Boles 2017-10-04 17:37:55 UTC
^ It doesn't look like that resolves this one.
Comment 8 Daniel Boles 2017-10-05 20:46:14 UTC
(In reply to Daniel Boles from comment #3)
> Created attachment 359559 [details]
> after
> 
> That fragment does seem to improve things.

It looks safe to merge my patch over https://git.gnome.org/browse/gtk+/commit/?h=gtk-3-22&id=b4371728deda7041ec309a517e221b0e68768a94, as it does the same thing, except more of it. :)


> Oddly, gedit has a strange separator in its headerbar, both before and
> after. I've never noticed this on any other app I've run in HC (though I
> don't use it permanently).

filed as https://bugzilla.gnome.org/show_bug.cgi?id=788573
Comment 9 Daniel Boles 2017-10-05 20:53:06 UTC
Created attachment 360996 [details] [review]
HighContrast: Fix titlebar containing >1 headerbar

by migrating the relevant code from Adwaita, to dodge unwanted doubling
up of the bottom border and such.

It also hopefully still encompasses whatever commit
b4371728deda7041ec309a517e221b0e68768a94 was trying to do; certainly, it
retains the resolution of the main bug/patch that one was attached with.
Comment 10 Daniel Boles 2017-10-05 22:04:58 UTC
Attachment 360996 [details] pushed as d9df5df - HighContrast: Fix titlebar containing >1 headerbar