From a8803ca1883c1d0d57391960072c0697a0e64815 Mon Sep 17 00:00:00 2001 From: leo Date: Wed, 25 Jun 2025 10:15:39 +0800 Subject: [PATCH] ux: re-design `Add File(s) To Ignore` popup Signed-off-by: leo --- src/Models/GitIgnoreFile.cs | 2 ++ src/Views/AddToIgnore.axaml | 12 ++++++------ 2 files changed, 8 insertions(+), 6 deletions(-) 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}"> - + - - - - - + + + + +