Show read receipts inline.

This commit is contained in:
Black Hat
2018-09-15 21:09:53 +08:00
parent 48e614164a
commit 03a8eae491
4 changed files with 28 additions and 20 deletions

View File

@@ -98,6 +98,19 @@ RowLayout {
spacing: 8
Repeater {
model: userMarker
ImageItem {
width: parent.height
height: parent.height
hint: modelData.displayName
defaultColor: Util.stringToColor(modelData.displayName)
image: modelData.avatar
}
}
AutoLabel {
id: timeLabel
@@ -107,24 +120,6 @@ RowLayout {
Material.foreground: "grey"
font.pointSize: 8
}
MaterialIcon {
height: timeLabel.height
visible: userMarker.length > 0
icon: "\ue5ca"
color: highlighted ? "white": Material.foreground
font.pointSize: 12
MouseArea {
anchors.fill: parent
onClicked: {
readMarkerDialog.listModel = userMarker
readMarkerDialog.open()
}
}
}
}
}