diff options
author | Joseph Donofry <joedonofry@gmail.com> | 2023-10-13 14:20:43 -0400 |
---|---|---|
committer | Joseph Donofry <joedonofry@gmail.com> | 2023-10-13 14:20:43 -0400 |
commit | 4ec463bee27db56d476f2a80dc9c144b7280d735 (patch) | |
tree | 817943b4d010911afd54454eb8ae9ae085f35a34 /resources/qml | |
parent | Fix forward completer after delegate rework (diff) | |
download | nheko-4ec463bee27db56d476f2a80dc9c144b7280d735.tar.xz |
Fix (hopefully) HiDPI scaling issues with edit and encryption icons
Diffstat (limited to 'resources/qml')
-rw-r--r-- | resources/qml/EncryptionIndicator.qml | 2 | ||||
-rw-r--r-- | resources/qml/TimelineMetadata.qml | 5 |
2 files changed, 4 insertions, 3 deletions
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 |