Feature - #292 Alternate line coloration

- Implemented alternate line coloration, triggered by the 'color.alternate'
  configuration variable.
This commit is contained in:
Paul Beckingham 2009-10-05 22:09:19 -04:00
parent 3cd45c3acd
commit 175dd3eb4f
5 changed files with 26 additions and 6 deletions

View file

@ -101,7 +101,6 @@ int handleCustomReport (const std::string& report, std::string &outs)
////////////////////////////////////////////////////////////////////////////////
// This report will eventually become the one report that many others morph into
// via the .taskrc file.
int runCustomReport (
const std::string& report,
const std::string& columnList,
@ -530,6 +529,11 @@ int runCustomReport (
}
}
// If an alternating row color is specified, notify the table.
Color alternate (context.config.get ("color.alternate", ""));
if (alternate.nontrivial ())
table.setTableAlternateColor (alternate);
// Limit the number of rows according to the report definition.
int maximum = context.config.get (std::string ("report.") + report + ".limit", (int)0);