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:
@@ -582,11 +582,11 @@ std::string CmdCalendar::renderMonths (
|
|||||||
cellColor.blend (color_due);
|
cellColor.blend (color_due);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case Task::dateEarlierToday:
|
|
||||||
case Task::dateLaterToday:
|
case Task::dateLaterToday:
|
||||||
cellColor.blend (color_duetoday);
|
cellColor.blend (color_duetoday);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case Task::dateEarlierToday:
|
||||||
case Task::dateBeforeToday:
|
case Task::dateBeforeToday:
|
||||||
cellColor.blend (color_overdue);
|
cellColor.blend (color_overdue);
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user