From 9332eadbbfca83188aeddf70fba37b9d6c1de872 Mon Sep 17 00:00:00 2001 From: miruka Date: Wed, 21 Aug 2019 12:35:55 -0400 Subject: [PATCH] Use hsluv instead of hsla for avatar colors --- src/qml/Base/HAvatar.qml | 2 +- src/themes/Default.qpl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/qml/Base/HAvatar.qml b/src/qml/Base/HAvatar.qml index b5a875a9..fd44214c 100644 --- a/src/qml/Base/HAvatar.qml +++ b/src/qml/Base/HAvatar.qml @@ -17,7 +17,7 @@ HRectangle { readonly property var params: Utils.thumbnailParametersFor(width, height) - color: avatarImage.visible ? "transparent" : Utils.hsla( + color: avatarImage.visible ? "transparent" : Utils.hsluv( name ? Utils.hueFrom(name) : 0, name ? theme.controls.avatar.background.saturation : 0, theme.controls.avatar.background.lightness, diff --git a/src/themes/Default.qpl b/src/themes/Default.qpl index a7b48e04..5908f485 100644 --- a/src/themes/Default.qpl +++ b/src/themes/Default.qpl @@ -129,7 +129,7 @@ controls: int radius: theme.radius background: - int saturation: colors.saturation - 5 + int saturation: colors.saturation + 10 int lightness: Math.min(50, colors.intensity * 20) real opacity: 1.0