From 044143ef92d349a986d0d3ac5299eb0df5009fe6 Mon Sep 17 00:00:00 2001 From: Michail Vourlakos Date: Tue, 2 May 2017 19:33:42 +0300 Subject: [PATCH] add opacity for muted streams --- plasmoid/contents/ui/AudioStream.qml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/plasmoid/contents/ui/AudioStream.qml b/plasmoid/contents/ui/AudioStream.qml index 88fb08126..a27bf2f2d 100644 --- a/plasmoid/contents/ui/AudioStream.qml +++ b/plasmoid/contents/ui/AudioStream.qml @@ -58,8 +58,16 @@ Item { radius: width/2 color: theme.backgroundColor - border.width: 1 - border.color: root.minimizedDotColor + Rectangle { + anchors.fill: parent + color: "transparent" + border.width: 1 + border.color: root.minimizedDotColor + radius: width/2 + + opacity: mainItemContainer.playingAudio && !mainItemContainer.muted ? 1 : 0.4 + } + Latte.IconItem{ id: audioStreamIcon