rules: Mark coloring implementations that are not consistent with their corresponding virtual tags

This commit is contained in:
Tomas Babej
2020-12-14 21:45:23 -05:00
parent 2adc5994d5
commit 2336c4039d

View File

@@ -116,6 +116,7 @@ static void colorizeTagged (Task& task, const Color& base, Color& c, bool merge)
////////////////////////////////////////////////////////////////////////////////
static void colorizeActive (Task& task, const Color& base, Color& c, bool merge)
{
// TODO: Not consistent with the implementation of the +ACTIVE virtual tag
if (task.has ("start") &&
!task.has ("end"))
applyColor (base, c, merge);
@@ -124,6 +125,7 @@ static void colorizeActive (Task& task, const Color& base, Color& c, bool merge)
////////////////////////////////////////////////////////////////////////////////
static void colorizeScheduled (Task& task, const Color& base, Color& c, bool merge)
{
// TODO: Not consistent with the implementation of the +SCHEDULED virtual tag
if (task.has ("scheduled") &&
Datetime (task.get_date ("scheduled")) <= now)
applyColor (base, c, merge);