Initial commit
This commit is contained in:
34
Apollon.WPF/Themes/ButtonTheme.xaml
Normal file
34
Apollon.WPF/Themes/ButtonTheme.xaml
Normal file
@@ -0,0 +1,34 @@
|
||||
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
||||
|
||||
<Style TargetType="{x:Type Button}"
|
||||
x:Key="ModernButton">
|
||||
<Setter Property="Foreground" Value="#0000a0"/>
|
||||
<Setter Property="FontFamily" Value="Arial"/>
|
||||
<Setter Property="FontWeight" Value="Bold"/>
|
||||
|
||||
<Setter Property="Background" Value="#808080"/>
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="{x:Type Button}">
|
||||
<Border Background="{TemplateBinding Background}" CornerRadius="10"
|
||||
BorderThickness="2"
|
||||
BorderBrush="#0000a0">
|
||||
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
||||
|
||||
</Border>
|
||||
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
|
||||
<Style.Triggers>
|
||||
<Trigger Property="IsMouseOver" Value="True">
|
||||
<Setter Property="Background" Value="#ff8000"/>
|
||||
<Setter Property="Opacity" Value="0.8"/>
|
||||
<Setter Property="Foreground" Value="#0000a0"/>
|
||||
</Trigger>
|
||||
</Style.Triggers>
|
||||
|
||||
</Style>
|
||||
</ResourceDictionary>
|
||||
Reference in New Issue
Block a user