unlockDialog: Iconize the switch user button

Make it look exactly the same as the login screen's session
selection button.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/1006
This commit is contained in:
Georges Basile Stavracas Neto 2020-02-14 12:35:48 -03:00 committed by Florian Müllner
parent d44a4a6a62
commit 133b623204
2 changed files with 5 additions and 6 deletions

View File

@ -70,6 +70,7 @@
} }
.cancel-button, .cancel-button,
.switch-user-button,
.login-dialog-session-list-button { .login-dialog-session-list-button {
padding: 0; padding: 0;
border-radius: 99px; border-radius: 99px;

View File

@ -556,15 +556,13 @@ var UnlockDialog = GObject.registerClass({
this._notificationsBox.connect('wake-up-screen', () => this.emit('wake-up-screen')); this._notificationsBox.connect('wake-up-screen', () => this.emit('wake-up-screen'));
// Switch User button // Switch User button
let otherUserLabel = new St.Label({
text: _('Log in as another user'),
style_class: 'login-dialog-not-listed-label',
});
this._otherUserButton = new St.Button({ this._otherUserButton = new St.Button({
style_class: 'login-dialog-not-listed-button', style_class: 'modal-dialog-button button switch-user-button',
can_focus: true, can_focus: true,
child: otherUserLabel,
reactive: true, reactive: true,
x_align: Clutter.ActorAlign.END,
y_align: Clutter.ActorAlign.END,
child: new St.Icon({ icon_name: 'system-users-symbolic' }),
}); });
this._otherUserButton.connect('clicked', this._otherUserClicked.bind(this)); this._otherUserButton.connect('clicked', this._otherUserClicked.bind(this));