Skip to content

Commit

Permalink
Prototype close button on Border (disabled for now)
Browse files Browse the repository at this point in the history
  • Loading branch information
tig committed Mar 5, 2024
1 parent 98eba9a commit fbcff15
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Terminal.Gui/View/View.cs
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,7 @@ public virtual void BeginInit ()
//{
// Border.CloseButton = new Button ()
// {
// Text = " ", // So it's not visible to not break unit tests
// Text = "X",
// X = Pos.AnchorEnd (1),
// Y = 0,
// CanFocus = true,
Expand Down
2 changes: 1 addition & 1 deletion UICatalog/Scenarios/Adornments.cs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public override void Init ()
textFieldInPadding.Accept += (s, e) => MessageBox.Query (20, 7, "TextField", textFieldInPadding.Text, "Ok");
view.Padding.Add (textFieldInPadding);

var btnButtonInPadding = new Button { X = Pos.Center (), Y = 1, Text = "_Button in Padding" };
var btnButtonInPadding = new Button { X = Pos.Center (), Y = Pos.Center (), Text = "_Button in Padding" };
btnButtonInPadding.Accept += (s, e) => MessageBox.Query (20, 7, "Hi", "Button in Padding Pressed!", "Ok");
view.Padding.Add (btnButtonInPadding);

Expand Down

0 comments on commit fbcff15

Please sign in to comment.