Merge branch 'master' of https://github.com/Lurkki14/nheko
This commit is contained in:
commit
bafe181010
@ -436,20 +436,11 @@ Page {
|
|||||||
anchors.right: parent.right
|
anchors.right: parent.right
|
||||||
Rectangle {
|
Rectangle {
|
||||||
id: typingRect
|
id: typingRect
|
||||||
Connections {
|
|
||||||
target: chat.model
|
|
||||||
onTypingUsersChanged: {
|
|
||||||
if (chat.model && chat.model.typingUsers < 1)
|
|
||||||
typingRect.color = "transparent"
|
|
||||||
else
|
|
||||||
typingRect.color = colors.window
|
|
||||||
}
|
|
||||||
}
|
|
||||||
anchors.left: parent.left
|
anchors.left: parent.left
|
||||||
anchors.right: parent.right
|
anchors.right: parent.right
|
||||||
anchors.leftMargin: 10
|
anchors.leftMargin: 10
|
||||||
anchors.rightMargin: 10
|
anchors.rightMargin: 10
|
||||||
color: "transparent"
|
color: (chat.model && chat.model.typingUsers.length > 0) ? colors.window : "transparent"
|
||||||
height: fontMetrics.height + 10
|
height: fontMetrics.height + 10
|
||||||
Label {
|
Label {
|
||||||
id: typingDisplay
|
id: typingDisplay
|
||||||
|
Loading…
Reference in New Issue
Block a user