Add highlight support.
This commit is contained in:
@@ -48,7 +48,7 @@ RowLayout {
|
||||
id: genericBubble
|
||||
|
||||
highlighted: !sentByMe
|
||||
colored: highlighted && eventType === "notice"
|
||||
colored: highlighted && (eventType === "notice" || highlight)
|
||||
|
||||
contentItem: ColumnLayout {
|
||||
id: messageColumn
|
||||
|
||||
@@ -241,6 +241,8 @@ Item {
|
||||
boundsBehavior: Flickable.DragOverBounds
|
||||
maximumFlickVelocity: 2048
|
||||
|
||||
cacheBuffer: 200
|
||||
|
||||
model: MessageEventModel {
|
||||
id: messageEventModel
|
||||
room: currentRoom
|
||||
|
||||
@@ -123,7 +123,7 @@ Item {
|
||||
Rectangle {
|
||||
anchors.fill: parent
|
||||
|
||||
visible: highlighted
|
||||
visible: highlightCount > 0 || highlighted
|
||||
color: Material.accent
|
||||
opacity: 0.1
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user