Skip to content

Commit

Permalink
Merge pull request #399 from AvaloniaCommunity/iconButtonsBackgroundFix
Browse files Browse the repository at this point in the history
Make .icon buttons background transparent
  • Loading branch information
SKProCH authored Sep 7, 2024
2 parents d36bea1 + c360887 commit f6f5c24
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Material.Styles/Controls/SideSheet.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@
Padding="{TemplateBinding SideSheetPadding}">
<StackPanel Name="PART_SideSheetPanel">
<DockPanel Name="PART_HeaderPanel">
<Button Name="PART_CloseButton" DockPanel.Dock="Right" Classes="icon"
<Button Name="PART_CloseButton" DockPanel.Dock="Right"
Theme="{StaticResource MaterialIconButton}"
IsVisible="{TemplateBinding SideSheetCanClose}">
<controls:MaterialInternalIcon Name="PART_Icon" Kind="Close" />
</Button>
Expand Down
3 changes: 3 additions & 0 deletions Material.Styles/Resources/Themes/Button.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,9 @@
</Style>

<Style Selector="^.icon">
<Setter Property="Background" Value="Transparent" />
<Setter Property="assists:ShadowAssist.ShadowDepth" Value="Depth0" />

<Setter Property="Padding" Value="12" />
<Setter Property="CornerRadius" Value="24" />
<Setter Property="Height" Value="48" />
Expand Down

0 comments on commit f6f5c24

Please sign in to comment.