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 706321 - Window controls don't match the HeaderBars
Window controls don't match the HeaderBars
Status: RESOLVED FIXED
Product: gnome-themes-standard
Classification: Core
Component: WM theme
3.9.x
Other Linux
: Normal normal
: ---
Assigned To: gnome-themes-standard-maint
gnome-themes-standard-maint
3.10
Depends on:
Blocks:
 
 
Reported: 2013-08-19 15:50 UTC by Allan Day
Modified: 2013-08-27 19:22 UTC
See Also:
GNOME target: 3.10
GNOME version: 3.9/3.10


Attachments
mutter: sync with headerbars (32.30 KB, patch)
2013-08-19 16:28 UTC, Jakub Steiner
none Details | Review
mutter: bring titlebar metrics closer to headerbar (4.14 KB, patch)
2013-08-19 17:09 UTC, Jakub Steiner
none Details | Review
mutter: sync with headerbars (34.52 KB, patch)
2013-08-19 20:01 UTC, Jakub Steiner
none Details | Review
mutter: sync with headerbars (36.16 KB, patch)
2013-08-19 20:50 UTC, Jakub Steiner
none Details | Review
titlebars: lighten up (924 bytes, patch)
2013-08-19 21:01 UTC, Jakub Steiner
committed Details | Review
mutter: sync with headerbars (43.09 KB, patch)
2013-08-19 21:07 UTC, Jakub Steiner
none Details | Review
headerbar: bring inline with wm theme (3.30 KB, patch)
2013-08-20 06:25 UTC, Jakub Steiner
none Details | Review
mutter: sync with headerbars (44.72 KB, patch)
2013-08-20 07:41 UTC, Jakub Steiner
none Details | Review
headerbar: bring inline with wm theme (3.44 KB, patch)
2013-08-20 07:41 UTC, Jakub Steiner
none Details | Review
headerbar: bring inline with wm theme (4.24 KB, patch)
2013-08-20 13:32 UTC, Jakub Steiner
committed Details | Review
mutter: sync with headerbars (52.88 KB, patch)
2013-08-20 19:06 UTC, Jakub Steiner
committed Details | Review
mutter: make titlebars less tall. (2.15 KB, patch)
2013-08-26 12:13 UTC, Jakub Steiner
none Details | Review
mutter: make titlebars less tall. (2.06 KB, patch)
2013-08-26 12:23 UTC, Jakub Steiner
none Details | Review
mutter: make titlebars less tall. (1.45 KB, patch)
2013-08-26 12:35 UTC, Jakub Steiner
none Details | Review

Description Allan Day 2013-08-19 15:50:54 UTC
In 3.9.x, many apps are using a HeaderBar with a close button. This is a simple symbolic X icon.

For consistency, we should update the standard window controls to match.
Comment 1 Jakub Steiner 2013-08-19 16:28:44 UTC
Created attachment 252259 [details] [review]
mutter: sync with headerbars

- don't paint button backgrounds at all.
Comment 2 Jakub Steiner 2013-08-19 17:09:30 UTC
Created attachment 252265 [details] [review]
mutter: bring titlebar metrics closer to headerbar

- increase padding
- create a separator (not button reorder firendly for now :( )
Comment 3 Jakub Steiner 2013-08-19 20:01:50 UTC
Created attachment 252282 [details] [review]
mutter: sync with headerbars

- don't paint button backgrounds at all.
- increase padding
Comment 4 Jakub Steiner 2013-08-19 20:03:43 UTC
Reworked the patches to be cleaner markup and work across all buttons, not just close. Discussed with Allan and dropped the separator and made the icons lighter.
Comment 5 Jakub Steiner 2013-08-19 20:50:02 UTC
Created attachment 252288 [details] [review]
mutter: sync with headerbars

- don't paint button backgrounds at all.
- increase padding
Comment 6 Jakub Steiner 2013-08-19 20:51:01 UTC
Fixed up a hover state, made sure it works for dark theme and synced the icon color with title.
Comment 7 Jakub Steiner 2013-08-19 21:01:48 UTC
Created attachment 252291 [details] [review]
titlebars: lighten up

- allan suggested having icons and titles in sync,
  but making them lighter.
Comment 8 Jakub Steiner 2013-08-19 21:07:33 UTC
Created attachment 252292 [details] [review]
mutter: sync with headerbars

- don't paint button backgrounds at all.
- increase padding
Comment 9 Matthias Clasen 2013-08-19 22:06:12 UTC
Jakub, can you create the same appearance for csd titlebars and buttons ?

Thats the CSD section in themes/Adwaita/gtk-3/gtk-widgets.css

To test, run GTK_CSD=1 gtk3-demo
Comment 10 Jakub Steiner 2013-08-20 06:24:18 UTC
I didn't realize you already made effort to bring those buttons close to the former styling. Attaching a patch to bring headerbar back to this new style again. As with the WM, the separator is missing as I bet that shouldn't be part of the "wm" button, but a toolbar separator. 

I'd like to test this with a larger headerbar with actual button inside though. Do we have a test app for that?
Comment 11 Jakub Steiner 2013-08-20 06:25:58 UTC
Created attachment 252333 [details] [review]
headerbar: bring inline with wm theme

- use the same close button styling.
- lower the border-radius to match wm and top bar
- don't use a separator here for now
Comment 12 Jakub Steiner 2013-08-20 07:41:20 UTC
Created attachment 252335 [details] [review]
mutter: sync with headerbars

- don't paint button backgrounds at all.
- increase padding
Comment 13 Jakub Steiner 2013-08-20 07:41:31 UTC
Created attachment 252336 [details] [review]
headerbar: bring inline with wm theme

- use the same close button styling.
- lower the border-radius to match wm and top bar
- don't use a separator here for now
Comment 14 Jakub Steiner 2013-08-20 07:43:13 UTC
The updated patch uses a lighter prelight and fixes :backdrop color. One thing that I haven't figured out is a change of dimensions for :backdrop. The CSD window jumps a bit when unfocused. :(
Comment 15 Jakub Steiner 2013-08-20 13:32:09 UTC
Created attachment 252420 [details] [review]
headerbar: bring inline with wm theme

- use button-like hover and active states for "wm buttons".
- lower the border-radius to match wm and top bar
- don't use a separator here for now
Comment 16 Jakub Steiner 2013-08-20 13:35:22 UTC
this would be the current raised button like behavior for :hover and :active. The jumpiness of :backdrop is still there :/
Comment 17 Matthias Clasen 2013-08-20 15:39:19 UTC
Cosimo, can you track down the size change that we're seeing here ?
Comment 18 Jakub Steiner 2013-08-20 19:06:45 UTC
Created attachment 252469 [details] [review]
mutter: sync with headerbars

- use regular raised button style for wm.
Comment 19 Jakub Steiner 2013-08-20 19:19:10 UTC
Attachment 252291 [details] pushed as f06c087 - titlebars: lighten up
Attachment 252420 [details] pushed as 947b274 - headerbar: bring inline with wm theme
Attachment 252469 [details] pushed as 5866f09 - mutter: sync with headerbars
Comment 20 Cosimo Cecchi 2013-08-22 14:03:24 UTC
Pushed a fix to git master now for the close button jumping around on hover and backdrop.
Comment 21 Hans de Goede 2013-08-26 11:10:35 UTC
Hi,

I like how the new window title bar close button looks, it is much cleaner then it was in 3.8 with the backdrop.

But do we really need to make the window title bar this high ?

AFAIK the whole idea behind the header-bar is to combine useful controls and the title-bar into one to save vertical space. But with the new Adwaita mutter theme changes, we're doing anything but saving height for windows which use a standard mutter window title bar. The title_vertical_pad property has been increased from 9 to 16 as part of these changes, making the title bar absolutely huge!

The close button can be kept the same, both style and size wise, without increasing title_vertical_pad by setting D_icons_shrink to a lower value. Restoring D_icons_shrink in the mutter theme to 1 as it was before these patches, and changing title_vertical_pad to 8 ( 7 for maximized windows), results in a close icon with identical size to the one in the header bar, without using an (IMHO) too heigh title bar.

Note that the too heigh title-bar is an already often heard complaint about 3.8 and below, so making it even higher really seems like a bad idea. I was never really bothered by the height in 3.8, but in 3.10 it bothered even me enough to go looking for the cause and a possible fix.

Just try a google for "gnome 3 window titlebar height" to see a long list of forum posts / howto-s on how to decrease the title-bar height, and then consider this is for the 3.8 theme, which is significantly lower then what 3.10 uses right now.

Regards,

Hans
Comment 22 Jakub Steiner 2013-08-26 11:26:58 UTC
Hi Hans. Thank you for reiterating the height constraint. It is not an unimportant weight in the final design. With the defaults, the increase of 7 pixels in height for non-gnome/legacy apps might be too harsh. There's likely ways how to shave some pixels off, without making the close button a smaller target and diverging form the headerbar design in terms of margins. 

I wouldn't consider it a showstopper for 3.10 though.

Cosimo, could you reopen this? Turns out I don't have permission.
Comment 23 Jakub Steiner 2013-08-26 12:13:22 UTC
Created attachment 253123 [details] [review]
mutter: make titlebars less tall.

- more inline with the height of 3.8
- at the expense of consistency with headerbars
Comment 24 Jakub Steiner 2013-08-26 12:14:25 UTC
The above patch probably fully pleases Hans, but it goes against what this bug is about and creates a separation between titlebars and CSD/headerbars.
Comment 25 Jakub Steiner 2013-08-26 12:23:50 UTC
Created attachment 253124 [details] [review]
mutter: make titlebars less tall.
Comment 26 Jakub Steiner 2013-08-26 12:35:37 UTC
Created attachment 253125 [details] [review]
mutter: make titlebars less tall.
Comment 27 Jakub Steiner 2013-08-26 12:38:15 UTC
This one's as far as I can push it towards compactness.
Comment 28 Allan Day 2013-08-27 19:22:42 UTC
I've tried the latest patch but it seems to have inconsistent results - gedit comes up with the original size, nautilus with 32px tall buttons and the gimp with 33px. :/