[gnome-shell] polkit: Improve styling in polkit dialog
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] polkit: Improve styling in polkit dialog
- Date: Fri, 3 Aug 2012 15:23:22 +0000 (UTC)
commit 4d7d66bc1ff4915e33855c67574839b6efb0e06f
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Wed Aug 1 17:37:31 2012 -0300
polkit: Improve styling in polkit dialog
Center the "Password:" label, and add a bit more spacing
data/theme/gnome-shell.css | 8 ++------
js/ui/polkitAuthenticationAgent.js | 6 +++---
2 files changed, 5 insertions(+), 9 deletions(-)
---
diff --git a/data/theme/gnome-shell.css b/data/theme/gnome-shell.css
index 3c75aea..716b40d 100644
--- a/data/theme/gnome-shell.css
+++ b/data/theme/gnome-shell.css
@@ -1859,12 +1859,8 @@ StButton.popup-menu-item:insensitive {
color: #666666;
}
-.prompt-dialog-password-label:ltr {
- padding-right: 0.5em;
-}
-
-.prompt-dialog-password-label:rtl {
- padding-left: 0.5em;
+.prompt-dialog-password-box {
+ spacing: 1em;
}
.prompt-dialog-error-label {
diff --git a/js/ui/polkitAuthenticationAgent.js b/js/ui/polkitAuthenticationAgent.js
index 982b0f8..0f374a3 100644
--- a/js/ui/polkitAuthenticationAgent.js
+++ b/js/ui/polkitAuthenticationAgent.js
@@ -135,17 +135,17 @@ const AuthenticationDialog = new Lang.Class({
this._onUserChanged();
- this._passwordBox = new St.BoxLayout({ vertical: false });
+ this._passwordBox = new St.BoxLayout({ vertical: false, style_class: 'prompt-dialog-password-box' });
messageBox.add(this._passwordBox);
this._passwordLabel = new St.Label(({ style_class: 'prompt-dialog-password-label' }));
- this._passwordBox.add(this._passwordLabel);
+ this._passwordBox.add(this._passwordLabel, { y_fill: false, y_align: St.Align.MIDDLE });
this._passwordEntry = new St.Entry({ style_class: 'prompt-dialog-password-entry',
text: "",
can_focus: true});
ShellEntry.addContextMenu(this._passwordEntry, { isPassword: true });
this._passwordEntry.clutter_text.connect('activate', Lang.bind(this, this._onEntryActivate));
this._passwordBox.add(this._passwordEntry,
- {expand: true });
+ { expand: true });
this.setInitialKeyFocus(this._passwordEntry);
this._passwordBox.hide();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]