Skip to content

Commit

Permalink
chore: update generated code
Browse files Browse the repository at this point in the history
  • Loading branch information
Xiaoy312 committed Oct 19, 2023
1 parent 99728d0 commit 8b391fd
Show file tree
Hide file tree
Showing 23 changed files with 2,424 additions and 2,366 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Uno.Extensions.Markup.Generators" PrivateAssets="All" Version="5.0.0-dev.407" />
<PackageReference Include="Uno.Extensions.Markup.Generators" PrivateAssets="All" Version="5.0.0-dev.448" />
</ItemGroup>

<PropertyGroup>
Expand Down
8 changes: 4 additions & 4 deletions src/library/Uno.Material/Styles/Controls/v2/CalendarView.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
mc:Ignorable="not_win">

<x:String x:Key="MaterialDownArrowPathData">M0,0L32,0 16,19.745z</x:String>
<SolidColorBrush x:Key="MaterialCalendarTodayForeground"
<SolidColorBrush x:Key="MaterialCalendarViewTodayForeground"
Color="{ThemeResource OnSurfaceColor}"
Opacity="0.87" />
<SolidColorBrush x:Key="MaterialCalendarBlackoutForeground"
<SolidColorBrush x:Key="MaterialCalendarViewBlackoutForeground"
Color="{ThemeResource OnSurfaceColor}"
Opacity="0.38" />

Expand All @@ -31,9 +31,9 @@
<Setter Property="CalendarItemBorderBrush"
Value="{ThemeResource CalendarViewCalendarItemRevealBorderBrush}" />
<Setter Property="TodayForeground"
Value="{StaticResource MaterialCalendarTodayForeground}" />
Value="{StaticResource MaterialCalendarViewTodayForeground}" />
<Setter Property="BlackoutForeground"
Value="{ThemeResource MaterialCalendarBlackoutForeground}" />
Value="{StaticResource MaterialCalendarViewBlackoutForeground}" />
<Setter Property="SelectedForeground"
Value="{ThemeResource OnPrimaryBrush}" />
<Setter Property="PressedForeground"
Expand Down
27 changes: 17 additions & 10 deletions src/library/Uno.Material/Styles/Controls/v2/CheckBox.xaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:um="using:Uno.Material"
Expand Down Expand Up @@ -65,6 +65,7 @@
<!-- endregion -->

<!--#region Check Background Stroke-->
<StaticResource x:Key="CheckBoxCheckBackgroundStroke" ResourceKey="OnSurfaceVariantBrush" />
<StaticResource x:Key="CheckBoxCheckBackgroundStrokeUnchecked" ResourceKey="OnSurfaceVariantBrush" />
<StaticResource x:Key="CheckBoxCheckBackgroundStrokeUncheckedPointerOver" ResourceKey="OnSurfaceBrush" />
<StaticResource x:Key="CheckBoxCheckBackgroundStrokeUncheckedPressed" ResourceKey="OnSurfaceBrush" />
Expand All @@ -82,6 +83,7 @@
<!--#endregion-->

<!--#region Check Background Fill-->
<StaticResource x:Key="CheckBoxCheckBackgroundFill" ResourceKey="SystemControlTransparentBrush" />
<StaticResource x:Key="CheckBoxCheckBackgroundFillUnchecked" ResourceKey="SystemControlTransparentBrush" />
<StaticResource x:Key="CheckBoxCheckBackgroundFillUncheckedPointerOver" ResourceKey="SystemControlTransparentBrush" />
<StaticResource x:Key="CheckBoxCheckBackgroundFillUncheckedPressed" ResourceKey="SystemControlTransparentBrush" />
Expand All @@ -106,6 +108,7 @@
<!--#endregion-->

<!--#region Glyph-->
<StaticResource x:Key="CheckBoxGlyphForeground" ResourceKey="SystemControlTransparentBrush" />
<StaticResource x:Key="CheckBoxGlyphForegroundUnchecked" ResourceKey="SystemControlTransparentBrush" />
<StaticResource x:Key="CheckBoxGlyphForegroundUncheckedPointerOver" ResourceKey="SystemControlTransparentBrush" />
<StaticResource x:Key="CheckBoxGlyphForegroundUncheckedPressed" ResourceKey="SystemControlTransparentBrush" />
Expand All @@ -127,7 +130,6 @@

<!--#region States-->
<StaticResource x:Key="CheckBoxStateCircleFillUnchecked" ResourceKey="OnSurfaceBrush" />

<StaticResource x:Key="CheckBoxStateCircleFillChecked" ResourceKey="PrimaryBrush" />

<StaticResource x:Key="CheckBoxStateCircleOpacityPointerOver" ResourceKey="HoverOpacity" />
Expand Down Expand Up @@ -202,6 +204,7 @@
<!-- endregion -->

<!--#region Check Background Stroke-->
<StaticResource x:Key="CheckBoxCheckBackgroundStroke" ResourceKey="OnSurfaceVariantBrush" />
<StaticResource x:Key="CheckBoxCheckBackgroundStrokeUnchecked" ResourceKey="OnSurfaceVariantBrush" />
<StaticResource x:Key="CheckBoxCheckBackgroundStrokeUncheckedPointerOver" ResourceKey="OnSurfaceBrush" />
<StaticResource x:Key="CheckBoxCheckBackgroundStrokeUncheckedPressed" ResourceKey="OnSurfaceBrush" />
Expand All @@ -219,6 +222,7 @@
<!--#endregion-->

<!--#region Check Background Fill-->
<StaticResource x:Key="CheckBoxCheckBackgroundFill" ResourceKey="SystemControlTransparentBrush" />
<StaticResource x:Key="CheckBoxCheckBackgroundFillUnchecked" ResourceKey="SystemControlTransparentBrush" />
<StaticResource x:Key="CheckBoxCheckBackgroundFillUncheckedPointerOver" ResourceKey="SystemControlTransparentBrush" />
<StaticResource x:Key="CheckBoxCheckBackgroundFillUncheckedPressed" ResourceKey="SystemControlTransparentBrush" />
Expand All @@ -243,6 +247,8 @@
<!--#endregion-->

<!--#region Glyph-->
<StaticResource x:Key="CheckBoxGlyphForeground" ResourceKey="SystemControlTransparentBrush" />

<StaticResource x:Key="CheckBoxGlyphForegroundUnchecked" ResourceKey="SystemControlTransparentBrush" />
<StaticResource x:Key="CheckBoxGlyphForegroundUncheckedPointerOver" ResourceKey="SystemControlTransparentBrush" />
<StaticResource x:Key="CheckBoxGlyphForegroundUncheckedPressed" ResourceKey="SystemControlTransparentBrush" />
Expand All @@ -264,7 +270,6 @@

<!--#region States-->
<StaticResource x:Key="CheckBoxStateCircleFillUnchecked" ResourceKey="OnSurfaceBrush" />

<StaticResource x:Key="CheckBoxStateCircleFillChecked" ResourceKey="PrimaryBrush" />

<StaticResource x:Key="CheckBoxStateCircleOpacityPointerOver" ResourceKey="HoverOpacity" />
Expand Down Expand Up @@ -514,7 +519,9 @@
<VisualStateGroup x:Name="FocusStates">
<VisualState x:Name="Focused">
<VisualState.Setters>
<Setter Target="UncheckedFocusStateCircle.Fill" Value="{ThemeResource CheckBoxStateCircleFillUnchecked}" />
<Setter Target="UncheckedFocusStateCircle.Opacity" Value="{ThemeResource CheckBoxStateCircleOpacityFocused}" />
<Setter Target="CheckedFocusStateCircle.Fill" Value="{ThemeResource CheckBoxStateCircleFillChecked}" />
<Setter Target="CheckedFocusStateCircle.Opacity" Value="{ThemeResource CheckBoxStateCircleOpacityFocused}" />
</VisualState.Setters>
</VisualState>
Expand All @@ -536,7 +543,7 @@
Stretch="Uniform"
Width="{ThemeResource CheckBoxFocusAreaSize}"
Height="{ThemeResource CheckBoxFocusAreaSize}"
Fill="{ThemeResource CheckBoxStateCircleFillUnchecked}"
Fill="Transparent"
Visibility="{Binding IsChecked, RelativeSource={RelativeSource Mode=TemplatedParent}, Converter={StaticResource CheckBoxIsCheckedToFocusStateCircleCollapsed}, TargetNullValue=Collapsed, FallbackValue=Collapsed}"
IsHitTestVisible="False"
Opacity="0" />
Expand All @@ -547,7 +554,7 @@
Stretch="Uniform"
Width="{ThemeResource CheckBoxFocusAreaSize}"
Height="{ThemeResource CheckBoxFocusAreaSize}"
Fill="{ThemeResource CheckBoxStateCircleFillChecked}"
Fill="Transparent"
Visibility="{Binding IsChecked, RelativeSource={RelativeSource Mode=TemplatedParent}, Converter={StaticResource CheckBoxIsCheckedToFocusStateCircleVisible}, TargetNullValue=Collapsed, FallbackValue=Collapsed}"
IsHitTestVisible="False"
Opacity="0" />
Expand All @@ -558,7 +565,7 @@
Stretch="Uniform"
Width="{ThemeResource CheckBoxFocusAreaSize}"
Height="{ThemeResource CheckBoxFocusAreaSize}"
Fill="{ThemeResource CheckBoxStateCircleFillChecked}"
Fill="Transparent"
IsHitTestVisible="False"
Opacity="0" />

Expand All @@ -568,13 +575,13 @@
CornerRadius="{TemplateBinding CornerRadius}">

<Grid x:Name="BackgroundBorder"
Background="{ThemeResource CheckBoxCheckBackgroundFillUnchecked}"
BorderBrush="{ThemeResource CheckBoxCheckBackgroundStrokeUnchecked}"
Background="{ThemeResource CheckBoxCheckBackgroundFill}"
BorderBrush="{ThemeResource CheckBoxCheckBackgroundStroke}"
BorderThickness="{ThemeResource CheckBoxCheckAreaBorderThickness}" />

<Path x:Name="HyphenGlyph"
Data="{ThemeResource CheckBoxHyphenGlyphPathData}"
Fill="{ThemeResource CheckBoxGlyphForegroundIndeterminate}"
Fill="{ThemeResource CheckBoxGlyphForeground}"
VerticalAlignment="Center"
HorizontalAlignment="Center"
Stretch="Uniform"
Expand All @@ -586,7 +593,7 @@

<Path x:Name="CheckGlyph"
Data="{ThemeResource CheckBoxCheckGlyphPathData}"
Fill="{ThemeResource CheckBoxGlyphForegroundChecked}"
Fill="{ThemeResource CheckBoxGlyphForeground}"
VerticalAlignment="Center"
HorizontalAlignment="Center"
Stretch="Uniform"
Expand Down
Loading

0 comments on commit 8b391fd

Please sign in to comment.