Skip to content
Snippets Groups Projects
Commit 6c37f219 authored by Marcus Hoffmann's avatar Marcus Hoffmann
Browse files

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: default avatarMarcus Hoffmann <bubu@bubu1.eu>
parent a11b1221
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment