-
-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
| 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
}Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels