[gnome-shell] keyringPrompt: Improve styling here as well



commit 9f07a3dd4a2831a8f190659323a3af15929fccae
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Tue Aug 14 13:05:34 2012 -0300

    keyringPrompt: Improve styling here as well
    
    Again, center the "Password" label, and add some spacing between
    it and the entry.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=681821

 data/theme/gnome-shell.css |    1 +
 js/ui/keyringPrompt.js     |   10 ++++++++--
 2 files changed, 9 insertions(+), 2 deletions(-)
---
diff --git a/data/theme/gnome-shell.css b/data/theme/gnome-shell.css
index 671c450..c3a0fe9 100644
--- a/data/theme/gnome-shell.css
+++ b/data/theme/gnome-shell.css
@@ -1907,6 +1907,7 @@ StButton.popup-menu-item:insensitive {
 
 .keyring-dialog-control-table {
     spacing-rows: 15px;
+    spacing-columns: 1em;
 }
 
 /* Magnifier */
diff --git a/js/ui/keyringPrompt.js b/js/ui/keyringPrompt.js
index da26d2a..814c946 100644
--- a/js/ui/keyringPrompt.js
+++ b/js/ui/keyringPrompt.js
@@ -84,7 +84,10 @@ const KeyringDialog = new Lang.Class({
         if (this.prompt.password_visible) {
             let label = new St.Label(({ style_class: 'prompt-dialog-password-label' }));
             label.set_text(_("Password:"));
-            table.add(label, { row: row, col: 0, x_expand: false, x_fill: true, x_align: St.Align.START });
+            table.add(label, { row: row, col: 0,
+                               x_expand: false, x_fill: true,
+                               x_align: St.Align.START,
+                               y_fill: false, y_align: St.Align.MIDDLE });
             this._passwordEntry = new St.Entry({ style_class: 'prompt-dialog-password-entry',
                                                  text: '',
                                                  can_focus: true});
@@ -100,7 +103,10 @@ const KeyringDialog = new Lang.Class({
         if (this.prompt.confirm_visible) {
             var label = new St.Label(({ style_class: 'prompt-dialog-password-label' }));
             label.set_text(_("Type again:"));
-            table.add(label, { row: row, col: 0, x_expand: false, x_fill: true, x_align: St.Align.START });
+            table.add(label, { row: row, col: 0,
+                               x_expand: false, x_fill: true,
+                               x_align: St.Align.START,
+                               y_fill: false, y_align: St.Align.MIDDLE });
             this._confirmEntry = new St.Entry({ style_class: 'prompt-dialog-password-entry',
                                                 text: '',
                                                 can_focus: true});



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]