[gnome-shell/wip/message-tray: 9/22] message-tray: Add :overview pseudo class when in overview
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/message-tray: 9/22] message-tray: Add :overview pseudo class when in overview
- Date: Mon, 13 Aug 2012 20:28:58 +0000 (UTC)
commit 0e2dfbd059649c6f3bbec88d7598d3ff8ee19a84
Author: Florian MÃllner <fmuellner gnome org>
Date: Tue Jul 31 16:10:24 2012 +0200
message-tray: Add :overview pseudo class when in overview
The designers would like the message-tray to use different styles
depending on whether it is shown in the overview or not, so use
an :overview pseudo class as the top bar.
js/ui/messageTray.js | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/js/ui/messageTray.js b/js/ui/messageTray.js
index 4d152dd..0681172 100644
--- a/js/ui/messageTray.js
+++ b/js/ui/messageTray.js
@@ -1524,6 +1524,7 @@ const MessageTray = new Lang.Class({
Main.overview.connect('showing', Lang.bind(this,
function() {
this._overviewVisible = true;
+ this.actor.add_style_pseudo_class('overview');
if (this._locked) {
this._unsetClickedSummaryItem();
this._unlock();
@@ -1534,6 +1535,7 @@ const MessageTray = new Lang.Class({
Main.overview.connect('hiding', Lang.bind(this,
function() {
this._overviewVisible = false;
+ this.actor.remove_style_pseudo_class('overview');
if (this._locked) {
this._unsetClickedSummaryItem();
this._unlock();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]