mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 18:36:45 +02:00
Some fun motion for experimentation
This commit is contained in:
parent
cf46f3c9d4
commit
2080aa6676
2 changed files with 7 additions and 3 deletions
|
@ -37,12 +37,16 @@ Rectangle {
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
id: borderMask
|
id: borderMask
|
||||||
visible: root.isHovering
|
width: root.isHovering ? itemPreviewImage.width + 4 : itemPreviewImage.width - 4
|
||||||
width: itemPreviewImage.width + 4
|
|
||||||
height: width
|
height: width
|
||||||
radius: width
|
radius: width
|
||||||
anchors.centerIn: itemPreviewImage
|
anchors.centerIn: itemPreviewImage
|
||||||
color: "#FFFFFF"
|
color: "#FFFFFF"
|
||||||
|
|
||||||
|
Behavior on width {
|
||||||
|
enabled: true
|
||||||
|
SmoothedAnimation { velocity: 80 }
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Image {
|
Image {
|
||||||
|
|
|
@ -169,7 +169,7 @@ Rectangle {
|
||||||
Rectangle {
|
Rectangle {
|
||||||
z: -1
|
z: -1
|
||||||
id: borderMask
|
id: borderMask
|
||||||
width: avatarButtonImageMouseArea.containsMouse ? avatarButtonImage.width + 4 : avatarButtonImage.width
|
width: avatarButtonImageMouseArea.containsMouse ? avatarButtonImage.width + 4 : avatarButtonImage.width - 4
|
||||||
height: width
|
height: width
|
||||||
radius: width
|
radius: width
|
||||||
anchors.centerIn: avatarButtonImage
|
anchors.centerIn: avatarButtonImage
|
||||||
|
|
Loading…
Reference in a new issue