Skip to content

Commit

Permalink
Merge pull request #6572 from wieslawsoltes/MenuItemIconPresenterSize…
Browse files Browse the repository at this point in the history
…FromStyle

Set MenuItem icon presenter size from style
  • Loading branch information
maxkatz6 committed Sep 11, 2021
2 parents db546a4 + 82e3874 commit 3aab722
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Avalonia.Themes.Fluent/Controls/MenuItem.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,6 @@
</Grid.ColumnDefinitions>
<ContentPresenter Name="PART_IconPresenter"
Content="{TemplateBinding Icon}"
Width="16"
Height="16"
Margin="{DynamicResource MenuIconPresenterMargin}"
HorizontalAlignment="Center"
VerticalAlignment="Center" />
Expand Down Expand Up @@ -199,6 +197,8 @@
</Style>

<Style Selector="MenuItem /template/ ContentPresenter#PART_IconPresenter">
<Setter Property="Width" Value="16" />
<Setter Property="Height" Value="16" />
<Setter Property="IsVisible" Value="False" />
</Style>
<Style Selector="MenuItem:icon /template/ ContentPresenter#PART_IconPresenter">
Expand Down

0 comments on commit 3aab722

Please sign in to comment.