Style Validé par le groupe pour les buttons
continuous-integration/drone/push Build is passing Details

Navigator
Hugo LIVET 2 years ago
parent d90ca8f7f4
commit bbb61593b3

@ -116,15 +116,6 @@
<SolidColorBrush x:Key="CouleurPrincipale" Color="#23395d"/> <SolidColorBrush x:Key="CouleurPrincipale" Color="#23395d"/>
<SolidColorBrush x:Key="CouleurBouton" Color="#99425d"/> <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"> <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"/>
@ -134,37 +125,25 @@
<Setter Property="Foreground" Value="White"/> <Setter Property="Foreground" Value="White"/>
<Setter Property="Background" Value="{StaticResource CouleurBouton}"/> <Setter Property="Background" Value="{StaticResource CouleurBouton}"/>
<Style.Resources> <Style.Resources>
<Style TargetType="Border"> <Style TargetType="Border">
<Setter Property="CornerRadius" Value="20,20,20,20"/> <Setter Property="CornerRadius" Value="20,20,20,20"/>
</Style> </Style>
</Style.Resources> </Style.Resources>
<Style.Triggers> <Style.Triggers>
<Trigger Property="IsDefault" Value="True"> <Trigger Property="IsDefault" Value="True">
<Setter Property="Background" Value="White"/> <Setter Property="Background" Value="Black"/>
<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> <Trigger.EnterActions>
<BeginStoryboard> <BeginStoryboard>
<Storyboard> <Storyboard>
<ColorAnimation Duration="0:0:0.5" Storyboard.TargetProperty="(Button.Background).(SolidColorBrush.Color)" To="White"/> <ColorAnimation Duration="0:0:0.5" Storyboard.TargetProperty="(Button.Background).(SolidColorBrush.Color)" To="#23395d"/>
</Storyboard> </Storyboard>
</BeginStoryboard> </BeginStoryboard>
</Trigger.EnterActions> </Trigger.EnterActions>
</Trigger>
<Trigger Property ="IsMouseOver" Value="True">
<Setter Property= "Opacity" Value="0.3"/>
</Trigger> </Trigger>
</Style.Triggers> </Style.Triggers>
@ -181,5 +160,6 @@
</Application.Resources> </Application.Resources>
</Application> </Application>

Loading…
Cancel
Save