52 lines
2.7 KiB
XML
52 lines
2.7 KiB
XML
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:wpf="clr-namespace:WPFDark"
|
|
xmlns:controls="clr-namespace:WPFDark.Controls">
|
|
<Style TargetType="{x:Type controls:BiaCheckBox}">
|
|
<Setter Property="Foreground" Value="{DynamicResource ForegroundBrushKey}" />
|
|
<Setter Property="Height" Value="20.0" />
|
|
<Setter Property="CornerRadius" Value="{x:Static wpf:Boxes.BasicCornerRadiusPrim}" />
|
|
<Setter Property="Background" Value="{DynamicResource TextBoxBackgroundBrushKey}" />
|
|
|
|
<Style.Triggers>
|
|
<MultiTrigger>
|
|
<MultiTrigger.Conditions>
|
|
<Condition Property="IsMouseOver" Value="True" />
|
|
<Condition Property="IsChecked" Value="False" />
|
|
<Condition Property="IsPressed" Value="False" />
|
|
</MultiTrigger.Conditions>
|
|
|
|
<Setter Property="BoxBorderColor" Value="{DynamicResource AccentColorKey}" />
|
|
</MultiTrigger>
|
|
|
|
<MultiTrigger>
|
|
<MultiTrigger.Conditions>
|
|
<Condition Property="IsMouseOver" Value="True" />
|
|
<Condition Property="IsChecked" Value="True" />
|
|
<Condition Property="IsPressed" Value="False" />
|
|
</MultiTrigger.Conditions>
|
|
|
|
<Setter Property="BoxBorderColor" Value="{x:Static wpf:ByteColor.Transparent}">
|
|
</Setter>
|
|
</MultiTrigger>
|
|
|
|
<Trigger Property="IsChecked" Value="True">
|
|
<Setter Property="MarkBrush" Value="{DynamicResource BackgroundBackgroundBrushKey}" />
|
|
<Setter Property="Background" Value="{DynamicResource AccentBrushKey}" />
|
|
<Setter Property="BoxBorderColor" Value="{DynamicResource AccentColorKey}" />
|
|
</Trigger>
|
|
|
|
<Trigger Property="IsPressed" Value="True">
|
|
<Setter Property="Background" Value="{DynamicResource AccentBrushKey}" />
|
|
<Setter Property="BoxBorderColor" Value="{DynamicResource AccentColorKey}" />
|
|
</Trigger>
|
|
|
|
<Trigger Property="IsEnabled" Value="False">
|
|
<Setter Property="MarkBrush" Value="{DynamicResource InactiveForegroundBrushKey}" />
|
|
<Setter Property="BoxBorderColor" Value="{DynamicResource InactiveBorderColorKey}" />
|
|
<Setter Property="Foreground" Value="{DynamicResource InactiveForegroundBrushKey}" />
|
|
<Setter Property="Background" Value="{DynamicResource InactiveBackgroundBrushKey}" />
|
|
</Trigger>
|
|
</Style.Triggers>
|
|
</Style>
|
|
</ResourceDictionary> |