effects/windowview: Animate the placeholder just like the search field

FIXED-IN: 5.26
This commit is contained in:
ivan tkachenko 2022-09-17 02:40:09 +03:00
parent 8ac4901068
commit 501136b222
No known key found for this signature in database
GPG key ID: AF72731B7C654CB3

View file

@ -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")
}