fix: fix timeline not able to react to theme change.

This commit is contained in:
rabbitism
2023-04-24 23:40:55 +08:00
parent a19bbe118f
commit 0d59b6cd3e
5 changed files with 44 additions and 13 deletions

View File

@@ -0,0 +1,9 @@
<ResourceDictionary xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<!-- Add Resources Here -->
<SolidColorBrush x:Key="DefaultTimelineIconForeground" Opacity="0.2" Color="White" />
<SolidColorBrush x:Key="OngoingTimelineIconForeground" Color="#FF54A9FF" />
<SolidColorBrush x:Key="SuccessTimelineIconForeground" Color="#FF5DC264" />
<SolidColorBrush x:Key="WarningTimelineIconForeground" Color="#FFFFAE43" />
<SolidColorBrush x:Key="ErrorTimelineIconForeground" Color="#FFFC725A" />
<SolidColorBrush x:Key="TimelineLineBrush" Opacity="0.2" Color="White" />
</ResourceDictionary>

View File

@@ -5,5 +5,6 @@
<MergeResourceInclude Source="Banner.axaml" />
<MergeResourceInclude Source="Divider.axaml" />
<MergeResourceInclude Source="IPv4Box.axaml" />
<MergeResourceInclude Source="Timeline.axaml" />
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>

View File

@@ -5,4 +5,5 @@
<SolidColorBrush x:Key="SuccessTimelineIconForeground" Color="#FF3BB346" />
<SolidColorBrush x:Key="WarningTimelineIconForeground" Color="#FFFC8800" />
<SolidColorBrush x:Key="ErrorTimelineIconForeground" Color="#FFF93920" />
<SolidColorBrush x:Key="TimelineLineBrush" Opacity="0.13" Color="#FF2E3238" />
</ResourceDictionary>