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




    <!--
        Theme Author: Milos Paripovic
        
        Copy the whole theme folder from /Themes/ and make changes there (themes with the same name as official ones will be overwritten on program update)
        
        If the syntax is invalid, the default theme will load (it may also crash)
        
        Keys may change in the future.
        
        You can use color chart from http://i.msdn.microsoft.com/dynimg/IC210551.png
        so instead of Color="#000000" you can write Color="Black"
        
        Brushes can be any XAML brush type; values can be RGB or ARGB
        
        Suggestion: Use Notepad++ with XML coloring, or another code editor with syntax highlighting
        
        Pressing Ctrl+Shift+Alt+F5 reloads the theme, which is useful while editing, but not all keys will be reloaded because some require a restart
        
        
        Common confusion:
        Brush vs Color
        Color is used to make a Brush, but
        Background or Foreground can only be a Brush (a Brush can also be a gradient, image, and more than just a solid color)
        
        Color resources here usually have suffix ".Color"
        
        Border in XAML doesn't mean just a line around something - the whole thing can also have a background
        
        Make sure you close all {} and use these quotes " ". Use # only where it belongs
        
        You will usually want to start from an existing dark or light theme and modify it (don't start from a light theme and try to make it dark)
        
        old theme migration:
        Add the MAIN THEME MIXING COLORS and COMMON sections from a newer dark/light theme
        c:\git\onecommander\rapidrive\themes\blender\blender.xaml
        Run regex replace (or manually compare one of the new themes with yours in something like WinMerge)
        Find: x:Key="([A-Za-z0-9]+)Color" Replace: x:Key="$1.Color"
        Find: x:Key="ListItem(Even|Odd|ToDo|ToDoDone)(Background|Foreground)(Brush)?" Replace: x:Key="ListItem.$2.$1"
        Find: x:Key="MenuItem\.([A-Za-z0-9\.]+)" Replace: x:Key="Menu.Item.$1"
    -->

    <system:String x:Key="ThemeAuthor">Milos Paripovic</system:String>
    <system:String x:Key="ThemeDescription">Theme inspired by Blender 5 color theme. You may want to apply suggested Accent color. Turn off Acrylic effect</system:String>


    <!--  MAIN THEME MIXING COLORS  -->
    <!--  you likely don't want to change this section  -->

    <!--  Foreground = Text  -->
    <Color x:Key="Base.Foreground.Color" po:Freeze="True">#ffffff</Color>

    <!--  Background - not actual background but also base for mixing grays and other colors  -->
    <!--  DEVNOTE: ThemesManager relies on this to determine if window should get the dark treatment  -->
    <Color x:Key="Base.Background.Color">#000000</Color>
    <SolidColorBrush x:Key="Base.Background" Color="#000000" />

<Color x:Key="SuggestedAccent.Color">#0066e0</Color>
    <!--  COMMON  -->
    <!--
        You likely shouldn't change it
        these can be later used as resources
        Example: Gray30Color is 30% of the way between BlendColor and BackgroundBaseColor (ResourceKey here)
    -->
    <m:StaticResourceColorEx
        x:Key="Gray03.Color"
        BlendColor="#ffffff"
        Multiplier=".03"
        ResourceKey="Base.Background.Color" />
    <m:StaticResourceColorEx
        x:Key="Gray05.Color"
        BlendColor="#ffffff"
        Multiplier=".05"
        ResourceKey="Base.Background.Color" />
    <m:StaticResourceColorEx
        x:Key="Gray10.Color"
        BlendColor="#ffffff"
        Multiplier=".1"
        ResourceKey="Base.Background.Color" />
    <m:StaticResourceColorEx
        x:Key="Gray20.Color"
        po:Freeze="True"
        BlendColor="#ffffff"
        Multiplier=".2"
        ResourceKey="Base.Background.Color" />
    <m:StaticResourceColorEx
        x:Key="Gray30.Color"
        BlendColor="#ffffff"
        Multiplier=".3"
        ResourceKey="Base.Background.Color" />
    <m:StaticResourceColorEx
        x:Key="Gray40.Color"
        BlendColor="#ffffff"
        Multiplier=".4"
        ResourceKey="Base.Background.Color" />
    <m:StaticResourceColorEx
        x:Key="Gray50.Color"
        BlendColor="#ffffff"
        Multiplier=".5"
        ResourceKey="Base.Background.Color" />
    <m:StaticResourceColorEx
        x:Key="Gray60.Color"
        BlendColor="#ffffff"
        Multiplier=".6"
        ResourceKey="Base.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="-.16"
        ResourceKey="Accent.Color" />
    <m:StaticResourceColorEx
        x:Key="AccentB2.Color"
        BlendColor="#000000"
        Multiplier="-.33"
        ResourceKey="Accent.Color" />

    <!--
        Used later for list item selection background,
        so accent has to be diluted enough for text and also secondary text (extension, metadata)
        to be visible on this color
    -->
    <m:StaticResourceColorEx
        x:Key="AccentB3.Color"
        BlendColor="#000000"
        Multiplier="-.50"
        ResourceKey="Accent.Color" />

    <!--
        Based on AccentX#Color, that are 10%, 20%, 30% toward Foreground color ("F") or background color ("B")
        these values have to be higher for light theme than for dark
    -->
    <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}" />

    <!--  General tint to hint different surface. Used only within the theme file. It has some alpha applied on gray color, so any surface would stand up a bit whatever color is underneath  -->
    <Color x:Key="TintSurface.Color">#367f7f7f</Color>
    <SolidColorBrush x:Key="TintSurface" Color="{DynamicResource TintSurface.Color}" />


    <!--
        =========================
        MESSAGE (text on top)
        WCAG-safe with white text
        =========================
    -->

    <SolidColorBrush x:Key="Message.Success.Background" Color="#1C7C36" />
    <SolidColorBrush x:Key="Message.Success.Foreground" Color="White" />

    <SolidColorBrush x:Key="Message.Error.Background" Color="#B63737" />
    <SolidColorBrush x:Key="Message.Error.Foreground" Color="White" />

    <SolidColorBrush x:Key="Message.Warning.Background" Color="#B36B00" />
    <SolidColorBrush x:Key="Message.Warning.Foreground" Color="White" />

    <SolidColorBrush x:Key="Message.Info.Background" Color="#1668B3" />
    <SolidColorBrush x:Key="Message.Info.Foreground" Color="White" />


    <!--
        =========================
        STATUS (no text)
        Slightly brighter/more vivid
        so they read clearly as signals
        Used as progress bar fill in Taskmaster
        =========================
    -->

    <SolidColorBrush x:Key="Status.Good" Color="#47B85A" />
    <SolidColorBrush x:Key="Status.Warning" Color="#D08A00" />
    <SolidColorBrush x:Key="Status.Critical" Color="#E05252" />
    <SolidColorBrush x:Key="Status.Active" Color="{DynamicResource Accent.Color}" />
    <SolidColorBrush x:Key="Status.Neutral" Color="#8B8D93" />


    <!--
        =========================
        TAG
        =========================
    -->

    <SolidColorBrush x:Key="Tag.Red" Color="#EF7063" />
    <SolidColorBrush x:Key="Tag.Orange" Color="#EDA95D" />
    <SolidColorBrush x:Key="Tag.Yellow" Color="#DDBB4F" />
    <SolidColorBrush x:Key="Tag.Green" Color="#88C866" />
    <SolidColorBrush x:Key="Tag.Blue" Color="#6FB8EF" />
    <SolidColorBrush x:Key="Tag.Purple" Color="#C78EDD" />
    <SolidColorBrush x:Key="Tag.Gray" Color="#83868C" />


    <!--  COMMON end  -->






    <!--  Theme  -->

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

    <!--  Highlighted Text, like GB portion of file size, or number of selected files. Can be the same as Text.Primary to keep the same color. Make it close to foreground color so it doesn't become invisible on ListItem.Background.Selected when item is selected, has to be defined after AccentColors  -->
    <SolidColorBrush x:Key="Text.Accent" Color="{StaticResource AccentF3.Color}" />

    <!--<Color x:Key="Secondary.Color">#656565</Color>-->
    <m:StaticResourceColorEx
        x:Key="Secondary.Color"
        BlendColor="#000000"
        Multiplier=".3"
        ResourceKey="Base.Foreground.Color" />

    <!--
        Metadata/extension in files list, shortcuts in menu and tooltips...
        Make sure that text in those places is still readable with selection/hover on that item
    -->
    <SolidColorBrush x:Key="Text.Secondary" Color="{StaticResource Secondary.Color}" />

    <!--  Disabled menu items, buttons, checkboxes  -->
   <Color x:Key="Text.Disabled.Color" po:Freeze="True">#7F7F7F</Color>



    <!--  Textbox and ComboBox borders, trackbar fill  -->
    <Color x:Key="GraphicElement.Color" po:Freeze="True">#4A4A4A</Color>
  
    <SolidColorBrush x:Key="GraphicElement" Color="{DynamicResource GraphicElement.Color}" />


    <Thickness x:Key="ListBox.Border.Thickness">1</Thickness>
    <SolidColorBrush x:Key="ListBox.Border" Color="{DynamicResource GraphicElement.Color}" />
    <SolidColorBrush x:Key="ListBox.Background" Color="{DynamicResource TintSurface.Color}" />

    <SolidColorBrush
        x:Key="ListItem.Background.Hover"
        Color="#444444" />
    <m:StaticResourceBrushEx
        x:Key="ListItem.Background.Selected"
        BlendColor="#000000"
        Multiplier=".6"
        Opacity=".9"
        ResourceKey="Accent.Color" />
    <m:StaticResourceBrushEx
        x:Key="ListItem.Background.Selected.Hover"
        BlendColor="#000000"
        Multiplier=".57"
        Opacity=".9"
        ResourceKey="Accent.Color" />
    <SolidColorBrush x:Key="ListItem.Background.DragEnter" Color="{StaticResource AccentB3.Color}" />



    <!--  COMMON ELEMENTS  -->

    <s:Double x:Key="Button.MinSize">23</s:Double>
    <Thickness x:Key="Button.Padding">4,0,4,0</Thickness>

    <SolidColorBrush x:Key="Button.Background" Color="#1D1D1D" />
    <SolidColorBrush x:Key="Button.Background.Hover" Color="#303030" />
    <SolidColorBrush x:Key="Button.Background.Pressed" Color="{DynamicResource Gray30.Color}" />
    <SolidColorBrush x:Key="Button.Background.Disabled" Color="{StaticResource Base.Background.Color}" />

    <SolidColorBrush x:Key="Button.Foreground" Color="{StaticResource Base.Foreground.Color}" />
    <SolidColorBrush x:Key="Button.Foreground.Hover" Color="{StaticResource Base.Foreground.Color}" />
    <SolidColorBrush x:Key="Button.Foreground.Pressed" Color="{StaticResource Base.Foreground.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" />

    <Thickness x:Key="Button.Border.Thickness">0</Thickness>

    <!--  IconButton is similar to a regular button, but it can also be transparent without looking out of place  -->

    <Thickness x:Key="IconButton.Padding">4,0,4,1</Thickness>

    <SolidColorBrush x:Key="IconButton.Background" Color="#1D1D1D" />
    <SolidColorBrush x:Key="IconButton.Background.Hover" Color="#303030" />
    <SolidColorBrush x:Key="IconButton.Background.Pressed" Color="{DynamicResource Gray30.Color}" />
    <SolidColorBrush x:Key="IconButton.Background.Disabled" Color="{StaticResource Base.Background.Color}" />

    <SolidColorBrush x:Key="IconButton.Foreground" Color="{StaticResource Base.Foreground.Color}" />
    <SolidColorBrush x:Key="IconButton.Foreground.Hover" Color="{StaticResource Base.Foreground.Color}" />
    <SolidColorBrush x:Key="IconButton.Foreground.Pressed" Color="{StaticResource Base.Foreground.Color}" />
    <!--<SolidColorBrush x:Key="IconButton.Foreground.Disabled" Color="{StaticResource Text.Disabled.Color}" />-->
    <system:Double x:Key="IconButton.Opacity.Disabled">0.5</system:Double>

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

    <SolidColorBrush x:Key="Toggle.Background.Checked" Color="{DynamicResource AccentB3.Color}" />




    <!--  Arrow buttons on resizers  -->
    <SolidColorBrush x:Key="Button.Secondary.Foreground" Color="{StaticResource Secondary.Color}" />

    <SolidColorBrush x:Key="TitleBar.Button.Background" Color="Transparent" />
    <SolidColorBrush x:Key="TitleBar.Button.Background.Hover" Color="#19FFFFFF" />
    <SolidColorBrush x:Key="TitleBar.Button.Background.Pressed" Color="#33FFFFFF" />
    <SolidColorBrush x:Key="TitleBar.Button.Foreground" Color="#FFFFFFFF" />
    <SolidColorBrush x:Key="TitleBar.Button.Foreground.Hover" Color="#FFFFFFFF" />
    <SolidColorBrush x:Key="TitleBar.Button.Foreground.Pressed" Color="#FFFFFFFF" />

    <SolidColorBrush x:Key="Sorter.Border.Selected" Color="{DynamicResource Accent.Color}" />
    <Thickness x:Key="Sorter.Border.Selected.Thickness">0,0,0,2</Thickness>
    <SolidColorBrush x:Key="Sorter.Background.Hover" Color="{StaticResource Gray20.Color}" />
    <SolidColorBrush x:Key="Sorter.Background.Selected" Color="Transparent" />

    <!--  Taskmaster warning message background, pause state, more soon  -->
    <SolidColorBrush x:Key="Warning.Background" Color="#FFFF8201" />

    <SolidColorBrush x:Key="Menu.Background" Color="#181818" />

    <SolidColorBrush x:Key="Menu.Item.Background" Color="Transparent" />
    <SolidColorBrush
        x:Key="Menu.Item.Background.Hover" Color="#313131" />
    <SolidColorBrush
        x:Key="Menu.Item.Background.Pressed" Color="#313131" />
    <SolidColorBrush x:Key="Menu.Item.Background.Disabled" Color="Transparent" />

    <SolidColorBrush x:Key="Menu.Item.Foreground" Color="{StaticResource Base.Foreground.Color}" />
    <SolidColorBrush x:Key="Menu.Item.Foreground.Hover" Color="{StaticResource Base.Foreground.Color}" />
    <SolidColorBrush x:Key="Menu.Item.Foreground.Pressed" Color="{StaticResource Base.Foreground.Color}" />
    <SolidColorBrush x:Key="Menu.Item.Foreground.Disabled" Color="{StaticResource Text.Disabled.Color}" />

    <SolidColorBrush x:Key="Menu.Item.Foreground.Shortcut" Color="{StaticResource Secondary.Color}" />

    <SolidColorBrush x:Key="Menu.Separator.Foreground" Color="{StaticResource Secondary.Color}" />
    <system:Double x:Key="Menu.Separator.Height">1</system:Double>


    <SolidColorBrush x:Key="Menu.Border" Color="Transparent" />
    <Thickness x:Key="Menu.Border.Thickness">0</Thickness>
    <Thickness x:Key="Menu.Padding">1</Thickness>
    <system:Double x:Key="Menu.MaxWidth">450</system:Double>

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

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

    <SolidColorBrush x:Key="TextBox.Selection.Foreground" Color="{StaticResource Base.Foreground.Color}" />
    <m:StaticResourceBrushEx
        x:Key="TextBox.Selection.Background"
        BlendColor="#000000"
        Multiplier=".5"
        Opacity="1"
        ResourceKey="Accent.Color" />

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

    <Thickness x:Key="TextBox.Border.Thickness">1</Thickness>
    <SolidColorBrush x:Key="TextBox.Border" Color="Transparent" />
    <SolidColorBrush x:Key="TextBox.Border.Hover" Color="Transparent" />
    <SolidColorBrush x:Key="TextBox.Border.Focus" Color="Transparent" />
    <SolidColorBrush x:Key="TextBox.Border.Disabled" Color="Transparent" />
    <!--  ComboBox TextBox shares this  -->


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

    <SolidColorBrush x:Key="CheckBox.Foreground.Disabled" Color="#606B7B" />

    <SolidColorBrush x:Key="CheckBox.Background" Color="#545454" />
    <SolidColorBrush x:Key="CheckBox.Background.Hover" Color="#656565" />
    <SolidColorBrush
        x:Key="CheckBox.Background.Pressed"
        Opacity=".5"
        Color="{StaticResource AccentF3.Color}" />
    <SolidColorBrush x:Key="CheckBox.Background.Checked" Color="#4772B3" />
    <SolidColorBrush x:Key="CheckBox.Background.Disabled" Color="#425778" />




    <Thickness x:Key="CheckBox.Border.Thickness">1</Thickness>
    <SolidColorBrush x:Key="CheckBox.Border" Color="Transparent" />
    <SolidColorBrush x:Key="CheckBox.Border.Hover" Color="Transparent" />
    <SolidColorBrush x:Key="CheckBox.Border.Pressed" Color="Transparent" />
    <SolidColorBrush x:Key="CheckBox.Border.Checked" Color="Transparent" />
    <SolidColorBrush x:Key="CheckBox.Border.Disabled" Color="Transparent" />

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


    <!-- RadioButton border/theme resources -->
    <Thickness x:Key="RadioButton.Border.Thickness">1</Thickness>
    <SolidColorBrush x:Key="RadioButton.Border"
               Color="{StaticResource GraphicElement.Color}" />
    <SolidColorBrush x:Key="RadioButton.Border.Hover"
               Color="{DynamicResource Accent.Color}" />
    <SolidColorBrush x:Key="RadioButton.Border.Pressed"
               Color="{DynamicResource Accent.Color}" />
    <SolidColorBrush x:Key="RadioButton.Border.Checked"
               Color="{StaticResource Accent.Color}" />
    <SolidColorBrush x:Key="RadioButton.Border.Disabled"
               Color="{StaticResource Gray50.Color}" />
    <Thickness x:Key="RadioButton.Padding">4</Thickness>



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

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

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

    <SolidColorBrush x:Key="ComboBox.Popup.Background" Color="#181818" />
    <SolidColorBrush x:Key="ComboBox.Popup.Border" Color="Transparent" />
    <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="{StaticResource AccentF3.Color}" />
    <SolidColorBrush x:Key="Slider.Thumb.Background.Disabled" Color="{DynamicResource AccentB3.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.PointerOver" Color="{StaticResource AccentF1.Color}" />
    <SolidColorBrush x:Key="Slider.TickBar.Fill" Color="{DynamicResource GraphicElement.Color}" />

    <SolidColorBrush x:Key="ProgressBar.Background" Color="{DynamicResource Gray10.Color}" />
    <SolidColorBrush x:Key="ProgressBar.Track.Fill" Color="{DynamicResource Accent.Color}" />
    <SolidColorBrush x:Key="ProgressBar.Border" Color="{DynamicResource Gray10.Color}" />

    <Style x:Key="GroupBox.Header.TextBlock" TargetType="TextBlock">
        <Setter Property="Foreground" Value="{DynamicResource Text.Primary}" />
        <Setter Property="FontWeight" Value="Normal" />
        <Setter Property="FontSize" Value="{m:FontSizeOffset Offset=4}" />
        <Setter Property="TextWrapping" Value="Wrap" />
    </Style>
    <!--  end of COMMON ELEMENTS  -->



    <!--  TASKMASTER  -->


    <SolidColorBrush x:Key="Job.Background" Color="{DynamicResource Gray10.Color}" />

    <!--  same as "ListItem.Background.Hover" ?  -->
    <SolidColorBrush
        x:Key="Job.Background.Hover"
        Opacity=".5"
        Color="{DynamicResource Gray20.Color}" />

    <!--  same as "ListItem.Background.Selected.Hover" ?  -->
    <m:StaticResourceBrushEx
        x:Key="Job.Background.Selected"
        BlendColor="#000000"
        Multiplier=".57"
        Opacity=".9"
        ResourceKey="Accent.Color" />



    <!--  WINDOW  -->

    <Thickness x:Key="Window.Padding">0</Thickness>
    <!--  margin/padding in XAML is in order Left,Top,Right,Bottom  -->



    <!--
        Fallback background for Windows 10 without effects, and the solid-color mixing base for Mica/Acrylic
        (affected by the Opacity slider). It also hides the ugly flash while Windows' DWM catches up on window open.
        When you save this theme this will not auto-reload; switch to a different theme and back.
        Don't leave it completely black or white, because elements with transparency will get lost and look dull.
    -->
    <SolidColorBrush x:Key="Window.Background.Fallback" Color="#181818" />

    <!--  for all windows and dialogs that don't have Acrylic/Mica effect  -->
    <SolidColorBrush x:Key="Window.Background.Dialog" Color="#303030" />
    <SolidColorBrush x:Key="Window.Background.MessageBox" Color="#303030" />

    <!--  Some styles later use Window.Background.Dialog; Use it to lift a bit from background color so not everything is melted together  -->


    <Style x:Key="Tooltip.Panel" TargetType="{x:Type Border}">
        <Setter Property="Background" Value="#1D1D1D" />
        <Setter Property="Effect" Value="{DynamicResource Effect.Shadow.Shallow}" />
        <Setter Property="CornerRadius" Value="2" />
    </Style>

    <!--  Transparent to have Acrylic effect on side  -->
    <SolidColorBrush x:Key="Sidebar.Background" Color="Transparent" />


    <!--  Main style for text; Foreground color should be same as Text.Primary  -->
    <Style x:Key="{x:Type TextBlock}" TargetType="TextBlock">
        <Setter Property="Foreground" Value="{DynamicResource Text.Primary}" />
    </Style>



    <!--  For grid view only for now. I use value from CurrentFolderPanelBackgroundBrush (unless transparent) and add BE in front to give it transparency  -->
    <SolidColorBrush x:Key="Text.Overlay.Background" Color="#BE000000" />

    <!--  Used only within theme file for some lines  -->
    <LinearGradientBrush x:Key="FadingHorizontalGradient" StartPoint="0,0" EndPoint="1,0">
        <GradientStop Offset="0" Color="#00000000" />
        <GradientStop Offset=".3" Color="#33ffffff" />
        <GradientStop Offset=".7" Color="#33ffffff" />
        <GradientStop Offset="1" Color="#00000000" />
    </LinearGradientBrush>
    <LinearGradientBrush x:Key="FadingVerticalGradient" StartPoint="0,0" EndPoint="0,1">
        <GradientStop Offset="0" Color="#00000000" />
        <GradientStop Offset=".3" Color="#33ffffff" />
        <GradientStop Offset=".7" Color="#33ffffff" />
        <GradientStop Offset="1" Color="#00000000" />
    </LinearGradientBrush>

    <LinearGradientBrush x:Key="FadingVerticalGradientAccent" StartPoint="0,0" EndPoint="0,1">
        <GradientStop Offset="0" Color="#00000000" />
        <GradientStop Offset=".2" Color="{DynamicResource AccentB2.Color}" />
        <GradientStop Offset=".8" Color="{DynamicResource AccentB2.Color}" />
        <GradientStop Offset="1" Color="#00000000" />
    </LinearGradientBrush>

    <LinearGradientBrush x:Key="FadingHorizontalGradientAccent" StartPoint="0,0" EndPoint="1,0">
        <GradientStop Offset="0" Color="#00000000" />
        <GradientStop Offset=".2" Color="{DynamicResource AccentB2.Color}" />
        <GradientStop Offset=".8" Color="{DynamicResource AccentB2.Color}" />
        <GradientStop Offset="1" Color="#00000000" />
    </LinearGradientBrush>

    <!--  Sidebar - Favorites  -->


    <!--  Padding in sidebar; leaves space for scrollbar on right  -->
    <Thickness x:Key="Sidebar.Padding">0,1,8,0</Thickness>
    <!--
        At least 1 for top so the New Group button doesn't blend with last Fav group
        8 on the side for a narrow scrollbar that appears when not all favs can fit vertically in the window
    -->

    <s:Double x:Key="Sidebar.Width.Collapsed">31</s:Double>
    <!--  ????? Should be minimum button width + SidebarResizerBorder Thickness  -->

    <!--
        Each sidebar favorite group is wrapped into this
        DEVNOTE: More background to new key
    -->
    <Style x:Key="PathPanel.Group.Border" TargetType="{x:Type Border}">
        <Setter Property="Background" Value="#3D3D3D" />

        <!--  Space around it; 12 on bottom so ^ arrow to collapse would work, [1][2] buttons wouldn't be cropped, and drag below last item would work  -->
        <Setter Property="Margin" Value="8,0,14,12" />
        <Setter Property="Padding" Value="4,0,4,0" />
        <Setter Property="CornerRadius" Value="4" />
        <Setter Property="BorderBrush" Value="#4A4A4A" />
        <Setter Property="BorderThickness" Value="1" />
        <!--<Setter Property="Background">
            <Setter.Value>
                <LinearGradientBrush MappingMode="Absolute" StartPoint="0,0" EndPoint="0,44">
                    <GradientStop Offset="0" Color="#99f0f0f0" />
                    <GradientStop Offset=".66" Color="#99f0f0f0" />
                    <GradientStop Offset="1" Color="#00f0f0f0" />
                </LinearGradientBrush>
            </Setter.Value>
        </Setter>-->
    </Style>

    <Style x:Key="PathPanel.Group.Title" TargetType="{x:Type TextBlock}">
        <Setter Property="Margin" Value="5,0,0,0" />
        <!--<Setter Property="FontSize" Value="14 " />-->
        <Setter Property="Foreground" Value="{DynamicResource Text.Primary}" />
    </Style>

    <SolidColorBrush x:Key="PathPanel.Item.Background" Color="Transparent" />
    <!--  Can be same as Transparent or shade similar to background of PathPanel.Group.Border  -->

    <!--  File Browser Panel  -->

    <!--
        44 is opacity so any user-selected window effect is visible
        If CurrentFolderPanelBackgroundBrush below is solid color then the background won't be visible (covered)
    -->

    <Style x:Key="Navigation.PanelContainer.Standard" TargetType="{x:Type Border}" />
    <!--  Border and background on the path bar / navigation columns in Standard/Classic layouts  -->
    <Style x:Key="Navigation.Panel.Standard" TargetType="{x:Type Border}">
        <Setter Property="BorderBrush" Value="{StaticResource GraphicElement}" />
        <Setter Property="BorderThickness" Value="1" />
        <Setter Property="CornerRadius" Value="4" />
        <Setter Property="Background" Value="#3F3F3F" />
    </Style>

    <!--  Same but for columns layout  -->
    <Style x:Key="Navigation.Panel.Columns" TargetType="{x:Type Border}">
        <Setter Property="BorderBrush" Value="{StaticResource GraphicElement}" />
        <Setter Property="BorderThickness" Value="1" />
        <Setter Property="CornerRadius" Value="4" />
        <Setter Property="Background" Value="#3F3F3F" />
    </Style>

    <Style x:Key="Toolbar.Container.Standard" TargetType="{x:Type Border}">
        <Setter Property="Padding" Value="1,0,0,0" />
        <Setter Property="Margin" Value="0,4,0,2" />
        <Setter Property="CornerRadius" Value="4" />
		<Setter Property="Background" Value="#353535" />
    </Style>

    <Style x:Key="Toolbar.Container.Columns" TargetType="{x:Type Border}">
        <Setter Property="Margin" Value="0,2,0,2" />
		<Setter Property="Padding" Value="1,0,0,0" />
		<Setter Property="CornerRadius" Value="4" />
		<Setter Property="Background" Value="#353535" />
    </Style>
    <Style x:Key="Files.Panel" TargetType="{x:Type Border}">
        <Setter Property="Background" Value="Transparent" />
		
        <!--  Below trigger block to make any current panel have this background set  -->
        <!--<Style.Triggers>
            <DataTrigger Binding="{Binding IsCurrent, RelativeSource={RelativeSource TemplatedParent}}" Value="True">
                <Setter Property="Background" Value="Red" />
            </DataTrigger>
        </Style.Triggers>-->
        <!--<Setter Property="Margin" Value="0,28,0,0"/>-->
        <!--<Setter Property="Effect" Value="{DynamicResource PanelShadowEffect}"/>-->
        <!--  Real shadow is very computationally expensive so we use gradient to fake it (see below)  -->
    </Style>

    <Style
        x:Key="Files.Panel.Container.Standard"
        BasedOn="{StaticResource Files.Panel}"
        TargetType="{x:Type Border}">

        <Setter Property="CornerRadius" Value="4" />
        <Setter Property="Background" Value="#3F3F3F" />
		<Setter Property="BorderBrush" Value="{DynamicResource GraphicElement}" />
<Setter Property="BorderThickness" Value="1" />
    </Style>

    <!--
        This is a fake shadow made with a gradient on the right side of Files Panel
        (much faster than shadow effect)
        It also includes border in the accent color (see BorderThickness)
    -->
    <Style x:Key="Files.Panel.Edge" TargetType="{x:Type Border}">
        <Setter Property="Margin" Value="0,0,0,0" />
        <Setter Property="BorderThickness" Value="0,0,1,0" />
        <Setter Property="BorderBrush" Value="{DynamicResource Surface0}" />
        <Setter Property="HorizontalAlignment" Value="Right" />
        <Setter Property="Width" Value="16" />
        <Setter Property="Background">
            <Setter.Value>
                <LinearGradientBrush StartPoint="0,0" EndPoint="1,0">
                    <!--  This one should blend in with Files.Panel so make it the same  -->
                    <GradientStop Offset="0" Color="#00000000" />
                    <GradientStop Offset=".9" Color="#55000000" />
                </LinearGradientBrush>
            </Setter.Value>
        </Setter>

        <!--<Setter Property="Background" Value="Transparent">

        </Setter>-->
    </Style>


    <Style x:Key="Files.Panel.Title" TargetType="{x:Type TextBlock}">
        <Setter Property="Margin" Value="0,0,0,0" />
        <!--<Setter Property="FontSize" Value="18" />-->
        <Setter Property="Foreground" Value="{DynamicResource Text.Primary}" />
        <Style.Triggers>
            <Trigger Property="IsMouseOver" Value="True">
                <Setter Property="Foreground" Value="{DynamicResource AccentBrush}" />
            </Trigger>
        </Style.Triggers>
    </Style>
    <Style x:Key="Files.Panel.PathSeparator" TargetType="{x:Type TextBlock}">
        <Setter Property="Foreground" Value="{DynamicResource Text.Secondary}" />
    </Style>

    <Style x:Key="Preview.Panel.Classic" TargetType="{x:Type Border}">
        <Setter Property="Background" Value="#353535" />
        <!--  Make the same as Files.Panel Background to make it seem like one  -->
        <Setter Property="CornerRadius" Value="4,0,0,0" />
    </Style>
    <Style x:Key="Preview.Panel.Columns" TargetType="{x:Type Border}">
        <Setter Property="Background" Value="#353535" />
        <Setter Property="CornerRadius" Value="4,0,0,4" />
        <!--  Make the same as Files.Panel Background to make it seem like one  -->
    </Style>

    <Style x:Key="Preview.Panel.Standard" TargetType="{x:Type Border}">

        <Setter Property="CornerRadius" Value="4,4,0,0" />
        <!--  Round only top-left and top-right, since it is at the bottom  -->

        <Setter Property="Background" Value="#353535" />
        <!--  Make the same as Files.Panel.Container.Standard to make it seem like one  -->
    </Style>




    <!--  for files/folders within Files Panels  -->

    <SolidColorBrush x:Key="ListItem.Background.Even" Color="Transparent" />
    <SolidColorBrush x:Key="ListItem.Background.Odd" Color="Transparent" />
    <SolidColorBrush x:Key="ListItem.Background.ToDo" Color="#ccffe69c" />
    <SolidColorBrush x:Key="ListItem.Background.ToDo.Done" Color="#ccffedb8" />
    <SolidColorBrush x:Key="ListItem.Foreground.ToDo" Color="#000000" />


    <!--  Hover shadow for file/path items. Set ShadowDepth and Opacity to 0 to turn it off.  -->
    <!--  Shadow effects
          Learn about direction https://learn.microsoft.com/en-us/previous-versions/windows/silverlight/dotnet-windows-silverlight/cc490037(v=vs.95)
    If you want to turn it off, set it like
    <x:Null x:Key="Effect.Shadow.ListItem" />
    or remove the reference at the source, like on Popup.Panel.
    -->

    <!--  Tooltips  -->
    <DropShadowEffect
        x:Key="Effect.Shadow.Shallow"
        BlurRadius="8"
        Direction="292"
        Opacity="1"
        ShadowDepth="2"
        Color="Black" />

    <DropShadowEffect
        x:Key="Effect.Shadow.ListItem"
        BlurRadius="8"
        Direction="292"
        Opacity=".3"
        ShadowDepth="2"
        Color="Black" />



    <!--  For dialogs/popups, like NewFolder popup; To remove effect you can also  -->
    <DropShadowEffect
        x:Key="Effect.Shadow.Popup"
        BlurRadius="16"
        Direction="270"
        Opacity="1"
        ShadowDepth="5"
        Color="Black" />

    <!--  This just makes space for the shadow; no need to change unless you make shadow blur huge  -->
    <Thickness x:Key="Shadow.Padding">14,14,14,20</Thickness>

    <!--  Container for popups like PathEdit, Rename and similar  -->
    <Style x:Key="Popup.Panel" TargetType="{x:Type Border}">
        <Setter Property="Background" Value="{DynamicResource Window.Background.Dialog}" />
        <Setter Property="Effect" Value="{DynamicResource Effect.Shadow.Popup}" />
        <Setter Property="CornerRadius" Value="4" />
    </Style>




    <!--
        Selection wrapper for folder items.
        Currently used only to control the corner radius.
    -->
    <Style x:Key="ItemSelectionBorder" TargetType="{x:Type Border}">
        <Setter Property="CornerRadius" Value="0" />
    </Style>

    <!--  Base folder style in Files Panel  -->
    <Style x:Key="FolderItemDefaultBorder" TargetType="{x:Type Border}">
        <!--  Uncomment for a border around folders only  -->
        <!--<Setter Property="BorderBrush" Value="Green"/>
        <Setter Property="BorderThickness" Value="1,1,0,1" />
        <Setter Property="CornerRadius" Value="5,0,0,5" />
        <Setter Property="Margin" Value="-0.5" /> to avoid double border-->

        <Setter Property="Background" Value="Transparent" />
        <!--  Background must be defined, even transparent, in order for drag&drop to work  -->
    </Style>

    <!--  Folder style when selected in an ancestor (non-current) Files Panel  -->
    <Style x:Key="FolderItemSelectedBorder" TargetType="{x:Type Border}">
        <Setter Property="CornerRadius" Value="0,0,0,0" />
        <!--<Setter Property="BorderThickness" Value="2,2,0,2" />
        <Setter Property="BorderBrush" Value="{DynamicResource AccentBrush}" />-->

        <Setter Property="Background" Value="Transparent" />
        <!--  best if the same as Files.Panel so parent folder blend into child panel  -->
    </Style>

    <!--
        Folder style when selected in current (most-right) Files Panel
        Set CornerRadius to 0 for sharp edges
    -->
    <Style x:Key="FolderItemSelectedInCurrentBorder" TargetType="{x:Type Border}">
        <Setter Property="CornerRadius" Value="0" />
        <Setter Property="BorderThickness" Value="0" />

        <Setter Property="Background" Value="Transparent" />
    </Style>

    <!--  Tabs  -->

    <!--  Used in dual-pane windows  -->
    <Style x:Key="ProgramNameBorder" TargetType="{x:Type Border}">
        <Setter Property="Margin" Value="18,1,23,0" />
        <Setter Property="Height" Value="28" />
        <!--  for doubleclick to maximize  -->
        <Setter Property="Background" Value="Transparent" />
    </Style>

    <!--
        If you use Tabs.BottomBar, you can continue it into the sidebar by reusing the same BorderThickness
        and BorderBrush values. Height matches Tabs.Container.
    -->
    <Style x:Key="Sidebar.Panel.Top" TargetType="{x:Type Border}">
        <Setter Property="Height" Value="29" />
    </Style>
    <Style x:Key="Tabs.Container" TargetType="{x:Type Border}">
        <Setter Property="Height" Value="29" />
        <Setter Property="Margin" Value="0,0,0,0" />
        <!--  if we add margin here, then shadows are cropped  -->
        <Setter Property="Padding" Value="0,0,0,0" />
        <!--<Setter Property="Background" Value="#e3e3e3"/>-->
    </Style>
    <Thickness x:Key="Tabs.Container.Padding">0</Thickness>

    <!--
        Tabs.BottomBar
        - Bar that sits under the tabs.
        - When Tabs.ClassicTabShape is visible, this creates the interrupted line effect around tabs.
    -->
    <Style x:Key="Tabs.BottomBar" TargetType="{x:Type Border}" />



    <Visibility x:Key="Tabs.ClassicTabShape.Visibility">Collapsed</Visibility>
    <Thickness x:Key="Tabs.Tab.Padding">6,0,6,0</Thickness>
    <!--  was 4,4,28,0 to leave space for close button  -->



    <Style x:Key="Tabs.Tab" TargetType="{x:Type Border}">
        <!--  Set CornerRadius to 0 for sharp edges  -->
        <!--  These 5 if you want just line separated tabs  -->
        <Setter Property="CornerRadius" Value="4" />       
        <Setter Property="Background" Value="#1D1D1D" />
        <Setter Property="Margin" Value="1,3,1,2" />
    </Style>

    <Style x:Key="Tabs.Tab.Divider" TargetType="{x:Type Border}">
        
    </Style>

    <Style x:Key="Tabs.Tab.Hover" TargetType="{x:Type Border}">
        <Setter Property="CornerRadius" Value="4" />       
        <Setter Property="Background" Value="#232323" />
        <Setter Property="Padding" Value="0,2,0,0" />
        <Setter Property="Margin" Value="1,3,1,2" />  
    </Style>

    <Style x:Key="Tabs.Tab.Selected" TargetType="{x:Type Border}">
        <Setter Property="CornerRadius" Value="4" />       
		<Setter Property="Background" Value="#303030" />

        <Setter Property="Padding" Value="0,0,0,0" />
        <Setter Property="Margin" Value="1,3,1,2" />

    </Style>



    <!--  Message panel  -->

    <Style x:Key="Message.Panel" TargetType="{x:Type Border}">
        <Setter Property="Background" Value="{DynamicResource Window.Background.Dialog}" />
        <!--  made the same as inactive tab color so it doesn't merge with files pane  -->
        <!--<Setter Property="BorderBrush" Value="Gray" />
        <Setter Property="BorderThickness" Value="0,1,0,1" />-->
        <Setter Property="Effect">
            <Setter.Value>
                <DropShadowEffect
                    BlurRadius="16"
                    Direction="270"
                    Opacity=".4"
                    ShadowDepth="0"
                    Color="Black" />
            </Setter.Value>
        </Setter>
    </Style>


    <!--  Other  -->

    <SolidColorBrush x:Key="ScrollBar.Track" Color="#20888888" />
    <SolidColorBrush x:Key="ScrollBar.Thumb" Color="#ae888888" />
    <SolidColorBrush x:Key="ScrollBar.Thumb.Hover" Color="#c0888888" />
    <SolidColorBrush x:Key="ScrollBar.Thumb.Pressed" Color="#c0949494" />
    <SolidColorBrush x:Key="ScrollBar.Button.Foreground" Color="{StaticResource Secondary.Color}" />


    <!--  For panel overlay when dual-panel is being collapsed  -->
    <SolidColorBrush
        x:Key="Overlay.Browser.Collapsing"
        Opacity=".84"
        Color="#2b292e" />



    <SolidColorBrush x:Key="DataGrid.Lines" Color="{DynamicResource Gray30.Color}" />





    <LinearGradientBrush x:Key="Scroll.Indicator.Top" StartPoint="0,0" EndPoint="0,1">
        <GradientStop Offset="0" Color="#44000000" />
        <GradientStop Offset="1" Color="#00000000" />
    </LinearGradientBrush>
    <LinearGradientBrush x:Key="Scroll.Indicator.Bottom" StartPoint="0,0" EndPoint="0,1">
        <GradientStop Offset="1" Color="#44000000" />
        <GradientStop Offset="0" Color="#00000000" />
    </LinearGradientBrush>





    <!--
        ===========================
        SimpleGridSplitter dividers
        ===========================
    -->

    <!--  THIN: used for “thin” splitters  -->
    <Style x:Key="ResizerLine.Horizontal" TargetType="Border">
        <Setter Property="HorizontalAlignment" Value="Stretch" />
        <Setter Property="VerticalAlignment" Value="Center" />
        <Setter Property="Height" Value="1" />
        <Setter Property="Background" Value="{StaticResource FadingHorizontalGradient}" />
    </Style>

    <Style
        x:Key="ResizerLine.Horizontal.Hover"
        BasedOn="{StaticResource ResizerLine.Horizontal}"
        TargetType="Border">
        <Setter Property="Background" Value="{StaticResource FadingHorizontalGradientAccent}" />
        <Setter Property="Opacity" Value="1" />
    </Style>

    <Style x:Key="ResizerLine.Vertical" TargetType="Border">
        <!--  splitter hot area is wide; line sits in the middle  -->
        <Setter Property="HorizontalAlignment" Value="Center" />
        <Setter Property="VerticalAlignment" Value="Stretch" />
        <Setter Property="Width" Value="1" />
        <Setter Property="Background" Value="{StaticResource FadingVerticalGradient}" />
    </Style>

    <Style
        x:Key="ResizerLine.Vertical.Hover"
        BasedOn="{StaticResource ResizerLine.Vertical}"
        TargetType="Border">
        <Setter Property="Background" Value="{StaticResource FadingVerticalGradientAccent}" />
        <Setter Property="Opacity" Value="1" />
    </Style>

    <!--  STANDARD: thicker dividers (adjust thickness/opacity to taste)  -->
    <Style x:Key="Resizer.Horizontal" TargetType="Border">
        <Setter Property="HorizontalAlignment" Value="Stretch" />
        <Setter Property="VerticalAlignment" Value="Center" />
        <Setter Property="Height" Value="8" />
    </Style>

    <Style
        x:Key="Resizer.Horizontal.Hover"
        BasedOn="{StaticResource Resizer.Horizontal}"
        TargetType="Border">
        <Setter Property="Background" Value="{StaticResource FadingHorizontalGradientAccent}" />
        <Setter Property="Opacity" Value="1" />
    </Style>

    <Style x:Key="Resizer.Vertical" TargetType="Border">
        <Setter Property="HorizontalAlignment" Value="Center" />
        <Setter Property="VerticalAlignment" Value="Stretch" />
        <Setter Property="Width" Value="8" />
    </Style>

    <Style
        x:Key="Resizer.Vertical.Hover"
        BasedOn="{StaticResource Resizer.Vertical}"
        TargetType="Border">
        <Setter Property="Background" Value="{StaticResource FadingVerticalGradientAccent}" />
        <Setter Property="Opacity" Value="1" />
    </Style>
</ResourceDictionary>