From 4fa388501ac37e172fb8e7acf7c9c749b5f604da Mon Sep 17 00:00:00 2001 From: leo Date: Sat, 29 Jun 2024 10:47:09 +0800 Subject: [PATCH] ux: add a new color `Color.BadgeFG` for text in badge --- README.md | 1 + src/Resources/Themes.axaml | 3 +++ src/Views/DiffView.axaml | 6 +++--- src/Views/ImageDiffView.axaml | 6 +++--- src/Views/Repository.axaml | 6 +++--- 5 files changed, 13 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 974c0be5..1f73b3c9 100644 --- a/README.md +++ b/README.md @@ -107,6 +107,7 @@ This app supports open repository in external tools listed in the table below. | Color.Popup | Popup panel background color | | Color.Contents | Background color used in inputs, data grids, file content viewer, change lists, text diff viewer, etc. | | Color.Badge | Badge background color | +| Color.BadgeFG | Badge foreground color | | Color.Conflict | Conflict panel background color | | Color.ConflictForeground | Conflict panel foreground color | | Color.Border0 | Border color used in some controls, like Window, Tab, Toolbar, etc. | diff --git a/src/Resources/Themes.axaml b/src/Resources/Themes.axaml index 3123e636..56189cab 100644 --- a/src/Resources/Themes.axaml +++ b/src/Resources/Themes.axaml @@ -12,6 +12,7 @@ #FFF8F8F8 #FFFAFAFA #FFB0CEE8 + #FF1F1F1F #FF6F6F6F #FFF8F8F8 #FF836C2E @@ -41,6 +42,7 @@ #FF2B2B2B #FF1B1B1B #FF8F8F8F + #FFDDDDDD #FF505050 #FFF8F8F8 #FFFAFAD2 @@ -70,6 +72,7 @@ + diff --git a/src/Views/DiffView.axaml b/src/Views/DiffView.axaml index 3e421b31..e3680140 100644 --- a/src/Views/DiffView.axaml +++ b/src/Views/DiffView.axaml @@ -26,7 +26,7 @@ Background="{DynamicResource Brush.Badge}" IsVisible="{Binding FileModeChange, Converter={x:Static StringConverters.IsNotNullOrEmpty}}" ToolTip.Tip="{DynamicResource Text.Diff.FileModeChanged}"> - + @@ -110,7 +110,7 @@ - + @@ -137,7 +137,7 @@ - + diff --git a/src/Views/ImageDiffView.axaml b/src/Views/ImageDiffView.axaml index fdfd3786..70a40dbb 100644 --- a/src/Views/ImageDiffView.axaml +++ b/src/Views/ImageDiffView.axaml @@ -25,7 +25,7 @@ - + @@ -78,7 +78,7 @@ - + @@ -114,7 +114,7 @@ - + diff --git a/src/Views/Repository.axaml b/src/Views/Repository.axaml index 4c84b95a..6e7873e9 100644 --- a/src/Views/Repository.axaml +++ b/src/Views/Repository.axaml @@ -175,7 +175,7 @@ VerticalAlignment="Center" Background="{DynamicResource Brush.Badge}" IsVisible="{Binding WorkingCopyChangesCount, Converter={x:Static c:IntConverters.IsGreaterThanZero}}"> - + @@ -191,7 +191,7 @@ VerticalAlignment="Center" Background="{DynamicResource Brush.Badge}" IsVisible="{Binding StashesCount, Converter={x:Static c:IntConverters.IsGreaterThanZero}}"> - + @@ -284,7 +284,7 @@ - +