Use hsluv instead of hsla for avatar colors
This commit is contained in:
parent
7624ce5fcb
commit
9332eadbbf
|
@ -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,
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user