mirror of
https://github.com/Tyrrrz/CliFx.git
synced 2025-10-25 15:19:17 +00:00
Change how headers are rendered in help text
This commit is contained in:
@@ -62,14 +62,9 @@ namespace CliFx
|
||||
_console.WithForegroundColor(foregroundColor, () => Render(text));
|
||||
}
|
||||
|
||||
void RenderWithColors(string text, ConsoleColor foregroundColor, ConsoleColor backgroundColor)
|
||||
{
|
||||
_console.WithColors(foregroundColor, backgroundColor, () => Render(text));
|
||||
}
|
||||
|
||||
void RenderHeader(string text)
|
||||
{
|
||||
RenderWithColors(text, ConsoleColor.Black, ConsoleColor.DarkGray);
|
||||
RenderWithColor(text, ConsoleColor.Magenta);
|
||||
RenderNewLine();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user