Animate new reaction button

This commit is contained in:
Sebastian Wolf 2023-11-26 20:53:09 +01:00
parent 98f067cda8
commit 24edb17347
No known key found for this signature in database
GPG key ID: CEA9522B5F38A90A

View file

@ -652,6 +652,8 @@ ListItem {
Rectangle {
id: selectReactionBubble
visible: false
opacity: visible ? 0.5 : 0.0
Behavior on opacity { NumberAnimation {} }
anchors {
horizontalCenter: messageListItem.isOwnMessage ? messageBackground.left : messageBackground.right
verticalCenter: messageBackground.verticalCenter
@ -660,12 +662,13 @@ ListItem {
width: Theme.itemSizeExtraSmall
color: Theme.primaryColor
radius: parent.width / 2
opacity: 0.5
}
IconButton {
id: selectReactionButton
visible: selectReactionBubble.visible
opacity: visible ? 1.0 : 0.0
Behavior on opacity { NumberAnimation {} }
icon.source: "image://theme/icon-s-favorite"
anchors.centerIn: selectReactionBubble
onClicked: {