- TW-1360 color.until directive missing.
This commit is contained in:
Paul Beckingham 2014-07-04 10:00:26 -04:00
parent 5a6f81a1fd
commit 1ac7dc0d5d
6 changed files with 15 additions and 2 deletions

View file

@ -151,6 +151,13 @@ static void colorizeScheduled (Task& task, const Color& base, Color& c)
c.blend (base);
}
////////////////////////////////////////////////////////////////////////////////
static void colorizeUntil (Task& task, const Color& base, Color& c)
{
if (task.has ("until"))
c.blend (base);
}
////////////////////////////////////////////////////////////////////////////////
static void colorizeTag (Task& task, const std::string& rule, const Color& base, Color& c)
{
@ -312,6 +319,7 @@ void autoColorize (Task& task, Color& c)
else if (*r == "color.pri.none") colorizePriorityNone (task, base, c);
else if (*r == "color.active") colorizeActive (task, base, c);
else if (*r == "color.scheduled") colorizeScheduled (task, base, c);
else if (*r == "color.until") colorizeUntil (task, base, c);
else if (*r == "color.project.none") colorizeProjectNone (task, base, c);
else if (*r == "color.tag.none") colorizeTagNone (task, base, c);
else if (*r == "color.due") colorizeDue (task, base, c);