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 95773 - Change alert dialog border from 12 to 6 pixels?
Change alert dialog border from 12 to 6 pixels?
Status: RESOLVED NOTABUG
Product: gnome-devel-docs
Classification: Applications
Component: hig
unspecified
Other other
: Normal normal
: ---
Assigned To: HIG Maintainers
HIG Maintainers
Depends on:
Blocks: 98779
 
 
Reported: 2002-10-15 00:13 UTC by Iain
Modified: 2020-12-04 18:21 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Setting the border width to 12 looks dumb. (19.81 KB, image/png)
2002-10-15 00:13 UTC, Iain
Details
border width set to 12 (11.91 KB, image/png)
2002-10-16 19:32 UTC, Iain
Details
border width set to 6 (11.81 KB, image/png)
2002-10-16 19:32 UTC, Iain
Details

Description Iain 2002-10-15 00:13:21 UTC
In chapter 8, the section on spacing and alignment, it says you should set
the border width of the GtkDialog to 12. This moves the button bar away
from the edge of the dialog, and leaves an ugly border around it (see
attachment).

Is this correct or was the border width of GTK_DIALOG (dialog)->vbox
supposed to be set to 12 instead?
Comment 1 Iain 2002-10-15 00:13:54 UTC
Created attachment 11543 [details]
Setting the border width to 12 looks dumb.
Comment 2 Iain 2002-10-15 00:37:26 UTC
Looking at it, it doesn't seem quite so dumb, the more I'm used to it.
Feel free to close this as NOTABUG if it's just something I need to
get used to (and then to get all other app maintainers to change it as
well :)
Comment 3 Calum Benson 2002-10-15 17:03:38 UTC
Looking at the screenshot cold, I'm inclined to agree that 12 pixels
is perhaps slightly on the excessive side.  Seth and I looked at so
many different options for these things when we were doing the HIG
screenshots that I'm surprised it looks as reasonable as it does :)

The whole visual design chapter probably needs the thorough review it
never really got before we release a new version of the HIG; this
might be something we want to tweak in the process I guess.  

Of course part of the problem is that you have to specify these things
in pixel sizes anyway, they should really be proportional to the
current application font size.
Comment 4 Iain 2002-10-16 19:31:20 UTC
Here's a shot of a dialog in my app with border width set to 12 and
border width set to 6. I think the 6 looks better, but still conveys
the set apart nature...
Comment 5 Iain 2002-10-16 19:32:03 UTC
Created attachment 11601 [details]
border width set to 12
Comment 6 Iain 2002-10-16 19:32:38 UTC
Created attachment 11602 [details]
border width set to 6
Comment 7 Gregory Merchan 2002-11-17 12:15:12 UTC
This is related to bug #98384.

GtkDialog has style properties (i.e., is themeable) for the entire
dialog's border width, the action area border width, and the minimum
spacing between buttons in the action area.

The HIG should not encourage changing these. Doing so is a waste of
programmer time, program memory, etc.

Bug #98779 has been filed against Gtk+ so GtkDialog defaults may be
changed to match HIG recommendations if need arise.
Comment 8 Iain 2002-11-17 13:17:15 UTC
Actually as far as I can see, for the HIG the action area border width
should be 0..otherwise it looks really ugly cos the buttons don't line
up with anything.
Comment 9 Gregory Merchan 2002-12-10 04:09:45 UTC
I suspect we should use 9px. Presumably we want this to be the same
for alerts, other dialogs, and those abominations with Close buttons.
Alerts are never resizable, but the others may be. When we're able
to put a resize grip in the dialogs, we'll need room for it.
GtkStatusbar's grip is a isoceles right triangle with leg length 18px.
With a dialog border at 9px, that's exactly enough room for a grip
of the same size (81px^2). We'll probably want the grip to be a little
smaller. A border of 6px gives us a maximum size of only 36px^2.
Comment 10 Seth Nickell 2003-01-02 03:05:59 UTC
Ian, I'm not sure where we say to set the border width of GtkDialogs
to 12. If we say that somewhere, its a mistake. The spacing
information in the alert section is more detailed and explains more
clearly how to best implement our suggestions (our suggestion is to
have 12 pixels between the border and the buttons, if you measure your
attached screenshots you'll find you usually have 18.... ironically
the "6" screenshot has about 12, so its reaffirming to find your eyes
like the same spacing as ours ;-) Remember that the button box has a
default border width of 6 pixels from the get-go.

If you look in Chapter 3 in the alerts section we give very specific
technical advice on implementing alerts (which have very similar
spacings).
Comment 11 Iain 2003-01-02 13:14:18 UTC
I set the border width to 6 and get 12 pixels...nice.
Comment 12 Gregory Merchan 2003-01-15 20:03:41 UTC
I think the HIG needs to consistently present either end-result
spacings or programmatic spacings. Right now it's very confusing
because some sections of the HIG seems to be contradicting others.
Because of how Gtk+ works (and will probably continue to work for
some time), I think programmatic spacings should be given.
Comment 13 Murray Cumming 2003-06-15 16:34:48 UTC
So, can we have an example of a dialog that's done right in some app
now and then fix the HIG implemenation advice accordingly.