From 541bca25b4c19ec095fb58edc7e53e17277ac460 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Wed, 11 Nov 2015 18:01:35 +0000 Subject: [PATCH] Change when we switch to white text to use black a little more --- calendar/js/et2_widget_event.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/calendar/js/et2_widget_event.js b/calendar/js/et2_widget_event.js index 1b67a923ee..e0896aa05c 100644 --- a/calendar/js/et2_widget_event.js +++ b/calendar/js/et2_widget_event.js @@ -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)