From 3f7c15c7afeb029223a7507387a95752428bb689 Mon Sep 17 00:00:00 2001 From: Malte E Date: Fri, 4 Feb 2022 23:12:30 +0100 Subject: Add message bubbles --- resources/qml/delegates/Reply.qml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'resources/qml/delegates') 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 } } -- cgit 1.5.1