[gnome-shell/uajain/adapt-user-avatar-part2: 9/22] loginDialog: Center align Caps Lock and authentication messages
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/uajain/adapt-user-avatar-part2: 9/22] loginDialog: Center align Caps Lock and authentication messages
- Date: Wed, 12 Feb 2020 19:29:01 +0000 (UTC)
commit ce285e6ca6000cd03f26599aeb2854795849795b
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Wed Feb 5 15:26:44 2020 -0300
loginDialog: Center align Caps Lock and authentication messages
https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/922
data/theme/gnome-shell-sass/widgets/_login-dialog.scss | 1 +
js/gdm/authPrompt.js | 8 ++++++--
2 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/data/theme/gnome-shell-sass/widgets/_login-dialog.scss
b/data/theme/gnome-shell-sass/widgets/_login-dialog.scss
index 5613d9688a..22ac8d1818 100644
--- a/data/theme/gnome-shell-sass/widgets/_login-dialog.scss
+++ b/data/theme/gnome-shell-sass/widgets/_login-dialog.scss
@@ -85,6 +85,7 @@
.login-dialog-logo-bin { padding: 24px 0px; }
.login-dialog-banner { color: darken($osd_fg_color,10%); }
.login-dialog-button-box { width: 23em; spacing: 5px; }
+.login-dialog-message { text-align: center; }
.login-dialog-message-warning { color: $warning_color; }
.login-dialog-message-hint { padding-top: 0; padding-bottom: 20px; }
.login-dialog-user-selection-box { padding: 100px 0px; }
diff --git a/js/gdm/authPrompt.js b/js/gdm/authPrompt.js
index 2fb5057b84..6dc914a039 100644
--- a/js/gdm/authPrompt.js
+++ b/js/gdm/authPrompt.js
@@ -99,15 +99,19 @@ var AuthPrompt = GObject.registerClass({
this._initEntryRow();
- this._capsLockWarningLabel = new ShellEntry.CapsLockWarning();
+ this._capsLockWarningLabel = new ShellEntry.CapsLockWarning({
+ x_expand: true,
+ x_align: Clutter.ActorAlign.CENTER,
+ });
this.add_child(this._capsLockWarningLabel);
this._message = new St.Label({
opacity: 0,
styleClass: 'login-dialog-message',
- x_expand: false,
y_expand: true,
+ x_expand: true,
y_align: Clutter.ActorAlign.START,
+ x_align: Clutter.ActorAlign.CENTER,
});
this._message.clutter_text.line_wrap = true;
this._message.clutter_text.ellipsize = Pango.EllipsizeMode.NONE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]