瀏覽代碼

tileview experiments

Tig Kindel 2 年之前
父節點
當前提交
e685ac05af
共有 3 個文件被更改,包括 12 次插入4 次删除
  1. 2 1
      Terminal.Gui/Views/FrameView.cs
  2. 8 2
      UICatalog/Scenarios/TileViewExperiment.cs
  3. 2 1
      UICatalog/UICatalog.cs

+ 2 - 1
Terminal.Gui/Views/FrameView.cs

@@ -85,9 +85,10 @@ namespace Terminal.Gui {
 		/// <param name="title">Title.</param>
 		/// <param name="views">Views.</param>
 		/// <param name="border">The <see cref="Border"/>.</param>
-		public FrameView (Rect frame, ustring title = null, View [] views = null, Border border = null) : base (frame)
+		public FrameView (Rect frame, ustring title = null, View [] views = null, Border border = null) //: base (frame)
 		{
 			//var cFrame = new Rect (1, 1, Math.Max (frame.Width - 2, 0), Math.Max (frame.Height - 2, 0));
+			
 			Initialize (frame, title, views, border);
 		}
 

+ 8 - 2
UICatalog/Scenarios/TileViewExperiment.cs

@@ -18,7 +18,12 @@ namespace UICatalog.Scenarios {
 		{
 			
 		}
-		
+
+		public override void Init (ColorScheme colorScheme)
+		{
+			Application.Init ();
+		}
+
 		/// <summary>
 		/// Setup the scenario.
 		/// </summary>
@@ -35,8 +40,9 @@ namespace UICatalog.Scenarios {
 				X = 0,
 				Y = 1,
 				Width = Dim.Fill (),
-				Height = Dim.Fill (1),
+				Height = Dim.Fill (),
 			};
+			frame.Border.BorderStyle = BorderStyle.Double;
 			Application.Top.Add (frame);
 
 		}

+ 2 - 1
UICatalog/UICatalog.cs

@@ -213,8 +213,9 @@ namespace UICatalog {
 					Width = Dim.Fill (),
 					Height = Dim.Fill (1),
 					CanFocus = true,
-					Shortcut = Key.CtrlMask | Key.C
+					Shortcut = Key.CtrlMask | Key.C,
 				};
+				ContentPane.Border.BorderStyle = BorderStyle.Single;
 				ContentPane.SetSplitterPos (0, 25);
 				ContentPane.ShortcutAction = () => ContentPane.SetFocus ();