- Added feature #478, which uses the colorization rules in the 'info'
  report.
This commit is contained in:
Paul Beckingham 2010-08-21 00:30:24 -04:00
parent 5c235ce1ef
commit a9b18da214
4 changed files with 7 additions and 3 deletions

View file

@ -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"));

View file

@ -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");