Move global avatarSize property

This commit is contained in:
Nicolas Werner 2021-05-13 11:32:20 +02:00
parent 877f4daa1a
commit 5658be5215
No known key found for this signature in database
GPG key ID: C8D75E610773F2D9
8 changed files with 17 additions and 20 deletions

View file

@ -240,8 +240,8 @@ ScrollView {
Avatar {
id: messageUserAvatar
width: avatarSize
height: avatarSize
width: Nheko.avatarSize
height: Nheko.avatarSize
url: modelData ? chat.model.avatarUrl(modelData.userId).replace("mxc://", "image://MxcImage/") : ""
displayName: modelData ? modelData.userName : ""
userid: modelData ? modelData.userId : ""
@ -292,7 +292,7 @@ ScrollView {
text: modelData ? TimelineManager.userStatus(modelData.userId) : ""
textFormat: Text.PlainText
elide: Text.ElideRight
width: chat.delegateMaxWidth - parent.spacing * 2 - userName.implicitWidth - avatarSize
width: chat.delegateMaxWidth - parent.spacing * 2 - userName.implicitWidth - Nheko.avatarSize
font.italic: true
}