Merge pull request #285 from Lurkki14/master

Use Rectangle for typing users so it doesn't overlap with the timeline
This commit is contained in:
DeepBlueV7.X 2020-09-19 17:02:53 +02:00 committed by GitHub
commit fe325f9266
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 17 additions and 12 deletions

View File

@ -434,18 +434,23 @@ Page {
id: footerContent id: footerContent
anchors.left: parent.left anchors.left: parent.left
anchors.right: parent.right anchors.right: parent.right
Rectangle {
Label { id: typingRect
id: typingDisplay anchors.left: parent.left
anchors.left: parent.left anchors.right: parent.right
anchors.right: parent.right color: (chat.model && chat.model.typingUsers.length > 0) ? colors.window : "transparent"
anchors.leftMargin: 10 height: chatFooter.height
anchors.rightMargin: 10 Label {
id: typingDisplay
color: colors.text anchors.left: parent.left
text: chat.model ? chat.model.formatTypingUsers(chat.model.typingUsers, colors.window) : "" anchors.leftMargin: 10
textFormat: Text.RichText anchors.right: parent.right
} anchors.rightMargin: 10
color: colors.text
text: chat.model ? chat.model.formatTypingUsers(chat.model.typingUsers, colors.window) : ""
textFormat: Text.RichText
}
}
Rectangle { Rectangle {
anchors.left: parent.left anchors.left: parent.left