summary refs log tree commit diff
diff options
context:
space:
mode:
authorMarcus Hoffmann <bubu@bubu1.eu>2023-02-16 16:48:27 +0100
committerMarcus Hoffmann <bubu@bubu1.eu>2023-02-21 12:39:43 +0100
commit6c37f219badd2dd4208cbec35e565daf41502500 (patch)
tree97700de2ec466a09a4b62e8b14af30129e29ee7d
parentSwitch to upstream olm error code (diff)
downloadnheko-6c37f219badd2dd4208cbec35e565daf41502500.tar.xz
MessageView: improve styling of presence status
Significantly reduce the font size as to visually indicate this is
additional information and not part of the username or message
text. Align the text with the username field besides it.

Signed-off-by: Marcus Hoffmann <bubu@bubu1.eu>
-rw-r--r--resources/qml/MessageView.qml3
1 files changed, 3 insertions, 0 deletions
diff --git a/resources/qml/MessageView.qml b/resources/qml/MessageView.qml

index 7f39791f..5309fcf4 100644 --- a/resources/qml/MessageView.qml +++ b/resources/qml/MessageView.qml
@@ -348,6 +348,7 @@ Item { } property int remainingWidth: chat.delegateMaxWidth - spacing - messageUserAvatar.width AbstractButton { + id: userNameButton contentItem: ElidedLabel { id: userName_ fullText: userName @@ -373,12 +374,14 @@ Item { Label { id: statusMsg + anchors.baseline: userNameButton.baseline color: Nheko.colors.buttonText text: Presence.userStatus(userId) textFormat: Text.PlainText elide: Text.ElideRight width: userInfo.remainingWidth - userName_.width - parent.spacing font.italic: true + font.pointSize: fontMetrics.font.pointSize * 0.8 Connections { target: Presence