Commit fd8f3e21 authored by Michael Lang's avatar Michael Lang Committed by Jonah Brüchert
Browse files

Improve chats display

- Don't show avatar initials if no name.
- Style last message text format.
parent b1dd3ebd
......@@ -80,6 +80,7 @@ Kirigami.ScrollablePage {
source: "image://avatar/" + delegateRoot.phoneNumber
name: delegateRoot.displayName || delegateRoot.displayPhoneNumber
imageMode: Kirigami.Avatar.AdaptiveImageOrInitals
initialsMode: delegateRoot.displayName ? Kirigami.Avatar.UseInitials : Kirigami.Avatar.UseIcon
}
ColumnLayout {
......@@ -97,6 +98,7 @@ Kirigami.ScrollablePage {
id: lastMessage
Layout.fillWidth: true
text: delegateRoot.lastMessage
textFormat: Text.StyledText
maximumLineCount: 1
elide: Qt.ElideRight
color: Qt.tint(Kirigami.Theme.disabledTextColor, Kirigami.Theme.textColor)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment