mirror of
https://github.com/owncast/owncast.git
synced 2024-10-23 13:05:56 +03:00
Allow user colors to be more red
This commit is contained in:
parent
38d93a549a
commit
2e6d61c7c2
2 changed files with 2 additions and 2 deletions
|
@ -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})`;
|
||||
}
|
||||
|
|
|
@ -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…
Reference in a new issue