[kcms/users]: Improve appearance of avatar selection

BUG: 430016
FIXED-IN: 5.21
wilder-5.24
Carson Black 5 years ago committed by Devin Lin
parent 0e29ef1e14
commit 0cc55dc5a0
  1. 14
      kcms/users/package/contents/ui/UserDetailsPage.qml

@ -317,15 +317,25 @@ SimpleKCM {
Image { Image {
id: imgDelegate id: imgDelegate
visible: false
smooth: true smooth: true
mipmap: true mipmap: true
sourceSize.width: Kirigami.Units.gridUnit * 5
anchors.fill: parent sourceSize.height: Kirigami.Units.gridUnit * 5
source: modelData source: modelData
Accessible.ignored: true Accessible.ignored: true
} }
Kirigami.ShadowedTexture {
radius: width / 2
anchors.centerIn: parent
width: Kirigami.Units.gridUnit * 5
height: Kirigami.Units.gridUnit * 5
source: imgDelegate
}
onClicked: { onClicked: {
picturesSheet.close() picturesSheet.close()
usersDetailPage.oldImage = usersDetailPage.user.face usersDetailPage.oldImage = usersDetailPage.user.face

Loading…
Cancel
Save