Pārlūkot izejas kodu

Merged @bdisp fix, and tweaked Scenario for better UI

Tig 1 gadu atpakaļ
vecāks
revīzija
f46dd8f047
1 mainītis faili ar 4 papildinājumiem un 4 dzēšanām
  1. 4 4
      UICatalog/Scenarios/BackgroundWorkerCollection.cs

+ 4 - 4
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)