userWidget: Allow vertical orientation for user avatars
Allow vertical orientation for the userWidget so that the user-avatar can be centered and user's name can be placed below it. The plan for 3.36 is to use this vertical userWidget layout for both lock and login screen. The userWidget is also used while creating the user-selection list at the login, hence we still need to keep the horizontal layout for userWidget in place. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/922
This commit is contained in:

committed by
Florian Müllner

parent
77f77b4305
commit
2fdc627257
@ -47,6 +47,8 @@ var AuthPrompt = GObject.registerClass({
|
||||
super._init({
|
||||
style_class: 'login-dialog-prompt-layout',
|
||||
vertical: true,
|
||||
x_expand: true,
|
||||
x_align: Clutter.ActorAlign.CENTER,
|
||||
});
|
||||
|
||||
this.verificationStatus = AuthPromptStatus.NOT_VERIFYING;
|
||||
@ -455,8 +457,7 @@ var AuthPrompt = GObject.registerClass({
|
||||
oldChild.destroy();
|
||||
|
||||
if (user) {
|
||||
let userWidget = new UserWidget.UserWidget(user);
|
||||
userWidget.x_align = Clutter.ActorAlign.START;
|
||||
let userWidget = new UserWidget.UserWidget(user, Clutter.Orientation.VERTICAL);
|
||||
this._userWell.set_child(userWidget);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user