Browse Source

remove menu shadows from fluent theme as this is not compatible with the rounded corners.

pull/5154/head
Dan Walmsley 5 years ago
parent
commit
16d8bf56a4
  1. 1
      src/Avalonia.Themes.Fluent/Controls/ContextMenu.xaml
  2. 2
      src/Avalonia.Themes.Fluent/Controls/MenuItem.xaml

1
src/Avalonia.Themes.Fluent/Controls/ContextMenu.xaml

@ -39,6 +39,7 @@
<Setter Property="HorizontalAlignment" Value="Stretch" />
<Setter Property="TextBlock.FontSize" Value="{DynamicResource ContentControlFontSize}" />
<Setter Property="TextBlock.FontWeight" Value="Normal" />
<Setter Property="WindowManagerAddShadowHint" Value="False" />
<Setter Property="Template">
<ControlTemplate>
<Border Background="{TemplateBinding Background}"

2
src/Avalonia.Themes.Fluent/Controls/MenuItem.xaml

@ -110,7 +110,7 @@
</Grid>
</Border>
<Popup Name="PART_Popup"
WindowManagerAddShadowHint="True"
WindowManagerAddShadowHint="False"
PlacementMode="Right"
HorizontalOffset="{StaticResource MenuFlyoutSubItemPopupHorizontalOffset}"
IsLightDismissEnabled="True"

Loading…
Cancel
Save