Basic bubble style

This commit is contained in:
Nicolas Werner 2023-10-09 21:28:39 +02:00
parent fc7a1bdfba
commit a86e364d1a
No known key found for this signature in database
GPG key ID: C8D75E610773F2D9
5 changed files with 445 additions and 71 deletions

View file

@ -68,8 +68,17 @@ Item {
scrolledToThis: eventId === room.scrollTarget && (y + height > chat.y + chat.contentY && y < chat.y + chat.height + chat.contentY)
}
}
Component {
id: bubbleMessageStyle
delegate: defaultMessageStyle
TimelineBubbleMessageStyle {
messageActions: messageActionsC
messageContextMenu: messageContextMenuC
scrolledToThis: eventId === room.scrollTarget && (y + height > chat.y + chat.contentY && y < chat.y + chat.height + chat.contentY)
}
}
delegate: Settings.bubbles ? bubbleMessageStyle : defaultMessageStyle
footer: Item {
anchors.horizontalCenter: parent.horizontalCenter
anchors.margins: Nheko.paddingLarge