<Styles xmlns="https://github.com/avaloniaui"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:styling="clr-namespace:FluentAvalonia.Styling;assembly=FluentAvalonia"
        xmlns:avalonia="clr-namespace:Material.Icons.Avalonia;assembly=Material.Icons.Avalonia"
        xmlns:aedit="using:AvaloniaEdit"
        xmlns:aedit2="using:AvaloniaEdit.Editing"
        xmlns:controls="clr-namespace:FluentAvalonia.UI.Controls;assembly=FluentAvalonia">
    <!-- Third party styles -->
    <styling:FluentAvaloniaTheme PreferSystemTheme="False" PreferUserAccentColor="True"/>
    <avalonia:MaterialIconStyles />
    
    <!-- <FluentTheme Mode="Dark"></FluentTheme> -->
    <StyleInclude Source="avares://Artemis.UI.Shared/Styles/Artemis.axaml" />
    <StyleInclude Source="avares://AsyncImageLoader.Avalonia/AdvancedImage.axaml" />
    <StyleInclude Source="avares://AvaloniaEdit/Themes/Fluent/AvaloniaEdit.xaml" />
    
    <!-- Adjust the ScrollViewer padding in AvaloniaEdit so scrollbar doesn't overlap text -->
    <Style Selector="aedit|TextEditor /template/ ScrollViewer ScrollContentPresenter">
        <Setter Property="Padding" Value="0 0 20 0" />
    </Style>
    
    <!-- set the selection color for the AvaloniaEdit boxes -->
    <Style Selector="aedit2|TextArea">
        <Setter Property="SelectionBrush" Value="{DynamicResource TextControlSelectionHighlightColor}" />
        <Setter Property="SelectionForeground" Value="{DynamicResource TextOnAccentFillColorSelectedTextBrush}" />
    </Style>
    
    <Style Selector="controls|ContentDialog.fullscreen controls|FABorder#BackgroundElement">
        <Setter Property="MaxWidth" Value="99999"></Setter>
        <Setter Property="MaxHeight" Value="99999"></Setter>
        <Setter Property="Margin" Value="100"></Setter>
    </Style>
    
    <Style Selector="controls|ContentDialog.fullscreen ScrollViewer#ContentScrollViewer">
        <Setter Property="HorizontalScrollBarVisibility" Value="Disabled"></Setter>
        <Setter Property="VerticalScrollBarVisibility" Value="Disabled"></Setter>
    </Style>
    
    <Styles.Resources>
        <ResourceDictionary>
            <FontFamily x:Key="RobotoMono">avares://Artemis.UI/Assets/Fonts#Roboto Mono</FontFamily>
            <ResourceDictionary.MergedDictionaries>
                <MergeResourceInclude Source="TreeView.axaml"/>
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Styles.Resources>
</Styles>