Skip to content

Commit

Permalink
Merge pull request #16 from khalidabuhakmeh/color-scheme
Browse files Browse the repository at this point in the history
Define Color Scheme
  • Loading branch information
bjorkstromm authored Sep 24, 2020
2 parents 0da62a5 + 14f82c7 commit 0c39d5d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Depends/Depends.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="3.0.0" />
<PackageReference Include="McMaster.Extensions.CommandLineUtils" Version="2.4.2" />
<PackageReference Include="Terminal.Gui" Version="0.24.0" />
<PackageReference Include="Terminal.Gui" Version="0.81.0" />
</ItemGroup>

<ItemGroup>
Expand Down
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.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)
};
}

public ListView DependenciesView { get; set; }
public ImmutableList<Node> Dependencies { get; set; }
Expand Down

0 comments on commit 0c39d5d

Please sign in to comment.