summary refs log tree commit diff
path: root/resources/qml/TimelineView.qml
diff options
context:
space:
mode:
authorLurkki14 <44469719+Lurkki14@users.noreply.github.com>2020-09-18 14:55:48 +0300
committerGitHub <noreply@github.com>2020-09-18 14:55:48 +0300
commit8741e5f36a0bb2619fca3aa1edc8bfecdcb836b0 (patch)
tree3a044613bc755db7cdbac6a572675da27fb9c5b7 /resources/qml/TimelineView.qml
parentmake Rectangle to fill the gap between input widget and typing users (diff)
downloadnheko-8741e5f36a0bb2619fca3aa1edc8bfecdcb836b0.tar.xz
Set typing Rectangle color directly instead of Connection
Co-authored-by: DeepBlueV7.X <nicolas.werner@hotmail.de>
Diffstat (limited to 'resources/qml/TimelineView.qml')
-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