From f46dd8f047b85ec96b3668200c8bbb8dae18044c Mon Sep 17 00:00:00 2001 From: Tig Date: Thu, 21 Mar 2024 06:51:17 -0700 Subject: [PATCH] Merged @bdisp fix, and tweaked Scenario for better UI --- UICatalog/Scenarios/BackgroundWorkerCollection.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/UICatalog/Scenarios/BackgroundWorkerCollection.cs b/UICatalog/Scenarios/BackgroundWorkerCollection.cs index 0c9d41f7c..0c1896361 100644 --- a/UICatalog/Scenarios/BackgroundWorkerCollection.cs +++ b/UICatalog/Scenarios/BackgroundWorkerCollection.cs @@ -32,6 +32,8 @@ public class BackgroundWorkerCollection : Scenario IsOverlappedContainer = true; _workerApp = new WorkerApp { Visible = false }; + _workerApp.Border.Thickness = new (0, 1, 0, 0); + _workerApp.Border.LineStyle = LineStyle.Dashed; _menu = new MenuBar { @@ -332,19 +334,17 @@ public class BackgroundWorkerCollection : Scenario public WorkerApp () { Data = "WorkerApp"; + Title = "Worker collection Log"; Width = Dim.Percent (80); Height = Dim.Percent (50); ColorScheme = Colors.ColorSchemes ["Base"]; - var label = new Label { X = Pos.Center (), Y = 0, Text = "Worker collection Log" }; - Add (label); - _listLog = new ListView { X = 0, - Y = Pos.Bottom (label), + Y = 0, Width = Dim.Fill (), Height = Dim.Fill (), Source = new ListWrapper (_log)