2019-07-08 13:52:41 +10:00
|
|
|
// Copyright 2019 miruka
|
|
|
|
// This file is part of harmonyqml, licensed under LGPLv3.
|
|
|
|
|
2019-07-13 19:39:01 +10:00
|
|
|
import QtQuick 2.12
|
|
|
|
import QtQuick.Layouts 1.12
|
2019-04-29 05:18:36 +10:00
|
|
|
import "../Base"
|
2019-04-15 06:12:07 +10:00
|
|
|
|
2019-05-12 07:51:00 +10:00
|
|
|
HRectangle {
|
2019-07-10 14:18:50 +10:00
|
|
|
id: typingMembersBar
|
|
|
|
|
2019-07-07 07:29:32 +10:00
|
|
|
property alias label: typingLabel
|
|
|
|
|
2019-07-07 07:50:55 +10:00
|
|
|
color: theme.chat.typingMembers.background
|
2019-07-16 18:54:12 +10:00
|
|
|
implicitHeight: typingLabel.text ? typingLabel.height : 0
|
2019-07-07 07:35:51 +10:00
|
|
|
|
2019-07-07 07:42:04 +10:00
|
|
|
Behavior on implicitHeight { HNumberAnimation {} }
|
2019-04-29 04:20:30 +10:00
|
|
|
|
2019-07-16 18:54:12 +10:00
|
|
|
HRowLayout {
|
2019-07-16 19:29:47 +10:00
|
|
|
spacing: theme.spacing
|
2019-07-16 18:54:12 +10:00
|
|
|
anchors.fill: parent
|
|
|
|
Layout.leftMargin: spacing
|
|
|
|
Layout.rightMargin: spacing
|
2019-07-16 19:29:47 +10:00
|
|
|
Layout.topMargin: spacing / 4
|
|
|
|
Layout.bottomMargin: spacing / 4
|
2019-04-21 07:36:21 +10:00
|
|
|
|
2019-07-07 07:29:32 +10:00
|
|
|
HIcon {
|
2019-07-10 14:18:50 +10:00
|
|
|
id: icon
|
2019-07-07 07:29:32 +10:00
|
|
|
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
|
2019-07-10 14:18:50 +10:00
|
|
|
elide: Text.ElideRight
|
2019-07-16 18:54:12 +10:00
|
|
|
|
|
|
|
Layout.fillWidth: true
|
2019-07-07 07:29:32 +10:00
|
|
|
}
|
2019-04-15 06:12:07 +10:00
|
|
|
}
|
|
|
|
}
|