mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
CmdSummary: Color only used for tty
This commit is contained in:
parent
802ff9df05
commit
9442df8342
1 changed files with 9 additions and 4 deletions
|
@ -139,11 +139,16 @@ int CmdSummary::execute (std::string& output)
|
||||||
view.add (Column::factory ("string.right", STRING_CMD_SUMMARY_COMPLETE));
|
view.add (Column::factory ("string.right", STRING_CMD_SUMMARY_COMPLETE));
|
||||||
view.add (Column::factory ("string.left_fixed", "0% 100%"));
|
view.add (Column::factory ("string.left_fixed", "0% 100%"));
|
||||||
|
|
||||||
Color bar_color (context.config.get ("color.summary.bar"));
|
Color bar_color;
|
||||||
Color bg_color (context.config.get ("color.summary.background"));
|
Color bg_color;
|
||||||
Color label (context.config.get ("color.label"));
|
if (context.color ())
|
||||||
|
{
|
||||||
|
bar_color = Color (context.config.get ("color.summary.bar"));
|
||||||
|
bg_color = Color (context.config.get ("color.summary.background"));
|
||||||
|
|
||||||
view.colorHeader (label);
|
Color label (context.config.get ("color.label"));
|
||||||
|
view.colorHeader (label);
|
||||||
|
}
|
||||||
|
|
||||||
int barWidth = 30;
|
int barWidth = 30;
|
||||||
std::vector <std::string> processed;
|
std::vector <std::string> processed;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue