From 6ff2ea96f4bf446f05f7b4bf075a1da4960e9298 Mon Sep 17 00:00:00 2001 From: Alexander Ivash Date: Tue, 22 May 2018 03:18:08 +0300 Subject: [PATCH] crop avatar thumbnails to fit aspect ratio --- interface/resources/qml/hifi/AvatarApp.qml | 1 + interface/resources/qml/hifi/avatarapp/AvatarThumbnail.qml | 1 + interface/resources/qml/hifi/avatarapp/ShadowImage.qml | 1 + 3 files changed, 3 insertions(+) diff --git a/interface/resources/qml/hifi/AvatarApp.qml b/interface/resources/qml/hifi/AvatarApp.qml index c24d807455..a3ecd3c503 100644 --- a/interface/resources/qml/hifi/AvatarApp.qml +++ b/interface/resources/qml/hifi/AvatarApp.qml @@ -308,6 +308,7 @@ Rectangle { anchors.topMargin: 31 source: avatarUrl visible: avatarImage.status !== Image.Loading + fillMode: Image.PreserveAspectCrop } ShadowRectangle { diff --git a/interface/resources/qml/hifi/avatarapp/AvatarThumbnail.qml b/interface/resources/qml/hifi/avatarapp/AvatarThumbnail.qml index f015e95b0b..d9b0f7b492 100644 --- a/interface/resources/qml/hifi/avatarapp/AvatarThumbnail.qml +++ b/interface/resources/qml/hifi/avatarapp/AvatarThumbnail.qml @@ -23,6 +23,7 @@ Item { anchors.fill: parent visible: status !== Image.Loading radius: 5 + fillMode: Image.PreserveAspectCrop } ShadowRectangle { diff --git a/interface/resources/qml/hifi/avatarapp/ShadowImage.qml b/interface/resources/qml/hifi/avatarapp/ShadowImage.qml index 9528646b80..3995446e49 100644 --- a/interface/resources/qml/hifi/avatarapp/ShadowImage.qml +++ b/interface/resources/qml/hifi/avatarapp/ShadowImage.qml @@ -11,6 +11,7 @@ Item { property alias border: image.border property alias status: image.status property alias progress: image.progress + property alias fillMode: image.fillMode RoundImage { id: image