|
private void DrawTitle(ControlDisplay display) |
This was previously reported and fixed in #48 but it looks to be back in the latest release.
In the main branch the DrawTitle() for TextMenu is back to
display.WriteRow(TitleText);
instead of the expected
display.WriteRow(TitleForegroundColor, TitleBackgroundColor, TitleText);
added in The fix.
Overriding the function like this created a hotfix in my program, so it looks like it is the same issue.
protected override void DoDisplayContent(ControlDisplay display)
{
// Save the original title text and set it to null to prevent it from being displayed twice
var titleText = TitleText;
TitleText = null;
// Fixed display of the title text with the color settings back
if (titleText != null)
display.WriteRow(TitleForegroundColor, TitleBackgroundColor, titleText);
base.DoDisplayContent(display);
titleText = TitleText; // Restore the title text
}
ConsoleTools/sources/ConsoleTools/ConsoleTools.Controls.Menus/TextMenu.cs
Line 191 in 350337a
This was previously reported and fixed in #48 but it looks to be back in the latest release.
In the main branch the
DrawTitle()for TextMenu is back toinstead of the expected
added in The fix.
Overriding the function like this created a hotfix in my program, so it looks like it is the same issue.