From 366e467578aa6c8c0caafe430f1b738c9a15db90 Mon Sep 17 00:00:00 2001 From: leo Date: Mon, 1 Jul 2024 20:27:59 +0800 Subject: [PATCH] feature: add new color key `Color.DecoratorFG` to customize foreground color of commit refs (#225) --- README.md | 1 + src/Resources/Themes.axaml | 3 +++ src/Views/CommitBaseInfo.axaml | 2 +- src/Views/Histories.axaml | 2 +- 4 files changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 3f75cca6..0a7817c8 100644 --- a/README.md +++ b/README.md @@ -114,6 +114,7 @@ This app supports open repository in external tools listed in the table below. | Color.DecoratorIcon | Foreground color for commit ref icon | | Color.DecoratorBranch | Background color for commit branch ref name | | Color.DecoratorTag | Background color for commit tag ref name | +| Color.DecoratorFG | Foreground color for commit tag ref name | | Color.Border0 | Border color used in some controls, like Window, Tab, Toolbar, etc. | | Color.Border1 | Border color used in inputs, like TextBox, ComboBox, etc. | | Color.Border2 | Border color used in visual lines, like seperators, Rectange, etc. | diff --git a/src/Resources/Themes.axaml b/src/Resources/Themes.axaml index 1f3a0d10..3dc7943f 100644 --- a/src/Resources/Themes.axaml +++ b/src/Resources/Themes.axaml @@ -17,6 +17,7 @@ #FFF8F8F8 #FFFFB835 #FF02C302 + Black #FF836C2E #FFFFFFFF #FFCFCFCF @@ -49,6 +50,7 @@ #FFF8F8F8 #FFFFB835 #FF02C302 + Black #FFFAFAD2 #FF252525 #FF181818 @@ -81,6 +83,7 @@ + diff --git a/src/Views/CommitBaseInfo.axaml b/src/Views/CommitBaseInfo.axaml index 6e0429aa..3d3dd826 100644 --- a/src/Views/CommitBaseInfo.axaml +++ b/src/Views/CommitBaseInfo.axaml @@ -94,7 +94,7 @@ - + diff --git a/src/Views/Histories.axaml b/src/Views/Histories.axaml index d1aae81d..e07b8d0b 100644 --- a/src/Views/Histories.axaml +++ b/src/Views/Histories.axaml @@ -58,7 +58,7 @@ Text="{Binding Name}" FontSize="10" Margin="4,0" - Foreground="Black" + Foreground="{DynamicResource Brush.DecoratorFG}" FontWeight="{Binding Type, Converter={x:Static c:DecoratorTypeConverters.ToFontWeight}}"/>