summary refs log tree commit diff
diff options
context:
space:
mode:
authorJussi Kuokkanen <jussi.kuokkanen@protonmail.com>2020-09-18 15:31:32 +0300
committerJussi Kuokkanen <jussi.kuokkanen@protonmail.com>2020-09-18 15:31:32 +0300
commitbafe1810108abe4cae3be6ff5092c6ab749f7b14 (patch)
tree03fb4f7dc73ab7547d0c1a26c21b077f25409252
parentMerge branch 'master' of https://github.com/Nheko-Reborn/nheko (diff)
parentSet typing Rectangle color directly instead of Connection (diff)
downloadnheko-bafe1810108abe4cae3be6ff5092c6ab749f7b14.tar.xz
Merge branch 'master' of https://github.com/Lurkki14/nheko
-rw-r--r--resources/qml/TimelineView.qml11
1 files changed, 1 insertions, 10 deletions
diff --git a/resources/qml/TimelineView.qml b/resources/qml/TimelineView.qml

index 7c74794b..15a3bf04 100644 --- a/resources/qml/TimelineView.qml +++ b/resources/qml/TimelineView.qml
@@ -436,20 +436,11 @@ Page { anchors.right: parent.right Rectangle { 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.right: parent.right anchors.leftMargin: 10 anchors.rightMargin: 10 - color: "transparent" + color: (chat.model && chat.model.typingUsers.length > 0) ? colors.window : "transparent" height: fontMetrics.height + 10 Label { id: typingDisplay