[gnome-shell] panel: Add :overview pseudo class while in overview
- From: Florian MÃllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] panel: Add :overview pseudo class while in overview
- Date: Tue, 5 Feb 2013 18:54:48 +0000 (UTC)
commit f47c0601ce6be92944c33f63327c2f99542f4725
Author: Florian MÃllner <fmuellner gnome org>
Date: Tue Feb 5 15:24:46 2013 +0100
panel: Add :overview pseudo class while in overview
The panel used to provide an .in-overview class which was removed after
the theme stopped using it. Classic mode should use a different top bar
style in the overview, so bring it back (but use a pseudo class this
time for consistency with MessageTray and ActivitiesButton).
https://bugzilla.gnome.org/show_bug.cgi?id=693218
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 0a0de03..cfeb351 100644
--- a/js/ui/panel.js
+++ b/js/ui/panel.js
@@ -972,6 +972,13 @@ const Panel = new Lang.Class({
this.actor.connect('allocate', Lang.bind(this, this._allocate));
this.actor.connect('button-press-event', Lang.bind(this, this._onButtonPress));
+ Main.overview.connect('showing', Lang.bind(this, function () {
+ this.actor.add_style_pseudo_class('overview');
+ }));
+ Main.overview.connect('hiding', Lang.bind(this, function () {
+ this.actor.remove_style_pseudo_class('overview');
+ }));
+
Main.layoutManager.panelBox.add(this.actor);
Main.ctrlAltTabManager.addGroup(this.actor, _("Top Bar"), 'emblem-system-symbolic',
{ sortGroup: CtrlAltTab.SortGroup.TOP });
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]