mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-10-30 17:40:47 +03:00
35 lines
879 B
QML
35 lines
879 B
QML
// SPDX-FileCopyrightText: Nheko Contributors
|
|
//
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
import QtQuick 2.9
|
|
import QtQuick.Controls 2.3
|
|
import QtQuick.Layouts 1.2
|
|
import im.nheko 1.0
|
|
|
|
Item {
|
|
Layout.fillWidth: true
|
|
implicitHeight: Math.max(fontMetrics.height * 1.2, typingDisplay.height)
|
|
|
|
Rectangle {
|
|
id: typingRect
|
|
|
|
anchors.fill: parent
|
|
color: palette.base
|
|
visible: (room && room.typingUsers.length > 0)
|
|
z: 3
|
|
|
|
Label {
|
|
id: typingDisplay
|
|
|
|
anchors.bottom: parent.bottom
|
|
anchors.left: parent.left
|
|
anchors.leftMargin: 10
|
|
anchors.right: parent.right
|
|
anchors.rightMargin: 10
|
|
color: palette.text
|
|
text: room ? room.formatTypingUsers(room.typingUsers, palette.base) : ""
|
|
textFormat: Text.RichText
|
|
}
|
|
}
|
|
}
|