Browse Source

Allow user colors to be more red

pull/171/head
Gabe Kangas 5 years ago
parent
commit
2e6d61c7c2
  1. 2
      test/userColorsTest.js
  2. 2
      webroot/js/utils/user-colors.js

2
test/userColorsTest.js

@ -30,7 +30,7 @@ function messageBubbleColorForString(str) { @@ -30,7 +30,7 @@ function messageBubbleColorForString(str) {
const saturation = 75;
const lightness = 65;
const alpha = 1.0;
const hue = parseInt(Math.abs(hash), 16) % 300;
const hue = parseInt(Math.abs(hash), 16) % 360;
return `hsla(${hue}, ${saturation}%, ${lightness}%, ${alpha})`;
}

2
webroot/js/utils/user-colors.js

@ -9,7 +9,7 @@ export function messageBubbleColorForString(str) { @@ -9,7 +9,7 @@ export function messageBubbleColorForString(str) {
const saturation = 75;
const lightness = 65;
const alpha = 1.0;
const hue = parseInt(Math.abs(hash), 16) % 300;
const hue = parseInt(Math.abs(hash), 16) % 360;
return `hsla(${hue}, ${saturation}%, ${lightness}%, ${alpha})`;
}

Loading…
Cancel
Save