mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-29 14:18:49 +03:00
Set typing Rectangle color directly instead of Connection
Co-authored-by: DeepBlueV7.X <nicolas.werner@hotmail.de>
This commit is contained in:
parent
1f71f7227a
commit
8741e5f36a
1 changed files with 1 additions and 10 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue