mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 03:24:00 +02:00
crop avatar thumbnails to fit aspect ratio
This commit is contained in:
parent
9a4ea07614
commit
6ff2ea96f4
3 changed files with 3 additions and 0 deletions
|
@ -308,6 +308,7 @@ Rectangle {
|
|||
anchors.topMargin: 31
|
||||
source: avatarUrl
|
||||
visible: avatarImage.status !== Image.Loading
|
||||
fillMode: Image.PreserveAspectCrop
|
||||
}
|
||||
|
||||
ShadowRectangle {
|
||||
|
|
|
@ -23,6 +23,7 @@ Item {
|
|||
anchors.fill: parent
|
||||
visible: status !== Image.Loading
|
||||
radius: 5
|
||||
fillMode: Image.PreserveAspectCrop
|
||||
}
|
||||
|
||||
ShadowRectangle {
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue