Skip to content

Commit

Permalink
完善主题颜色匹配
Browse files Browse the repository at this point in the history
  • Loading branch information
noberumotto committed Oct 26, 2023
1 parent 59fd696 commit 2f14583
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion UI/Controls/Charts/Charts.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1215,7 +1215,9 @@ private void RenderColumnStyle()
for (int di = 0; di < columnCount; di++)
{
var item = list[di];
string colColor = item.Color == null ? UI.Base.Color.Colors.MainColors[di] : item.Color;
//string colColor = item.Color == null ? UI.Base.Color.Colors.MainColors[di] : item.Color;
string themeColor = ((System.Windows.Media.Color)Application.Current.Resources["ThemeColor"]).ToString();
string colColor = item.Color == null ? themeColor : item.Color;
double value = item.Values[i];


Expand Down
4 changes: 2 additions & 2 deletions UI/Themes/Charts/ChartsItemTypeCard.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
VerticalAlignment="Center"
Margin="0"
RenderTransformOrigin="0.5,0.5"
Fill="#ff305b"
Fill="{DynamicResource ThemeBrush}"

>
<!--<Rectangle.Effect>
Expand All @@ -58,7 +58,7 @@

<Border VerticalAlignment="Top" CornerRadius="5" Padding="5" HorizontalAlignment="Left" Margin="10" >
<Border.Background>
<SolidColorBrush Color="#ff305b" Opacity="0.7"/>
<SolidColorBrush Color="{DynamicResource ThemeColor}" Opacity="0.7"/>
</Border.Background>
<TextBlock x:Name="ValueTextObj" Foreground="White" FontSize="12" />

Expand Down
2 changes: 1 addition & 1 deletion UI/Themes/Charts/ChartsItemTypeMonth.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
<Rectangle.Fill>
<LinearGradientBrush EndPoint="2,1" StartPoint="-2,0">
<GradientStop Color="Transparent"/>
<GradientStop Color="#ff305b" Offset="1"/>
<GradientStop Color="{DynamicResource ThemeColor}" Offset="1"/>
</LinearGradientBrush>
</Rectangle.Fill>
</Rectangle>
Expand Down

0 comments on commit 2f14583

Please sign in to comment.