From fb49513edbffad7a99f09d3f451453ca351c248a Mon Sep 17 00:00:00 2001 From: BDisp Date: Tue, 6 Jul 2021 13:33:28 +0100 Subject: [PATCH] Improving the InvertColors scenario. Thanks @tznind. --- UICatalog/Scenarios/InvertColors.cs | 40 +++++++++++++++++++++-------- 1 file changed, 29 insertions(+), 11 deletions(-) diff --git a/UICatalog/Scenarios/InvertColors.cs b/UICatalog/Scenarios/InvertColors.cs index 4e185be04..3e70a6ebc 100644 --- a/UICatalog/Scenarios/InvertColors.cs +++ b/UICatalog/Scenarios/InvertColors.cs @@ -1,4 +1,7 @@ -using Terminal.Gui; +using System; +using System.Collections.Generic; +using System.Linq; +using Terminal.Gui; namespace UICatalog { [ScenarioMetadata (Name: "Invert Colors", Description: "Invert the foreground and the background colors.")] @@ -8,23 +11,38 @@ namespace UICatalog { { Win.ColorScheme = Colors.TopLevel; - var color = Application.Driver.MakeAttribute (Color.Red, Color.Blue); + List