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



commit 88db5255e4b0b09020e2adab77f3cdc525bd696a
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 441db06..ee449de 100644
--- a/data/theme/gnome-shell.css
+++ b/data/theme/gnome-shell.css
@@ -377,6 +377,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 638dab7..630bd0b 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]