Explorar o código

Button text should be centered by default.

BDisp %!s(int64=4) %!d(string=hai) anos
pai
achega
3c9a4e51c6
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      Terminal.Gui/Views/Button.cs

+ 2 - 0
Terminal.Gui/Views/Button.cs

@@ -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 : '[');