Handling of multi-day events, new rendering etc.
This commit is contained in:
Binary file not shown.
@@ -71,7 +71,25 @@ namespace Wino.Core.UWP.Controls
|
||||
{ WinoIconGlyph.Message, "\uE8BD" },
|
||||
{ WinoIconGlyph.New, "\U000F002A" },
|
||||
{ WinoIconGlyph.Blocked,"\uF140" },
|
||||
{ WinoIconGlyph.IMAP, "\uE715" }
|
||||
{ WinoIconGlyph.Calendar, "\uE912" },
|
||||
{ WinoIconGlyph.CalendarToday, "\uE911" },
|
||||
{ WinoIconGlyph.CalendarDay, "\uE913" },
|
||||
{ WinoIconGlyph.CalendarWeek, "\uE914" },
|
||||
{ WinoIconGlyph.CalendarMonth, "\uE91c" },
|
||||
{ WinoIconGlyph.CalendarYear, "\uE917" },
|
||||
{ WinoIconGlyph.WeatherBlow, "\uE907" },
|
||||
{ WinoIconGlyph.WeatherCloudy, "\uE920" },
|
||||
{ WinoIconGlyph.WeatherSunny, "\uE90e" },
|
||||
{ WinoIconGlyph.WeatherRainy, "\uE908" },
|
||||
{ WinoIconGlyph.WeatherSnowy, "\uE90a" },
|
||||
{ WinoIconGlyph.WeatherSnowShowerAtNight, "\uE90c" },
|
||||
{ WinoIconGlyph.WeatherThunderstorm, "\uE906" },
|
||||
{ WinoIconGlyph.CalendarEventRepeat, "\uE915" },
|
||||
{ WinoIconGlyph.CalendarEventMuiltiDay, "\uE91b" },
|
||||
{ WinoIconGlyph.Reminder, "\uE918" },
|
||||
{ WinoIconGlyph.CalendarAttendee, "\uE91a" },
|
||||
{ WinoIconGlyph.CalendarSync, "\uE91d" },
|
||||
{ WinoIconGlyph.CalendarError, "\uE916" },
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -70,7 +70,27 @@ namespace Wino.Core.UWP.Controls
|
||||
Message,
|
||||
New,
|
||||
IMAP,
|
||||
Print
|
||||
Print,
|
||||
Calendar,
|
||||
CalendarToday,
|
||||
CalendarDay,
|
||||
CalendarWeek,
|
||||
CalendarWorkWeek,
|
||||
CalendarMonth,
|
||||
CalendarYear,
|
||||
WeatherBlow,
|
||||
WeatherCloudy,
|
||||
WeatherSunny,
|
||||
WeatherRainy,
|
||||
WeatherSnowy,
|
||||
WeatherSnowShowerAtNight,
|
||||
WeatherThunderstorm,
|
||||
CalendarEventRepeat,
|
||||
CalendarEventMuiltiDay,
|
||||
CalendarError,
|
||||
Reminder,
|
||||
CalendarAttendee,
|
||||
CalendarSync,
|
||||
}
|
||||
|
||||
public class WinoFontIcon : FontIcon
|
||||
|
||||
@@ -265,6 +265,12 @@ namespace Wino.Core.UWP.Services
|
||||
set => SaveProperty(propertyName: nameof(WorkingDayEnd), value);
|
||||
}
|
||||
|
||||
public bool GhostRenderAllDayEvents
|
||||
{
|
||||
get => _configurationService.Get(nameof(GhostRenderAllDayEvents), true);
|
||||
set => SaveProperty(nameof(GhostRenderAllDayEvents), value);
|
||||
}
|
||||
|
||||
public CalendarSettings GetCurrentCalendarSettings()
|
||||
{
|
||||
var workingDays = GetDaysBetween(WorkingDayStart, WorkingDayEnd);
|
||||
@@ -275,7 +281,8 @@ namespace Wino.Core.UWP.Services
|
||||
WorkingHourEnd,
|
||||
HourHeight,
|
||||
Prefer24HourTimeFormat ? DayHeaderDisplayType.TwentyFourHour : DayHeaderDisplayType.TwelveHour,
|
||||
new CultureInfo(WinoTranslationDictionary.GetLanguageFileNameRelativePath(CurrentLanguage)));
|
||||
new CultureInfo(WinoTranslationDictionary.GetLanguageFileNameRelativePath(CurrentLanguage)),
|
||||
GhostRenderAllDayEvents);
|
||||
}
|
||||
|
||||
private List<DayOfWeek> GetDaysBetween(DayOfWeek startDay, DayOfWeek endDay)
|
||||
|
||||
Reference in New Issue
Block a user