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 723668 - Message Dialog Layout
Message Dialog Layout
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Widget: Other
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
ux 3.12
: 723228 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2014-02-05 12:41 UTC by Allan Day
Modified: 2014-03-10 10:14 UTC
See Also:
GNOME target: 3.12
GNOME version: 3.11/3.12


Attachments
screenshots & style suggestions (40.97 KB, image/png)
2014-02-05 12:41 UTC, Allan Day
Details
screenshot from master with latest theme for mutter (60.46 KB, image/png)
2014-02-06 18:31 UTC, William Jon McCann
Details
another screenshot (60.46 KB, image/png)
2014-02-06 18:32 UTC, Allan Day
Details

Description Allan Day 2014-02-05 12:41:31 UTC
Created attachment 268162 [details]
screenshots & style suggestions

Visual issues I can see with message dialogs in master:

 * There's a lot of padding above the heading. It looks a bit unbalanced.
 * There's a bit too much padding between the heading and the body text - it looks like they are trying to get away from each other, rather than being related.
 * The small amount of padding around the buttons seems a little awkward - it's inconsistent with what we have elsewhere, and isn't clear whether it is deliberate or not. If we can't have 0 padding, the usual 6/12px might be better.
 * The hard corners on the buttons are, well, hard, and inconsistent with the corners of the dialog window as well as buttons elsewhere. Again, it's hard to tell whether it is deliberate or not.
 * In some places, one edge of the buttons seems to be getting cut off (see the left-hand edge of the cancel button in the attachment).

The attachment shows some padding and style suggestions.
Comment 1 Allan Day 2014-02-05 13:05:35 UTC
Bug 723228 is relevant, and has some screenshots of dialogs with buttons getting cut off.
Comment 2 Baptiste Mille-Mathias 2014-02-05 13:20:29 UTC
*** Bug 723228 has been marked as a duplicate of this bug. ***
Comment 3 Jakub Steiner 2014-02-05 13:38:43 UTC
Perhaps going for the border buttons[1] for 3.12 was a bit premature. While they will visually be much more in place once we'd use them for notifications[2] and perhaps system dialogs, for now I'd go for the common paddings indeed.

[1] http://jimmac.musichall.cz/stuff/border-buttons.png
[2] https://dl.dropboxusercontent.com/u/5031519/gnome-shell/notifications/banners-and-activation.png
Comment 4 William Jon McCann 2014-02-06 18:31:11 UTC
Created attachment 268322 [details]
screenshot from master with latest theme for mutter
Comment 5 Allan Day 2014-02-06 18:32:29 UTC
Created attachment 268324 [details]
another screenshot

Jon just shared a screenshot of what he's seeing for message dialogs, so clearly something is going wrong with the styling somwhere.
Comment 6 Allan Day 2014-02-06 18:56:36 UTC
(In reply to comment #4)
> Created an attachment (id=268322) [details]
> screenshot from master with latest theme for mutter

This is obviously much better than what I'm seeing. That said, a couple of things:

 * I think it would benefit from losing some vertical padding (roughly 6px above and below the heading, and 6px below the body text).

 * I'm not entirely sure about the square corners along the bottom of the dialog. They're inconsistent from the top, and they don't look like anything else we have in GNOME right now.
Comment 7 Frederic Peters 2014-02-24 11:46:24 UTC
For 3.12 I agree with Jakub that it's still premature, those look out of place at the moment (to the point it looks like a layout bug for some persons).  Could we go with the padding proposed in Allan's attachment?  (we're entering UI freeze so it would be nice to agree to something quickly)
Comment 8 Robert Roth 2014-02-24 11:49:35 UTC
Just noticed this bug in the context of System Monitor[1], and I have some
mixed feelings about them, after discussing a bit on IRC with bochecha, aday
and fredp:
* IOS 7[2] and Android [3] (and actually the gnome-shell notifications with
buttons[4]) use border buttons, but the buttons themselves have no borders,
what I'm seeing instead is that there's a horizontal separator between the
button area and the content area, and there's a vertical separator between the
buttons.
* Right now our border buttons have double width borders, if they extend to the
border of the dialog, as there's the dialog border and the button border on the
edges, plus we have the dashed line on the default/focused (not sure what is
causing the dashed line) button, which is yet another line, but that one has a
padding of a few pixels.

I think the situation could be improved by removing the duplicated borders
(actually, the button borders, and replacing them with simple separators), or
by adding back some padding to the buttons in the dialogs, like Allan
suggested.

[1] http://imgur.com/Gc9mYXu
[2]
http://wpuploads.appadvice.com/wp-content/uploads/2013/06/photo-576x1024.png
[3] http://developer.android.com/images/ui/dialogs.png
[4]
https://dl.dropboxusercontent.com/u/5031519/gnome-shell/notifications/banners-and-activation.png
Comment 9 Allan Day 2014-03-03 10:55:41 UTC
This bug is partially addressed by the patch in bug 725345.
Comment 10 Allan Day 2014-03-04 11:22:06 UTC
Some of the issues have been addressed by bug 725345.

One outstanding change that would be good is to increase the vertical space above the heading, as shown in this modified screenshot:

https://bug725345.bugzilla-attachments.gnome.org/attachment.cgi?id=270811