mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
CmdHistory: Color only used for tty
This commit is contained in:
parent
116e5adaf2
commit
d8124d1aad
1 changed files with 10 additions and 4 deletions
|
@ -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_NET));
|
||||
|
||||
Color label (context.config.get ("color.label"));
|
||||
view.colorHeader (label);
|
||||
if (context.color ())
|
||||
{
|
||||
Color label (context.config.get ("color.label"));
|
||||
view.colorHeader (label);
|
||||
}
|
||||
|
||||
int totalAdded = 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_NET));
|
||||
|
||||
Color label (context.config.get ("color.label"));
|
||||
view.colorHeader (label);
|
||||
if (context.color ())
|
||||
{
|
||||
Color label (context.config.get ("color.label"));
|
||||
view.colorHeader (label);
|
||||
}
|
||||
|
||||
int totalAdded = 0;
|
||||
int totalCompleted = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue