Add way to round images

This commit is contained in:
miruka
2020-03-15 14:14:05 -04:00
parent 11604910c1
commit abdaf13da5
3 changed files with 24 additions and 2 deletions

View File

@@ -16,6 +16,7 @@ Rectangle {
theme.controls.avatar.background.opacity
)
property string name
property alias mxc: avatarImage.mxc
property alias title: avatarImage.title
@@ -27,6 +28,8 @@ Rectangle {
property alias animate: avatarImage.animate
readonly property alias hovered: hoverHandler.hovered
readonly property alias circleRadius: avatarImage.circleRadius
HLabel {
z: 1
@@ -54,6 +57,7 @@ Rectangle {
sourceSize.height: parent.height
fillMode: Image.PreserveAspectCrop
animate: false
radius: parent.radius
HoverHandler { id: hoverHandler }