summary refs log tree commit diff
path: root/resources/qml/dialogs
diff options
context:
space:
mode:
authorq234rty <q23456yuiop@gmail.com>2024-02-15 22:57:07 +0800
committerq234rty <q23456yuiop@gmail.com>2024-02-16 16:57:31 +0800
commit7b07548b773bcb601f0af21d49a3ec393dddb26e (patch)
tree25a7c1434b64f7f38d3cd939df0361da577487d8 /resources/qml/dialogs
parentTry to fix the blurry encryption indicator on high dpi (diff)
downloadnheko-7b07548b773bcb601f0af21d49a3ec393dddb26e.tar.xz
HiDPI Fixes
Fix various downscaled icons by removing undeeded multiplications by devicePixelRatio in sourceSize.

Fix downscaled PL indicator in the timeline by using the actual size as sourceSize.

Fix various blurry icons by specifying sourceSize.
Diffstat (limited to 'resources/qml/dialogs')
-rw-r--r--resources/qml/dialogs/RoomMembers.qml10
-rw-r--r--resources/qml/dialogs/UserProfile.qml8
2 files changed, 14 insertions, 4 deletions
diff --git a/resources/qml/dialogs/RoomMembers.qml b/resources/qml/dialogs/RoomMembers.qml

index afb76398..95dc9fc3 100644 --- a/resources/qml/dialogs/RoomMembers.qml +++ b/resources/qml/dialogs/RoomMembers.qml
@@ -162,6 +162,10 @@ ApplicationWindow { } PowerlevelIndicator { + Layout.preferredWidth: fontMetrics.lineSpacing * 2 + Layout.preferredHeight: fontMetrics.lineSpacing * 2 + sourceSize.width: width + sourceSize.height: height powerlevel: model.powerlevel permissions: room.permissions } @@ -169,8 +173,10 @@ ApplicationWindow { EncryptionIndicator { id: encryptInd - Layout.preferredWidth: 16 - Layout.preferredHeight: 16 + Layout.preferredWidth: fontMetrics.lineSpacing * 2 + Layout.preferredHeight: fontMetrics.lineSpacing * 2 + sourceSize.width: width + sourceSize.height: height Layout.alignment: Qt.AlignRight visible: room.isEncrypted encrypted: room.isEncrypted diff --git a/resources/qml/dialogs/UserProfile.qml b/resources/qml/dialogs/UserProfile.qml
index 614ecb56..6798bc79 100644 --- a/resources/qml/dialogs/UserProfile.qml +++ b/resources/qml/dialogs/UserProfile.qml
@@ -232,6 +232,8 @@ ApplicationWindow { EncryptionIndicator { Layout.preferredHeight: 32 Layout.preferredWidth: 32 + sourceSize.width: width + sourceSize.height: height encrypted: profile.userVerificationEnabled trust: profile.userVerified Layout.alignment: Qt.AlignHCenter @@ -364,8 +366,8 @@ ApplicationWindow { Layout.preferredHeight: 16 Layout.preferredWidth: 16 visible: profile.isSelf && verificationStatus != VerificationStatus.NOT_APPLICABLE - sourceSize.height: 16 * Screen.devicePixelRatio - sourceSize.width: 16 * Screen.devicePixelRatio + sourceSize.height: height + sourceSize.width: width source: { switch (verificationStatus) { case VerificationStatus.VERIFIED: @@ -446,6 +448,8 @@ ApplicationWindow { Image { Layout.preferredHeight: 16 Layout.preferredWidth: 16 + sourceSize.height: height + sourceSize.width: width visible: !profile.isSelf && verificationStatus != VerificationStatus.NOT_APPLICABLE source: { switch (verificationStatus) {