mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-29 17:07:19 +02:00
TW-1360
- TW-1360 color.until directive missing.
This commit is contained in:
parent
5a6f81a1fd
commit
1ac7dc0d5d
6 changed files with 15 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue