From 4ec463bee27db56d476f2a80dc9c144b7280d735 Mon Sep 17 00:00:00 2001 From: Joseph Donofry Date: Fri, 13 Oct 2023 14:20:43 -0400 Subject: Fix (hopefully) HiDPI scaling issues with edit and encryption icons --- resources/qml/EncryptionIndicator.qml | 2 -- resources/qml/TimelineMetadata.qml | 5 ++++- 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'resources/qml') diff --git a/resources/qml/EncryptionIndicator.qml b/resources/qml/EncryptionIndicator.qml index fb9dc7b5..347220d7 100644 --- a/resources/qml/EncryptionIndicator.qml +++ b/resources/qml/EncryptionIndicator.qml @@ -59,8 +59,6 @@ Image { return sourceUrl + (stateImg.hovered ? unencryptedHoverColor : unencryptedColor); } } - sourceSize.height: height - sourceSize.width: width width: 16 HoverHandler { diff --git a/resources/qml/TimelineMetadata.qml b/resources/qml/TimelineMetadata.qml index 53282fc5..d57c56d9 100644 --- a/resources/qml/TimelineMetadata.qml +++ b/resources/qml/TimelineMetadata.qml @@ -49,7 +49,8 @@ RowLayout { sourceSize.width: parent.iconSize * Screen.devicePixelRatio visible: metadata.isEdited || metadata.eventId == metadata.room.edit width: parent.iconSize - + Layout.preferredWidth: parent.iconSize + Layout.preferredHeight: parent.iconSize HoverHandler { id: editHovered @@ -77,6 +78,8 @@ RowLayout { trust: metadata.trustlevel visible: metadata.room.isEncrypted width: parent.iconSize + Layout.preferredWidth: parent.iconSize + Layout.preferredHeight: parent.iconSize } Label { id: ts -- cgit 1.4.1