diff --git a/src/Models/GitIgnoreFile.cs b/src/Models/GitIgnoreFile.cs index 31bd9f3a..a23456b6 100644 --- a/src/Models/GitIgnoreFile.cs +++ b/src/Models/GitIgnoreFile.cs @@ -1,5 +1,6 @@ using System.Collections.Generic; using System.IO; +using Avalonia.Media; namespace SourceGit.Models { @@ -10,6 +11,7 @@ namespace SourceGit.Models public bool IsShared { get; set; } public string File => IsShared ? ".gitignore" : "/info/exclude"; public string Desc => IsShared ? "Shared" : "Private"; + public IBrush Brush => IsShared ? Brushes.Green : Brushes.Gray; public GitIgnoreFile(bool isShared) { diff --git a/src/Views/AddToIgnore.axaml b/src/Views/AddToIgnore.axaml index 1e8a7195..c9129dd6 100644 --- a/src/Views/AddToIgnore.axaml +++ b/src/Views/AddToIgnore.axaml @@ -38,17 +38,17 @@ SelectedItem="{Binding StorageFile, Mode=TwoWay}"> - + - - - - - + + + + +