From 3f9d25252c1de27f95989d541ee440e4757fd79b Mon Sep 17 00:00:00 2001 From: Aptivi CEO Date: Wed, 2 Oct 2024 23:27:21 +0300 Subject: [PATCH] imp - Transparency is checked again --- We've restored the value checks for transparency. --- Type: imp Breaking: False Doc Required: False Backport Required: False Part: 1/1 --- VisualCard.Calendar/Parsers/VCalendarParserTools.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VisualCard.Calendar/Parsers/VCalendarParserTools.cs b/VisualCard.Calendar/Parsers/VCalendarParserTools.cs index 704b8c5..d949a0e 100644 --- a/VisualCard.Calendar/Parsers/VCalendarParserTools.cs +++ b/VisualCard.Calendar/Parsers/VCalendarParserTools.cs @@ -311,7 +311,7 @@ internal static (PartType type, object enumeration, Type? enumType, Func (PartType.Strings, CalendarStringsEnum.Status, null, null, "", "", "text", [], allowedStatuses), VCalendarConstants._summarySpecifier => (PartType.Strings, CalendarStringsEnum.Summary, null, null, "", "", "text", [], []), VCalendarConstants._descriptionSpecifier => (PartType.Strings, CalendarStringsEnum.Description, null, null, "", "", "text", [], []), - VCalendarConstants._transparencySpecifier => (PartType.Strings, CalendarStringsEnum.Transparency, null, null, "", "", "text", [], []), + VCalendarConstants._transparencySpecifier => (PartType.Strings, CalendarStringsEnum.Transparency, null, null, "", "", calendarVersion.Major == 2 ? "text" : "integer", [], calendarVersion.Major == 2 ? ["TRANSPARENT", "OPAQUE"] : []), VCalendarConstants._actionSpecifier => (PartType.Strings, CalendarStringsEnum.Action, null, null, "", "", "text", [], []), VCalendarConstants._triggerSpecifier => (PartType.Strings, CalendarStringsEnum.Trigger, null, null, "", "", "duration", [], []), VCalendarConstants._tzidSpecifier => (PartType.Strings, CalendarStringsEnum.TimeZoneId, null, null, "", "", "text", [], []),