Style Boutons presque OK
continuous-integration/drone/push Build is passing Details

Navigator
Hug0lvt 2 years ago
parent 6d2d92f6aa
commit d90ca8f7f4

@ -116,7 +116,13 @@
<SolidColorBrush x:Key="CouleurPrincipale" Color="#23395d"/>
<SolidColorBrush x:Key="CouleurBouton" Color="#99425d"/>
<Style x:Key="FormeBtnClick" TargetType="Button">
<Style.Resources>
<Style TargetType="Border">
<Setter Property="CornerRadius" Value="20,0,0,20"/>
</Style>
</Style.Resources>
</Style>
<Style x:Key="BoutonMain" TargetType="Button">
@ -128,19 +134,34 @@
<Setter Property="Foreground" Value="White"/>
<Setter Property="Background" Value="{StaticResource CouleurBouton}"/>
<Style.Resources>
<Style TargetType="Border">
<Setter Property="CornerRadius" Value="20,20,20,20"/>
</Style>
</Style.Resources>
<Style.Triggers>
<Trigger Property="IsDefault" Value="False">
<Setter Property="Background" Value="Black"/>
<Trigger Property="IsDefault" Value="True">
<Setter Property="Background" Value="White"/>
<Setter Property="Foreground" Value="Black"/>
<Setter Property="Margin" Value="10,10,10,10" />
<Setter Property="Border.CornerRadius" Value="20,0,0,20"/>
<Setter Property="Margin" Value="10,10,0,10"/>
<Trigger.EnterActions>
<BeginStoryboard>
<Storyboard>
<ColorAnimation Duration="0:0:0.5" Storyboard.TargetProperty="(Button.Background).(SolidColorBrush.Color)" To="#23395d"/>
<ColorAnimation Duration="0:0:0.5" Storyboard.TargetProperty="(Button.Background).(SolidColorBrush.Color)" To="White"/>
</Storyboard>
</BeginStoryboard>
</Trigger.EnterActions>

Loading…
Cancel
Save