mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2026-01-01 16:59:35 +01:00
Refactored UI Catalog and added tons of unit tests
This commit is contained in:
@@ -20,14 +20,14 @@ namespace UICatalog.Scenarios {
|
||||
Win.Title = this.GetName ();
|
||||
Win.Y = 1; // menu
|
||||
Win.Height = Dim.Fill (1); // status bar
|
||||
Top.LayoutSubviews ();
|
||||
Application.Top.LayoutSubviews ();
|
||||
|
||||
var menu = new MenuBar (new MenuBarItem [] {
|
||||
new MenuBarItem ("_File", new MenuItem [] {
|
||||
new MenuItem ("_Quit", "", () => Quit()),
|
||||
})
|
||||
});
|
||||
Top.Add (menu);
|
||||
Application.Top.Add (menu);
|
||||
|
||||
treeView = new TreeView () {
|
||||
X = 0,
|
||||
@@ -45,7 +45,7 @@ namespace UICatalog.Scenarios {
|
||||
new StatusItem(Key.CtrlMask | Key.T, "~^T~ Add Root", () => AddRootNode()),
|
||||
new StatusItem(Key.CtrlMask | Key.R, "~^R~ Rename Node", () => RenameNode()),
|
||||
});
|
||||
Top.Add (statusBar);
|
||||
Application.Top.Add (statusBar);
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user