Use same color as avatars for message user names

This commit is contained in:
miruka 2019-04-22 11:45:08 -04:00
parent 0df46a0415
commit 33743baa12

View File

@ -19,7 +19,7 @@ Row {
id: nameLabel id: nameLabel
text: displayName.value || dict.sender text: displayName.value || dict.sender
background: Rectangle {color: "#DDD"} background: Rectangle {color: "#DDD"}
color: isOwn ? "teal" : "purple" color: Qt.hsla(Backend.hueFromString(text), 0.22, 0.4, 1)
elide: Text.ElideRight elide: Text.ElideRight
maximumLineCount: 1 maximumLineCount: 1
Layout.preferredWidth: contentLabel.width Layout.preferredWidth: contentLabel.width