From a9b18da214364fdc836c38f7a600bd00be6edb3e Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sat, 21 Aug 2010 00:30:24 -0400 Subject: [PATCH] Feature #478 - Added feature #478, which uses the colorization rules in the 'info' report. --- ChangeLog | 2 ++ NEWS | 1 + src/custom.cpp | 3 --- src/report.cpp | 4 ++++ 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index e64e8cd4c..4f6fea001 100644 --- a/ChangeLog +++ b/ChangeLog @@ -26,6 +26,8 @@ Added as well synonyms soww/eoww plus new socw/eocw for calendar weeks. + Added feature #471, which makes greater use of projects by reporting changes to the completion percentage when it changes. + + Added feature #478, which uses the colorization rules in the 'info' + report. + New 'depends' column for custom reports. + New 'blocked' report for showing blocked tasks. + Improved man pages (thanks to Andy Lester). diff --git a/NEWS b/NEWS index 8ab6a30ef..cd7a31886 100644 --- a/NEWS +++ b/NEWS @@ -13,6 +13,7 @@ New Features in task 1.9.3 - Import and export of YAML 1.1, including round-trip capability. - New merge capability for syncing task data files. - When completing or modifying a task, the project status is displayed. + - The 'info' report is now colorized. Please refer to the ChangeLog file for full details. There are too many to list here. diff --git a/src/custom.cpp b/src/custom.cpp index 33aba2361..50c1c1c49 100644 --- a/src/custom.cpp +++ b/src/custom.cpp @@ -122,9 +122,6 @@ int handleCustomReport (const std::string& report, std::string &outs) if (context.sequence.size ()) context.filter.applySequence (tasks, context.sequence); - // Initialize colorization for subsequent auto colorization. - initializeColorRules (); - Table table; table.setTableWidth (context.getWidth ()); table.setDateFormat (context.config.get ("dateformat")); diff --git a/src/report.cpp b/src/report.cpp index 664b52ac4..c6b4d3724 100644 --- a/src/report.cpp +++ b/src/report.cpp @@ -406,6 +406,10 @@ int handleInfo (std::string &outs) table.addCell (row, 0, "Description"); table.addCell (row, 1, getFullDescription (*task, "info")); + Color c; + autoColorize (*task, c); + table.setCellColor (row, 1, c); + // status row = table.addRow (); table.addCell (row, 0, "Status");