From d72c6567b0280412925819d64a4ea3a55f90ae6d Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sat, 6 Apr 2013 17:18:17 -0400 Subject: [PATCH] Bug #1222 - #1222 The 'summary' report now obeys the 'color.label' setting (thanks to Steve Rader). --- ChangeLog.230 | 2 ++ src/commands/CmdSummary.cpp | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/ChangeLog.230 b/ChangeLog.230 index e762b3c71..5f5a57c56 100644 --- a/ChangeLog.230 +++ b/ChangeLog.230 @@ -18,6 +18,8 @@ Bugs + #1197 Now 'tasksh' recognizes Ctrl-D to exit. + #1211 The 'dateformat' settings now default to the ISO-8601 standard of 'Y-M-D' (thanks to Robin Björklin). + + #1222 The 'summary' report now obeys the 'color.label' setting (thanks to + Steve Rader). + Fixed bug so that 'limit:page' now considers footnote messages. ------ old releases ------------------------------ diff --git a/src/commands/CmdSummary.cpp b/src/commands/CmdSummary.cpp index 0ec6b5326..9839309f7 100644 --- a/src/commands/CmdSummary.cpp +++ b/src/commands/CmdSummary.cpp @@ -118,6 +118,7 @@ int CmdSummary::execute (std::string& output) } } + // Create a table for output. ViewText view; view.width (context.getWidth ()); @@ -129,6 +130,9 @@ int CmdSummary::execute (std::string& output) Color bar_color (context.config.get ("color.summary.bar")); Color bg_color (context.config.get ("color.summary.background")); + Color label (context.config.get ("color.label")); + + view.colorHeader (label); int barWidth = 30; std::vector processed;