Add highlight effect on mentioned messages
This commit is contained in:
@@ -140,8 +140,8 @@ RowLayout {
|
|||||||
}
|
}
|
||||||
background: Rectangle {
|
background: Rectangle {
|
||||||
Kirigami.Theme.colorSet: Kirigami.Theme.Window
|
Kirigami.Theme.colorSet: Kirigami.Theme.Window
|
||||||
color: Kirigami.Theme.backgroundColor
|
color: !model.isHighlighted ? Kirigami.Theme.backgroundColor : Kirigami.Theme.positiveBackgroundColor
|
||||||
opacity: controlContainer.hovered ? 1 : 0
|
opacity: controlContainer.hovered || model.isHighlighted ? 1 : 0
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ QHash<int, QByteArray> MessageEventModel::roleNames() const
|
|||||||
roles[AuthorRole] = "author";
|
roles[AuthorRole] = "author";
|
||||||
roles[ContentRole] = "content";
|
roles[ContentRole] = "content";
|
||||||
roles[ContentTypeRole] = "contentType";
|
roles[ContentTypeRole] = "contentType";
|
||||||
roles[HighlightRole] = "highlight";
|
roles[HighlightRole] = "isHighlighted";
|
||||||
roles[ReadMarkerRole] = "readMarker";
|
roles[ReadMarkerRole] = "readMarker";
|
||||||
roles[SpecialMarksRole] = "marks";
|
roles[SpecialMarksRole] = "marks";
|
||||||
roles[LongOperationRole] = "progressInfo";
|
roles[LongOperationRole] = "progressInfo";
|
||||||
|
|||||||
Reference in New Issue
Block a user