GNOME Bugzilla – Bug 788580
HighContrast: .flat buttons become non-flat when their window is :backdropped
Last modified: 2017-10-06 01:43:27 UTC
Created attachment 361013 [details] screenshot of foreground vs backdrop windows with flat buttons in headerbars This has always bugged me, but I kept forgetting about it, until apparently my brain decided to make hacking on HC the only thing I can do, and here we are. This is presumably not intentional as it serves no functional purpose and means that .flat buttons in backdropped windows suddenly jolt to having more contrast than those in the foreground window.
Created attachment 361014 [details] [review] HC: Flat titlebuttons became non-flat in backdrop When the window was backdropped, they suddenly regained their border. This was clearly not intentional or of any practical use to anyone. Shuffle around some selectors so that the backdrop ones do not override the flat ones and make the borders magically reappear when backdropped. Note that, whereas standard titlebuttons get the border on :hover, other .flat buttons in the headerbar do not. That should probably be fixed too
Created attachment 361015 [details] [review] HC: Add border/hilight when hovering flat buttons The border and icon highlight are useful feedback that was defeated by CSS precedence. It worked for .titlebuttons due to their implementation, but the same was not true for custom .flat buttons. This makes it so.