From 4b8709598b064dcfc3ab9e8ddce631a44574eaed Mon Sep 17 00:00:00 2001 From: q234rty Date: Tue, 6 Dec 2022 01:48:06 +0800 Subject: [PATCH 1/2] Fix people icon blurriness --- resources/qml/TopBar.qml | 2 -- 1 file changed, 2 deletions(-) diff --git a/resources/qml/TopBar.qml b/resources/qml/TopBar.qml index 4608da4d..bdf19bf9 100644 --- a/resources/qml/TopBar.qml +++ b/resources/qml/TopBar.qml @@ -228,8 +228,6 @@ Pane { Layout.maximumWidth: Nheko.avatarSize - Nheko.paddingMedium contentItem: EncryptionIndicator { - sourceSize.height: parent.Layout.preferredHeight * Screen.devicePixelRatio - sourceSize.width: parent.Layout.preferredWidth * Screen.devicePixelRatio encrypted: isEncrypted trust: trustlevel enabled: false From 93291abfdf0897c626e69f1ffc1585a6170070fd Mon Sep 17 00:00:00 2001 From: q234rty Date: Tue, 6 Dec 2022 01:49:42 +0800 Subject: [PATCH 2/2] Fix downscale --- resources/qml/EncryptionIndicator.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/qml/EncryptionIndicator.qml b/resources/qml/EncryptionIndicator.qml index 0bbdffc6..04d4bace 100644 --- a/resources/qml/EncryptionIndicator.qml +++ b/resources/qml/EncryptionIndicator.qml @@ -34,8 +34,8 @@ Image { width: 16 height: 16 - sourceSize.height: height * Screen.devicePixelRatio - sourceSize.width: width * Screen.devicePixelRatio + sourceSize.height: height + sourceSize.width: width source: { if (encrypted) { switch (trust) {