From c8abdc51e672065165ce75d8f4d83f252bd53995 Mon Sep 17 00:00:00 2001 From: John Horan Date: Wed, 11 May 2016 19:27:23 +0100 Subject: [PATCH] get rid of the gradient when the mpris player is alone --- src/streamMenu.js | 3 +++ src/stylesheet.css | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/src/streamMenu.js b/src/streamMenu.js index 8b0ef0b..53a4f7d 100644 --- a/src/streamMenu.js +++ b/src/streamMenu.js @@ -648,6 +648,7 @@ const MPRISStream = new Lang.Class({ this._albumArt.hide(); this.actor.set_vertical(false); + this.actor.add_style_pseudo_class('alone'); this._metaDisplay.add_style_pseudo_class('alone'); this._playBtn.add_style_pseudo_class('alone'); this._volCtrl.add_style_pseudo_class('alone'); @@ -780,6 +781,7 @@ const MPRISStream = new Lang.Class({ this._albumArt.hide(); this.actor.set_vertical(false); + this.actor.add_style_pseudo_class('alone'); this._metaDisplay.add_style_pseudo_class('alone'); this._playBtn.add_style_pseudo_class('alone'); this._volCtrl.add_style_pseudo_class('alone'); @@ -787,6 +789,7 @@ const MPRISStream = new Lang.Class({ else { this.actor.set_vertical(true); + this.actor.remove_style_pseudo_class('alone'); this._metaDisplay.remove_style_pseudo_class('alone'); this._playBtn.remove_style_pseudo_class('alone'); this._volCtrl.remove_style_pseudo_class('alone'); diff --git a/src/stylesheet.css b/src/stylesheet.css index 2dcf1c2..bebdbc9 100644 --- a/src/stylesheet.css +++ b/src/stylesheet.css @@ -168,8 +168,12 @@ background-gradient-direction: vertical; } +.mpris-stream:active-top:alone, .mpris-stream:active{ background:rgb(74,80,80); + background-gradient-start: none; + background-gradient-end: none; + background-gradient-direction: none; } .mpris-stream:active-bottom{