From c18ff910302b7fc488441fe99539f10b207c1c2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Fri, 16 Jul 2010 13:48:05 +0200 Subject: [PATCH] [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 file changed, 7 insertions(+) diff --git a/js/ui/panel.js b/js/ui/panel.js index 740272685..767834178 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' });