feat: unified colors.

This commit is contained in:
Zhang Dian
2024-12-28 18:48:47 +08:00
parent 154a005b84
commit 19285645ee
15 changed files with 24 additions and 24 deletions

View File

@@ -14,13 +14,13 @@
RowDefinitions="*, Auto, *">
<Border
HorizontalAlignment="Stretch"
Background="{DynamicResource SemiYellow3Color}"
Background="{DynamicResource SemiGrey0Color}"
CornerRadius="10" />
<GridSplitter Grid.Row="1" ShowsPreview="True" />
<Border
Grid.Row="2"
HorizontalAlignment="Stretch"
Background="{DynamicResource SemiYellow3Color}"
Background="{DynamicResource SemiGrey0Color}"
CornerRadius="10" />
</Grid>
<Grid
@@ -29,13 +29,13 @@
ColumnDefinitions="*, Auto, *">
<Border
HorizontalAlignment="Stretch"
Background="{DynamicResource SemiYellow3Color}"
Background="{DynamicResource SemiGrey0Color}"
CornerRadius="10" />
<GridSplitter Grid.Column="1" ShowsPreview="True" />
<Border
Grid.Column="2"
HorizontalAlignment="Stretch"
Background="{DynamicResource SemiYellow3Color}"
Background="{DynamicResource SemiGrey0Color}"
CornerRadius="10" />
</Grid>
</StackPanel>

View File

@@ -8,7 +8,7 @@
<SolidColorBrush x:Key="CalendarDatePickerPointeroverBorderBrush" Color="Transparent" />
<StaticResource x:Key="CalendarDatePickerFocusBorderBrush" ResourceKey="SemiColorPrimary" />
<StaticResource x:Key="CalendarDatePickerDisabledBackground" ResourceKey="SemiColorDisabledFill" />
<SolidColorBrush x:Key="CalendarDatePickerDisabledIconForeground" Opacity="0.4" Color="#E6E8EA" />
<StaticResource x:Key="CalendarDatePickerDisabledIconForeground" ResourceKey="SemiColorDisabledText" />
<StaticResource x:Key="CalendarDatePickerPopupBoxShadows" ResourceKey="SemiShadowElevated" />
<SolidColorBrush x:Key="CalendarDatePickerBorderedDefaultBackground" Color="Transparent" />
<StaticResource x:Key="CalendarDatePickerBorderedDefaultBorderBrush" ResourceKey="SemiColorBorder" />

View File

@@ -18,6 +18,6 @@
<SolidColorBrush x:Key="DateTimePickerButtonPointeroverBorderBrush" Color="Transparent" />
<SolidColorBrush x:Key="DateTimePickerButtonDisabledBorderBrush" Color="Transparent" />
<StaticResource x:Key="DateTimePickerButtonDisabledBackground" ResourceKey="SemiColorDisabledFill" />
<SolidColorBrush x:Key="DateTimePickerButtonDisabledIconForeground" Opacity="0.4" Color="#E6E8EA" />
<StaticResource x:Key="DateTimePickerButtonDisabledIconForeground" ResourceKey="SemiColorDisabledText" />
<StaticResource x:Key="DateTimePickerFlyoutBoxShadow" ResourceKey="SemiShadowElevated" />
</ResourceDictionary>

View File

@@ -1,4 +1,4 @@
<ResourceDictionary xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<SolidColorBrush x:Key="GridSplitterBackground" Opacity="0.4" Color="#F9F9F9" />
<SolidColorBrush x:Key="GridSplitterPreviewBackground" Color="#0A4694" />
<StaticResource x:Key="GridSplitterBackground" ResourceKey="SemiColorBorder" />
<StaticResource x:Key="GridSplitterPreviewBackground" ResourceKey="SemiColorPrimaryLightActive" />
</ResourceDictionary>

View File

@@ -1,7 +1,7 @@
<ResourceDictionary xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<StaticResource x:Key="HyperlinkButtonForeground" ResourceKey="SemiColorLinkVisited" />
<StaticResource x:Key="HyperlinkButtonForeground" ResourceKey="SemiColorLink" />
<StaticResource x:Key="HyperlinkButtonPointeroverForeground" ResourceKey="SemiColorLinkPointerover" />
<StaticResource x:Key="HyperlinkButtonPressedForeground" ResourceKey="SemiColorLinkActive" />
<StaticResource x:Key="HyperlinkButtonDisabledForeground" ResourceKey="SemiColorDisabledText" />
<SolidColorBrush x:Key="HyperlinkButtonVisitedForeground" Color="#B553C2" />
<StaticResource x:Key="HyperlinkButtonVisitedForeground" ResourceKey="SemiColorLinkVisited" />
</ResourceDictionary>

View File

@@ -12,10 +12,10 @@
<StaticResource x:Key="MenuItemPointeroverForeground" ResourceKey="SemiColorText0" />
<StaticResource x:Key="MenuItemPointeroverBackground" ResourceKey="SemiColorFill0" />
<StaticResource x:Key="MenuItemPressedBackground" ResourceKey="SemiColorFill1" />
<SolidColorBrush x:Key="MenuItemInputGestureTextForeground" Color="Gray" />
<StaticResource x:Key="MenuItemInputGestureTextForeground" ResourceKey="SemiColorText2" />
<StaticResource x:Key="MenuItemExpandIconForeground" ResourceKey="SemiColorText2" />
<StaticResource x:Key="MenuItemExpandIconOpenForeground" ResourceKey="SemiColorText0" />
<StaticResource x:Key="MenuItemDisabledForeground" ResourceKey="SemiColorDisabledText" />
<SolidColorBrush x:Key="MenuItemDisabledInputGestureTextForeground" Opacity="0.2" Color="#F9F9F9" />
<StaticResource x:Key="MenuItemDisabledInputGestureTextForeground" ResourceKey="SemiColorDisabledText" />
<StaticResource x:Key="MenuItemDisabledExpandIconForeground" ResourceKey="SemiColorDisabledText" />
</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="SplitViewSeparatorBackground" ResourceKey="SemiColorBorder" />
<SolidColorBrush x:Key="SplitViewMaskBrush" Opacity="0.2" Color="#A7ABB0" />
<StaticResource x:Key="SplitViewMaskBrush" ResourceKey="SemiColorOverlayBackground" />
<StaticResource x:Key="SplitViewPaneBackground" ResourceKey="SemiColorBackground0" />
</ResourceDictionary>

View File

@@ -15,6 +15,6 @@
<StaticResource x:Key="TextBoxBorderedDefaultBorderBrush" ResourceKey="SemiColorFill0" />
<SolidColorBrush x:Key="TextBoxBorderedPointeroverBackground" Color="Transparent" />
<StaticResource x:Key="TextBoxBorderedPointeroverBorderBrush" ResourceKey="SemiColorPrimaryPointerover" />
<SolidColorBrush x:Key="TextBoxSelectionBackground" Color="#0059D6" />
<SolidColorBrush x:Key="TextBoxSelectionBackground" Opacity="0.8" Color="#0041C5" />
<StaticResource x:Key="TextBoxSelectionForeground" ResourceKey="SemiColorWhite" />
</ResourceDictionary>

View File

@@ -8,7 +8,7 @@
<SolidColorBrush x:Key="CalendarDatePickerPointeroverBorderBrush" Color="Transparent" />
<StaticResource x:Key="CalendarDatePickerFocusBorderBrush" ResourceKey="SemiColorPrimary" />
<StaticResource x:Key="CalendarDatePickerDisabledBackground" ResourceKey="SemiColorDisabledFill" />
<SolidColorBrush x:Key="CalendarDatePickerDisabledIconForeground" Opacity="0.4" Color="#2E3238" />
<StaticResource x:Key="CalendarDatePickerDisabledIconForeground" ResourceKey="SemiColorDisabledText" />
<StaticResource x:Key="CalendarDatePickerPopupBoxShadows" ResourceKey="SemiShadowElevated" />
<SolidColorBrush x:Key="CalendarDatePickerBorderedDefaultBackground" Color="Transparent" />
<StaticResource x:Key="CalendarDatePickerBorderedDefaultBorderBrush" ResourceKey="SemiColorBorder" />

View File

@@ -18,6 +18,6 @@
<SolidColorBrush x:Key="DateTimePickerButtonPointeroverBorderBrush" Color="Transparent" />
<SolidColorBrush x:Key="DateTimePickerButtonDisabledBorderBrush" Color="Transparent" />
<StaticResource x:Key="DateTimePickerButtonDisabledBackground" ResourceKey="SemiColorDisabledFill" />
<SolidColorBrush x:Key="DateTimePickerButtonDisabledIconForeground" Opacity="0.4" Color="#2E3238" />
<StaticResource x:Key="DateTimePickerButtonDisabledIconForeground" ResourceKey="SemiColorDisabledText" />
<StaticResource x:Key="DateTimePickerFlyoutBoxShadow" ResourceKey="SemiShadowElevated" />
</ResourceDictionary>

View File

@@ -1,4 +1,4 @@
<ResourceDictionary xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<SolidColorBrush x:Key="GridSplitterBackground" Opacity="0.08" Color="#1C1F23" />
<SolidColorBrush x:Key="GridSplitterPreviewBackground" Color="#CBE7FE" />
<StaticResource x:Key="GridSplitterBackground" ResourceKey="SemiColorBorder" />
<StaticResource x:Key="GridSplitterPreviewBackground" ResourceKey="SemiColorPrimaryLightActive" />
</ResourceDictionary>

View File

@@ -1,7 +1,7 @@
<ResourceDictionary xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<StaticResource x:Key="HyperlinkButtonForeground" ResourceKey="SemiColorLinkVisited" />
<StaticResource x:Key="HyperlinkButtonForeground" ResourceKey="SemiColorLink" />
<StaticResource x:Key="HyperlinkButtonPointeroverForeground" ResourceKey="SemiColorLinkPointerover" />
<StaticResource x:Key="HyperlinkButtonPressedForeground" ResourceKey="SemiColorLinkActive" />
<StaticResource x:Key="HyperlinkButtonDisabledForeground" ResourceKey="SemiColorDisabledText" />
<SolidColorBrush x:Key="HyperlinkButtonVisitedForeground" Color="#9E28B3" />
<StaticResource x:Key="HyperlinkButtonVisitedForeground" ResourceKey="SemiColorLinkVisited" />
</ResourceDictionary>

View File

@@ -12,10 +12,10 @@
<StaticResource x:Key="MenuItemPointeroverForeground" ResourceKey="SemiColorText0" />
<StaticResource x:Key="MenuItemPointeroverBackground" ResourceKey="SemiColorFill0" />
<StaticResource x:Key="MenuItemPressedBackground" ResourceKey="SemiColorFill1" />
<SolidColorBrush x:Key="MenuItemInputGestureTextForeground" Color="Gray" />
<StaticResource x:Key="MenuItemInputGestureTextForeground" ResourceKey="SemiColorText2" />
<StaticResource x:Key="MenuItemExpandIconForeground" ResourceKey="SemiColorText2" />
<StaticResource x:Key="MenuItemExpandIconOpenForeground" ResourceKey="SemiColorText0" />
<StaticResource x:Key="MenuItemDisabledForeground" ResourceKey="SemiColorDisabledText" />
<SolidColorBrush x:Key="MenuItemDisabledInputGestureTextForeground" Opacity="0.2" Color="#1C1F23" />
<StaticResource x:Key="MenuItemDisabledInputGestureTextForeground" ResourceKey="SemiColorDisabledText" />
<StaticResource x:Key="MenuItemDisabledExpandIconForeground" ResourceKey="SemiColorDisabledText" />
</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="SplitViewSeparatorBackground" ResourceKey="SemiColorBorder" />
<SolidColorBrush x:Key="SplitViewMaskBrush" Opacity="0.2" Color="#555B61" />
<StaticResource x:Key="SplitViewMaskBrush" ResourceKey="SemiColorOverlayBackground" />
<StaticResource x:Key="SplitViewPaneBackground" ResourceKey="SemiColorBackground0" />
</ResourceDictionary>

View File

@@ -15,6 +15,6 @@
<StaticResource x:Key="TextBoxBorderedDefaultBorderBrush" ResourceKey="SemiColorFill0" />
<SolidColorBrush x:Key="TextBoxBorderedPointeroverBackground" Color="Transparent" />
<StaticResource x:Key="TextBoxBorderedPointeroverBorderBrush" ResourceKey="SemiColorPrimaryPointerover" />
<SolidColorBrush x:Key="TextBoxSelectionBackground" Color="#0059D6" />
<SolidColorBrush x:Key="TextBoxSelectionBackground" Opacity="0.8" Color="#0041C5" />
<StaticResource x:Key="TextBoxSelectionForeground" ResourceKey="SemiColorWhite" />
</ResourceDictionary>