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:
Albert Santoni 2015-08-27 20:02:32 -04:00
parent 099fc0107e
commit a08d5b71cf
4 changed files with 6 additions and 3 deletions

View file

@ -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){