mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-24 03:58:49 +03:00
96f791daf1
See also: https://daniel.haxx.se/blog/2023/01/08/copyright-without-years/ https://hynek.me/til/copyright-years/
37 lines
896 B
QML
37 lines
896 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 {
|
|
implicitHeight: Math.max(fontMetrics.height * 1.2, typingDisplay.height)
|
|
Layout.fillWidth: true
|
|
|
|
Rectangle {
|
|
id: typingRect
|
|
|
|
visible: (room && room.typingUsers.length > 0)
|
|
color: Nheko.colors.base
|
|
anchors.fill: parent
|
|
z: 3
|
|
|
|
Label {
|
|
id: typingDisplay
|
|
|
|
anchors.left: parent.left
|
|
anchors.leftMargin: 10
|
|
anchors.right: parent.right
|
|
anchors.rightMargin: 10
|
|
anchors.bottom: parent.bottom
|
|
color: Nheko.colors.text
|
|
text: room ? room.formatTypingUsers(room.typingUsers, Nheko.colors.base) : ""
|
|
textFormat: Text.RichText
|
|
}
|
|
|
|
}
|
|
|
|
}
|