feat: Resources with Opacity.

This commit is contained in:
Zhang Dian
2024-12-28 00:13:38 +08:00
parent 2424c48070
commit 81f36f6559
5 changed files with 5 additions and 5 deletions

View File

@@ -13,7 +13,7 @@
<StaticResource x:Key="CalendarItemCalendarButtonSelectedForeground" ResourceKey="SemiColorBackground3" />
<StaticResource x:Key="CalendarItemCalendarButtonDisabledForeground" ResourceKey="SemiColorDisabledText" />
<StaticResource x:Key="CalendarItemCalendarButtonBlackoutForeground" ResourceKey="SemiColorDisabledText" />
<SolidColorBrush x:Key="CalendarItemCalendarButtonInactiveForeground" Opacity="0.65" Color="#F9F9F9" />
<StaticResource x:Key="CalendarItemCalendarButtonInactiveForeground" ResourceKey="SemiColorText2" />
<StaticResource x:Key="CalendarItemCalendarDayButtonForeground" ResourceKey="SemiColorText0" />
<SolidColorBrush x:Key="CalendarItemCalendarDayButtonBackground" Color="Transparent" />
<SolidColorBrush x:Key="CalendarItemCalendarDayButtonBorderBrush" Color="Transparent" />

View File

@@ -13,7 +13,7 @@
<StaticResource x:Key="DateTimePickerButtonBackground" ResourceKey="SemiColorFill0" />
<StaticResource x:Key="DateTimePickerButtonForeground" ResourceKey="SemiColorText0" />
<StaticResource x:Key="DateTimePickerIconForeground" ResourceKey="SemiColorText2" />
<SolidColorBrush x:Key="DateTimePickerEmptyForeground" Opacity="0.5" Color="#F9F9F9" />
<StaticResource x:Key="DateTimePickerEmptyForeground" ResourceKey="SemiColorText2" />
<StaticResource x:Key="DateTimePickerButtonPointeroverBackground" ResourceKey="SemiColorFill1" />
<SolidColorBrush x:Key="DateTimePickerButtonPointeroverBorderBrush" Color="Transparent" />
<SolidColorBrush x:Key="DateTimePickerButtonDisabledBorderBrush" Color="Transparent" />

View File

@@ -1,4 +1,4 @@
<ResourceDictionary xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<SolidColorBrush x:Key="ManagedFileChooserIconForeground" Opacity="0.65" Color="#F9F9F9" />
<StaticResource x:Key="ManagedFileChooserIconForeground" ResourceKey="SemiColorText2" />
<StaticResource x:Key="ManagedFileChooserTextForeground" ResourceKey="SemiColorText0" />
</ResourceDictionary>

View File

@@ -4,7 +4,7 @@
<StaticResource x:Key="TextBoxDefaultBackground" ResourceKey="SemiColorFill0" />
<StaticResource x:Key="TextBoxPointeroverBackground" ResourceKey="SemiColorFill1" />
<SolidColorBrush x:Key="TextBoxPointeroverBorderBrush" Color="Transparent" />
<SolidColorBrush x:Key="TextBoxPressedBackground" Opacity="0.2" Color="White" />
<StaticResource x:Key="TextBoxPressedBackground" ResourceKey="SemiColorFill2" />
<StaticResource x:Key="TextBoxFocusBorderBrush" ResourceKey="SemiColorPrimary" />
<StaticResource x:Key="TextBoxForeground" ResourceKey="SemiColorText0" />
<StaticResource x:Key="TextBoxInnerForeground" ResourceKey="SemiColorText2" />

View File

@@ -4,7 +4,7 @@
<StaticResource x:Key="ToggleSwitchContainerUnCheckedPointeroverBackground" ResourceKey="SemiColorFill1" />
<StaticResource x:Key="ToggleSwitchContainerUnCheckedPressedBackground" ResourceKey="SemiColorFill2" />
<SolidColorBrush x:Key="ToggleSwitchContainerUnCheckedDisabledBackground" Color="Transparent" />
<SolidColorBrush x:Key="ToggleSwitchContainerUnCheckedDisabledBorderBrush" Opacity="0.16" Color="#F9F9F9" />
<StaticResource x:Key="ToggleSwitchContainerUnCheckedDisabledBorderBrush" ResourceKey="SemiColorFill1" />
<StaticResource x:Key="ToggleSwitchContainerCheckedDefaultBackground" ResourceKey="SemiColorSuccess" />
<StaticResource x:Key="ToggleSwitchContainerCheckedPointeroverBackground" ResourceKey="SemiColorSuccessPointerover" />
<StaticResource x:Key="ToggleSwitchContainerCheckedPressedBackground" ResourceKey="SemiColorSuccessActive" />