Replace highlight colors with prefixes and suffixes

This commit is contained in:
Andrzej Rybczak
2017-03-28 11:31:09 +02:00
parent 8134e6e23b
commit 19d32648ed
32 changed files with 364 additions and 155 deletions

View File

@@ -69,7 +69,7 @@ void Progressbar::draw(unsigned int elapsed, unsigned int time)
}
else
mvwhline(wFooter->raw(), 0, 0, 0, pb_width);
*wFooter << NC::FormattedColor::End(Config.progressbar_color);
*wFooter << NC::FormattedColor::End<>(Config.progressbar_color);
if (time)
{
*wFooter << Config.progressbar_elapsed_color;
@@ -78,7 +78,7 @@ void Progressbar::draw(unsigned int elapsed, unsigned int time)
*wFooter << Config.progressbar[0];
if (howlong < wFooter->getWidth())
*wFooter << Config.progressbar[1];
*wFooter << NC::FormattedColor::End(Config.progressbar_elapsed_color);
*wFooter << NC::FormattedColor::End<>(Config.progressbar_elapsed_color);
}
}