effects/overview: Animate window icon opacity
This looks better.
This commit is contained in:
parent
901cc62d28
commit
09b8f5d838
1 changed files with 13 additions and 11 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue