effects/overview: Animate window icon opacity

This looks better.
This commit is contained in:
Vlad Zahorodnii 2021-12-07 19:23:59 +02:00 committed by Nate Graham
parent 901cc62d28
commit 09b8f5d838

View file

@ -108,19 +108,21 @@ FocusScope {
anchors.horizontalCenter: thumbSource.horizontalCenter
anchors.bottom: thumbSource.bottom
anchors.bottomMargin: -height / 4
opacity: heap.organized ? 1 : 0
visible: !dragHandler.active
}
TweenBehavior on opacity {}
PC3.Label {
id: caption
width: Math.min(implicitWidth, thumbSource.width)
anchors.top: icon.bottom
anchors.horizontalCenter: icon.horizontalCenter
anchors.top: parent.bottom
anchors.horizontalCenter: parent.horizontalCenter
elide: Text.ElideRight
text: thumb.client.caption
horizontalAlignment: Text.AlignHCenter
verticalAlignment: Text.AlignVCenter
visible: !dragHandler.active
}
}
ExpoCell {