diff --git a/src/rules.cpp b/src/rules.cpp index b8654ca43..5b2493819 100644 --- a/src/rules.cpp +++ b/src/rules.cpp @@ -39,6 +39,7 @@ extern Context context; static std::map gsColor; static std::vector gsPrecedence; +static Date now; //////////////////////////////////////////////////////////////////////////////// void initializeColorRules () @@ -143,7 +144,8 @@ static void colorizeActive (Task& task, const std::string& rule, Color& c) static void colorizeScheduled (Task& task, const std::string& rule, Color& c) { if (gsColor[rule].nontrivial () && - task.has ("scheduled")) + task.has ("scheduled") && + Date (task.get_date ("scheduled")) < now) c.blend (gsColor[rule]); }