mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 18:13:05 +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
|
anchors.topMargin: 31
|
||||||
source: avatarUrl
|
source: avatarUrl
|
||||||
visible: avatarImage.status !== Image.Loading
|
visible: avatarImage.status !== Image.Loading
|
||||||
|
fillMode: Image.PreserveAspectCrop
|
||||||
}
|
}
|
||||||
|
|
||||||
ShadowRectangle {
|
ShadowRectangle {
|
||||||
|
|
|
@ -23,6 +23,7 @@ Item {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
visible: status !== Image.Loading
|
visible: status !== Image.Loading
|
||||||
radius: 5
|
radius: 5
|
||||||
|
fillMode: Image.PreserveAspectCrop
|
||||||
}
|
}
|
||||||
|
|
||||||
ShadowRectangle {
|
ShadowRectangle {
|
||||||
|
|
|
@ -11,6 +11,7 @@ Item {
|
||||||
property alias border: image.border
|
property alias border: image.border
|
||||||
property alias status: image.status
|
property alias status: image.status
|
||||||
property alias progress: image.progress
|
property alias progress: image.progress
|
||||||
|
property alias fillMode: image.fillMode
|
||||||
|
|
||||||
RoundImage {
|
RoundImage {
|
||||||
id: image
|
id: image
|
||||||
|
|
Loading…
Reference in a new issue