SummaryColors: Add colors to summary

Signed-off-by: Lim Ding Wen <limdingwen@gmail.com>
This commit is contained in:
Lim Ding Wen 2021-11-11 01:36:14 +08:00 committed by Thomas Lauf
parent e90e243496
commit aa08d0a3f2
2 changed files with 5 additions and 1 deletions

View file

@ -22,6 +22,10 @@ The ':ids' hint adds an 'ID' column to the summary report output for interval mo
Determines whether relevant holidays are shown beneath the report. Determines whether relevant holidays are shown beneath the report.
Default value is 'yes'. Default value is 'yes'.
**tags.**__<tag>__**.color**::
Assigns a specific foreground and background color to a tag.
Examples of valid colors include 'white', 'gray8', 'black on yellow', and 'rgb345'.
== SEE ALSO == SEE ALSO
**timew-day**(1), **timew-day**(1),
**timew-lengthen**(1), **timew-lengthen**(1),

View file

@ -155,7 +155,7 @@ int CmdSummary (
table.set (row, 3, format ("@{1}", track.id), colorID); table.set (row, 3, format ("@{1}", track.id), colorID);
} }
table.set (row, (ids ? 4 : 3), tags); table.set (row, (ids ? 4 : 3), tags, intervalColor(track.tags(), tag_colors));
if (show_annotation) if (show_annotation)
{ {