<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"
    -->

    <!--  Uncomment these lines if you make publically shared themes  -->
    <!--<system:String x:Key="ThemeAuthor">Your name</system:String>
    <system:String x:Key="ThemeDescription">Theme description is shown under theme once selected in Settings</system:String>-->

    <!--  Suggest accent color if it is intended to use with particualr accent instead of user's system accent  -->
    <!--<Color x:Key="SuggestedAccent.Color">#0066e0</Color>-->



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

    <!--  Foreground = Text  -->
    <Color x:Key="Base.Foreground.Color">#000000</Color>

    <!--  Background - not actual background but a 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">#FFFFFF</Color>
    <SolidColorBrush x:Key="Base.Background" Color="#FFFFFF" po:Freeze="True"/>




    <!--  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="#000000"
        Multiplier=".03"
        ResourceKey="Base.Background.Color" />
    <m:StaticResourceColorEx
        x:Key="Gray05.Color"
        BlendColor="#000000"
        Multiplier=".05"
        ResourceKey="Base.Background.Color" />
    <m:StaticResourceColorEx
        x:Key="Gray10.Color"
        BlendColor="#000000"
        Multiplier=".1"
        ResourceKey="Base.Background.Color" />
    <m:StaticResourceColorEx
        x:Key="Gray20.Color"
        po:Freeze="True"
        BlendColor="#000000"
        Multiplier=".2"
        ResourceKey="Base.Background.Color" />
    <m:StaticResourceColorEx
        x:Key="Gray30.Color"
        BlendColor="#000000"
        Multiplier=".3"
        ResourceKey="Base.Background.Color" />
    <m:StaticResourceColorEx
        x:Key="Gray40.Color"
        BlendColor="#000000"
        Multiplier=".4"
        ResourceKey="Base.Background.Color" />
    <m:StaticResourceColorEx
        x:Key="Gray50.Color"
        BlendColor="#000000"
        Multiplier=".5"
        ResourceKey="Base.Background.Color" />
    <m:StaticResourceColorEx
        x:Key="Gray60.Color"
        BlendColor="#000000"
        Multiplier=".6"
        ResourceKey="Base.Background.Color" />

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

    <m:StaticResourceColorEx
        x:Key="AccentB1.Color"
        BlendColor="#FFFFFF"
        Multiplier="-.16"
        ResourceKey="Accent.Color" />
    <m:StaticResourceColorEx
        x:Key="AccentB2.Color"
        BlendColor="#FFFFFF"
        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="#FFFFFF"
        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}" po:Freeze="True"/>
    <SolidColorBrush x:Key="AccentF2" Color="{StaticResource AccentF2.Color}" po:Freeze="True"/>
    <SolidColorBrush x:Key="AccentF3" Color="{StaticResource AccentF3.Color}" po:Freeze="True"/>
    <SolidColorBrush x:Key="AccentB1" Color="{StaticResource AccentB1.Color}" po:Freeze="True"/>
    <SolidColorBrush x:Key="AccentB2" Color="{StaticResource AccentB2.Color}" po:Freeze="True"/>
    <SolidColorBrush x:Key="AccentB3" Color="{StaticResource AccentB3.Color}" po:Freeze="True"/>

    <!--  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">#207f7f7f</Color>
    <SolidColorBrush x:Key="TintSurface" Color="{StaticResource TintSurface.Color}" po:Freeze="True"/>

    <Color x:Key="TintSurface2.Color">#447f7f7f</Color>

    <!--
        =========================
        MESSAGE (in notification area on bottom)
        WCAG-safe with black text on top of these colors
        =========================
    -->

    <SolidColorBrush x:Key="Message.Success.Background" Color="#5FBF72" po:Freeze="True"/>
    <SolidColorBrush x:Key="Message.Success.Foreground" Color="Black" po:Freeze="True"/>

    <SolidColorBrush x:Key="Message.Error.Background" Color="#E16464" po:Freeze="True"/>
    <SolidColorBrush x:Key="Message.Error.Foreground" Color="Black" po:Freeze="True"/>

    <SolidColorBrush x:Key="Message.Warning.Background" Color="#F2B233" po:Freeze="True"/>
    <SolidColorBrush x:Key="Message.Warning.Foreground" Color="Black" po:Freeze="True"/>

    <SolidColorBrush x:Key="Message.Info.Background" Color="#5FA5E6" po:Freeze="True"/>
    <SolidColorBrush x:Key="Message.Info.Foreground" Color="Black" po:Freeze="True"/>


    <!--
        =========================
        STATUS (no text)
        Slightly deeper/stronger than Message
		so they read clearly as signals
        Used as progress bar fill in Taskmaster
        =========================
    -->

    <SolidColorBrush x:Key="Status.Good" Color="#2FA84F" po:Freeze="True"/>
    <SolidColorBrush x:Key="Status.Warning" Color="#E59B00" po:Freeze="True"/>
    <SolidColorBrush x:Key="Status.Critical" Color="#D93F3F" po:Freeze="True"/>
    <SolidColorBrush x:Key="Status.Active" Color="{StaticResource Accent.Color}" po:Freeze="True"/>
    <SolidColorBrush x:Key="Status.Neutral" Color="#7C7F86" po:Freeze="True"/>


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

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

    <!--  COMMON end  -->






    <!--  Theme  -->

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

    <!--  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}" po:Freeze="True"/>

    <!--Saving theme won't auto-update secondary color in files list; load different theme and switch back to refresh-->
    <m:StaticResourceColorEx
        x:Key="Secondary.Color"
        BlendColor="#ffffff"
        Multiplier=".37"
        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}" po:Freeze="True" />

    <!--  Disabled menu items, buttons, checkboxes  -->
    <m:StaticResourceColorEx
        x:Key="Text.Disabled.Color"
        BlendColor="#ffffff"
        Multiplier=".5"
        ResourceKey="Base.Foreground.Color" />




    <!--  Textbox and ComboBox borders, trackbar fill  -->
    <m:StaticResourceColorEx
        x:Key="GraphicElement.Color"
        BlendColor="#000000"
        Multiplier=".2"
        ResourceKey="Base.Background.Color" />
    <SolidColorBrush x:Key="GraphicElement" Color="{StaticResource GraphicElement.Color}" po:Freeze="True"/>

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


    <SolidColorBrush
        x:Key="ListItem.Background.Hover"
        Opacity=".5"
        Color="{StaticResource Gray20.Color}" po:Freeze="True"/>
    <m:StaticResourceBrushEx
        x:Key="ListItem.Background.Selected"
        BlendColor="#ffffff"
        Multiplier=".3"
        Opacity=".35"
        ResourceKey="Accent.Color" />
    <m:StaticResourceBrushEx
        x:Key="ListItem.Background.Selected.Hover"
        BlendColor="#ffffff"
        Multiplier=".15"
        Opacity=".35"
        ResourceKey="Accent.Color" />
    <SolidColorBrush x:Key="ListItem.Background.DragEnter" Color="{StaticResource AccentB3.Color}" po:Freeze="True"/>



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

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



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


    


    <!--  COMMON ELEMENTS  -->



    <s:Double x:Key="Button.MinSize">24</s:Double>
    <Thickness x:Key="Button.Padding">4,0,4,0</Thickness>
    <SolidColorBrush x:Key="Button.Background" Color="{StaticResource TintSurface.Color}" po:Freeze="True"/>
    <SolidColorBrush x:Key="Button.Background.Hover" Color="{StaticResource TintSurface2.Color}" po:Freeze="True"/>
    <SolidColorBrush x:Key="Button.Background.Pressed" Color="{StaticResource Gray30.Color}" po:Freeze="True"/>
    <SolidColorBrush x:Key="Button.Background.Disabled" Color="{StaticResource Base.Background.Color}" po:Freeze="True"/>

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

    <SolidColorBrush x:Key="Button.Border" Color="Transparent" po:Freeze="True"/>
    <SolidColorBrush x:Key="Button.Border.Hover" Color="Transparent" po:Freeze="True"/>
    <SolidColorBrush x:Key="Button.Border.Pressed" Color="Transparent" po:Freeze="True"/>
    <SolidColorBrush x:Key="Button.Border.Disabled" Color="Transparent" po:Freeze="True"/>
    <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="Transparent" po:Freeze="True"/>
    <SolidColorBrush x:Key="IconButton.Background.Hover" Color="{StaticResource TintSurface2.Color}" po:Freeze="True"/>
    <SolidColorBrush x:Key="IconButton.Background.Pressed" Color="{StaticResource Gray30.Color}" po:Freeze="True"/>
    <SolidColorBrush x:Key="IconButton.Background.Disabled" Color="Transparent" po:Freeze="True"/>

    <SolidColorBrush x:Key="IconButton.Foreground" Color="{StaticResource Base.Foreground.Color}" po:Freeze="True"/>
    <SolidColorBrush x:Key="IconButton.Foreground.Hover" Color="{StaticResource Base.Foreground.Color}" po:Freeze="True"/>
    <SolidColorBrush x:Key="IconButton.Foreground.Pressed" Color="{StaticResource Base.Foreground.Color}" po:Freeze="True"/>
    <!--<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" po:Freeze="True"/>
    <SolidColorBrush x:Key="IconButton.Border.Hover" Color="Transparent" po:Freeze="True"/>
    <SolidColorBrush x:Key="IconButton.Border.Pressed" Color="Transparent" po:Freeze="True"/>
    <SolidColorBrush x:Key="IconButton.Border.Disabled" Color="Transparent" po:Freeze="True"/>
    <Thickness x:Key="IconButton.Border.Thickness">0</Thickness>

    <SolidColorBrush x:Key="Toggle.Background.Checked" Color="{StaticResource AccentB3.Color}" po:Freeze="True"/>

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

    <SolidColorBrush x:Key="TitleBar.Button.Background" Color="Transparent" po:Freeze="True"/>
    <SolidColorBrush x:Key="TitleBar.Button.Background.Hover" Color="#19000000" po:Freeze="True"/>
    <SolidColorBrush x:Key="TitleBar.Button.Background.Pressed" Color="#33000000" po:Freeze="True"/>
    <SolidColorBrush x:Key="TitleBar.Button.Foreground" Color="#FF000000" po:Freeze="True"/>
    <SolidColorBrush x:Key="TitleBar.Button.Foreground.Hover" Color="#FF000000" po:Freeze="True"/>
    <SolidColorBrush x:Key="TitleBar.Button.Foreground.Pressed" Color="#FF000000" po:Freeze="True"/>

    <SolidColorBrush x:Key="Sorter.Border.Selected" Color="{StaticResource Accent.Color}" po:Freeze="True"/>
    <Thickness x:Key="Sorter.Border.Selected.Thickness">0,0,0,0</Thickness>
    <SolidColorBrush x:Key="Sorter.Background.Hover" Color="{StaticResource Gray20.Color}" po:Freeze="True"/>
    <SolidColorBrush x:Key="Sorter.Background.Selected" Color="{StaticResource Gray10.Color}" po:Freeze="True"/>

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

    <SolidColorBrush x:Key="Menu.Background" Color="{StaticResource Gray10.Color}" po:Freeze="True"/>

    <SolidColorBrush x:Key="Menu.Item.Background" Color="Transparent" po:Freeze="True"/>
    <SolidColorBrush x:Key="Menu.Item.Background.Hover" Color="{StaticResource Gray20.Color}" po:Freeze="True" />
    <SolidColorBrush x:Key="Menu.Item.Background.Pressed" Color="{StaticResource Gray30.Color}" po:Freeze="True"/>
    <SolidColorBrush x:Key="Menu.Item.Background.Disabled" Color="Transparent" po:Freeze="True"/>

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

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

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


    <SolidColorBrush x:Key="Menu.Border" Color="{StaticResource TintSurface2.Color}" po:Freeze="True"/>
    <Thickness x:Key="Menu.Border.Thickness">1</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}" po:Freeze="True"/>
    <SolidColorBrush x:Key="TextBox.Foreground.Disabled" Color="{StaticResource Text.Disabled.Color}" po:Freeze="True"/>

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

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

    <Thickness x:Key="TextBox.Border.Thickness">1</Thickness>
    <SolidColorBrush x:Key="TextBox.Border" Color="{StaticResource Gray20.Color}" po:Freeze="True"/>
    <SolidColorBrush x:Key="TextBox.Border.Hover" Color="{StaticResource AccentF3.Color}" po:Freeze="True"/>
    <SolidColorBrush x:Key="TextBox.Border.Focus" Color="{StaticResource Accent.Color}" po:Freeze="True"/>
    <SolidColorBrush x:Key="TextBox.Border.Disabled" Color="{StaticResource Gray50.Color}" po:Freeze="True"/>
    <!--  ComboBox TextBox shares this  -->


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

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

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




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

    <SolidColorBrush x:Key="CheckBox.CheckMark" Color="{StaticResource Base.Foreground.Color}" po:Freeze="True"/>

    <!-- RadioButton border/theme resources -->
    <Thickness x:Key="RadioButton.Border.Thickness">1</Thickness>
    <SolidColorBrush x:Key="RadioButton.Border"
                 Color="{StaticResource GraphicElement.Color}" po:Freeze="True"/>
    <SolidColorBrush x:Key="RadioButton.Border.Hover"
                 Color="{StaticResource Accent.Color}" po:Freeze="True"/>
    <SolidColorBrush x:Key="RadioButton.Border.Pressed"
                 Color="{StaticResource Accent.Color}" po:Freeze="True"/>
    <SolidColorBrush x:Key="RadioButton.Border.Checked"
                 Color="{StaticResource Accent.Color}" po:Freeze="True"/>
    <SolidColorBrush x:Key="RadioButton.Border.Disabled"
                 Color="{StaticResource Gray50.Color}" po:Freeze="True"/>
    <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="{StaticResource Base.Foreground.Color}" po:Freeze="True"/>
    <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="{StaticResource Gray10.Color}" po:Freeze="True"/>
    <SolidColorBrush x:Key="ComboBox.Popup.Border" Color="{StaticResource AccentF3.Color}" po:Freeze="True"/>
    <SolidColorBrush x:Key="ComboBox.Popup.Background.Disabled" Color="{StaticResource Gray50.Color}" po:Freeze="True"/>
    <SolidColorBrush x:Key="ComboBox.Border.Focus" Color="{StaticResource Accent.Color}" po:Freeze="True"/>
    <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="{StaticResource Accent.Color}" po:Freeze="True"/>
    <SolidColorBrush x:Key="Slider.Thumb.Background.PointerOver" Color="{StaticResource AccentF3.Color}" po:Freeze="True"/>
    <SolidColorBrush x:Key="Slider.Thumb.Background.Disabled" Color="{StaticResource Gray30.Color}" po:Freeze="True"/>
    <SolidColorBrush x:Key="Slider.Thumb.Border" Color="{StaticResource AccentF2.Color}" po:Freeze="True"/>

    <system:Double x:Key="Slider.Track.Size">2.0</system:Double>
    <SolidColorBrush x:Key="Slider.Track.Fill.Accent" Color="{StaticResource Accent.Color}" po:Freeze="True" />
    <SolidColorBrush x:Key="Slider.Track.Fill" Color="{StaticResource Gray30.Color}" po:Freeze="True"/>
    <SolidColorBrush x:Key="Slider.Track.Fill.PointerOver" Color="{StaticResource AccentF1.Color}" po:Freeze="True"/>
    <SolidColorBrush x:Key="Slider.TickBar.Fill" Color="{StaticResource Gray30.Color}" po:Freeze="True"/>

    <SolidColorBrush x:Key="ProgressBar.Background" Color="{StaticResource TintSurface.Color}" po:Freeze="True"/>
    <SolidColorBrush x:Key="ProgressBar.Track.Fill" Color="{StaticResource Accent.Color}" po:Freeze="True"/>
    <SolidColorBrush x:Key="ProgressBar.Border" Color="{StaticResource TintSurface2.Color}" po:Freeze="True"/>

    <Style x:Key="GroupBox.Header.TextBlock" TargetType="TextBlock">
        <Setter Property="Foreground" Value="{StaticResource 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="{StaticResource Gray10.Color}" po:Freeze="True"/>

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

    <!--  same as "ListItem.Background.Selected.Hover" ?  -->
    <m:StaticResourceBrushEx
        x:Key="Job.Background.Selected"
        BlendColor="#ffffff"
        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="#f7f7f7" po:Freeze="True"/>

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

    <!--  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="#e0e0e0" />
        <Setter Property="Effect" Value="{StaticResource Effect.Shadow.Shallow}" />
        <Setter Property="CornerRadius" Value="2" />
    </Style>

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


    <!--  Main style for text; Foreground color should be same as Text.Primary  -->
    <Style x:Key="{x:Type TextBlock}" TargetType="TextBlock">
        <Setter Property="Foreground" Value="{StaticResource 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="#BEffffff" />

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

    <LinearGradientBrush x:Key="FadingVerticalGradientAccent" StartPoint="0,0" EndPoint="0,1" po:Freeze="True">
        <GradientStop Offset="0" Color="#00ffffff" />
        <GradientStop Offset=".2" Color="{StaticResource AccentB2.Color}" />
        <GradientStop Offset=".8" Color="{StaticResource AccentB2.Color}" />
        <GradientStop Offset="1" Color="#00ffffff" />
    </LinearGradientBrush>

    <LinearGradientBrush x:Key="FadingHorizontalGradientAccent" StartPoint="0,0" EndPoint="1,0" po:Freeze="True">
        <GradientStop Offset="0" Color="#00ffffff" />
        <GradientStop Offset=".2" Color="{StaticResource AccentB2.Color}" />
        <GradientStop Offset=".8" Color="{StaticResource AccentB2.Color}" />
        <GradientStop Offset="1" Color="#00ffffff" />
    </LinearGradientBrush>

    <!--  Sidebar - Favorites  -->


    <!--  Padding in sidebar; leaves space for scrollbar on right  -->
    <Thickness x:Key="Sidebar.Padding">0,0,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="{StaticResource TintSurface}" />

        <!--  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,4,12,8" />
        <Setter Property="Padding" Value="4,0,4,0" />
        <Setter Property="CornerRadius" Value="4" />
        <Setter Property="BorderBrush" Value="#f0f0f0" />
        <Setter Property="BorderThickness" Value="0,0,0,0" />
        <!--<Setter Property="Background">
            <Setter.Value>
                <LinearGradientBrush MappingMode="Absolute" StartPoint="0,0" EndPoint="0,44" po:Freeze="True">
                    <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="{StaticResource Text.Primary}" />
    </Style>

    <SolidColorBrush x:Key="PathPanel.Item.Background" Color="Transparent" po:Freeze="True"/>
    <!--  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}">
        <Setter Property="Padding" Value="4,4,4,4" />
        <Setter Property="Background" Value="#f0f0f0" />
        <Setter Property="CornerRadius" Value="0,0,4,4" />
        <Setter Property="BorderBrush" Value="{StaticResource GraphicElement}" />
        <Setter Property="BorderThickness" Value="1,0,1,1" />
    </Style>
    <!--  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="Margin" Value="0" />
        <Setter Property="Background" Value="#44ffffff" />

    </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="#99ffffff" />
    </Style>

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

    </Style>

    <Style x:Key="Toolbar.Container.Columns" TargetType="{x:Type Border}">
        <Setter Property="Padding" Value="4,4,4,4" />
        <Setter Property="Margin" Value="0,0,0,4" />
        <Setter Property="Background" Value="#f0f0f0" />
        <Setter Property="CornerRadius" Value="0,0,0,4" />
        <Setter Property="BorderBrush" Value="{StaticResource GraphicElement}" />
        <Setter Property="BorderThickness" Value="1,0,1,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" TargetType="{x:Type Border}">
        <Setter Property="Background" Value="Transparent" />
        <!--<Setter Property="Effect" Value="{StaticResource 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="#d0ffffff" />
    </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="{StaticResource AccentBrush}" />
        <Setter Property="HorizontalAlignment" Value="Right" />
        <Setter Property="Width" Value="20" />

        <Setter Property="Background">
            <Setter.Value>
                <LinearGradientBrush StartPoint="0,0" EndPoint="1,0" po:Freeze="True">
                    <!--  This one should blend in with Files.Panel so make it the same  -->
                    <GradientStop Offset="0" Color="#00000000" />
                    <GradientStop Offset=".8" Color="#10000000" />
                    <GradientStop Offset="1" Color="#20000000" />
                </LinearGradientBrush>
            </Setter.Value>
        </Setter>
        <Setter Property="OpacityMask">
            <Setter.Value>
                <LinearGradientBrush MappingMode="Absolute" StartPoint="0,0" EndPoint="20,20" po:Freeze="True">
                    <GradientStop Offset="0.3" Color="#00000000" />
                    <GradientStop Offset="1" Color="#ffffffff" />
                </LinearGradientBrush>
            </Setter.Value>
        </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="{StaticResource Text.Primary}" />
        <Style.Triggers>
            <Trigger Property="IsMouseOver" Value="True">
                <Setter Property="Foreground" Value="{StaticResource AccentBrush}" />
            </Trigger>
        </Style.Triggers>
    </Style>
    <Style x:Key="Files.Panel.PathSeparator" TargetType="{x:Type TextBlock}">
        <Setter Property="Foreground" Value="{StaticResource Text.Secondary}" />
    </Style>

    <Style x:Key="Preview.Panel.Classic" TargetType="{x:Type Border}">
        <Setter Property="Background" Value="#80ffffff" />
        <!--  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="#80ffffff" />
        <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="#80ffffff" />
        <!--  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" po:Freeze="True"/>
    <SolidColorBrush x:Key="ListItem.Background.Odd" Color="Transparent" po:Freeze="True"/>
    <SolidColorBrush x:Key="ListItem.Background.ToDo" Color="#ccffe69c" po:Freeze="True"/>
    <SolidColorBrush x:Key="ListItem.Background.ToDo.Done" Color="#ccffedb8" po:Freeze="True"/>
    <SolidColorBrush x:Key="ListItem.Foreground.ToDo" Color="#000000" po:Freeze="True"/>


    <!--  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.
    -->


    <!--  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="{StaticResource Window.Background.Dialog}" />
        <Setter Property="Effect" Value="{StaticResource 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="4,0,0,4" />
        <Setter Property="BorderThickness" Value="1,1,0,1" />
        <Setter Property="BorderBrush" Value="{StaticResource AccentBrush}" />
        <Setter Property="Margin" Value="0,0,-2,0" />
        <!--  This is so that border of selected folder in column doesn't go over the edge of the panel on the right  -->
        <Setter Property="Background" Value="#f0f0f0" />
        <!--  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  -->
    <Visibility x:Key="Tabs.ClassicTabShape.Visibility">Visible</Visibility>
    <SolidColorBrush x:Key="Tabs.ClassicTabShape.Background" Color="#f0f0f0" po:Freeze="True"/>
    <SolidColorBrush x:Key="Tabs.ClassicTabShape.Border" Color="{StaticResource Gray30.Color}" po:Freeze="True"/>
    <!--  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 (uncomment below). Height matches Tabs.Container.
    -->
    <Style x:Key="Sidebar.Panel.Top" TargetType="{x:Type Border}">
        <Setter Property="Height" Value="29" />
        <!--  <Setter Property="BorderBrush" Value="{StaticResource Tabs.ClassicTabShape.Border}" />
        <Setter Property="BorderThickness" Value="0,0,0,1" />-->
        <Setter Property="HorizontalAlignment" Value="Stretch" />
        <Setter Property="VerticalAlignment" Value="Top" />
    </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" />
    </Style>
    <!--  needed if we use Tabs.ClassicTabShape.Visibility>Visible  -->
    <Thickness x:Key="Tabs.Container.Padding">4,0,2,0</Thickness>

    <Thickness x:Key="Tabs.Tab.Padding">4,0,2,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}">
        <Setter Property="BorderThickness" Value="0,0,0,1" />
        <Setter Property="BorderBrush" Value="{StaticResource Tabs.ClassicTabShape.Border}" />
        <Setter Property="Margin" Value="0,0,0,0" />
    </Style>







    <!--  was 4,4,28,0 to leave space for close button  -->



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

    <Style x:Key="Tabs.Tab.Divider" TargetType="{x:Type Border}">
        <Setter Property="Width" Value="1" />
        <Setter Property="Margin" Value="0,4,0,2" />
        <Setter Property="HorizontalAlignment" Value="Right" />
        <Setter Property="VerticalAlignment" Value="Stretch" />
        <Setter Property="Background" Value="{StaticResource FadingVerticalGradient}" />
    </Style>

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

    </Style>

    <Style x:Key="Tabs.Tab.Selected" TargetType="{x:Type Border}">
        <Setter Property="CornerRadius" Value="6,0,0,0" />

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

        <!--
            Background is there because Windows 11 22H2 with accent color in the title bar can drown the tabs,
            making the selected tab hard to distinguish.
            If Tabs.ClassicTabShape.Visibility is Visible, set the background in Tabs.ClassicTabShape.Background instead.
        -->
        <Setter Property="Background" Value="Transparent" />
        <!--  best if the same as Files.Panel so parent folder blend into child panel  -->
    </Style>





    <!--  Message panel  -->

    <Style x:Key="Message.Panel" TargetType="{x:Type Border}">
        <Setter Property="Background" Value="{StaticResource 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" po:Freeze="True"/>
    <SolidColorBrush x:Key="ScrollBar.Thumb" Color="#aea5a5a5" po:Freeze="True"/>
    <SolidColorBrush x:Key="ScrollBar.Thumb.Hover" Color="#c0888888" po:Freeze="True"/>
    <SolidColorBrush x:Key="ScrollBar.Thumb.Pressed" Color="#c0a5a5a5" po:Freeze="True"/>
    <SolidColorBrush x:Key="ScrollBar.Button.Foreground" Color="{StaticResource Secondary.Color}" po:Freeze="True"/>



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



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





    <LinearGradientBrush x:Key="Scroll.Indicator.Top" StartPoint="0,0" EndPoint="0,1" po:Freeze="True">
        <GradientStop Offset="0" Color="#16000000" />
        <GradientStop Offset="1" Color="#00ffffff" />
    </LinearGradientBrush>
    <LinearGradientBrush x:Key="Scroll.Indicator.Bottom" StartPoint="0,0" EndPoint="0,1" po:Freeze="True">
        <GradientStop Offset="1" Color="#16000000" />
        <GradientStop Offset="0" Color="#00ffffff" />
    </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>