From d3db1d90506f0a5a6f4ad114ba91dbce51aaf53e Mon Sep 17 00:00:00 2001 From: Khalid Abuhakmeh Date: Thu, 24 Sep 2020 15:34:26 -0400 Subject: [PATCH 1/3] Define Color Scheme This should make for a consistent experience across terminals. This defines a basic black/white color scheme. #Hacktoberfest --- src/Depends/Program.cs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/Depends/Program.cs b/src/Depends/Program.cs index 5bd2182..6f73914 100644 --- a/src/Depends/Program.cs +++ b/src/Depends/Program.cs @@ -220,7 +220,16 @@ void UpdateLists() private class CustomWindow : Window { - public CustomWindow() : base("Depends", 0) { } + public CustomWindow() : base("Depends", 0) + { + ColorScheme = new ColorScheme + { + Focus = Application.Driver.MakeAttribute(Color.White, Color.Black), + Normal = Application.Driver.MakeAttribute(Color.Black, Color.White), + HotFocus = Application.Driver.MakeAttribute(Color.White, Color.Black), + HotNormal = Application.Driver.MakeAttribute(Color.Blue, Color.White) + }; + } public ListView DependenciesView { get; set; } public ImmutableList Dependencies { get; set; } From 14c3b86b6c6d3139fee61295a72ead87ea54e607 Mon Sep 17 00:00:00 2001 From: Khalid Abuhakmeh Date: Thu, 24 Sep 2020 15:51:31 -0400 Subject: [PATCH 2/3] Upgrade Gui.cs to fix #9 Shift+Tab --- src/Depends/Depends.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Depends/Depends.csproj b/src/Depends/Depends.csproj index 7bd62cf..a90f826 100644 --- a/src/Depends/Depends.csproj +++ b/src/Depends/Depends.csproj @@ -18,7 +18,7 @@ - + From 14f82c72cbcd644d85707aba623e221dfe67a75b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Bj=C3=B6rkstr=C3=B6m?= Date: Thu, 24 Sep 2020 23:30:06 +0300 Subject: [PATCH 3/3] Invert color scheme --- src/Depends/Program.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Depends/Program.cs b/src/Depends/Program.cs index 6f73914..b501faf 100644 --- a/src/Depends/Program.cs +++ b/src/Depends/Program.cs @@ -224,10 +224,10 @@ public CustomWindow() : base("Depends", 0) { ColorScheme = new ColorScheme { - Focus = Application.Driver.MakeAttribute(Color.White, Color.Black), - Normal = Application.Driver.MakeAttribute(Color.Black, Color.White), - HotFocus = Application.Driver.MakeAttribute(Color.White, Color.Black), - HotNormal = Application.Driver.MakeAttribute(Color.Blue, Color.White) + Focus = Application.Driver.MakeAttribute(Color.Black, Color.White), + Normal = Application.Driver.MakeAttribute(Color.White, Color.Black), + HotFocus = Application.Driver.MakeAttribute(Color.Black, Color.White), + HotNormal = Application.Driver.MakeAttribute(Color.Black, Color.White) }; }