Change when we switch to white text to use black a little more

This commit is contained in:
Nathan Gray 2015-11-11 18:01:35 +00:00
parent ddd82175d2
commit 541bca25b4

View File

@ -255,7 +255,7 @@ var et2_calendar_event = et2_valueWidget.extend([et2_IDetachedDOM],
// Set title color based on background brightness
this.title
.css('background-color', this.div.css('background-color'))
.css('color', jQuery.Color(this.div.css('background-color')).lightness() > 0.5 ? 'black':'white');
.css('color', jQuery.Color(this.div.css('background-color')).lightness() > 0.45 ? 'black':'white');
}
this.icons.appendTo(this.title)