Button text should be centered by default.

This commit is contained in:
BDisp
2021-07-15 18:47:13 +01:00
parent 3c1fa5f2b1
commit 3c9a4e51c6

View File

@@ -99,6 +99,8 @@ namespace Terminal.Gui {
void Init (ustring text, bool is_default)
{
TextAlignment = TextAlignment.Centered;
HotKeySpecifier = new Rune ('_');
_leftBracket = new Rune (Driver != null ? Driver.LeftBracket : '[');