Commit f82ee6dc authored by Jonah Brüchert's avatar Jonah Brüchert Committed by LNJ

ChatPage: Add user avatar in titleDelegate

parent 2cb7c5c0
Pipeline #5718 passed with stages
in 45 minutes and 58 seconds
......@@ -42,6 +42,28 @@ Kirigami.ScrollablePage {
property bool isWritingSpoiler
property string messageToCorrect
titleDelegate: Row {
spacing: 10
Avatar {
avatarUrl: kaidan.avatarStorage.getAvatarUrl(kaidan.messageModel.chatPartner)
name: chatName
width: parent.height
height: width
}
Kirigami.Heading {
text: chatName
color: {
if (isCurrentPage)
Kirigami.Theme.textColor
else
Kirigami.Theme.disabledTextColor
}
}
}
title: chatName
keyboardNavigationEnabled: true
actions.contextualActions: [
......
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