feat: white & black.

This commit is contained in:
Zhang Dian
2024-12-27 01:23:45 +08:00
parent 40bf46dec5
commit 2424c48070
12 changed files with 34 additions and 23 deletions

View File

@@ -16,10 +16,10 @@
<SolidColorBrush x:Key="ButtonDefaultDisabledBorderBrush" Color="Transparent" />
<!-- end Light -->
<!-- Solid -->
<SolidColorBrush x:Key="ButtonSolidForeground" Color="White" />
<StaticResource x:Key="ButtonSolidForeground" ResourceKey="SemiColorWhite" />
<StaticResource x:Key="ButtonSolidPrimaryBackground" ResourceKey="SemiColorPrimary" />
<StaticResource x:Key="ButtonSolidPrimaryPointeroverBackground" ResourceKey="SemiColorPrimaryPointerover" />
<SolidColorBrush x:Key="ButtonSolidPrimaryPressedForeground" Color="White" />
<StaticResource x:Key="ButtonSolidPrimaryPressedForeground" ResourceKey="SemiColorWhite" />
<StaticResource x:Key="ButtonSolidPrimaryPressedBackground" ResourceKey="SemiColorPrimaryActive" />
<StaticResource x:Key="ButtonSolidSecondaryBackground" ResourceKey="SemiColorSecondary" />
<StaticResource x:Key="ButtonSolidSecondaryPointeroverBackground" ResourceKey="SemiColorSecondaryPointerover" />

View File

@@ -1,8 +1,8 @@
<ResourceDictionary xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<SolidColorBrush x:Key="CarouselButtonForeground" Opacity="0.5" Color="Black" />
<SolidColorBrush x:Key="CarouselButtonPointeroverForeground" Color="Black" />
<SolidColorBrush x:Key="CarouselIndicatorForeground" Opacity="0.5" Color="Black" />
<SolidColorBrush x:Key="CarouselIndicatorPointeroverForeground" Opacity="0.7" Color="Black" />
<SolidColorBrush x:Key="CarouselIndicatorPressedForeground" Color="Black" />
<SolidColorBrush x:Key="CarouselIndicatorSelectedForeground" Color="Black" />
<SolidColorBrush x:Key="CarouselButtonForeground" Opacity="0.5" Color="{StaticResource SemiBlackColor}" />
<SolidColorBrush x:Key="CarouselButtonPointeroverForeground" Color="{StaticResource SemiBlackColor}" />
<SolidColorBrush x:Key="CarouselIndicatorForeground" Opacity="0.5" Color="{StaticResource SemiBlackColor}" />
<SolidColorBrush x:Key="CarouselIndicatorPointeroverForeground" Opacity="0.7" Color="{StaticResource SemiBlackColor}" />
<SolidColorBrush x:Key="CarouselIndicatorPressedForeground" Color="{StaticResource SemiBlackColor}" />
<SolidColorBrush x:Key="CarouselIndicatorSelectedForeground" Color="{StaticResource SemiBlackColor}" />
</ResourceDictionary>

View File

@@ -1,8 +1,8 @@
<ResourceDictionary xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<StaticResource x:Key="CheckBoxForeground" ResourceKey="SemiColorText0" />
<StaticResource x:Key="CheckBoxDisabledForeground" ResourceKey="SemiColorDisabledText" />
<SolidColorBrush x:Key="CheckBoxGlyphFill" Color="White" />
<SolidColorBrush x:Key="CheckBoxGlyphDisabledFill" Color="White" />
<StaticResource x:Key="CheckBoxGlyphFill" ResourceKey="SemiColorWhite" />
<StaticResource x:Key="CheckBoxGlyphDisabledFill" ResourceKey="SemiColorWhite" />
<SolidColorBrush x:Key="CheckBoxDefaultBackground" Color="Transparent" />
<StaticResource x:Key="CheckBoxDefaultBorderBrush" ResourceKey="SemiColorDisabledText" />
<StaticResource x:Key="CheckBoxPointeroverBackground" ResourceKey="SemiColorFill0" />

View File

@@ -17,7 +17,7 @@
<StaticResource x:Key="RadioButtonCheckIconPointeroverBorderBrush" ResourceKey="SemiColorPrimaryPointerover" />
<StaticResource x:Key="RadioButtonCheckIconPressedBorderBrush" ResourceKey="SemiColorPrimaryActive" />
<StaticResource x:Key="RadioButtonCheckIconDisabledBorderBrush" ResourceKey="SemiColorPrimaryDisabled" />
<SolidColorBrush x:Key="RadioButtonCheckGlyphFill" Color="White" />
<StaticResource x:Key="RadioButtonCheckGlyphFill" ResourceKey="SemiColorWhite" />
<StaticResource x:Key="RadioButtonForeground" ResourceKey="SemiColorText0" />
<SolidColorBrush x:Key="RadioButtonDefaultBackground" Color="Transparent" />
<StaticResource x:Key="RadioButtonDefaultBorderBrush" ResourceKey="SemiColorDisabledText" />

View File

@@ -2,7 +2,7 @@
<StaticResource x:Key="SliderTrackForeground" ResourceKey="SemiColorPrimary" />
<StaticResource x:Key="SliderTrackBackground" ResourceKey="SemiColorFill0" />
<SolidColorBrush x:Key="SliderTickForeground" Color="#41464C" />
<SolidColorBrush x:Key="SliderThumbBackground" Color="White" />
<StaticResource x:Key="SliderThumbBackground" ResourceKey="SemiColorWhite" />
<StaticResource x:Key="SliderThumbBorderBrush" ResourceKey="SemiColorPrimary" />
<StaticResource x:Key="SliderThumbPointeroverBorderBrush" ResourceKey="SemiColorPrimaryPointerover" />
<StaticResource x:Key="SliderThumbPressedBorderBrush" ResourceKey="SemiColorPrimaryActive" />

View File

@@ -12,5 +12,5 @@
<StaticResource x:Key="TextBlockCodeBackground" ResourceKey="SemiColorFill1" />
<StaticResource x:Key="TextBlockCodeBorderBrush" ResourceKey="SemiColorBorder" />
<SolidColorBrush x:Key="TextBlockSelectionBackground" Opacity="0.8" Color="#0041C5" />
<SolidColorBrush x:Key="TextBlockSelectionForeground" Color="White" />
<StaticResource x:Key="TextBlockSelectionForeground" ResourceKey="SemiColorWhite" />
</ResourceDictionary>

View File

@@ -1,5 +1,5 @@
<ResourceDictionary xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<SolidColorBrush x:Key="TextBoxTextCaretBrush" Color="White" />
<StaticResource x:Key="TextBoxTextCaretBrush" ResourceKey="SemiColorWhite" />
<SolidColorBrush x:Key="TextBoxDefaultBorderBrush" Color="Transparent" />
<StaticResource x:Key="TextBoxDefaultBackground" ResourceKey="SemiColorFill0" />
<StaticResource x:Key="TextBoxPointeroverBackground" ResourceKey="SemiColorFill1" />
@@ -16,5 +16,5 @@
<SolidColorBrush x:Key="TextBoxBorderedPointeroverBackground" Color="Transparent" />
<StaticResource x:Key="TextBoxBorderedPointeroverBorderBrush" ResourceKey="SemiColorPrimaryPointerover" />
<SolidColorBrush x:Key="TextBoxSelectionBackground" Color="#0059D6" />
<SolidColorBrush x:Key="TextBoxSelectionForeground" Color="White" />
<StaticResource x:Key="TextBoxSelectionForeground" ResourceKey="SemiColorWhite" />
</ResourceDictionary>

View File

@@ -33,7 +33,7 @@
<StaticResource x:Key="ToggleButtonSuccessCheckedPressedBackground" ResourceKey="SemiColorSuccessActive" />
<StaticResource x:Key="ToggleButtonWarningCheckedPressedBackground" ResourceKey="SemiColorWarningActive" />
<StaticResource x:Key="ToggleButtonDangerCheckedPressedBackground" ResourceKey="SemiColorDangerActive" />
<SolidColorBrush x:Key="ToggleButtonCheckedForeground" Color="White" />
<StaticResource x:Key="ToggleButtonCheckedForeground" ResourceKey="SemiColorWhite" />
<StaticResource x:Key="ToggleButtonCheckedDisabledBackground" ResourceKey="SemiColorDisabledBackground" />
<StaticResource x:Key="ToggleButtonPrimaryIndeterminateBackground" ResourceKey="SemiColorPrimaryLight" />
<StaticResource x:Key="ToggleButtonSecondaryIndeterminateBackground" ResourceKey="SemiColorSecondaryLight" />

View File

@@ -10,6 +10,6 @@
<StaticResource x:Key="ToggleSwitchContainerCheckedPressedBackground" ResourceKey="SemiColorSuccessActive" />
<StaticResource x:Key="ToggleSwitchContainerCheckedDisabledBackground" ResourceKey="SemiColorSuccessDisabled" />
<StaticResource x:Key="SimpleToggleSwitchContainerUnCheckedForeground" ResourceKey="SemiColorText2" />
<SolidColorBrush x:Key="SimpleToggleSwitchContainerCheckedForeground" Color="White" />
<StaticResource x:Key="SimpleToggleSwitchContainerCheckedForeground" ResourceKey="SemiColorWhite" />
<BoxShadows x:Key="ToggleSwitchIndicatorBoxShadow">0 4 6 0 #1A000000, 0 0 1 0 #4D000000</BoxShadows>
</ResourceDictionary>

View File

@@ -1,5 +1,5 @@
<ResourceDictionary xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<StaticResource x:Key="ToolTipBackground" ResourceKey="SemiColorTertiaryActive" />
<SolidColorBrush x:Key="ToolTipForeground" Color="Black" />
<StaticResource x:Key="ToolTipForeground" ResourceKey="SemiColorBlack" />
<SolidColorBrush x:Key="ToolTipBorderBrush" Color="Transparent" />
</ResourceDictionary>

View File

@@ -1,5 +1,7 @@
<ResourceDictionary x:Class="Semi.Avalonia.Tokens.Palette.Dark" xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<!-- Color Resources -->
<Color x:Key="SemiWhiteColor">White</Color>
<Color x:Key="SemiBlackColor">Black</Color>
<Color x:Key="SemiRed0Color">#6C090B</Color>
<Color x:Key="SemiRed1Color">#901110</Color>
<Color x:Key="SemiRed2Color">#B42019</Color>
@@ -166,7 +168,8 @@
<Color x:Key="SemiBackground3Color">#43444A</Color>
<Color x:Key="SemiBackground4Color">#4F5159</Color>
<SolidColorBrush x:Key="SemiRed0" Color="{StaticResource SemiRed0Color}" />
<SolidColorBrush x:Key="SemiWhite" Color="{StaticResource SemiWhiteColor}" />
<SolidColorBrush x:Key="SemiBlack" Color="{StaticResource SemiBlackColor}" />
<SolidColorBrush x:Key="SemiRed1" Color="{StaticResource SemiRed1Color}" />
<SolidColorBrush x:Key="SemiRed2" Color="{StaticResource SemiRed2Color}" />
<SolidColorBrush x:Key="SemiRed3" Color="{StaticResource SemiRed3Color}" />
@@ -327,6 +330,8 @@
<SolidColorBrush x:Key="SemiGrey8" Color="{StaticResource SemiGrey8Color}" />
<SolidColorBrush x:Key="SemiGrey9" Color="{StaticResource SemiGrey9Color}" />
<SolidColorBrush x:Key="SemiColorWhite" Color="{StaticResource SemiWhiteColor}" />
<SolidColorBrush x:Key="SemiColorBlack" Color="{StaticResource SemiBlackColor}" />
<!-- Primary -->
<SolidColorBrush x:Key="SemiColorPrimary" Color="{StaticResource SemiBlue5Color}" />
<SolidColorBrush x:Key="SemiColorPrimaryPointerover" Color="{StaticResource SemiBlue6Color}" />
@@ -408,12 +413,12 @@
<SolidColorBrush x:Key="SemiColorBackground4" Color="{StaticResource SemiBackground4Color}" />
<!-- Fill -->
<SolidColorBrush x:Key="SemiColorFill0" Opacity="0.12" Color="White" />
<SolidColorBrush x:Key="SemiColorFill1" Opacity="0.16" Color="White" />
<SolidColorBrush x:Key="SemiColorFill2" Opacity="0.20" Color="White" />
<SolidColorBrush x:Key="SemiColorFill0" Opacity="0.12" Color="{StaticResource SemiWhiteColor}" />
<SolidColorBrush x:Key="SemiColorFill1" Opacity="0.16" Color="{StaticResource SemiWhiteColor}" />
<SolidColorBrush x:Key="SemiColorFill2" Opacity="0.20" Color="{StaticResource SemiWhiteColor}" />
<!-- Border -->
<SolidColorBrush x:Key="SemiColorBorder" Opacity="0.08" Color="White" />
<SolidColorBrush x:Key="SemiColorBorder" Opacity="0.08" Color="{StaticResource SemiWhiteColor}" />
<!-- Disabled -->
<SolidColorBrush x:Key="SemiColorDisabledText" Opacity="0.35" Color="{StaticResource SemiGrey9Color}" />

View File

@@ -1,5 +1,7 @@
<ResourceDictionary x:Class="Semi.Avalonia.Tokens.Palette.Light" xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<!-- Color Resources -->
<Color x:Key="SemiWhiteColor">White</Color>
<Color x:Key="SemiBlackColor">Black</Color>
<Color x:Key="SemiRed0Color">#FEF2ED</Color>
<Color x:Key="SemiRed1Color">#FEDDD2</Color>
<Color x:Key="SemiRed2Color">#FDB7A5</Color>
@@ -166,6 +168,8 @@
<Color x:Key="SemiBackground3Color">White</Color>
<Color x:Key="SemiBackground4Color">White</Color>
<SolidColorBrush x:Key="SemiWhite" Color="{StaticResource SemiWhiteColor}" />
<SolidColorBrush x:Key="SemiBlack" Color="{StaticResource SemiBlackColor}" />
<SolidColorBrush x:Key="SemiRed0" Color="{StaticResource SemiRed0Color}" />
<SolidColorBrush x:Key="SemiRed1" Color="{StaticResource SemiRed1Color}" />
<SolidColorBrush x:Key="SemiRed2" Color="{StaticResource SemiRed2Color}" />
@@ -327,6 +331,8 @@
<SolidColorBrush x:Key="SemiGrey8" Color="{StaticResource SemiGrey8Color}" />
<SolidColorBrush x:Key="SemiGrey9" Color="{StaticResource SemiGrey9Color}" />
<SolidColorBrush x:Key="SemiColorWhite" Color="{StaticResource SemiWhiteColor}" />
<SolidColorBrush x:Key="SemiColorBlack" Color="{StaticResource SemiBlackColor}" />
<!-- Primary -->
<SolidColorBrush x:Key="SemiColorPrimary" Color="{StaticResource SemiBlue5Color}" />
<SolidColorBrush x:Key="SemiColorPrimaryPointerover" Color="{StaticResource SemiBlue6Color}" />