From aa08d0a3f24ae4dc04c1c6533311cd3b509ccd41 Mon Sep 17 00:00:00 2001 From: Lim Ding Wen Date: Thu, 11 Nov 2021 01:36:14 +0800 Subject: [PATCH] SummaryColors: Add colors to summary Signed-off-by: Lim Ding Wen --- doc/man1/timew-summary.1.adoc | 4 ++++ src/commands/CmdSummary.cpp | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/doc/man1/timew-summary.1.adoc b/doc/man1/timew-summary.1.adoc index b610cc77..13113c5e 100644 --- a/doc/man1/timew-summary.1.adoc +++ b/doc/man1/timew-summary.1.adoc @@ -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. Default value is 'yes'. +**tags.**____**.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 **timew-day**(1), **timew-lengthen**(1), diff --git a/src/commands/CmdSummary.cpp b/src/commands/CmdSummary.cpp index 0d45d05f..432ce67b 100644 --- a/src/commands/CmdSummary.cpp +++ b/src/commands/CmdSummary.cpp @@ -155,7 +155,7 @@ int CmdSummary ( 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) {