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.
This commit is contained in:
parent
9c7222daea
commit
a8e6bfcb3d
@ -1550,6 +1550,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();
|
||||
@ -1560,6 +1561,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();
|
||||
|
Loading…
Reference in New Issue
Block a user