Skip to content

Commit

Permalink
fix: adjust FlyoutMenuSeparator style (#1507)
Browse files Browse the repository at this point in the history
  • Loading branch information
kazo0 authored Dec 16, 2024
1 parent df61e5a commit 5b60fd4
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions src/library/Uno.Material/Styles/Controls/v2/Flyout.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -608,21 +608,15 @@

<!-- Material MenuFlyoutSeparator Style -->
<Style x:Key="MaterialMenuFlyoutSeparatorStyle"
TargetType="MenuFlyoutSeparator">

<Setter Property="Background"
Value="{ThemeResource SurfaceVariantBrush}" />
<Setter Property="Padding"
Value="0,8" />
<Setter Property="Height"
Value="{StaticResource MaterialFlyoutMenuSeparatorHeight}" />

TargetType="MenuFlyoutSeparator">
<Setter Property="Background" Value="{ThemeResource SurfaceVariantBrush}" />
<Setter Property="Padding" Value="0,8" />
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="MenuFlyoutSeparator">
<Rectangle Height="{TemplateBinding Height}"
Margin="{TemplateBinding Padding}"
Fill="{TemplateBinding Background}" />
<Rectangle Fill="{TemplateBinding Background}"
Margin="{TemplateBinding Padding}"
Height="{StaticResource MaterialFlyoutMenuSeparatorHeight}" />
</ControlTemplate>
</Setter.Value>
</Setter>
Expand Down

0 comments on commit 5b60fd4

Please sign in to comment.