mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-28 22:47:20 +02:00
Dependencies
- Added new color.blocked to all themes (placeholders for now). - Added new color rule for applying color.blocked.
This commit is contained in:
parent
8c3fd40c1b
commit
fdf7d2203f
9 changed files with 17 additions and 3 deletions
|
@ -137,8 +137,9 @@ std::string Config::defaults =
|
|||
"color.pri.H=rgb255 # [9] Color of priority:H tasks\n"
|
||||
"color.pri.M=rgb250 # [9] Color of priority:M tasks\n"
|
||||
"color.pri.L=rgb245 # [9] Color of priority:L tasks\n"
|
||||
"color.tagged=rgb031 # [10] Color of tagged tasks\n"
|
||||
"color.alternate=on color233 # [11] Alternate color for line coloring\n"
|
||||
"color.tagged=rgb031 # [10] Color of tagged tasks\n"
|
||||
"color.blocked=black on white # [11] Color of blocked tasks\n"
|
||||
"color.alternate=on color233 # [12] Alternate color for line coloring\n"
|
||||
#else
|
||||
"color.header=yellow # Color of header messages\n"
|
||||
"color.footnote=yellow # Color of footnote messages\n"
|
||||
|
@ -179,7 +180,8 @@ std::string Config::defaults =
|
|||
"color.pri.M=white # [9] Color of priority:M tasks\n"
|
||||
"color.pri.L= # [9] Color of priority:L tasks\n"
|
||||
"color.tagged=green # [10] Color of tagged tasks\n"
|
||||
"color.alternate= # [11] Alternate color for line coloring\n"
|
||||
"color.blocked=black on white # [11] Color of blocked tasks\n"
|
||||
"color.alternate= # [12] Alternate color for line coloring\n"
|
||||
#endif
|
||||
"\n"
|
||||
"# Shadow file support\n"
|
||||
|
|
|
@ -64,6 +64,11 @@ void autoColorize (Task& task, Color& c)
|
|||
|
||||
Task::status status = task.getStatus ();
|
||||
|
||||
// Colorization of the blocked.
|
||||
if (gsColor["color.blocked"].nontrivial ())
|
||||
if (task.get ("depends") != "")
|
||||
c.blend (gsColor["color.blocked"]);
|
||||
|
||||
// Colorization of the tagged.
|
||||
if (gsColor["color.tagged"].nontrivial ())
|
||||
if (task.getTagCount ())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue