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 670227 - make modal dialog button less vertically packed to content
make modal dialog button less vertically packed to content
Status: RESOLVED FIXED
Product: gnome-shell
Classification: Core
Component: general
3.3.x
Other All
: Normal trivial
: ---
Assigned To: Rui Matos
gnome-shell-maint
Depends on:
Blocks:
 
 
Reported: 2012-02-16 15:34 UTC by Jakub Steiner
Modified: 2012-03-08 19:04 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
space buttons in modal dialogs (654 bytes, patch)
2012-02-16 15:34 UTC, Jakub Steiner
none Details | Review
theme patch (2.33 KB, patch)
2012-02-28 20:06 UTC, Allan Day
none Details | Review
theme patch (1.33 KB, patch)
2012-02-29 11:29 UTC, Allan Day
committed Details | Review

Description Jakub Steiner 2012-02-16 15:34:09 UTC
Created attachment 207786 [details] [review]
space buttons in modal dialogs

All the modal dialogs have minimal whitespace separating the text & controls with the action buttons at the bottom.
Comment 1 Owen Taylor 2012-02-16 15:56:27 UTC
I'm not sure we have consistent padding between all our dialogs now... what dialog or dialogs were you testing with?
Comment 2 Jakub Steiner 2012-02-16 16:43:44 UTC
I came up with the above gap when testing with pkexec. I think having a minimum shitespace like this is a better approach than mandating the dialog author to space up the content area.
Comment 3 Owen Taylor 2012-02-16 17:25:27 UTC
ModalDialog uses in the shell:

js/gdm/loginDialog.js:    Extends: ModalDialog.ModalDialog,
js/ui/endSessionDialog.js:    Extends: ModalDialog.ModalDialog,
js/ui/extensionSystem.js:    Extends: ModalDialog.ModalDialog,
js/ui/networkAgent.js:    Extends: ModalDialog.ModalDialog,
js/ui/polkitAuthenticationAgent.js:    Extends: ModalDialog.ModalDialog,
js/ui/runDialog.js:    Extends: ModalDialog.ModalDialog,
js/ui/shellMountOperation.js:    Extends: ModalDialog.ModalDialog,
js/ui/shellMountOperation.js:    Extends: ModalDialog.ModalDialog,

So basically the plan of attack for this review would be to apply the patch, take screenshots of all the dialogs (loginDialog is the annoying one), see if they have the right space, if not adjust, iterate.

(There's a bug open about the extension installation dialog missing space, unless that's been fixed)
Comment 4 Allan Day 2012-02-28 20:06:43 UTC
Created attachment 208625 [details] [review]
theme patch

I've got a patch here that was reviewed as a part of 668209. It fixes the issue here as well as making a few other tweaks to bring the theme closer the mockups. 

The only dialog it hasn't been tested against is the gdm login dialog - I'm not sure how to test that from jhbuild.
Comment 5 Allan Day 2012-02-29 11:29:13 UTC
Created attachment 208670 [details] [review]
theme patch

My previous patch contained a bunch of cleanup changes. I've moved those out - the new version is just the styling updates.

I've looked into testing this against the gdm dialog but haven't managed to find a way to do it. It seems that it is non-trivial to test this using jhbuild.
Comment 6 Evandro Giovanini 2012-02-29 16:15:13 UTC
Allan, you can test these changes with a Fedora nightly CD. Make your changes in /usr/share/gnome-shell directly from the liveuser session and then log out to see them in action.
Comment 7 Allan Day 2012-03-07 11:09:02 UTC
(In reply to comment #6)
> Allan, you can test these changes with a Fedora nightly CD. Make your changes
> in /usr/share/gnome-shell directly from the liveuser session and then log out
> to see them in action.

Good idea, Evandro. It took a little bit of doing, but I've managed to test the patch against Fedora nightly. The gdm dialogs look fine with the patch.
Comment 8 Florian Müllner 2012-03-08 18:38:16 UTC
Patch got OK'ed on IRC, Allan asked me to push the patch for him ...
Comment 9 André Klapper 2012-03-08 18:58:32 UTC
This broke the UI Freeze.
Comment 10 Jasper St. Pierre (not reading bugmail) 2012-03-08 19:00:43 UTC
<aday> owen, is it ok to push the patch on bug 670227?
<bebot> Bug http://bugzilla.gnome.org/show_bug.cgi?id=670227 trivial, Normal, ---, tiagomatos, UNCONFIRMED, make modal dialog button less vertically packed to content
<owen> aday: your patch replaces jimmac's?
<aday> owen, yes
<owen> if you've tested it against all dialogs, I think it's good to push. A mail to the docs list telling them that dialog spacings have been adjusted a bit might be appreciated
<aday> owen, sure thing
Comment 11 Owen Taylor 2012-03-08 19:04:09 UTC
My reasoning was that of the two options:
 
 A) Dialogs in both doc screenshots and reality look crappy in spacing
 B) Dialogs in doc screenshots look crappy in spacing, reality looks better

B) clearly is better, so notification was sufficient. Its not like any user is going to be confused because the dialog has different spacing in doc screenshots than in reality.