<Application
    x:Class="AmbientSounds.App"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:Windows10version1903="http://schemas.microsoft.com/winfx/2006/xaml/presentation?IsApiContractPresent(Windows.Foundation.UniversalApiContract, 8)"
    xmlns:converters="using:AmbientSounds.Converters"
    xmlns:muxc="using:Microsoft.UI.Xaml.Controls"
    xmlns:toolkit="using:Microsoft.Toolkit.Uwp.UI.Controls">
    <Application.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <XamlControlsResources xmlns="using:Microsoft.UI.Xaml.Controls" />
            </ResourceDictionary.MergedDictionaries>

            <ResourceDictionary.ThemeDictionaries>
                <ResourceDictionary x:Key="Light">
                    <SolidColorBrush x:Key="FallbackBackgroundBrush" Color="#e9e9e9" />
                    <SolidColorBrush x:Key="FallbackBackgroundOppositeBrush" Color="#FF1F1F1F" />
                    <AcrylicBrush
                        x:Key="AcrylicBackplateBrush"
                        Windows10version1903:TintLuminosityOpacity="0.8"
                        FallbackColor="#e9e9e9"
                        TintColor="#e9e9e9"
                        TintOpacity="0.1" />
                    <SolidColorBrush x:Key="CardBackgroundBrush" Color="#e9e9e9" />
                    <SolidColorBrush x:Key="CardStrokeBrush" Color="#d1d1d1" />
                    <SolidColorBrush x:Key="ContentBackgroundBrush" Color="White" />
                </ResourceDictionary>
                <ResourceDictionary x:Key="Dark">
                    <SolidColorBrush x:Key="FallbackBackgroundBrush" Color="{StaticResource SystemChromeMediumColor}" />
                    <SolidColorBrush x:Key="FallbackBackgroundOppositeBrush" Color="#FFE6E6E6" />
                    <AcrylicBrush
                        x:Key="AcrylicBackplateBrush"
                        Windows10version1903:TintLuminosityOpacity="0.8"
                        FallbackColor="{StaticResource SystemChromeMediumColor}"
                        TintColor="{StaticResource SystemChromeMediumColor}"
                        TintOpacity="0.1" />
                    <SolidColorBrush x:Key="CardBackgroundBrush" Color="{StaticResource SystemChromeMediumColor}" />
                    <SolidColorBrush x:Key="CardStrokeBrush" Color="#1e1e1e" />
                    <SolidColorBrush x:Key="ContentBackgroundBrush" Color="#111111" />
                </ResourceDictionary>
                <ResourceDictionary x:Key="HighContrast">
                    <SolidColorBrush x:Key="FallbackBackgroundBrush" Color="{StaticResource SystemColorWindowColor}" />
                    <SolidColorBrush x:Key="FallbackBackgroundOppositeBrush" Color="{StaticResource SystemColorWindowColor}" />
                    <SolidColorBrush x:Key="AcrylicBackplateBrush" Color="{ThemeResource SystemColorWindowColor}" />
                    <SolidColorBrush x:Key="CardBackgroundBrush" Color="{ThemeResource SystemColorWindowColor}" />
                    <SolidColorBrush x:Key="CardStrokeBrush" Color="{StaticResource SystemColorWindowTextColor}" />
                    <SolidColorBrush x:Key="ContentBackgroundBrush" Color="{ThemeResource SystemColorWindowColor}" />
                </ResourceDictionary>
            </ResourceDictionary.ThemeDictionaries>

            <Style x:Key="RoundButtonStyle" TargetType="Button">
                <Setter Property="Width" Value="40" />
                <Setter Property="Height" Value="40" />
                <Setter Property="CornerRadius" Value="20" />
            </Style>

            <Style
                x:Key="TransparentRoundButtonStyle"
                BasedOn="{StaticResource RoundButtonStyle}"
                TargetType="Button">
                <Setter Property="Background" Value="Transparent" />
            </Style>

            <Style x:Key="PageHeaderTextStyle" TargetType="TextBlock">
                <Setter Property="FontSize" Value="32" />
                <Setter Property="VerticalAlignment" Value="Center" />
            </Style>

            <AcrylicBrush
                x:Key="BackgroundAcrylicBrush"
                FallbackColor="Gray"
                TintColor="Black"
                TintOpacity="0.2" />

            <Style x:Key="SubtleShadow" TargetType="toolkit:DropShadowPanel">
                <Setter Property="BlurRadius" Value="4" />
                <Setter Property="OffsetY" Value="1" />
                <Setter Property="ShadowOpacity" Value="0.4" />
            </Style>

            <FontFamily x:Key="FluentUIGlyphs">/Assets/fluentui.ttf#fluentui</FontFamily>
            <x:Double x:Key="WideWindowBreakpoint">670</x:Double>
            <Thickness x:Key="NarrowPageMargin">16,0</Thickness>
            <Thickness x:Key="WidePageMargin">40,0</Thickness>
            <Thickness x:Key="TopPageMargin">0,32,0,0</Thickness>
            <x:Double x:Key="ImageCardHeight">208</x:Double>
            <x:Double x:Key="ImageCardWidth">148</x:Double>
            <x:Double x:Key="ImageCardShadowWidth">144</x:Double>
        </ResourceDictionary>
    </Application.Resources>
</Application>
