Feature #478
- Added feature #478, which uses the colorization rules in the 'info' report.
This commit is contained in:
@@ -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"));
|
||||
|
||||
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user