Skip to content

Commit

Permalink
imp - Days with events should look "selectable"
Browse files Browse the repository at this point in the history
---

In the interactive calendar TUI, we should be able to make the calendar TUI look like that we're able to select a day with the event.

---

Type: imp
Breaking: False
Doc Required: False
Part: 1/1
  • Loading branch information
AptiviCEO committed Feb 26, 2024
1 parent de38fc0 commit fe7fe3e
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ private static void RenderCalendar((int Year, int Month, int Day, CalendarTypes
if (((EventInstance.IsYearly && CurrentDate >= sDate && CurrentDate <= eDate) ||
(!EventInstance.IsYearly && CurrentDate == nDate)) && !EventMarked)
{
foreground = KernelColorTools.GetColor(KernelColorType.EventDay);
foreground = IsToday ? KernelColorTools.GetColor(KernelColorType.TodayDay) : KernelColorTools.GetColor(KernelColorType.EventDay);
EventMarked = true;
}
}
Expand Down Expand Up @@ -379,7 +379,6 @@ private static void RenderCalendar((int Year, int Month, int Day, CalendarTypes
if (((EventInstance.IsYearly && CurrentDate >= sDate && CurrentDate <= eDate) ||
(!EventInstance.IsYearly && CurrentDate == nDate)) && !EventMarked)
{
foreground = KernelColorTools.GetColor(KernelColorType.EventDay);
EventMarked = true;
eventEntryTop++;
if (eventEntryTop - 1 > eventBoxHeight + eventBoxTop)
Expand Down

0 comments on commit fe7fe3e

Please sign in to comment.