mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
CmdReports: Color only used for tty
This commit is contained in:
parent
a863abf2b0
commit
9e2c6f8d47
1 changed files with 3 additions and 4 deletions
|
@ -90,12 +90,11 @@ int CmdReports::execute (std::string& output)
|
||||||
view.add (Column::factory ("string", STRING_CMD_REPORTS_REPORT));
|
view.add (Column::factory ("string", STRING_CMD_REPORTS_REPORT));
|
||||||
view.add (Column::factory ("string", STRING_CMD_REPORTS_DESC));
|
view.add (Column::factory ("string", STRING_CMD_REPORTS_DESC));
|
||||||
|
|
||||||
|
if (context.color ())
|
||||||
|
{
|
||||||
Color label (context.config.get ("color.label"));
|
Color label (context.config.get ("color.label"));
|
||||||
view.colorHeader (label);
|
view.colorHeader (label);
|
||||||
|
|
||||||
// If an alternating row color is specified, notify the table.
|
|
||||||
if (context.color ())
|
|
||||||
{
|
|
||||||
Color alternate (context.config.get ("color.alternate"));
|
Color alternate (context.config.get ("color.alternate"));
|
||||||
view.colorOdd (alternate);
|
view.colorOdd (alternate);
|
||||||
view.intraColorOdd (alternate);
|
view.intraColorOdd (alternate);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue