Skip to content

Commit

Permalink
Define Color Scheme
Browse files Browse the repository at this point in the history
This should make for a consistent experience
across terminals. This defines a basic black/white
color scheme.

 #Hacktoberfest
  • Loading branch information
khalidabuhakmeh committed Sep 24, 2020
1 parent 1632375 commit d3db1d9
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/Depends/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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<Node> Dependencies { get; set; }
Expand Down

0 comments on commit d3db1d9

Please sign in to comment.