moment/src/qml/Chat/TypingMembersBar.qml

35 lines
789 B
QML

import QtQuick 2.7
import QtQuick.Layouts 1.3
import "../Base"
HRectangle {
property alias label: typingLabel
color: theme.chat.typingMembers.background
implicitWidth: childrenRect.width
implicitHeight: typingLabel.text ? childrenRect.height : 0
Behavior on implicitHeight { HNumberAnimation {} }
Row {
spacing: 8
leftPadding: spacing
rightPadding: spacing
topPadding: 2
bottomPadding: 2
HIcon {
svgName: "typing" // TODO: animate
height: typingLabel.height
}
HLabel {
id: typingLabel
text: chatPage.roomInfo.typingText
textFormat: Text.StyledText
elide: Text.ElideMiddle
maximumLineCount: 1
}
}
}