Added avatar placeholder

icon-m-profile.svg being used if no avatar image can be loaded
This commit is contained in:
molan-git 2020-04-29 15:28:19 +02:00 committed by GitHub
parent 314b335ef0
commit 9d1846ec19
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -46,7 +46,7 @@ BackgroundItem {
visible: true visible: true
onStatusChanged: { onStatusChanged: {
if (avatar.status === Image.Error) if (avatar.status === Image.Error)
source = "image://theme/icon-m-person?" + (pressed source = "../../images/icon-m-profile.svg?" + (pressed
? Theme.highlightColor ? Theme.highlightColor
: Theme.primaryColor) : Theme.primaryColor)
} }