From fbf8fe688e1923619ef2146fb6243b5947d11c96 Mon Sep 17 00:00:00 2001 From: Tomas Babej Date: Mon, 14 Dec 2020 21:23:55 -0500 Subject: [PATCH] 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. --- src/commands/CmdCalendar.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/CmdCalendar.cpp b/src/commands/CmdCalendar.cpp index 0fd5b182d..4ae3f99f9 100644 --- a/src/commands/CmdCalendar.cpp +++ b/src/commands/CmdCalendar.cpp @@ -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;