[gnome-shell/uajain/adapt-user-avatar-part2: 74/81] loginDialog: Center align Caps Lock and authentication messages



commit 048608ddd7eb18fb5183f7de6275f9d773c4e88a
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 53311f4f67..65c775e38d 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]