Skip to content
Snippets Groups Projects
Commit e49691fe authored by Jussi Kuokkanen's avatar Jussi Kuokkanen
Browse files

use Rectangle for typing users so it doesn't overlap with the timeline

parent bfcfa79d
No related branches found
No related tags found
No related merge requests found
......@@ -324,18 +324,33 @@ Page {
id: footerContent
anchors.left: parent.left
anchors.right: parent.right
Label {
id: typingDisplay
anchors.left: parent.left
anchors.right: parent.right
anchors.leftMargin: 10
anchors.rightMargin: 10
color: colors.text
text: chat.model ? chat.model.formatTypingUsers(chat.model.typingUsers, colors.window) : ""
textFormat: Text.RichText
}
Rectangle {
id: typingRect
Connections {
target: chat.model
onTypingUsersChanged: {
if (chat.model && chat.model.formatTypingUsers(chat.model.typingUsers,
colors.window) === "")
typingRect.color = "transparent"
else
typingRect.color = colors.window
}
}
anchors.left: parent.left
anchors.right: parent.right
anchors.leftMargin: 10
anchors.rightMargin: 10
color: "transparent"
height: fontMetrics.height
Label {
id: typingDisplay
anchors.left: parent.left
anchors.right: parent.right
color: colors.text
text: chat.model ? chat.model.formatTypingUsers(chat.model.typingUsers, colors.window) : ""
textFormat: Text.RichText
}
}
Rectangle {
anchors.left: parent.left
......
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