diff options
author | Malte E <malte.e@mailbox.org> | 2022-02-04 23:12:30 +0100 |
---|---|---|
committer | Malte E <malte.e@mailbox.org> | 2022-02-04 23:12:30 +0100 |
commit | 3f7c15c7afeb029223a7507387a95752428bb689 (patch) | |
tree | c07ef417ae79701041730fd842450b6e8f895a3a /resources/qml/delegates/Reply.qml | |
parent | Revert removal of width and height in TextMessage and implicitWidth in Messag... (diff) | |
download | nheko-3f7c15c7afeb029223a7507387a95752428bb689.tar.xz |
Add message bubbles
Diffstat (limited to 'resources/qml/delegates/Reply.qml')
-rw-r--r-- | resources/qml/delegates/Reply.qml | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/resources/qml/delegates/Reply.qml b/resources/qml/delegates/Reply.qml index efa959a0..0d4ff041 100644 --- a/resources/qml/delegates/Reply.qml +++ b/resources/qml/delegates/Reply.qml @@ -130,7 +130,9 @@ Item { z: -1 anchors.fill: replyContainer - color: Qt.rgba(userColor.r, userColor.g, userColor.b, 0.1) + property color userColor: TimelineManager.userColor(userId, Nheko.colors.base) + property color bgColor: Nheko.colors.base + color: Qt.rgba(userColor.r*0.1+bgColor.r*0.9,userColor.g*0.1+bgColor.g*0.9,userColor.b*0.1+bgColor.b*0.9,1) // alpha makes this mix with the bubble color } } |