Change how headers are rendered in help text

This commit is contained in:
Alexey Golub
2020-01-30 11:44:36 +02:00
parent 104279d6e9
commit 076678a08c

View File

@@ -62,14 +62,9 @@ namespace CliFx
_console.WithForegroundColor(foregroundColor, () => Render(text)); _console.WithForegroundColor(foregroundColor, () => Render(text));
} }
void RenderWithColors(string text, ConsoleColor foregroundColor, ConsoleColor backgroundColor)
{
_console.WithColors(foregroundColor, backgroundColor, () => Render(text));
}
void RenderHeader(string text) void RenderHeader(string text)
{ {
RenderWithColors(text, ConsoleColor.Black, ConsoleColor.DarkGray); RenderWithColor(text, ConsoleColor.Magenta);
RenderNewLine(); RenderNewLine();
} }