From bd5c04b92317ef27b926eb2f25b099fffc01c6cb Mon Sep 17 00:00:00 2001 From: Ray Strode Date: Wed, 19 Jun 2013 09:23:14 -0400 Subject: [PATCH] loginDialog: drop padding between buttons and entry Now that we preallocate space for the prompt message there is a lot of loose space between the entry and the buttons. This commit helps tighten things up by getting rid of the large top padding set above the login buttons. https://bugzilla.gnome.org/show_bug.cgi?id=702308 --- data/theme/gnome-shell.css | 4 ++++ js/gdm/loginDialog.js | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/data/theme/gnome-shell.css b/data/theme/gnome-shell.css index 0dc5b703d..5c1c1d7c9 100644 --- a/data/theme/gnome-shell.css +++ b/data/theme/gnome-shell.css @@ -2244,6 +2244,10 @@ StScrollBar StButton#vhandle:active { min-width: 350px; } +.login-dialog-button-box { + spacing: 5px; +} + .login-dialog-prompt-login-hint-message { font-size: 10.5pt; } diff --git a/js/gdm/loginDialog.js b/js/gdm/loginDialog.js index adb5d5596..57b6019a3 100644 --- a/js/gdm/loginDialog.js +++ b/js/gdm/loginDialog.js @@ -512,7 +512,7 @@ const LoginDialog = new Lang.Class({ this._promptLoginHint = new St.Label({ style_class: 'login-dialog-prompt-login-hint-message' }); this._promptBox.add(this._promptLoginHint); - this._buttonBox = new St.BoxLayout({ style_class: 'modal-dialog-button-box', + this._buttonBox = new St.BoxLayout({ style_class: 'login-dialog-button-box', vertical: false }); this._promptBox.add(this._buttonBox, { expand: true,