From 44184f47001621fce406569563a55f520c3c4a19 Mon Sep 17 00:00:00 2001 From: Nate Graham Date: Thu, 10 Mar 2022 15:11:47 -0700 Subject: [PATCH] effects/overview: add subtle outline around non-active desktops Otherwise they have no border and look kind of cut off. BUG: 450739 FIXED-IN: 5.25 --- src/effects/overview/qml/DesktopBar.qml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/effects/overview/qml/DesktopBar.qml b/src/effects/overview/qml/DesktopBar.qml index b314c9c1d1..28742e4745 100644 --- a/src/effects/overview/qml/DesktopBar.qml +++ b/src/effects/overview/qml/DesktopBar.qml @@ -151,13 +151,13 @@ Item { } Rectangle { + readonly property bool active: !thumbnail.scaled && (delegate.activeFocus || dropArea.containsDrag || bar.selectedDesktop === delegate.desktop) anchors.fill: parent radius: 3 color: "transparent" border.width: 2 - border.color: PlasmaCore.ColorScope.highlightColor - opacity: dropArea.containsDrag ? 0.5 : 1.0 - visible: !thumbnail.scaled && (delegate.activeFocus || dropArea.containsDrag || bar.selectedDesktop === delegate.desktop) + border.color: active ? PlasmaCore.ColorScope.highlightColor : PlasmaCore.ColorScope.textColor + opacity: dropArea.containsDrag || !active ? 0.5 : 1.0 } MouseArea {