Init rewritten avatar.

This commit is contained in:
Black Hat
2018-11-04 19:14:02 +08:00
parent c19f49a898
commit 5a46810016
24 changed files with 167 additions and 101 deletions

View File

@@ -33,7 +33,7 @@ Drawer {
Layout.alignment: Qt.AlignHCenter
hint: room ? room.displayName : "No name"
image: spectralController.safeImage(room ? room.avatar : null)
source: room ? room.paintable : null
}
Label {
@@ -131,7 +131,7 @@ Drawer {
Layout.preferredWidth: height
Layout.fillHeight: true
image: avatar
source: paintable
hint: name
}