diff options
author | DeepBlueV7.X <nicolas.werner@hotmail.de> | 2023-10-04 16:07:50 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-04 16:07:50 +0000 |
commit | f00b246af1936e32438a1b08c1b0f6e95a0ba56e (patch) | |
tree | fa1b38732013c9c65d01299e3246f8be4f5f7695 /resources | |
parent | Merge pull request #1576 from Nheko-Reborn/fixreplies (diff) | |
parent | Fix powerlevel indicator size in the timeline (diff) | |
download | nheko-f00b246af1936e32438a1b08c1b0f6e95a0ba56e.tar.xz |
Merge pull request #1575 from Nheko-Reborn/plindicator
Fix powerlevel indicator size in the timeline
Diffstat (limited to 'resources')
-rw-r--r-- | resources/qml/MessageView.qml | 6 | ||||
-rw-r--r-- | resources/qml/components/PowerlevelIndicator.qml | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/resources/qml/MessageView.qml b/resources/qml/MessageView.qml index a0ff0ff1..894e58b4 100644 --- a/resources/qml/MessageView.qml +++ b/resources/qml/MessageView.qml @@ -570,9 +570,11 @@ Item { PowerlevelIndicator { id: powerlevelIndicator - anchors.left: parent.left - //anchors.horizontalCenter: parent.horizontalCenter + anchors.left: parent.left + anchors.verticalCenter: parent.verticalCenter + height: fontMetrics.ascent + width: height powerlevel: userPowerlevel permissions: room ? room.permissions : null visible: isAdmin || isModerator diff --git a/resources/qml/components/PowerlevelIndicator.qml b/resources/qml/components/PowerlevelIndicator.qml index 4b826284..6a6d89af 100644 --- a/resources/qml/components/PowerlevelIndicator.qml +++ b/resources/qml/components/PowerlevelIndicator.qml @@ -23,8 +23,6 @@ Image { return "image://colorimage/:/icons/icons/ui/person.svg?"; } - sourceSize.width: 16 - sourceSize.height: 16 source: sourceUrl + (ma.hovered ? palette.highlight : palette.buttonText) ToolTip.visible: ma.hovered ToolTip.text: { |