Have different background for events and messages

This commit is contained in:
miruka
2019-07-02 23:48:36 -04:00
parent c8347647b9
commit 441c9d0c1d
3 changed files with 5 additions and 8 deletions

View File

@@ -22,7 +22,8 @@ Row {
}
Rectangle {
color: HStyle.chat.message.background
color: isMessage(model) ?
HStyle.chat.message.background : HStyle.chat.event.background
//width: nameLabel.implicitWidth
width: Math.min(

View File

@@ -17,7 +17,6 @@ Column {
}
function isMessage(item) {
item = item || model
return /^RoomMessage($|[A-Z])/.test(item.eventType)
}