Calendar colour adjustments
* CC-6099: Improve default show colour * CC-6100: Choose show background colours randomly from a predefined palette
This commit is contained in:
parent
099fc0107e
commit
a08d5b71cf
4 changed files with 6 additions and 3 deletions
|
@ -226,7 +226,9 @@ function intToRGB(i){
|
|||
|
||||
function stringToColor(s)
|
||||
{
|
||||
return intToRGB(hashCode(s));
|
||||
var palette = ['d56f42', 'aad542', '7242d5', '42d563', 'd542be'];
|
||||
return palette[Math.abs(hashCode(s)) % palette.length];
|
||||
//return intToRGB(hashCode(s));
|
||||
}
|
||||
|
||||
function getContrastYIQ(hexcolor){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue