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 778457 - Odd layout in add user dialog
Odd layout in add user dialog
Status: RESOLVED FIXED
Product: gnome-control-center
Classification: Core
Component: User Accounts
git master
Other Linux
: Normal normal
: ---
Assigned To: Control-Center Maintainers
Control-Center Maintainers
ui-review
Depends on:
Blocks:
 
 
Reported: 2017-02-10 16:21 UTC by Allan Day
Modified: 2017-03-22 14:22 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
screenshot and layout guidance (571.53 KB, image/png)
2017-02-10 16:21 UTC, Allan Day
  Details
user-accounts: Align the elements of "Add User" dialog (6.29 KB, patch)
2017-02-12 12:30 UTC, Felipe Borges
none Details | Review
user-accounts: Align enterprise login page in "Add User" dialog (3.54 KB, patch)
2017-02-12 12:30 UTC, Felipe Borges
none Details | Review
user-accounts: Align the elements of "Add User" dialog (6.29 KB, patch)
2017-02-13 15:44 UTC, Felipe Borges
committed Details | Review
screenshots of enterprise dialog (92.75 KB, image/png)
2017-02-13 17:51 UTC, Ondrej Holy
  Details
user-accounts: Align enterprise login page in "Add User" dialog (3.54 KB, patch)
2017-02-14 13:44 UTC, Felipe Borges
needs-work Details | Review
user-accounts: Reduce max-width-chars for multiline labels (1.83 KB, patch)
2017-02-20 08:08 UTC, Ondrej Holy
none Details | Review
user-accounts: Align "Enterprise login" toggle (1.12 KB, patch)
2017-02-20 08:08 UTC, Ondrej Holy
none Details | Review
user-accounts: Add missing widgets in size group (4.01 KB, patch)
2017-02-20 08:08 UTC, Ondrej Holy
none Details | Review
user-accounts: Unify row spacing (2.91 KB, patch)
2017-02-20 08:09 UTC, Ondrej Holy
none Details | Review
user-accounts: Fix widget alignment on add user dialog (7.04 KB, patch)
2017-02-20 08:09 UTC, Ondrej Holy
none Details | Review
fixed enterprise dialog screenshots (131.65 KB, image/png)
2017-02-20 08:10 UTC, Ondrej Holy
  Details
user-accounts: Align multiline labels (1.44 KB, patch)
2017-03-22 14:12 UTC, Ondrej Holy
committed Details | Review
user-accounts: Align "Enterprise login" toggle (1.12 KB, patch)
2017-03-22 14:12 UTC, Ondrej Holy
committed Details | Review
user-accounts: Add missing widgets in size group (4.01 KB, patch)
2017-03-22 14:12 UTC, Ondrej Holy
committed Details | Review
user-accounts: Unify row spacing (2.91 KB, patch)
2017-03-22 14:13 UTC, Ondrej Holy
committed Details | Review
user-accounts: Fix widget alignment on add user dialog (7.00 KB, patch)
2017-03-22 14:16 UTC, Ondrej Holy
committed Details | Review

Description Allan Day 2017-02-10 16:21:56 UTC
Created attachment 345465 [details]
screenshot and layout guidance

There is some unpleasant layout in the add user dialog:

 • There isn't enough space above the controls - it doesn't match the spacing on the sides.
 • The content isn't horizontally centered - it is too far to the right.
 • Many of the controls are packed too closely - they need more vertical space.

The overall effect is that the dialog feels unbalanced and constrained.

See the attachment for a screenshot, which has been modified to show how it could be improved.
Comment 1 Felipe Borges 2017-02-12 12:30:49 UTC
Created attachment 345564 [details] [review]
user-accounts: Align the elements of "Add User" dialog
Comment 2 Felipe Borges 2017-02-12 12:30:56 UTC
Created attachment 345565 [details] [review]
user-accounts: Align enterprise login page in "Add User" dialog
Comment 3 Ondrej Holy 2017-02-13 09:17:43 UTC
Review of attachment 345564 [details] [review]:

Looks much better to me, although it seems to me that Allan used a slightly bigger left/right border, but I haven't measured it... it would be nice to attach also screenshot for designers :-)
Comment 4 Ondrej Holy 2017-02-13 09:18:05 UTC
Review of attachment 345565 [details] [review]:

The enterprise dialog looks pretty odd. I am afraid it was broken by some initial redesign changes, which were pushed in the last cycle :-(

I think you should fix it as per:
https://raw.githubusercontent.com/gnome-design-team/gnome-mockups/master/system-settings/users/add-enterprise-user-account.png

Allan?
Comment 5 Felipe Borges 2017-02-13 15:43:49 UTC
(In reply to Ondrej Holy from comment #4)
> Review of attachment 345565 [details] [review] [review]:
> 
> The enterprise dialog looks pretty odd. I am afraid it was broken by some
> initial redesign changes, which were pushed in the last cycle :-(
> 
> I think you should fix it as per:
> https://raw.githubusercontent.com/gnome-design-team/gnome-mockups/master/
> system-settings/users/add-enterprise-user-account.png
> 
> Allan?

I was guiding myself on this one mockup here https://raw.githubusercontent.com/gnome-design-team/gnome-mockups/master/system-settings/users/future/add-user-wires.png
Comment 6 Felipe Borges 2017-02-13 15:44:34 UTC
Created attachment 345637 [details] [review]
user-accounts: Align the elements of "Add User" dialog
Comment 7 Felipe Borges 2017-02-13 15:45:54 UTC
Review of attachment 345637 [details] [review]:

(In reply to Ondrej Holy from comment #3)
> Review of attachment 345564 [details] [review] [review]:
> 
> Looks much better to me, although it seems to me that Allan used a slightly
> bigger left/right border, but I haven't measured it... it would be nice to
> attach also screenshot for designers :-)

::: panels/user-accounts/data/account-dialog.ui
@@ +91,3 @@
                 <property name="column_spacing">6</property>
+                <property name="row_spacing">8</property>
+                <property name="border_width">30</property>

yep, the border_width of the input containers was missing some pixels. I measured the proportions on gimp and it seems alright now.
Comment 8 Ondrej Holy 2017-02-13 17:51:03 UTC
Created attachment 345649 [details]
screenshots of enterprise dialog

(In reply to Felipe Borges from comment #5)
> (In reply to Ondrej Holy from comment #4)
> > Review of attachment 345565 [details] [review] [review] [review]:
> > 
> > The enterprise dialog looks pretty odd. I am afraid it was broken by some
> > initial redesign changes, which were pushed in the last cycle :-(
> > 
> > I think you should fix it as per:
> > https://raw.githubusercontent.com/gnome-design-team/gnome-mockups/master/
> > system-settings/users/add-enterprise-user-account.png
> > 
> > Allan?
> 
> I was guiding myself on this one mockup here
> https://raw.githubusercontent.com/gnome-design-team/gnome-mockups/master/
> system-settings/users/future/add-user-wires.png

See the attachment. The problem appears especially with font-scale, however, the margins are slightly different anyway. Can you please do something with it?
Comment 9 Ondrej Holy 2017-02-13 18:01:50 UTC
Review of attachment 345637 [details] [review]:

Looks ok to me...
Comment 10 Felipe Borges 2017-02-13 18:15:37 UTC
Comment on attachment 345637 [details] [review]
user-accounts: Align the elements of "Add User" dialog

Attachment 345637 [details] pushed as 51a184b - user-accounts: Align the elements of "Add User" dialog
Comment 11 Felipe Borges 2017-02-14 13:44:48 UTC
Created attachment 345733 [details] [review]
user-accounts: Align enterprise login page in "Add User" dialog
Comment 12 Ondrej Holy 2017-02-14 18:38:35 UTC
Review of attachment 345733 [details] [review]:

I still see the same problems as with the obsoleted patch. I think that margin-right is missing somewhere (see with font scale bigger than 1). Also the "Enterprise Login" toggle should not be too close to dialog border, see mockup.
Comment 13 Ondrej Holy 2017-02-20 08:08:44 UTC
Created attachment 346231 [details] [review]
user-accounts: Reduce max-width-chars for multiline labels

The "max-width-chars" property was changed a bit with the introduction
of width-for-height geometry management and the labels are wider currently
than in mockup. Let's reduce its value a bit and add xalign for sure.
Comment 14 Ondrej Holy 2017-02-20 08:08:50 UTC
Created attachment 346232 [details] [review]
user-accounts: Align "Enterprise login" toggle

The "Enterprise login" toggle should have bigger border as per mockup.
Let's increase it a bit.
Comment 15 Ondrej Holy 2017-02-20 08:08:57 UTC
Created attachment 346233 [details] [review]
user-accounts: Add missing widgets in size group

Some control widgets are missing in size group. Let's add them and also
allow hexpand for them.
Comment 16 Ondrej Holy 2017-02-20 08:09:03 UTC
Created attachment 346234 [details] [review]
user-accounts: Unify row spacing

Commit 51a184b changed row spacing for local accounts, change that
also for enterprise part.
Comment 17 Ondrej Holy 2017-02-20 08:09:17 UTC
Created attachment 346235 [details] [review]
user-accounts: Fix widget alignment on add user dialog

Widgets on local and enterprise pages of add user dialog don't have
same width regardless of size groups. It is caused by different margins
and borders of various widgets. Let's change them to be like in mockup.
Comment 18 Ondrej Holy 2017-02-20 08:10:44 UTC
Created attachment 346236 [details]
fixed enterprise dialog screenshots

I've tried to fix the problems with the enterprise page of the add user dialog and ended up with the all previous patches. It works nicely with font-scaling now and reflects more the mockup. See attached screenshot...
Comment 19 Felipe Borges 2017-03-21 11:27:56 UTC
Review of attachment 346231 [details] [review]:

sure.
Comment 20 Felipe Borges 2017-03-21 11:28:14 UTC
Review of attachment 346232 [details] [review]:

sure
Comment 21 Felipe Borges 2017-03-21 11:28:38 UTC
Review of attachment 346233 [details] [review]:

ok
Comment 22 Felipe Borges 2017-03-21 11:29:03 UTC
Review of attachment 346234 [details] [review]:

sure
Comment 23 Felipe Borges 2017-03-21 11:29:57 UTC
Review of attachment 346235 [details] [review]:

I'm afraid the margin in the top is bit more than the mockup. But other than that it's fine.
Comment 24 Felipe Borges 2017-03-21 11:31:14 UTC
Comment on attachment 345733 [details] [review]
user-accounts: Align enterprise login page in "Add User" dialog

obsolete
Comment 25 Ondrej Holy 2017-03-21 14:11:16 UTC
(In reply to Felipe Borges from comment #23)
> Review of attachment 346235 [details] [review] [review]:
> 
> I'm afraid the margin in the top is bit more than the mockup. But other than
> that it's fine.

I think it is ok. It should be the same as it was introduced by your attachment 345637 [details] [review], which was suggested in Comment 0. So the original mockup is a bit outdated due to this...
Comment 26 Felipe Borges 2017-03-22 09:04:25 UTC
(In reply to Ondrej Holy from comment #25)
> (In reply to Felipe Borges from comment #23)
> > Review of attachment 346235 [details] [review] [review] [review]:
> > 
> > I'm afraid the margin in the top is bit more than the mockup. But other than
> > that it's fine.
> 
> I think it is ok. It should be the same as it was introduced by your
> attachment 345637 [details] [review] [review], which was suggested in Comment 0. So
> the original mockup is a bit outdated due to this...

alright. no problem.
Comment 27 Ondrej Holy 2017-03-22 12:20:14 UTC
Review of attachment 346231 [details] [review]:

The max-width-chars change is not probably needed. I am not sure why, but it looks ok without it on rawhide. Maybe I was testing it against some buggy version of GTK+. But xalign is needed...
Comment 28 Ondrej Holy 2017-03-22 14:12:17 UTC
Created attachment 348487 [details] [review]
user-accounts: Align multiline labels

So I've removed the max-width-char changes...
Comment 29 Ondrej Holy 2017-03-22 14:12:41 UTC
Created attachment 348488 [details] [review]
user-accounts: Align "Enterprise login" toggle
Comment 30 Ondrej Holy 2017-03-22 14:12:53 UTC
Created attachment 348489 [details] [review]
user-accounts: Add missing widgets in size group
Comment 31 Ondrej Holy 2017-03-22 14:13:05 UTC
Created attachment 348490 [details] [review]
user-accounts: Unify row spacing
Comment 32 Ondrej Holy 2017-03-22 14:16:10 UTC
Created attachment 348491 [details] [review]
user-accounts: Fix widget alignment on add user dialog

So, I have finally removed margin_top in local-area. It was different than in enterprise part and it was really too much as per the attachment 345465 [details].
Comment 33 Ondrej Holy 2017-03-22 14:21:36 UTC
Attachment 348487 [details] pushed as 54c4dbb - user-accounts: Align multiline labels
Attachment 348488 [details] pushed as 921ef1b - user-accounts: Align "Enterprise login" toggle
Attachment 348489 [details] pushed as 932cdd3 - user-accounts: Add missing widgets in size group
Attachment 348490 [details] pushed as a748d52 - user-accounts: Unify row spacing
Attachment 348491 [details] pushed as c49d1cc - user-accounts: Fix widget alignment on add user dialog