mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-11 04:15:43 +00:00
Bug 306241 calendarManagement not looking for contrasting color when null. patch by robin.edrenius@telia.com r=jminta
This commit is contained in:
parent
66f22a8899
commit
ba19a55423
@ -323,8 +323,7 @@ function updateStyleSheetForObject(object) {
|
||||
if (object.uri) {
|
||||
color = getCalendarManager().getCalendarPref(object, 'color');
|
||||
rule.style.backgroundColor = color;
|
||||
if (color)
|
||||
rule.style.color = getContrastingTextColor(color);
|
||||
rule.style.color = getContrastingTextColor(color);
|
||||
return;
|
||||
}
|
||||
var categoryPrefBranch = prefService.getBranch("calendar.category.color.");
|
||||
|
Loading…
Reference in New Issue
Block a user