effects/windowview: Animate the placeholder just like the search field
FIXED-IN: 5.26
This commit is contained in:
parent
8ac4901068
commit
501136b222
1 changed files with 8 additions and 0 deletions
|
@ -93,7 +93,15 @@ Item {
|
||||||
PlasmaExtras.PlaceholderMessage {
|
PlasmaExtras.PlaceholderMessage {
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
width: parent.width - (PlasmaCore.Units.gridUnit * 8)
|
width: parent.width - (PlasmaCore.Units.gridUnit * 8)
|
||||||
|
|
||||||
visible: heap.activeEmpty
|
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"
|
iconName: "edit-none"
|
||||||
text: effect.searchText.length > 0 ? i18nd("kwin_effects", "No Matches") : i18nd("kwin_effects", "No Windows")
|
text: effect.searchText.length > 0 ? i18nd("kwin_effects", "No Matches") : i18nd("kwin_effects", "No Windows")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue