From 1878bcfc9ab8b4fe72cb780eb9c0aed5ec26d03c Mon Sep 17 00:00:00 2001 From: Michail Vourlakos Date: Sat, 18 Feb 2017 19:00:52 +0200 Subject: [PATCH] add some opacity in active special cases --- plasmoid/contents/ui/TaskGroupItem.qml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plasmoid/contents/ui/TaskGroupItem.qml b/plasmoid/contents/ui/TaskGroupItem.qml index 692701360..95b94a4d5 100644 --- a/plasmoid/contents/ui/TaskGroupItem.qml +++ b/plasmoid/contents/ui/TaskGroupItem.qml @@ -68,6 +68,9 @@ Item{ roundCorners: true showAttention: model.IsDemandingAttention ? true : false + opacity: (!mainItemContainer.hasActive && root.showPreviews + && windowsPreviewDlg.activeItem && (windowsPreviewDlg.activeItem === mainItemContainer)) ? 0.4 : 1 + property int stateWidth: mainItemContainer.isGroupParent ? (wrapper.regulatorWidth - secondPoint.width) : wrapper.regulatorWidth - spacer.width property int stateHeight: mainItemContainer.isGroupParent ? wrapper.regulatorHeight - secondPoint.height : wrapper.regulatorHeight - spacer.height