[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
This commit is contained in:
Florian Müllner 2010-07-16 13:48:05 +02:00
parent 039229f340
commit c18ff91030

View File

@ -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' });