From f798d6d0e61e98ecaf7f609872d289724e7636d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Tinkl?= Date: Wed, 6 Jul 2022 21:07:33 +0200 Subject: [PATCH] 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 --- .../AppLayouts/Profile/views/profile/MyProfileSettingsView.qml | 2 +- ui/imports/shared/controls/chat/ProfileHeader.qml | 3 +-- ui/imports/shared/popups/ProfilePopup.qml | 2 +- ui/imports/shared/views/ProfileView.qml | 2 +- 4 files changed, 4 insertions(+), 5 deletions(-) diff --git a/ui/app/AppLayouts/Profile/views/profile/MyProfileSettingsView.qml b/ui/app/AppLayouts/Profile/views/profile/MyProfileSettingsView.qml index 2d1461e439..edbfd70123 100644 --- a/ui/app/AppLayouts/Profile/views/profile/MyProfileSettingsView.qml +++ b/ui/app/AppLayouts/Profile/views/profile/MyProfileSettingsView.qml @@ -60,7 +60,7 @@ ColumnLayout { displayName: profileStore.name pubkey: profileStore.pubkey - icon: profileStore.icon + icon: profileStore.profileLargeImage imageSize: ProfileHeader.ImageSize.Big displayNameVisible: false diff --git a/ui/imports/shared/controls/chat/ProfileHeader.qml b/ui/imports/shared/controls/chat/ProfileHeader.qml index cf7fc322ff..5eac2d9478 100644 --- a/ui/imports/shared/controls/chat/ProfileHeader.qml +++ b/ui/imports/shared/controls/chat/ProfileHeader.qml @@ -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; } } } diff --git a/ui/imports/shared/popups/ProfilePopup.qml b/ui/imports/shared/popups/ProfilePopup.qml index a8595e7cb3..0c1c5b78ec 100644 --- a/ui/imports/shared/popups/ProfilePopup.qml +++ b/ui/imports/shared/popups/ProfilePopup.qml @@ -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; diff --git a/ui/imports/shared/views/ProfileView.qml b/ui/imports/shared/views/ProfileView.qml index f9a2121c46..8d8d790d59 100644 --- a/ui/imports/shared/views/ProfileView.qml +++ b/ui/imports/shared/views/ProfileView.qml @@ -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