From 33743baa1278fc261696fca71aafa6f14a04c5b8 Mon Sep 17 00:00:00 2001 From: miruka Date: Mon, 22 Apr 2019 11:45:08 -0400 Subject: [PATCH] Use same color as avatars for message user names --- harmonyqml/components/chat/MessageContent.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/harmonyqml/components/chat/MessageContent.qml b/harmonyqml/components/chat/MessageContent.qml index 24ab3e18..43c8febb 100644 --- a/harmonyqml/components/chat/MessageContent.qml +++ b/harmonyqml/components/chat/MessageContent.qml @@ -19,7 +19,7 @@ Row { id: nameLabel text: displayName.value || dict.sender background: Rectangle {color: "#DDD"} - color: isOwn ? "teal" : "purple" + color: Qt.hsla(Backend.hueFromString(text), 0.22, 0.4, 1) elide: Text.ElideRight maximumLineCount: 1 Layout.preferredWidth: contentLabel.width