<?xml version="1.0" encoding="utf-8" ?>
<uwp:WinoApplication
    x:Class="Wino.Mail.WinUI.App"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:coreControls="using:Wino.Mail.WinUI.Controls"
    xmlns:coreStyles="using:Wino.Mail.WinUI.Styles"
    xmlns:local="using:Wino.Mail.WinUI"
    xmlns:styles="using:Wino.Styles"
    xmlns:uwp="using:Wino.Mail.WinUI">
    <uwp:WinoApplication.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <XamlControlsResources xmlns="using:Microsoft.UI.Xaml.Controls" />
                <ResourceDictionary Source="/Styles/Colors.xaml" />
                <ResourceDictionary Source="/Styles/ContentPresenters.xaml" />
                <ResourceDictionary Source="/Styles/Converters.xaml" />
                <ResourceDictionary Source="/Styles/FontIcons.xaml" />
                <ResourceDictionary Source="/Styles/WinoInfoBar.xaml" />
                <ResourceDictionary Source="/Styles/SharedStyles.xaml" />
                <ResourceDictionary Source="/Styles/IconTemplates.xaml" />
                <coreStyles:OperationCommandBarResources />


                <coreStyles:CustomMessageDialogStyles />
                <coreStyles:DataTemplates />

                <ResourceDictionary>
                    <Style TargetType="ScrollViewer">
                        <Setter Property="VerticalScrollBarVisibility" Value="Auto" />
                    </Style>

                    <SolidColorBrush x:Key="CommandBarBackground" Color="Transparent" />
                    <SolidColorBrush x:Key="CommandBarBackgroundOpen" Color="Transparent" />
                    <SolidColorBrush x:Key="CommandBarBorderBrushOpen" Color="Transparent" />
                    <Thickness x:Key="CommandBarBorderThicknessOpen">0</Thickness>

                    <StaticResource x:Key="AppBarToggleButtonBackgroundChecked" ResourceKey="SystemAccentColor" />
                    <StaticResource x:Key="AppBarToggleButtonBackgroundCheckedPointerOver" ResourceKey="SystemAccentColor" />
                    <StaticResource x:Key="AppBarToggleButtonBackgroundCheckedPressed" ResourceKey="SystemAccentColor" />

                    <Thickness x:Key="ImapSetupDialogSubPagePadding">24,24,24,24</Thickness>

                    <Style x:Key="PageRootBorderStyle" TargetType="Border">
                        <Setter Property="Background" Value="{ThemeResource WinoContentZoneBackgroud}" />
                        <Setter Property="BorderBrush" Value="{StaticResource CardStrokeColorDefaultBrush}" />
                        <Setter Property="CornerRadius" Value="7" />
                        <Setter Property="BorderThickness" Value="1" />
                    </Style>

                    <Style x:Key="InformationAreaGridStyle" TargetType="Grid">
                        <Setter Property="Background" Value="{ThemeResource CardBackgroundFillColorDefaultBrush}" />
                        <Setter Property="BorderBrush" Value="{ThemeResource DividerStrokeColorDefaultBrush}" />
                        <Setter Property="CornerRadius" Value="8" />
                        <Setter Property="Padding" Value="16" />
                    </Style>

                    <Style TargetType="StackPanel">
                        <Setter Property="ChildrenTransitions">
                            <Setter.Value>
                                <TransitionCollection>
                                    <EntranceThemeTransition IsStaggeringEnabled="False" />
                                </TransitionCollection>
                            </Setter.Value>
                        </Setter>
                    </Style>

                    <Style
                        x:Key="WinoDialogStyle"
                        BasedOn="{StaticResource DefaultContentDialogStyle}"
                        TargetType="ContentDialog">
                        <Setter Property="CornerRadius" Value="8" />
                        <Setter Property="Padding" Value="24" />
                    </Style>

                    <Style TargetType="coreControls:WinoNavigationViewItem">
                        <Setter Property="ContentTransitions">
                            <Setter.Value>
                                <TransitionCollection>
                                    <PopupThemeTransition />
                                </TransitionCollection>
                            </Setter.Value>
                        </Setter>
                    </Style>

                    <Style x:Key="PageStyle" TargetType="Page">
                        <Setter Property="Margin" Value="-1,0,0,0" />
                        <Setter Property="Padding" Value="12" />
                        <Setter Property="Background" Value="{ThemeResource AppBarBackgroundColor}" />
                        <Setter Property="Template">
                            <Setter.Value>
                                <ControlTemplate>
                                    <Grid Padding="12">
                                        <ContentPresenter />
                                    </Grid>
                                </ControlTemplate>
                            </Setter.Value>
                        </Setter>
                    </Style>

                    <x:Double x:Key="SettingsCardSpacing">4</x:Double>

                    <Style
                        x:Key="SettingsSectionHeaderTextBlockStyle"
                        BasedOn="{StaticResource BodyStrongTextBlockStyle}"
                        TargetType="TextBlock">
                        <Style.Setters>
                            <Setter Property="Margin" Value="1,30,0,6" />
                        </Style.Setters>
                    </Style>
                </ResourceDictionary>
                <ResourceDictionary Source="ms-appx:///CommunityToolkit.WinUI.Controls.Segmented/Segmented/Segmented.xaml" />
                <ResourceDictionary Source="Controls/ListView/WinoListViewStyles.xaml" />
                <ResourceDictionary Source="/Styles/ItemContainerStyles.xaml" />
                <ResourceDictionary Source="/Styles/ImagePreviewControl.xaml" />
                <ResourceDictionary Source="/Styles/WebViewEditorControl.xaml" />
                <ResourceDictionary Source="Controls/ListView/WinoListViewStyles.xaml" />

                <ResourceDictionary Source="/Styles/CalendarThemeResources.xaml" />

                <ResourceDictionary Source="/Styles/WinoCalendarTypeSelectorControl.xaml" />

                <styles:WinoExpanderStyle />
                <ResourceDictionary Source="/Styles/CalendarShellNavigationViewStyle.xaml" />
                <ResourceDictionary Source="/Styles/CalendarViewStyles.xaml" />
                <ResourceDictionary Source="AppThemes/Default.xaml" />
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </uwp:WinoApplication.Resources>
</uwp:WinoApplication>


