[gnome-shell] [panel] Add a style class while the overview is active



commit c18ff910302b7fc488441fe99539f10b207c1c2c
Author: Florian Müllner <fmuellner gnome org>
Date:   Fri Jul 16 13:48:05 2010 +0200

    [panel] Add a style class while the overview is active
    
    Designers have asked for the possibility to style the panel
    differently in the overview.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=624381

 js/ui/panel.js |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/js/ui/panel.js b/js/ui/panel.js
index 7402726..7678341 100644
--- a/js/ui/panel.js
+++ b/js/ui/panel.js
@@ -638,6 +638,13 @@ Panel.prototype = {
                                         reactive: true });
         this.actor._delegate = this;
 
+        Main.overview.connect('shown', Lang.bind(this, function () {
+            this.actor.add_style_class_name('in-overview');
+        }));
+        Main.overview.connect('hiding', Lang.bind(this, function () {
+            this.actor.remove_style_class_name('in-overview');
+        }));
+
         this._menus = new PopupMenu.PopupMenuManager(this);
 
         this._leftBox = new St.BoxLayout({ name: 'panelLeft' });



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