feat: replace SolidColorBrush with StaticResource references in XAML files.

This commit is contained in:
Zhang Dian
2025-04-30 01:08:26 +08:00
parent feabff636f
commit 37b7d827f1
12 changed files with 34 additions and 37 deletions

View File

@@ -1,19 +1,19 @@
<ResourceDictionary xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<SolidColorBrush x:Key="AvatarForeground" Color="White" />
<SolidColorBrush x:Key="AvatarRedBackground" Color="#D73324" />
<SolidColorBrush x:Key="AvatarPinkBackground" Color="#C72261" />
<SolidColorBrush x:Key="AvatarPurpleBackground" Color="#89289F" />
<SolidColorBrush x:Key="AvatarVioletBackground" Color="#6439B5" />
<SolidColorBrush x:Key="AvatarIndigoBackground" Color="#3444A3" />
<SolidColorBrush x:Key="AvatarBlueBackground" Color="#1D75DB" />
<SolidColorBrush x:Key="AvatarLightBlueBackground" Color="#0A81CC" />
<SolidColorBrush x:Key="AvatarCyanBackground" Color="#0E8999" />
<SolidColorBrush x:Key="AvatarTealBackground" Color="#0A9588" />
<SolidColorBrush x:Key="AvatarGreenBackground" Color="#32953D" />
<SolidColorBrush x:Key="AvatarLightGreenBackground" Color="#679934" />
<SolidColorBrush x:Key="AvatarLimeBackground" Color="#84B00C" />
<SolidColorBrush x:Key="AvatarYellowBackground" Color="#D2AF0F" />
<SolidColorBrush x:Key="AvatarAmberBackground" Color="#CA8F1E" />
<SolidColorBrush x:Key="AvatarOrangeBackground" Color="#D56F0F" />
<SolidColorBrush x:Key="AvatarGreyBackground" Color="#555B61" />
<StaticResource x:Key="AvatarForeground" ResourceKey="SemiColorWhite" />
<StaticResource x:Key="AvatarRedBackground" ResourceKey="SemiRed3" />
<StaticResource x:Key="AvatarPinkBackground" ResourceKey="SemiPink3" />
<StaticResource x:Key="AvatarPurpleBackground" ResourceKey="SemiPurple3" />
<StaticResource x:Key="AvatarVioletBackground" ResourceKey="SemiViolet3" />
<StaticResource x:Key="AvatarIndigoBackground" ResourceKey="SemiIndigo3" />
<StaticResource x:Key="AvatarBlueBackground" ResourceKey="SemiBlue3" />
<StaticResource x:Key="AvatarLightBlueBackground" ResourceKey="SemiLightBlue3" />
<StaticResource x:Key="AvatarCyanBackground" ResourceKey="SemiCyan3" />
<StaticResource x:Key="AvatarTealBackground" ResourceKey="SemiTeal3" />
<StaticResource x:Key="AvatarGreenBackground" ResourceKey="SemiGreen3" />
<StaticResource x:Key="AvatarLightGreenBackground" ResourceKey="SemiLightGreen3" />
<StaticResource x:Key="AvatarLimeBackground" ResourceKey="SemiLime3" />
<StaticResource x:Key="AvatarYellowBackground" ResourceKey="SemiYellow3" />
<StaticResource x:Key="AvatarAmberBackground" ResourceKey="SemiAmber3" />
<StaticResource x:Key="AvatarOrangeBackground" ResourceKey="SemiOrange3" />
<StaticResource x:Key="AvatarGreyBackground" ResourceKey="SemiGrey3" />
</ResourceDictionary>