mirror of
https://github.com/overte-org/overte.git
synced 2025-04-22 10:53:34 +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
interface/resources/qml/hifi/simplifiedUI
|
@ -37,12 +37,16 @@ Rectangle {
|
|||
|
||||
Rectangle {
|
||||
id: borderMask
|
||||
visible: root.isHovering
|
||||
width: itemPreviewImage.width + 4
|
||||
width: root.isHovering ? itemPreviewImage.width + 4 : itemPreviewImage.width - 4
|
||||
height: width
|
||||
radius: width
|
||||
anchors.centerIn: itemPreviewImage
|
||||
color: "#FFFFFF"
|
||||
|
||||
Behavior on width {
|
||||
enabled: true
|
||||
SmoothedAnimation { velocity: 80 }
|
||||
}
|
||||
}
|
||||
|
||||
Image {
|
||||
|
|
|
@ -169,7 +169,7 @@ Rectangle {
|
|||
Rectangle {
|
||||
z: -1
|
||||
id: borderMask
|
||||
width: avatarButtonImageMouseArea.containsMouse ? avatarButtonImage.width + 4 : avatarButtonImage.width
|
||||
width: avatarButtonImageMouseArea.containsMouse ? avatarButtonImage.width + 4 : avatarButtonImage.width - 4
|
||||
height: width
|
||||
radius: width
|
||||
anchors.centerIn: avatarButtonImage
|
||||
|
|
Loading…
Reference in a new issue