$backgroundColor = $share->get('color');
if (!empty($backgroundColor)) {
$this->_backgroundColor = $backgroundColor;
- $this->_foregroundColor = Horde_Image::brightness($this->_backgroundColor) < 128 ? '#f6f6f6' : '#000';
+ $this->_foregroundColor = Horde_Image::brightness($this->_backgroundColor) < 128 ? '#fff' : '#000';
}
}
*/
public static function foregroundColor($calendar)
{
- return Horde_Image::brightness(self::backgroundColor($calendar)) < 128 ? '#f6f6f6' : '#000';
+ return Horde_Image::brightness(self::backgroundColor($calendar)) < 128 ? '#fff' : '#000';
}
/**