Browse Source

Fixed scenarios

Tig 1 year ago
parent
commit
aec7dac9cd
2 changed files with 6 additions and 4 deletions
  1. 4 2
      Terminal.Gui/Views/DatePicker.cs
  2. 2 2
      UICatalog/Scenarios/HotKeys.cs

+ 4 - 2
Terminal.Gui/Views/DatePicker.cs

@@ -219,7 +219,8 @@ public class DatePicker : View
             Text = GetBackButtonText (),
             WantContinuousButtonPressed = true,
             NoPadding = true,
-            NoDecorations = true
+            NoDecorations = true,
+            ShadowStyle = ShadowStyle.None
         };
 
         _previousMonthButton.Accept += (sender, e) =>
@@ -237,7 +238,8 @@ public class DatePicker : View
             Text = GetForwardButtonText (),
             WantContinuousButtonPressed = true,
             NoPadding = true,
-            NoDecorations = true
+            NoDecorations = true,
+            ShadowStyle = ShadowStyle.None
         };
 
         _nextMonthButton.Accept += (sender, e) =>

+ 2 - 2
UICatalog/Scenarios/HotKeys.cs

@@ -77,7 +77,7 @@ public class HotKeys : Scenario
         {
             Title = "B_utton with Frame (focusable)",
             CanFocus = true,
-            X = Pos.Right (buttonWithFrameLabel) + 1, Y = Pos.Top (buttonWithFrameLabel), Width = 40, Height = 3,
+            X = Pos.Right (buttonWithFrameLabel) + 1, Y = Pos.Top (buttonWithFrameLabel), Width = 40,
             BorderStyle = LineStyle.Dashed
         };
         app.Add (buttonWithFrameFocusable);
@@ -88,7 +88,7 @@ public class HotKeys : Scenario
         var buttonWithFrame = new Button
         {
             Title = "Button with Frame (not focusab_le)",
-            X = Pos.Right (buttonWithFrameLabel) + 1, Y = Pos.Top (buttonWithFrameLabel), Width = 40, Height = 3,
+            X = Pos.Right (buttonWithFrameLabel) + 1, Y = Pos.Top (buttonWithFrameLabel), Width = 40,
             CanFocus = false,
             BorderStyle = LineStyle.Dashed
         };