Style Bouton Ok
continuous-integration/drone/push Build is passing Details

Navigator
Hug0lvt 2 years ago
parent aa3f0e2b6b
commit 6d2d92f6aa

@ -114,25 +114,29 @@
<SolidColorBrush x:Key="CouleurPrincipale" Color="#23395d"/> <SolidColorBrush x:Key="CouleurPrincipale" Color="#23395d"/>
<SolidColorBrush x:Key="CouleurBouton" Color="#99425d"/>
<Style x:Key="BoutonMain" TargetType="Button"> <Style x:Key="BoutonMain" TargetType="Button">
<Setter Property="Height" Value="40"/> <Setter Property="Height" Value="40"/>
<Setter Property="BorderThickness" Value="0"/> <Setter Property="BorderThickness" Value="0"/>
<Setter Property="Margin" Value="10,10,0,10" /> <Setter Property="Margin" Value="10,10,10,10" />
<!--<Setter Property="Background" Value="{StaticResource CouleurPrincipale}"/>-->
<Setter Property="FontSize" Value="16"/> <Setter Property="FontSize" Value="16"/>
<Setter Property="Foreground" Value="White"/> <Setter Property="Foreground" Value="White"/>
<Setter Property="Background" Value="{StaticResource CouleurPrincipale}"/> <Setter Property="Background" Value="{StaticResource CouleurBouton}"/>
<Style.Resources> <Style.Resources>
<Style TargetType="Border"> <Style TargetType="Border">
<Setter Property="CornerRadius" Value="20,0,0,20"/> <Setter Property="CornerRadius" Value="20,20,20,20"/>
</Style> </Style>
</Style.Resources> </Style.Resources>
<Style.Triggers> <Style.Triggers>
<Trigger Property="IsDefault" Value="False"> <Trigger Property="IsDefault" Value="False">
<Setter Property="Background" Value="Black"/>
<Trigger.EnterActions> <Trigger.EnterActions>
<BeginStoryboard> <BeginStoryboard>
<Storyboard> <Storyboard>
@ -140,26 +144,17 @@
</Storyboard> </Storyboard>
</BeginStoryboard> </BeginStoryboard>
</Trigger.EnterActions> </Trigger.EnterActions>
<Setter Property="Background" Value="White"/>
<Setter Property="Foreground" Value="White"/>
</Trigger>
<Trigger Property="IsDefault" Value="True">
<Setter Property="Background" Value="{StaticResource CouleurPrincipale}"/>
<Setter Property="Foreground" Value="Black"/>
<Trigger.EnterActions>
<BeginStoryboard>
<Storyboard>
<ColorAnimation Duration="0:0:0.5" Storyboard.TargetProperty="(Button.Background).(SolidColorBrush.Color)" To="White"/>
</Storyboard>
</BeginStoryboard>
</Trigger.EnterActions>
</Trigger> </Trigger>
</Style.Triggers> </Style.Triggers>
</Style> </Style>

Loading…
Cancel
Save