[gnome-shell/user-status-update: 10/12] status-menu: Update according	to design review
- From: Florian MÃllner <fmuellner src gnome org>
 
- To: commits-list gnome org
 
- Cc: 
 
- Subject: [gnome-shell/user-status-update: 10/12] status-menu: Update according	to design review
 
- Date: Thu,  4 Aug 2011 22:28:00 +0000 (UTC)
 
commit 55298f2abf898e7fa7b1bb045ecb6c6c5a45cdee
Author: Florian MÃllner <fmuellner gnome org>
Date:   Thu Jul 28 17:57:46 2011 +0200
    status-menu: Update according to design review
    
     - reduce combo menu size
     - increase combo menu transparency
     - improve line-up with combo box menu item
 data/theme/gnome-shell.css |   16 +++++++++++++++-
 js/ui/popupMenu.js         |    3 +++
 2 files changed, 18 insertions(+), 1 deletions(-)
---
diff --git a/data/theme/gnome-shell.css b/data/theme/gnome-shell.css
index 411eaa4..b70de71 100644
--- a/data/theme/gnome-shell.css
+++ b/data/theme/gnome-shell.css
@@ -358,7 +358,8 @@ StTooltip StLabel {
     spacing: .4em;
 }
 
-.status-chooser .popup-menu-item {
+.status-chooser .popup-menu-item,
+.status-chooser-combo .popup-menu-item {
     padding: .4em;
 }
 
@@ -378,6 +379,19 @@ StTooltip StLabel {
     font-size: 1.3em;
 }
 
+.status-chooser-combo {
+    border: 1px solid transparent;
+}
+
+.status-chooser-combo.popup-combo-menu {
+    background-color: rgba(0,0,0,0.7);
+    padding: .4em 0em;
+    border-radius: 4px;
+    border: 1px solid #5f5f5f;
+    color: #ffffff;
+    font-size: 10.5pt;
+}
+
 .status-chooser-status-item,
 .status-chooser-combo > .popup-combobox-item {
     spacing: .4em;
diff --git a/js/ui/popupMenu.js b/js/ui/popupMenu.js
index 07be3dd..ed9feb9 100644
--- a/js/ui/popupMenu.js
+++ b/js/ui/popupMenu.js
@@ -1468,6 +1468,9 @@ PopupComboBoxMenuItem.prototype = {
         Main.chrome.addActor(this._menu.actor, { affectsStruts: false });
         this._menu.actor.hide();
 
+        if (params.style_class)
+            this._menu.actor.add_style_class_name(params.style_class);
+
         this._activeItemPos = -1;
         this._items = [];
     },
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]