moment/src/qml/Chat/TypingMembersBar.qml

33 lines
734 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
HRectangle {
2019-07-07 07:29:32 +10:00
property alias label: typingLabel
implicitWidth: childrenRect.width
implicitHeight: typingLabel.text ? childrenRect.height : 0
color: HStyle.chat.typingMembers.background
2019-07-07 07:29:32 +10:00
Row {
spacing: 8
leftPadding: spacing
rightPadding: spacing
topPadding: 2
bottomPadding: 2
2019-07-07 07:29:32 +10:00
HIcon {
svgName: "typing" // TODO: animate
height: typingLabel.height
}
2019-04-15 06:12:07 +10:00
2019-07-07 07:29:32 +10:00
HLabel {
id: typingLabel
text: chatPage.roomInfo.typingText
textFormat: Text.StyledText
elide: Text.ElideMiddle
maximumLineCount: 1
}
2019-04-15 06:12:07 +10:00
}
}