Fix google calendar sync for bg colors.
This commit is contained in:
@@ -184,7 +184,7 @@ namespace Wino.Core.Extensions
|
|||||||
// Bg color must present. Generate one if doesnt exists.
|
// Bg color must present. Generate one if doesnt exists.
|
||||||
// Text color is optional. It'll be overriden by UI for readibility.
|
// Text color is optional. It'll be overriden by UI for readibility.
|
||||||
|
|
||||||
calendar.BackgroundColorHex = string.IsNullOrEmpty(calendarListEntry.BackgroundColor) ? ColorHelpers.GenerateFlatColorHex() : calendar.BackgroundColorHex;
|
calendar.BackgroundColorHex = string.IsNullOrEmpty(calendarListEntry.BackgroundColor) ? ColorHelpers.GenerateFlatColorHex() : calendarListEntry.BackgroundColor;
|
||||||
calendar.TextColorHex = string.IsNullOrEmpty(calendarListEntry.ForegroundColor) ? "#000000" : calendarListEntry.ForegroundColor;
|
calendar.TextColorHex = string.IsNullOrEmpty(calendarListEntry.ForegroundColor) ? "#000000" : calendarListEntry.ForegroundColor;
|
||||||
|
|
||||||
return calendar;
|
return calendar;
|
||||||
|
|||||||
Reference in New Issue
Block a user