Add highlight support.

This commit is contained in:
Black Hat
2018-09-06 12:34:15 +08:00
parent c3bf4d75e5
commit cfc32289d1
9 changed files with 63 additions and 8 deletions

View File

@@ -48,7 +48,7 @@ RowLayout {
id: genericBubble
highlighted: !sentByMe
colored: highlighted && eventType === "notice"
colored: highlighted && (eventType === "notice" || highlight)
contentItem: ColumnLayout {
id: messageColumn

View File

@@ -241,6 +241,8 @@ Item {
boundsBehavior: Flickable.DragOverBounds
maximumFlickVelocity: 2048
cacheBuffer: 200
model: MessageEventModel {
id: messageEventModel
room: currentRoom

View File

@@ -123,7 +123,7 @@ Item {
Rectangle {
anchors.fill: parent
visible: highlighted
visible: highlightCount > 0 || highlighted
color: Material.accent
opacity: 0.1
}