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

This commit is contained in:
Joseph Donofry 2023-10-13 14:20:43 -04:00
parent 07fd58e59f
commit 4ec463bee2
No known key found for this signature in database
GPG key ID: E8A1D78EF044B0CB
2 changed files with 4 additions and 3 deletions

View file

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

View file

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