From 2080aa6676bff3e84698cc3d0463bff784c392ce Mon Sep 17 00:00:00 2001 From: Zach Fox Date: Tue, 14 May 2019 11:56:07 -0700 Subject: [PATCH] Some fun motion for experimentation --- .../avatarApp/components/AvatarAppListDelegate.qml | 8 ++++++-- .../qml/hifi/simplifiedUI/topBar/SimplifiedTopBar.qml | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/interface/resources/qml/hifi/simplifiedUI/avatarApp/components/AvatarAppListDelegate.qml b/interface/resources/qml/hifi/simplifiedUI/avatarApp/components/AvatarAppListDelegate.qml index 92a5b50365..f805786830 100644 --- a/interface/resources/qml/hifi/simplifiedUI/avatarApp/components/AvatarAppListDelegate.qml +++ b/interface/resources/qml/hifi/simplifiedUI/avatarApp/components/AvatarAppListDelegate.qml @@ -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 { diff --git a/interface/resources/qml/hifi/simplifiedUI/topBar/SimplifiedTopBar.qml b/interface/resources/qml/hifi/simplifiedUI/topBar/SimplifiedTopBar.qml index 49414031f6..6f35cc5459 100644 --- a/interface/resources/qml/hifi/simplifiedUI/topBar/SimplifiedTopBar.qml +++ b/interface/resources/qml/hifi/simplifiedUI/topBar/SimplifiedTopBar.qml @@ -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