fix(profile): the profile image is blurred in different places

Closes #6295

- use the recently introduced `profileLargeImage` property for bigger user
images
- fix some QML(lint) warnings
This commit is contained in:
Lukáš Tinkl 2022-07-06 21:07:33 +02:00 committed by Lukáš Tinkl
parent aa804ffaef
commit f798d6d0e6
4 changed files with 4 additions and 5 deletions

View File

@ -60,7 +60,7 @@ ColumnLayout {
displayName: profileStore.name
pubkey: profileStore.pubkey
icon: profileStore.icon
icon: profileStore.profileLargeImage
imageSize: ProfileHeader.ImageSize.Big
displayNameVisible: false

View File

@ -32,7 +32,7 @@ Item {
property bool pubkeyVisibleWithCopy: false
property bool emojiHashVisible: true
property bool editImageButtonVisible: false
readonly property bool compact: root.imageSize == ProfileHeader.ImageSize.Compact
readonly property bool compact: root.imageSize === ProfileHeader.ImageSize.Compact
signal clicked()
signal editClicked()
@ -47,7 +47,6 @@ Item {
case ProfileHeader.ImageSize.Compact: return compact;
case ProfileHeader.ImageSize.Middle: return normal;
case ProfileHeader.ImageSize.Big: return big;
return normal;
}
}
}

View File

@ -77,7 +77,7 @@ StatusModal {
userName = contactDetails.alias;
userNickname = contactDetails.localNickname;
userEnsName = contactDetails.name;
userIcon = contactDetails.displayIcon;
userIcon = contactDetails.largeImage;
userIsEnsVerified = contactDetails.ensVerified;
userIsBlocked = contactDetails.isBlocked;
isAddedContact = contactDetails.isContact;

View File

@ -160,7 +160,7 @@ Rectangle {
displayName: root.userDisplayName
pubkey: root.userPublicKey
icon: root.isCurrentUser ? root.profileStore.icon : root.userIcon
icon: root.isCurrentUser ? root.profileStore.profileLargeImage : root.userIcon
trustStatus: root.userTrustStatus
isContact: root.isAddedContact
store: root.profileStore