Skip to content

Commit

Permalink
don't set Foreground, Background, UseLayoutRounding in ControlTheme t…
Browse files Browse the repository at this point in the history
…o use parent controls values
  • Loading branch information
punker76 committed Nov 1, 2024
1 parent fd9f663 commit 74f14d4
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/IconPacks.Avalonia.Core/PackIconControlBase.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,13 @@
</ControlTemplate>

<ControlTheme x:Key="IconPacks.Avalonia.PackIconControlBase.Theme" TargetType="iconPacks:PackIconControlBase">
<Setter Property="Foreground" Value="{DynamicResource ThemeForegroundColor}" />
<Setter Property="Background" Value="Transparent" />
<Setter Property="Height" Value="{DynamicResource IconElementThemeHeight}" />
<Setter Property="Width" Value="{DynamicResource IconElementThemeWidth}" />
<Setter Property="IsTabStop" Value="False" />
<Setter Property="FlowDirection" Value="LeftToRight" />
<Setter Property="Padding" Value="0" />
<Setter Property="HorizontalAlignment" Value="Left" />
<Setter Property="VerticalAlignment" Value="Top" />
<Setter Property="UseLayoutRounding" Value="False" />
<Setter Property="Template" Value="{DynamicResource IconPacks.Avalonia.PackIconControlBase.Template}" />

<!-- icon is filled -->
Expand Down

0 comments on commit 74f14d4

Please sign in to comment.