From 501136b222e1600d0e284c26c9b9e1780b631422 Mon Sep 17 00:00:00 2001 From: ivan tkachenko Date: Sat, 17 Sep 2022 02:40:09 +0300 Subject: [PATCH] effects/windowview: Animate the placeholder just like the search field FIXED-IN: 5.26 --- src/effects/windowview/qml/main.qml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/effects/windowview/qml/main.qml b/src/effects/windowview/qml/main.qml index 87a44e884c..1ae6af4880 100644 --- a/src/effects/windowview/qml/main.qml +++ b/src/effects/windowview/qml/main.qml @@ -93,7 +93,15 @@ Item { PlasmaExtras.PlaceholderMessage { anchors.centerIn: parent width: parent.width - (PlasmaCore.Units.gridUnit * 8) + visible: heap.activeEmpty + // Otherwise it's always 100% opaque even while the blurry desktop background's + // opacity is changing, which looks weird and is different from what Overview does. + opacity: container.organized ? 1 : 0 + Behavior on opacity { + OpacityAnimator { duration: container.effect.animationDuration; easing.type: Easing.OutCubic } + } + iconName: "edit-none" text: effect.searchText.length > 0 ? i18nd("kwin_effects", "No Matches") : i18nd("kwin_effects", "No Windows") }