Skip to content

Commit

Permalink
Fix TargetType
Browse files Browse the repository at this point in the history
  • Loading branch information
cooolbros committed Jan 6, 2024
1 parent 3b21422 commit 1d9aab0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/HUDMerger/App.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
<Application.Resources>
<SolidColorBrush x:Key="_Blue" Color="#0073CF" />
<SolidColorBrush x:Key="_BlueHover" Color="#338FD8" />
<Style x:Key="EnabledButton" TargetType="{x:Type ButtonBase}">
<Style x:Key="EnabledButton" TargetType="{x:Type Button}">
<Setter Property="Foreground" Value="#000000" />
<Setter Property="Cursor" Value="Hand" />
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type ButtonBase}">
<ControlTemplate TargetType="{x:Type Button}">
<Border x:Name="buttonBorder" Background="#CCCCCC" BorderThickness="0" BorderBrush="Transparent" SnapsToDevicePixels="True" CornerRadius="2">
<ContentPresenter x:Name="contentPresenter" Focusable="False" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" />
</Border>
Expand All @@ -34,12 +34,12 @@
</Setter.Value>
</Setter>
</Style>
<Style x:Key="AccentButton" TargetType="{x:Type ButtonBase}">
<Style x:Key="AccentButton" TargetType="{x:Type Button}">
<Setter Property="Foreground" Value="#FFFFFF" />
<Setter Property="Cursor" Value="Hand" />
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type ButtonBase}">
<ControlTemplate TargetType="{x:Type Button}">
<Border x:Name="buttonBorder" Background="{StaticResource _Blue}" BorderThickness="0" BorderBrush="Transparent" SnapsToDevicePixels="True" CornerRadius="2">
<ContentPresenter x:Name="contentPresenter" Focusable="False" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" />
</Border>
Expand Down

0 comments on commit 1d9aab0

Please sign in to comment.