CmdReports: Color only used for tty
This commit is contained in:
@@ -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));
|
||||||
|
|
||||||
Color label (context.config.get ("color.label"));
|
|
||||||
view.colorHeader (label);
|
|
||||||
|
|
||||||
// If an alternating row color is specified, notify the table.
|
|
||||||
if (context.color ())
|
if (context.color ())
|
||||||
{
|
{
|
||||||
|
Color label (context.config.get ("color.label"));
|
||||||
|
view.colorHeader (label);
|
||||||
|
|
||||||
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);
|
||||||
|
|||||||
Reference in New Issue
Block a user