<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:system="clr-namespace:System;assembly=mscorlib"
                    xmlns:po="http://schemas.microsoft.com/winfx/2006/xaml/presentation/options"
                    xmlns:m="clr-namespace:ThemeLibrary.Markup;assembly=ThemeLibrary">


    <Color x:Key="Primary.Color">#FFFFFF</Color>
    <Color x:Key="PrimaryColorInverted">#000000</Color>

    <SolidColorBrush x:Key="Text.Primary" Color="{StaticResource Primary.Color}" />


    <Color x:Key="Secondary.Color">#303030</Color>
    <Color x:Key="Background.Color">#000000</Color>
    <SolidColorBrush
        x:Key="BackgroundBrush"
        po:Freeze="True"
        Color="{StaticResource Background.Color}" />

    <Color x:Key="BackgroundSecondary.Color">#F0F0F0</Color>
    <SolidColorBrush
        x:Key="Window.Background.Dialog"
        po:Freeze="True"
        Color="{StaticResource BackgroundSecondary.Color}" />

    <!--  COMMON  -->
    <m:StaticResourceColorEx
        x:Key="Gray10.Color"
        BlendColor="#FFFFFF"
        Multiplier=".1"
        ResourceKey="Background.Color" />
    <m:StaticResourceColorEx
        x:Key="Gray20.Color"
        po:Freeze="True"
        BlendColor="#FFFFFF"
        Multiplier=".2"
        ResourceKey="Background.Color" />
    <m:StaticResourceColorEx
        x:Key="Gray30.Color"
        BlendColor="#FFFFFF"
        Multiplier=".3"
        ResourceKey="Background.Color" />
    <m:StaticResourceColorEx
        x:Key="Gray40.Color"
        BlendColor="#FFFFFF"
        Multiplier=".4"
        ResourceKey="Background.Color" />
    <m:StaticResourceColorEx
        x:Key="Gray50.Color"
        BlendColor="#FFFFFF"
        Multiplier=".5"
        ResourceKey="Background.Color" />
    <m:StaticResourceColorEx
        x:Key="Gray60.Color"
        BlendColor="#FFFFFF"
        Multiplier=".6"
        ResourceKey="Background.Color" />

    <m:StaticResourceColorEx
        x:Key="AccentF1.Color"
        BlendColor="#FFFFFF"
        Multiplier=".1"
        ResourceKey="Accent.Color" />
    <m:StaticResourceColorEx
        x:Key="AccentF2.Color"
        BlendColor="#FFFFFF"
        Multiplier=".2"
        ResourceKey="Accent.Color" />
    <m:StaticResourceColorEx
        x:Key="AccentF3.Color"
        BlendColor="#FFFFFF"
        Multiplier=".3"
        ResourceKey="Accent.Color" />

    <m:StaticResourceColorEx
        x:Key="AccentB1.Color"
        BlendColor="#000000"
        Multiplier=".1"
        ResourceKey="Accent.Color" />
    <m:StaticResourceColorEx
        x:Key="AccentB2.Color"
        BlendColor="#000000"
        Multiplier=".2"
        ResourceKey="Accent.Color" />
    <m:StaticResourceColorEx
        x:Key="AccentB3.Color"
        BlendColor="#000000"
        Multiplier=".3"
        ResourceKey="Accent.Color" />


    <SolidColorBrush x:Key="AccentF1" Color="{StaticResource AccentF1.Color}" />
    <SolidColorBrush x:Key="AccentF2" Color="{StaticResource AccentF2.Color}" />
    <SolidColorBrush x:Key="AccentF3" Color="{StaticResource AccentF3.Color}" />
    <SolidColorBrush x:Key="AccentB1" Color="{StaticResource AccentB1.Color}" />
    <SolidColorBrush x:Key="AccentB2" Color="{StaticResource AccentB2.Color}" />
    <SolidColorBrush x:Key="AccentB3" Color="{StaticResource AccentB3.Color}" />

    <m:StaticResourceColorEx
        x:Key="GraphicElement.Color"
        BlendColor="#000000"
        Multiplier="-.3"
        ResourceKey="Primary.Color" />

    <m:StaticResourceColorEx
        x:Key="Text.Disabled.Color"
        BlendColor="#000000"
        Multiplier=".3"
        ResourceKey="Primary.Color" />


    <!--  placeholder  -->
    <SolidColorBrush
        x:Key="ListItem.Background.Hover"
        Opacity=".5"
        Color="{DynamicResource Gray20.Color}" />
    <m:StaticResourceBrushEx
        x:Key="ListItem.Background.Selected"
        BlendColor="#000000"
        Multiplier=".0"
        Opacity=".8"
        ResourceKey="Accent.Color" />



    <SolidColorBrush x:Key="ListItem.Background.DragEnter" Color="{StaticResource AccentF3.Color}" />


    <SolidColorBrush x:Key="IconButton.Background" Color="#e8e8e8" />
    <SolidColorBrush x:Key="Button.Background" Color="{StaticResource Gray10.Color}" />
    <SolidColorBrush x:Key="Button.Background.Hover" Color="{StaticResource Gray20.Color}" />
    <SolidColorBrush x:Key="Button.Background.Pressed" Color="{DynamicResource Gray30.Color}" />
    <SolidColorBrush x:Key="Button.Background.Disabled" Color="{StaticResource Gray40.Color}" />

    <SolidColorBrush x:Key="Button.Foreground" Color="{StaticResource Primary.Color}" />
    <SolidColorBrush x:Key="Button.Foreground.Hover" Color="{StaticResource Primary.Color}" />
    <SolidColorBrush x:Key="Button.Foreground.Pressed" Color="{StaticResource Primary.Color}" />
    <SolidColorBrush x:Key="Button.Foreground.Disabled" Color="{StaticResource Text.Disabled.Color}" />

    <SolidColorBrush x:Key="Button.Border" Color="Transparent" />
    <SolidColorBrush x:Key="Button.Border.Hover" Color="Transparent" />
    <SolidColorBrush x:Key="Button.Border.Pressed" Color="Transparent" />
    <SolidColorBrush x:Key="Button.Border.Disabled" Color="Transparent" />



    <system:Double x:Key="TextBox.MinHeight">20</system:Double>
    <Thickness x:Key="TextBox.Padding">2,2,2,4</Thickness>
    <CornerRadius x:Key="TextBox.CornerRadius">2</CornerRadius>

    <SolidColorBrush x:Key="TextBox.Foreground" Color="{StaticResource Primary.Color}" />
    <SolidColorBrush x:Key="TextBox.Foreground.Disabled" Color="{StaticResource Text.Disabled.Color}" />

    <SolidColorBrush x:Key="TextBox.Selection" Color="{StaticResource AccentF3.Color}" />
    <system:Double x:Key="TextBox.Selection.Opacity">0.4</system:Double>

    <SolidColorBrush x:Key="TextBox.Background" Color="{StaticResource Background.Color}" />
    <SolidColorBrush x:Key="TextBox.Background.Hover" Color="{StaticResource Gray10.Color}" />
    <SolidColorBrush x:Key="TextBox.Background.Focus" Color="{StaticResource Background.Color}" />
    <SolidColorBrush x:Key="TextBox.Background.Disabled" Color="{StaticResource Gray30.Color}" />

    <Thickness x:Key="TextBox.Border.Thickness">1</Thickness>
    <SolidColorBrush x:Key="TextBox.Border" Color="{StaticResource GraphicElement.Color}" />
    <SolidColorBrush x:Key="TextBox.Border.Hover" Color="{StaticResource AccentF3.Color}" />
    <SolidColorBrush x:Key="TextBox.Border.Focus" Color="{StaticResource Accent.Color}" />
    <SolidColorBrush x:Key="TextBox.Border.Disabled" Color="{StaticResource Gray50.Color}" />


    <CornerRadius x:Key="CheckBox.CornerRadius">1</CornerRadius>

    <SolidColorBrush x:Key="CheckBox.Foreground.Disabled" Color="{StaticResource Text.Disabled.Color}" />

    <SolidColorBrush x:Key="CheckBox.Background" Color="{StaticResource Background.Color}" />
    <SolidColorBrush x:Key="CheckBox.Background.Hover" Color="{DynamicResource Gray20.Color}" />
    <SolidColorBrush
        x:Key="CheckBox.Background.Pressed"
        Opacity=".5"
        Color="{StaticResource AccentF3.Color}" />
    <SolidColorBrush x:Key="CheckBox.Background.Checked" Color="{DynamicResource Accent.Color}" />
    <SolidColorBrush x:Key="CheckBox.Background.Disabled" Color="{DynamicResource AccentB3.Color}" />



    <Thickness x:Key="CheckBox.Border.Thickness">1</Thickness>
    <SolidColorBrush x:Key="CheckBox.Border" Color="{StaticResource Primary.Color}" />
    <SolidColorBrush x:Key="CheckBox.Border.Hover" Color="{DynamicResource Accent.Color}" />
    <SolidColorBrush x:Key="CheckBox.Border.Pressed" Color="{DynamicResource Accent.Color}" />
    <SolidColorBrush x:Key="CheckBox.Border.Checked" Color="{StaticResource Accent.Color}" />
    <SolidColorBrush x:Key="CheckBox.Border.Disabled" Color="{StaticResource Gray50.Color}" />

    <SolidColorBrush x:Key="CheckBox.CheckMark" Color="{DynamicResource Primary.Color}" />


    <SolidColorBrush x:Key="ComboBoxItemPillFillBrush" Color="{DynamicResource AccentF3.Color}" />

    <CornerRadius x:Key="ComboBox.Popup.CornerRadius">2</CornerRadius>
    <Thickness x:Key="ComboBox.Item.Margin">0</Thickness>
    <Thickness x:Key="ComboBox.Item.Padding">2,2,2,4</Thickness>

    <Thickness x:Key="ComboBox.Padding">2,2,2,4</Thickness>

    <SolidColorBrush x:Key="ComboBox.Chevron.Foreground" Color="{DynamicResource Primary.Color}" />
    <system:Double x:Key="ComboBox.Chevron.Size">16.0</system:Double>
    <Thickness x:Key="ComboBox.Chevron.Margin">8,0,4,0</Thickness>

    <SolidColorBrush x:Key="ComboBox.Popup.Background" Color="{DynamicResource Gray10.Color}" />
    <SolidColorBrush x:Key="ComboBox.Popup.Border" Color="{DynamicResource GraphicElement.Color}" />
    <SolidColorBrush x:Key="ComboBox.Popup.Background.Disabled" Color="{StaticResource Gray50.Color}" />
    <SolidColorBrush x:Key="ComboBox.Border.Focus" Color="{DynamicResource Accent.Color}" />
    <Thickness x:Key="ComboBox.Border.Focus.Thickness">1</Thickness>

    <system:Double x:Key="ComboBox.Popup.MinHeight">32.0</system:Double>


    <system:Double x:Key="Slider.Thumb.Size">20</system:Double>
    <system:Double x:Key="Slider.Thumb.Border.Size">1</system:Double>

    <SolidColorBrush x:Key="Slider.Thumb.Background" Color="{DynamicResource Accent.Color}" />
    <SolidColorBrush x:Key="Slider.Thumb.Background.PointerOver" Color="{DynamicResource AccentB2.Color}" />
    <SolidColorBrush x:Key="Slider.Thumb.Background.Disabled" Color="{DynamicResource Gray40.Color}" />
    <SolidColorBrush x:Key="Slider.Thumb.Border" Color="{StaticResource AccentF2.Color}" />


    <system:Double x:Key="Slider.Track.Size">2.0</system:Double>
    <SolidColorBrush x:Key="Slider.Track.Fill.Accent" Color="{DynamicResource Accent.Color}" />
    <SolidColorBrush x:Key="Slider.Track.Fill" Color="{DynamicResource GraphicElement.Color}" />
    <SolidColorBrush x:Key="Slider.Track.Fill.Disabled" Color="{DynamicResource Gray40.Color}" />
    <!--<SolidColorBrush x:Key="Slider.Track.Fill.PointerOver" Color="{StaticResource AccentF1.Color}" />-->
    <SolidColorBrush x:Key="Slider.TickBar.Fill" Color="{DynamicResource GraphicElement.Color}" />


    <Style x:Key="GroupBox.Header.TextBlock" TargetType="TextBlock">
        <Setter Property="Foreground" Value="{DynamicResource Text.Primary}" />
        <Setter Property="FontSize" Value="{m:FontSizeOffset Offset=4}" />
        <Setter Property="TextWrapping" Value="Wrap" />
    </Style>



</ResourceDictionary>
