mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
CmdStats: Color only used for tty
This commit is contained in:
parent
79189c448c
commit
a863abf2b0
1 changed files with 5 additions and 2 deletions
|
@ -164,8 +164,11 @@ int CmdStats::execute (std::string& output)
|
|||
view.add (Column::factory ("string", STRING_CMD_STATS_CATEGORY));
|
||||
view.add (Column::factory ("string", STRING_CMD_STATS_DATA));
|
||||
|
||||
Color label (context.config.get ("color.label"));
|
||||
view.colorHeader (label);
|
||||
if (context.color ())
|
||||
{
|
||||
Color label (context.config.get ("color.label"));
|
||||
view.colorHeader (label);
|
||||
}
|
||||
|
||||
int row = view.addRow ();
|
||||
view.set (row, 0, STRING_COLUMN_LABEL_STAT_PE);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue