GNOME Bugzilla – Bug 706929
HeaderBar padding - account for double bottom button border
Last modified: 2013-08-29 14:07:04 UTC
Buttons have a 2px border along their bottom edge - the second pixel appears as the lip of the toolbar, so it that the button looks like it is embedded in something solid. Since the bottom 1px of the button looks like it is part of the HeaderBar, we should reduce the spacing below buttons by a pixel. This will ensure that padding looks even.
Created attachment 253309 [details] [review] patch 1/2 We need to set the padding in CSS, not GTK+ itself.
Created attachment 253311 [details] [review] patch 2/2 Add the padding to HeaderBars.
Created attachment 253315 [details] screenshot 1 How it looks (focused window).
Created attachment 253316 [details] screenshot 2 How it looks (unfocused window).
Looks good to me.
Review of attachment 253311 [details] [review]: The theme part looks good to me, but we'll need to rework the gtk+ patch to just remove all traces of that constant instead of zeroing it.
I think we should just remove the [hv]padding properties from GtkHeaderBar.
Created attachment 253365 [details] [review] headerbar: Remove hpadding and vpadding properties We really want these to be set by the theme, not programmatically.
Comment on attachment 253365 [details] [review] headerbar: Remove hpadding and vpadding properties Yay! Go ahead with that.
Thanks Benamin! One side effect of this is that it adds padding to the Nautilus toolbar (which is emulating HeaderBar style without actually using a HeaderBar widget). So I'd like to make sure that we have a patch for Nautilus before pushing this.
We have patches for nautilus in bug 706479 now. If someone can review those it should be safe to push.
Comment on attachment 253365 [details] [review] headerbar: Remove hpadding and vpadding properties Attachment 253365 [details] pushed as 889e63f - headerbar: Remove hpadding and vpadding properties
Comment on attachment 253311 [details] [review] patch 2/2 Pushed: https://git.gnome.org/browse/gnome-themes-standard/commit/?id=b95a8b874ac2d3c99e28843c1309e1ca51cc6e42