From 00019bf86bf22d8e417eeb40290d12f20b09298f Mon Sep 17 00:00:00 2001 From: Gabe Kangas Date: Wed, 17 Nov 2021 17:56:39 -0800 Subject: [PATCH] Allow for rendering a wider color range for messages --- webroot/js/utils/user-colors.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/webroot/js/utils/user-colors.js b/webroot/js/utils/user-colors.js index f3bb7619e..209ed9955 100644 --- a/webroot/js/utils/user-colors.js +++ b/webroot/js/utils/user-colors.js @@ -1,6 +1,6 @@ export function messageBubbleColorForHue(hue) { // Tweak these to adjust the result of the color - const saturation = 45; + const saturation = 50; const lightness = 50; const alpha = 'var(--message-background-alpha)'; @@ -9,9 +9,9 @@ export function messageBubbleColorForHue(hue) { export function textColorForHue(hue) { // Tweak these to adjust the result of the color - const saturation = 80; + const saturation = 70; const lightness = 80; - const alpha = 0.8; + const alpha = 0.85; return `hsla(${hue}, ${saturation}%, ${lightness}%, ${alpha})`; }