Use hsluv instead of hsla for avatar colors

This commit is contained in:
miruka 2019-08-21 12:35:55 -04:00
parent 7624ce5fcb
commit 9332eadbbf
2 changed files with 2 additions and 2 deletions

View File

@ -17,7 +17,7 @@ HRectangle {
readonly property var params: Utils.thumbnailParametersFor(width, height) 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 ? Utils.hueFrom(name) : 0,
name ? theme.controls.avatar.background.saturation : 0, name ? theme.controls.avatar.background.saturation : 0,
theme.controls.avatar.background.lightness, theme.controls.avatar.background.lightness,

View File

@ -129,7 +129,7 @@ controls:
int radius: theme.radius int radius: theme.radius
background: background:
int saturation: colors.saturation - 5 int saturation: colors.saturation + 10
int lightness: Math.min(50, colors.intensity * 20) int lightness: Math.min(50, colors.intensity * 20)
real opacity: 1.0 real opacity: 1.0