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 685201 - Login screen - avatar image and password field are misaligned
Login screen - avatar image and password field are misaligned
Status: RESOLVED FIXED
Product: gnome-shell
Classification: Core
Component: login-screen
3.6.x
Other Linux
: Normal normal
: ---
Assigned To: Ray Strode [halfline]
gnome-shell-maint
3.6.1
: 663007 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2012-10-01 11:32 UTC by Allan Day
Modified: 2012-10-11 14:33 UTC
See Also:
GNOME target: ---
GNOME version: 3.5/3.6


Attachments
photograph (123.85 KB, image/jpeg)
2012-10-01 11:32 UTC, Allan Day
  Details
unlockDialog: Use a different style class (2.57 KB, patch)
2012-10-04 15:06 UTC, Florian Müllner
none Details | Review
style: Fix alignment issue on login screen (1.02 KB, patch)
2012-10-04 15:06 UTC, Florian Müllner
none Details | Review
loginDialog: Use the same prompt layout as the unlock dialog (3.48 KB, patch)
2012-10-04 17:08 UTC, Florian Müllner
accepted-commit_now Details | Review
loginDialog: Remove now unused functions (1.26 KB, patch)
2012-10-04 17:09 UTC, Florian Müllner
needs-work Details | Review
Screenshot of login screen with patch applied (297.36 KB, image/png)
2012-10-04 18:30 UTC, Florian Müllner
  Details
loginDialog: Use the same prompt layout as the unlock dialog (4.69 KB, patch)
2012-10-05 14:14 UTC, Florian Müllner
committed Details | Review
loginDialog: Remove now unused functions (888 bytes, patch)
2012-10-05 14:15 UTC, Florian Müllner
committed Details | Review
loginDialog: Sync :expanded better with user list visibility (2.61 KB, patch)
2012-10-05 15:14 UTC, Florian Müllner
committed Details | Review

Description Allan Day 2012-10-01 11:32:50 UTC
Created attachment 225480 [details]
photograph

The login screen that I get when first logging in (ie. not the one I get from the lock screen) has a quite obvious alignment problem - the user image (avatar) isn't vertically centered against the password field (see the attached photograph).

Also, this initial login screen should have the same layout as the one you get from the lock screen, which has the password field spanning the width of the cancel and sign in buttons.

We should try and get this fixed for 3.6.1, if possible.
Comment 1 Florian Müllner 2012-10-04 15:06:53 UTC
Created attachment 225817 [details] [review]
unlockDialog: Use a different style class

Currently the unlock dialog uses the same style classes as the login
screen, which breaks where login screen and unlock dialog use different
layouts - for instance, the password prompt is located next to the user
avatar on the former, but below avatar and name on the latter.
In order to allow using different styles for each case, use a different
top-level style class in the unlock dialog and share style explicitly.
Comment 2 Florian Müllner 2012-10-04 15:06:57 UTC
Created attachment 225818 [details] [review]
style: Fix alignment issue on login screen

A style update for the unlock dialog in commit e0bb15e5 messed up
the alignment of user avatar and password prompt in the login screen.
Fix by only applying the style in question to the unlock dialog.
Comment 3 Jasper St. Pierre (not reading bugmail) 2012-10-04 16:02:00 UTC
Don't the designs show that they should be the same in both places?
Comment 4 Florian Müllner 2012-10-04 17:08:55 UTC
Created attachment 225830 [details] [review]
loginDialog: Use the same prompt layout as the unlock dialog

Currently the layout of the password prompt differs slightly between
login dialog and unlock screen - for the former, the prompt is
displayed next to the user avatar, replacing the user name, for
the latter, it is diplayed below both avatar and name.


I'm not sure what's the expected design here, so here's the alternative of moving the login screen closer to the unlock dialog. Definitively riskier (e.g. I could only test the "normal" password case), and requires a freeze break.
Comment 5 Florian Müllner 2012-10-04 17:09:25 UTC
Created attachment 225831 [details] [review]
loginDialog: Remove now unused functions
Comment 6 Florian Müllner 2012-10-04 18:30:02 UTC
Created attachment 225839 [details]
Screenshot of login screen with patch applied
Comment 7 Jasper St. Pierre (not reading bugmail) 2012-10-04 18:50:34 UTC
Review of attachment 225830 [details] [review]:

I was hoping we could reuse the UnlockDialog implementation, but I guess it isn't so.

Looks fine regardless.
Comment 8 Jasper St. Pierre (not reading bugmail) 2012-10-04 18:52:46 UTC
Review of attachment 225831 [details] [review]:

::: js/gdm/loginDialog.js
@@ -217,3 @@
-
-                     function() {
-                         return item.fadeInName();

This isn't an "unused function". Squash with previous patch, please.
Comment 9 Jasper St. Pierre (not reading bugmail) 2012-10-04 18:53:05 UTC
Are the older patches still needed?
Comment 10 Florian Müllner 2012-10-04 19:18:04 UTC
It's either the first or the second pair of patches, depending on what the designers want.
Comment 11 Jasper St. Pierre (not reading bugmail) 2012-10-04 19:22:51 UTC
(In reply to comment #10)
> It's either the first or the second pair of patches, depending on what the
> designers want.

https://raw.github.com/gnome-design-team/gnome-mockups/master/system-lock-login-boot/login-password.png
https://raw.github.com/gnome-design-team/gnome-mockups/master/system-lock-login-boot/unlock.png

Take from that what you will.
Comment 12 Jasper St. Pierre (not reading bugmail) 2012-10-04 19:23:59 UTC
Also, your username is gray in the screenshot. I assume you're going to fix that before you push.
Comment 13 Matthias Clasen 2012-10-04 22:21:58 UTC
Screenshot looks good to me, but probably needs a ui freeze request for 3.6.1
Comment 14 Florian Müllner 2012-10-05 14:14:55 UTC
Created attachment 225886 [details] [review]
loginDialog: Use the same prompt layout as the unlock dialog

Updated style of username
Comment 15 Florian Müllner 2012-10-05 14:15:04 UTC
Created attachment 225887 [details] [review]
loginDialog: Remove now unused functions
Comment 16 Florian Müllner 2012-10-05 15:14:35 UTC
Created attachment 225892 [details] [review]
loginDialog: Sync :expanded better with user list visibility

Now that we use a different text style for the username depending on
whether the user list is expanded or not, changing the :expanded style
before the actual transition looks disruptive. Adding the style right
before fading in other items and removing it right after fading them
out gives a better result.
Comment 17 Jasper St. Pierre (not reading bugmail) 2012-10-05 15:33:18 UTC
Review of attachment 225886 [details] [review]:

Sure.
Comment 18 Jasper St. Pierre (not reading bugmail) 2012-10-05 15:33:30 UTC
Review of attachment 225887 [details] [review]:

Yep.
Comment 19 Jasper St. Pierre (not reading bugmail) 2012-10-05 15:33:40 UTC
Review of attachment 225892 [details] [review]:

Makes sense.
Comment 20 Florian Müllner 2012-10-05 17:29:04 UTC
*** Bug 663007 has been marked as a duplicate of this bug. ***
Comment 21 Matthias Clasen 2012-10-10 09:44:14 UTC
Did you ask the designers about this ?
Comment 22 Jakub Steiner 2012-10-11 11:05:28 UTC
If the avatar wasn't misaligned, I wouldn't mind not having the user name on the unlock screen and differing from the login dialog. But when given the choice now, having the layout be the same for unlock and login seems a better variant.
Comment 23 Florian Müllner 2012-10-11 12:27:59 UTC
(In reply to comment #22)
> But when given the choice now, having the layout be the same for unlock 
> and login seems a better variant.

Good, so I was right in requesting a freeze break :-)
Comment 24 Florian Müllner 2012-10-11 14:33:27 UTC
Attachment 225886 [details] pushed as 05f5fac - loginDialog: Use the same prompt layout as the unlock dialog
Attachment 225887 [details] pushed as dc15df1 - loginDialog: Remove now unused functions
Attachment 225892 [details] pushed as e8f96a6 - loginDialog: Sync :expanded better with user list visibility

Pushing after RT approval.