moment/harmonyqml/components/Chat/TypingMembersBar.qml

24 lines
581 B
QML
Raw Normal View History

2019-04-15 06:12:07 +10:00
import QtQuick 2.7
import QtQuick.Layouts 1.3
import "../Base"
2019-04-15 06:12:07 +10:00
import "utils.js" as ChatJS
HGlassRectangle {
property var typingMembers: chatPage.roomInfo.typingMembers
color: HStyle.chat.typingMembers.background
2019-04-15 06:12:07 +10:00
Layout.fillWidth: true
Layout.minimumHeight: usersLabel.text ? usersLabel.implicitHeight : 0
Layout.maximumHeight: Layout.minimumHeight
HLabel {
id: usersLabel
2019-04-15 06:12:07 +10:00
anchors.fill: parent
text: ChatJS.getTypingMembersText(typingMembers, chatPage.userId)
2019-04-15 06:12:07 +10:00
elide: Text.ElideMiddle
maximumLineCount: 1
}
}