CmdHistory: Color only used for tty
This commit is contained in:
@@ -111,8 +111,11 @@ int CmdHistoryMonthly::execute (std::string& output)
|
|||||||
view.add (Column::factory ("string.right", STRING_CMD_HISTORY_DEL));
|
view.add (Column::factory ("string.right", STRING_CMD_HISTORY_DEL));
|
||||||
view.add (Column::factory ("string.right", STRING_CMD_HISTORY_NET));
|
view.add (Column::factory ("string.right", STRING_CMD_HISTORY_NET));
|
||||||
|
|
||||||
Color label (context.config.get ("color.label"));
|
if (context.color ())
|
||||||
view.colorHeader (label);
|
{
|
||||||
|
Color label (context.config.get ("color.label"));
|
||||||
|
view.colorHeader (label);
|
||||||
|
}
|
||||||
|
|
||||||
int totalAdded = 0;
|
int totalAdded = 0;
|
||||||
int totalCompleted = 0;
|
int totalCompleted = 0;
|
||||||
@@ -272,8 +275,11 @@ int CmdHistoryAnnual::execute (std::string& output)
|
|||||||
view.add (Column::factory ("string.right", STRING_CMD_HISTORY_DEL));
|
view.add (Column::factory ("string.right", STRING_CMD_HISTORY_DEL));
|
||||||
view.add (Column::factory ("string.right", STRING_CMD_HISTORY_NET));
|
view.add (Column::factory ("string.right", STRING_CMD_HISTORY_NET));
|
||||||
|
|
||||||
Color label (context.config.get ("color.label"));
|
if (context.color ())
|
||||||
view.colorHeader (label);
|
{
|
||||||
|
Color label (context.config.get ("color.label"));
|
||||||
|
view.colorHeader (label);
|
||||||
|
}
|
||||||
|
|
||||||
int totalAdded = 0;
|
int totalAdded = 0;
|
||||||
int totalCompleted = 0;
|
int totalCompleted = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user