Fix (hopefully) HiDPI scaling issues with edit and encryption icons

pull/1583/head
Joseph Donofry 1 year ago
parent 07fd58e59f
commit 4ec463bee2
No known key found for this signature in database
GPG Key ID: E8A1D78EF044B0CB
  1. 2
      resources/qml/EncryptionIndicator.qml
  2. 5
      resources/qml/TimelineMetadata.qml

@ -59,8 +59,6 @@ Image {
return sourceUrl + (stateImg.hovered ? unencryptedHoverColor : unencryptedColor);
}
}
sourceSize.height: height
sourceSize.width: width
width: 16
HoverHandler {

@ -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

Loading…
Cancel
Save