use light grey instead of white

This commit is contained in:
Georg Ehrke 2012-07-01 01:02:54 +02:00
parent be11f71d27
commit 6a060ecd23
1 changed files with 1 additions and 1 deletions

View File

@ -303,6 +303,6 @@ class OC_Calendar_Calendar{
$blue = hexdec(substr($calendarcolor,2,2));
//recommendation by W3C
$computation = ((($red * 299) + ($green * 587) + ($blue * 114)) / 1000);
return ($computation > 130)?'black':'white';
return ($computation > 130)?'#000000':'#FAFAFA';
}
}