[gnome-shell/user-status-update: 8/9] status-menu: Reduce padding between status icon/string



commit 582a61ff9fa83ca77f855f33be3f962c8aff5018
Author: Florian MÃllner <fmuellner gnome org>
Date:   Wed Jul 27 00:01:06 2011 +0200

    status-menu: Reduce padding between status icon/string

 data/theme/gnome-shell.css |    5 +++++
 js/ui/statusMenu.js        |    4 +++-
 2 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/data/theme/gnome-shell.css b/data/theme/gnome-shell.css
index cf1596a..f3712df 100644
--- a/data/theme/gnome-shell.css
+++ b/data/theme/gnome-shell.css
@@ -373,6 +373,11 @@ StTooltip StLabel {
     font-weight: bold;
 }
 
+.status-chooser-status-item,
+.status-chooser-combo > .popup-combobox-item {
+    spacing: .4em;
+}
+
 #legacyTray {
     spacing: 14px;
     padding-left: 14px;
diff --git a/js/ui/statusMenu.js b/js/ui/statusMenu.js
index 5c5d28f..9107b63 100644
--- a/js/ui/statusMenu.js
+++ b/js/ui/statusMenu.js
@@ -48,6 +48,8 @@ IMStatusItem.prototype = {
     _init: function(label, iconName) {
         PopupMenu.PopupBaseMenuItem.prototype._init.call(this);
 
+        this.actor.add_style_class_name('status-chooser-status-item');
+
         this._icon = new St.Icon({ style_class: 'popup-menu-icon' });
         this.addActor(this._icon);
 
@@ -87,7 +89,7 @@ IMStatusChooserItem.prototype = {
                                                    style_class: 'status-chooser-user-name' });
         this._section.addMenuItem(this._name);
 
-        this._combo = new PopupMenu.PopupComboBoxMenuItem();
+        this._combo = new PopupMenu.PopupComboBoxMenuItem({ style_class: 'status-chooser-combo' });
         this._section.addMenuItem(this._combo);
 
         let item;



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