bug #1508 configurable color output

This commit is contained in:
Nicolas Appriou 2014-02-01 11:12:44 +01:00 committed by Paul Beckingham
parent c7ebe6b3e2
commit 9c0e4053c4
2 changed files with 7 additions and 4 deletions

View file

@ -99,6 +99,7 @@ int CmdShow::execute (std::string& output)
" color.deleted"
" color.due"
" color.due.today"
" color.warning"
" color.error"
" color.footnote"
" color.header"
@ -257,8 +258,8 @@ int CmdShow::execute (std::string& output)
view.add (Column::factory ("string", STRING_CMD_SHOW_CONF_VAR));
view.add (Column::factory ("string", STRING_CMD_SHOW_CONF_VALUE));
Color error ("bold white on red");
Color warning ("black on yellow");
Color error (context.config.get ("color.error"));
Color warning (context.config.get ("color.warning"));
bool issue_error = false;
bool issue_warning = false;