mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
CmdProjects: Color only used for tty
This commit is contained in:
parent
9e2c6f8d47
commit
7dc035d9ff
1 changed files with 5 additions and 2 deletions
|
@ -110,8 +110,11 @@ int CmdProjects::execute (std::string& output)
|
||||||
view.add (Column::factory ("string", STRING_COLUMN_LABEL_PROJECT));
|
view.add (Column::factory ("string", STRING_COLUMN_LABEL_PROJECT));
|
||||||
view.add (Column::factory ("string.right", STRING_COLUMN_LABEL_TASKS));
|
view.add (Column::factory ("string.right", STRING_COLUMN_LABEL_TASKS));
|
||||||
|
|
||||||
Color label (context.config.get ("color.label"));
|
if (context.color ())
|
||||||
view.colorHeader (label);
|
{
|
||||||
|
Color label (context.config.get ("color.label"));
|
||||||
|
view.colorHeader (label);
|
||||||
|
}
|
||||||
|
|
||||||
std::vector <std::string> processed;
|
std::vector <std::string> processed;
|
||||||
for (auto& project : unique)
|
for (auto& project : unique)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue