From 9e2c6f8d47e7f411b84799d1e93f67312bbbdef1 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sun, 15 Nov 2015 14:20:17 -0500 Subject: [PATCH] CmdReports: Color only used for tty --- src/commands/CmdReports.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/commands/CmdReports.cpp b/src/commands/CmdReports.cpp index 882ccbdaa..e6c30ca9f 100644 --- a/src/commands/CmdReports.cpp +++ b/src/commands/CmdReports.cpp @@ -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_DESC)); - Color label (context.config.get ("color.label")); - view.colorHeader (label); - - // If an alternating row color is specified, notify the table. if (context.color ()) { + Color label (context.config.get ("color.label")); + view.colorHeader (label); + Color alternate (context.config.get ("color.alternate")); view.colorOdd (alternate); view.intraColorOdd (alternate);