From fe340deed835424f6026b9bd5bd266fcb62bf4c8 Mon Sep 17 00:00:00 2001 From: Charlie Kindel Date: Tue, 26 May 2020 23:08:01 -0600 Subject: [PATCH] final fixes --- Terminal.Gui/Drivers/ConsoleDriver.cs | 4 ++-- UICatalog/Scenarios/Progress.cs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Terminal.Gui/Drivers/ConsoleDriver.cs b/Terminal.Gui/Drivers/ConsoleDriver.cs index 89df8a951..87414ac9d 100644 --- a/Terminal.Gui/Drivers/ConsoleDriver.cs +++ b/Terminal.Gui/Drivers/ConsoleDriver.cs @@ -540,7 +540,7 @@ namespace Terminal.Gui { /// Number of rows to pad on the bottom (if 0 the border will not appear on the bottom). /// Not yet immplemented. /// - public void DrawWindowTitle (Rect region, ustring title, int paddingLeft, int paddingTop, int paddingRight, int paddingBottom, TextAlignment textAlignment = TextAlignment.Left) + public virtual void DrawWindowTitle (Rect region, ustring title, int paddingLeft, int paddingTop, int paddingRight, int paddingBottom, TextAlignment textAlignment = TextAlignment.Left) { var width = region.Width - (paddingLeft + 2) * 2; if (!ustring.IsNullOrEmpty(title) && width > 4 && region.Y + paddingTop <= region.Y + paddingBottom) { @@ -562,7 +562,7 @@ namespace Terminal.Gui { /// Number of rows to pad on the bottom (if 0 the border will not appear on the bottom). /// If set to true and any padding dimension is > 0 the border will be drawn. /// If set to true it will clear the content area (the area inside the padding) with the current color, otherwise the content area will be left untouched. - public void DrawWindowFrame (Rect region, int paddingLeft = 0, int paddingTop = 0, int paddingRight = 0, int paddingBottom = 0, bool border = true, bool fill = false) + public virtual void DrawWindowFrame (Rect region, int paddingLeft = 0, int paddingTop = 0, int paddingRight = 0, int paddingBottom = 0, bool border = true, bool fill = false) { void AddRuneAt (int col, int row, Rune ch) { diff --git a/UICatalog/Scenarios/Progress.cs b/UICatalog/Scenarios/Progress.cs index 629c30202..6351de13c 100644 --- a/UICatalog/Scenarios/Progress.cs +++ b/UICatalog/Scenarios/Progress.cs @@ -23,7 +23,7 @@ namespace UICatalog { internal ProgressBar PulseProgressBar { get; private set; } internal Action StartBtnClick; internal Action StopBtnClick; - internal Action PulseBtnClick; + internal Action PulseBtnClick = null; private Label _startedLabel; internal bool Started { get {