[gnome-shell/gbsneto/multi-user-button: 5/6] unlockDialog: Iconize the switch user button
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/gbsneto/multi-user-button: 5/6] unlockDialog: Iconize the switch user button
- Date: Fri, 14 Feb 2020 18:10:49 +0000 (UTC)
commit 9f44899ea7ef874be8bb972e8b38df8b306311c0
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Fri Feb 14 12:35:48 2020 -0300
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
data/theme/gnome-shell-sass/widgets/_login-dialog.scss | 1 +
js/ui/unlockDialog.js | 10 ++++------
2 files changed, 5 insertions(+), 6 deletions(-)
---
diff --git a/data/theme/gnome-shell-sass/widgets/_login-dialog.scss
b/data/theme/gnome-shell-sass/widgets/_login-dialog.scss
index 284a53b06c..c672e04144 100644
--- a/data/theme/gnome-shell-sass/widgets/_login-dialog.scss
+++ b/data/theme/gnome-shell-sass/widgets/_login-dialog.scss
@@ -70,6 +70,7 @@
}
.cancel-button,
+ .switch-user-button,
.login-dialog-session-list-button {
padding: 0;
border-radius: 99px;
diff --git a/js/ui/unlockDialog.js b/js/ui/unlockDialog.js
index eac655f32b..7a6c936121 100644
--- a/js/ui/unlockDialog.js
+++ b/js/ui/unlockDialog.js
@@ -556,15 +556,13 @@ var UnlockDialog = GObject.registerClass({
this._notificationsBox.connect('wake-up-screen', () => this.emit('wake-up-screen'));
// 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({
- style_class: 'login-dialog-not-listed-button',
+ style_class: 'modal-dialog-button button switch-user-button',
can_focus: true,
- child: otherUserLabel,
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));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]