CmdCalendar: Properly colorize overdue task from today

Even if task is due today, but the due time is in the past, it is
considered overdue according to the implementation of Task::is_overdue
method.

Make coloring in the calendar output consistent.
This commit is contained in:
Tomas Babej 2020-12-14 21:23:55 -05:00
parent bfae79eac7
commit fbf8fe688e
No known key found for this signature in database
GPG key ID: B0747C6578F7D2F5

View file

@ -582,11 +582,11 @@ std::string CmdCalendar::renderMonths (
cellColor.blend (color_due);
break;
case Task::dateEarlierToday:
case Task::dateLaterToday:
cellColor.blend (color_duetoday);
break;
case Task::dateEarlierToday:
case Task::dateBeforeToday:
cellColor.blend (color_overdue);
break;