mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 11:00:48 +03:00
Fix (hopefully) HiDPI scaling issues with edit and encryption icons
This commit is contained in:
parent
07fd58e59f
commit
4ec463bee2
2 changed files with 4 additions and 3 deletions
|
@ -59,8 +59,6 @@ Image {
|
||||||
return sourceUrl + (stateImg.hovered ? unencryptedHoverColor : unencryptedColor);
|
return sourceUrl + (stateImg.hovered ? unencryptedHoverColor : unencryptedColor);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
sourceSize.height: height
|
|
||||||
sourceSize.width: width
|
|
||||||
width: 16
|
width: 16
|
||||||
|
|
||||||
HoverHandler {
|
HoverHandler {
|
||||||
|
|
|
@ -49,7 +49,8 @@ RowLayout {
|
||||||
sourceSize.width: parent.iconSize * Screen.devicePixelRatio
|
sourceSize.width: parent.iconSize * Screen.devicePixelRatio
|
||||||
visible: metadata.isEdited || metadata.eventId == metadata.room.edit
|
visible: metadata.isEdited || metadata.eventId == metadata.room.edit
|
||||||
width: parent.iconSize
|
width: parent.iconSize
|
||||||
|
Layout.preferredWidth: parent.iconSize
|
||||||
|
Layout.preferredHeight: parent.iconSize
|
||||||
HoverHandler {
|
HoverHandler {
|
||||||
id: editHovered
|
id: editHovered
|
||||||
|
|
||||||
|
@ -77,6 +78,8 @@ RowLayout {
|
||||||
trust: metadata.trustlevel
|
trust: metadata.trustlevel
|
||||||
visible: metadata.room.isEncrypted
|
visible: metadata.room.isEncrypted
|
||||||
width: parent.iconSize
|
width: parent.iconSize
|
||||||
|
Layout.preferredWidth: parent.iconSize
|
||||||
|
Layout.preferredHeight: parent.iconSize
|
||||||
}
|
}
|
||||||
Label {
|
Label {
|
||||||
id: ts
|
id: ts
|
||||||
|
|
Loading…
Reference in a new issue