<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity" 
                    xmlns:osk="clr-namespace:FLY.UI.OSK"
                    xmlns:Microsoft_Windows_Themes="clr-namespace:Microsoft.Windows.Themes;assembly=PresentationFramework.Aero" 
                    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
                    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
                    mc:Ignorable="d"
                    >
    <ResourceDictionary.MergedDictionaries>
        <ResourceDictionary Source="pack://application:,,,/FLY.ControlLibrary;component/Themes/MaterialDesignIcons.xaml"/>
    </ResourceDictionary.MergedDictionaries>

    <SolidColorBrush x:Key="Brush_theme_bar" Color="#C0008BE5"/>
    <SolidColorBrush x:Key="Background_Title" Color="#C0008BE5"/>
    <SolidColorBrush x:Key="Color_theme_activity" Color="#FF008BE5"/>
    <SolidColorBrush x:Key="Color_theme_static" Color="#FF3B3B3B"/>
    <SolidColorBrush x:Key="Color_theme_noact" Color="#FF888888"/>
    <SolidColorBrush x:Key="Color_theme_background" Color="White"/>
    <SolidColorBrush x:Key="Color_theme_text_activity" Color="DarkBlue"/>

    
    <Style TargetType="TextBox" x:Key="TextBoxStyle1">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type TextBox}">
                    <Border Name="PART_Border" BorderBrush="{TemplateBinding Foreground}" Background="{TemplateBinding Background}">
                        <ScrollViewer x:Name="PART_ContentHost" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
                        <i:Interaction.Behaviors>
                            <osk:KeyboardBehavior/>
                        </i:Interaction.Behaviors>
                    </Border>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsEnabled" Value="false">
                            <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}"/>
                        </Trigger>
                        <Trigger Property="IsFocused" Value="true">
                            <Setter TargetName="PART_Border" Property="BorderThickness" Value="1"/>
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style TargetType="Button" x:Key="ButtonStyle1">
        <Setter Property="Width" Value="150"/>
        <Setter Property="Height" Value="70"/>
        <Setter Property="Margin" Value="6"/>
        <Setter Property="Foreground" Value="#FFFFFFFF" />
        <Setter Property="FontWeight" Value="Bold" />
        <Setter Property="FontSize" Value="36" />
        <Setter Property="FontFamily" Value="YouYuan" />
        <Setter Property="Background" Value="#FF3B3B3B" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type Button}">
                    <StackPanel Orientation="Vertical">
                        <Border Background="{TemplateBinding Background}" Height="{TemplateBinding Height}" Width="{TemplateBinding Width}">
                            <ContentPresenter HorizontalAlignment="Right" VerticalAlignment="Top" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
                        </Border>
                    </StackPanel>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsKeyboardFocused" Value="true">
                        </Trigger>
                        <Trigger Property="IsEnabled" Value="false">
                        </Trigger>
                        <Trigger Property="IsPressed" Value="true">
                            <Setter Property="Opacity" Value="0.5"/>
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style TargetType="Button" x:Key="ButtonStyle_empty">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type Button}">
                    <Border 
                        BorderBrush="{TemplateBinding BorderBrush}" 
                        BorderThickness="{TemplateBinding BorderThickness}" 
                        Background="{TemplateBinding Background}" 
                        Height="{TemplateBinding Height}" 
                        Width="{TemplateBinding Width}"
                        >
                            <ContentPresenter RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
                        </Border>
                        <ControlTemplate.Triggers>
                            <Trigger Property="IsKeyboardFocused" Value="true">
                            </Trigger>
                            <Trigger Property="IsEnabled" Value="false">
                            </Trigger>
                        <Trigger Property="IsPressed" Value="true">
                            <Setter Property="Opacity" Value="0.5"/>
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="Background" Value="Transparent"/>
        <Setter Property="BorderBrush" Value="Transparent"/>
    </Style>
    <Style TargetType="Button" x:Key="ButtonStyle2">
        <Setter Property="Margin" Value="6"/>
        <Setter Property="Width" Value="185"/>
        <Setter Property="Height" Value="85"/>
        <Setter Property="Foreground" Value="#FFFFFFFF" />
        <Setter Property="FontWeight" Value="Bold" />
        <Setter Property="FontSize" Value="48" />
        <Setter Property="FontFamily" Value="YouYuan" />
        <Setter Property="Background" Value="#FF3B3B3B" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type Button}">
                    <StackPanel Orientation="Vertical">
                        <Border Background="{TemplateBinding Background}" Height="{TemplateBinding Height}" Width="{TemplateBinding Width}">
                            <ContentPresenter RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
                        </Border>
                    </StackPanel>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsKeyboardFocused" Value="true">
                        </Trigger>
                        <Trigger Property="IsEnabled" Value="false">
                        </Trigger>
                        <Trigger Property="IsPressed" Value="true">
                            <Setter Property="Opacity" Value="0.5"/>
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="Effect">
            <Setter.Value>
                <DropShadowEffect Color="Black" Direction="270" ShadowDepth="3" Opacity="0.4" />
            </Setter.Value>
        </Setter>
        <Setter Property="FlowDirection" Value="LeftToRight" />
    </Style>
    <Style TargetType="Button" x:Key="ButtonStyle3">
        <Setter Property="Foreground" Value="#FFFFFFFF" />
        <Setter Property="FontWeight" Value="Bold" />
        <Setter Property="FontSize" Value="48" />
        <Setter Property="FontFamily" Value="YouYuan" />
        <Setter Property="Background" Value="#FF3B3B3B" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type Button}">
                    <StackPanel Orientation="Vertical">
                        <Border Background="{TemplateBinding Background}" Height="{TemplateBinding ActualHeight}" Width="{TemplateBinding ActualWidth}">
                            <ContentPresenter RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
                        </Border>
                    </StackPanel>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsPressed" Value="true">
                            <Setter Property="Opacity" Value="0.5"/>
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="Effect">
            <Setter.Value>
                <DropShadowEffect Color="Black" Direction="270" ShadowDepth="3" Opacity="0.4" />
            </Setter.Value>
        </Setter>
    </Style>
    <Style TargetType="TextBlock" x:Key="TextBlockStyle_FieldHeaderEditable">
        <Setter Property="Margin"  Value="3" />
        <Setter Property="Foreground"  Value="#FF0083D7" />
        <Setter Property="FontWeight"  Value="Bold" />
        <Setter Property="FontSize"  Value="22" />
        <Setter Property="FontFamily"  Value="YouYuan" />
        <Setter Property="TextAlignment"  Value="Left" />
    </Style>
    <Style TargetType="TextBlock" x:Key="TextBlockStyle_FieldHeader">
        <Setter Property="Margin"  Value="3" />
        <Setter Property="Foreground"  Value="#FF3B3B3B" />
        <Setter Property="FontWeight"  Value="Bold" />
        <Setter Property="FontSize"  Value="22" />
        <Setter Property="FontFamily"  Value="YouYuan" />
        <Setter Property="TextAlignment"  Value="Left" />
    </Style>

    <Style TargetType="TextBlock" x:Key="TextBlockStyle_ItemHeader">
        <Setter Property="Margin"  Value="0,9,0,0" />
        <Setter Property="Foreground"  Value="#FFFFFFFF" />
        <Setter Property="FontWeight"  Value="Bold" />
        <Setter Property="FontSize"  Value="30" />
        <Setter Property="FontFamily"  Value="YouYuan" />
        <Setter Property="TextAlignment"  Value="Right" />
    </Style>
    <Style TargetType="TextBlock" x:Key="TextBlockStyle_FieldContent">
        <Setter Property="Margin"  Value="3" />
        <Setter Property="Foreground"  Value="#FF3B3B3B" />
        <Setter Property="FontWeight"  Value="Bold" />
        <Setter Property="FontSize"  Value="36" />
        <Setter Property="FontFamily"  Value="Microsoft Sans Serif" />
        <Setter Property="TextAlignment"  Value="Left" />
    </Style>
    <Style TargetType="TextBox" x:Key="TextBoxStyle_FieldContent" BasedOn="{StaticResource ResourceKey=TextBoxStyle1}">
        <Setter Property="Margin"  Value="3" />
        <Setter Property="Foreground"  Value="#FF3B3B3B" />
        <Setter Property="FontWeight"  Value="Bold" />
        <Setter Property="FontSize"  Value="36" />
        <Setter Property="FontFamily"  Value="Microsoft Sans Serif" />
        <Setter Property="TextAlignment"  Value="Left" />
        <Setter Property="MinWidth"  Value="30" />

    </Style>
    <Style TargetType="TextBlock" x:Key="TextBlockStyle_FieldContent_mm_interval">
        <Setter Property="Foreground"  Value="#FF888888" />
        <Setter Property="FontSize"  Value="36" />
        <Setter Property="FontFamily"  Value="Microsoft Sans Serif" />
        <Setter Property="TextAlignment"  Value="Left" />
        <Setter Property="VerticalAlignment"  Value="Bottom" />
    </Style>
    <Style TargetType="TextBlock" x:Key="TextBlockStyle_FieldContent_mm">
        <Setter Property="Foreground"  Value="#FF888888" />
        <Setter Property="FontSize"  Value="22" />
        <Setter Property="FontFamily"  Value="Microsoft Sans Serif" />
        <Setter Property="TextAlignment"  Value="Left" />
        <Setter Property="VerticalAlignment"  Value="Bottom" />
    </Style>
    <Style TargetType="TextBlock" x:Key="TextBlockStyle_Title">
        <Setter Property="Margin"  Value="160,0,0,0" />
        <Setter Property="Foreground"  Value="White" />
        <Setter Property="FontWeight"  Value="Bold" />
        <Setter Property="FontSize"  Value="60" />
        <Setter Property="FontFamily"  Value="YouYuan" />
        <Setter Property="TextAlignment"  Value="Left" />
        <Setter Property="VerticalAlignment"  Value="Center" />
    </Style>
    <Style TargetType="{x:Type ToggleButton}" x:Key="ToggleButtonStyle1" >
        <Setter Property="HorizontalContentAlignment" Value="Center"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="Padding" Value="1"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type ToggleButton}">
                    <Canvas Height="45" Width="106">
                        <Path x:Name="Path_Background" Data="F1M1,1C1,1 105,1 105,1 105,1 105,44 105,44 105,44 1,44 1,44 1,44 1,1 1,1z" 
								Fill="#FF008BE5" Height="45" Width="106"/>
                        <Path x:Name="Path_block" Data="F1M1,1C1,1 23,1 23,1 23,1 23,35 23,35 23,35 1,35 1,35 1,35 1,1 1,1z" 
								Fill="#FFFFFFFF" Height="36" Canvas.Left="77" Canvas.Top="5" Width="24"/>
                        <Path x:Name="Path_On" Data="F1M9.551,15.307C9.551,15.307 13.212,23.525 13.212,23.525 13.212,23.525 19.161,6.825 28.542,1.258 28.314,5.234 27.398,8.68 29,12.921 24.881,13.982 16.415,25.91 13.669,31.742 9.78,26.175 5.203,21.934 2,20.609 2,20.609 9.551,15.307 9.551,15.307z" 
							Fill="#FFFFFFFF" Height="33" Canvas.Left="25" Canvas.Top="6" Width="31"/>
                        <Path x:Name="Path_Off" Visibility="Hidden" Data="F1M24.997,23.003C24.997,23.003 15.888,23.003 15.888,23.003 15.888,23.003 12.921,18.001 12.921,18.001 12.921,18.001 9.955,23.003 9.955,23.003 9.955,23.003 1.003,23.003 1.003,23.003 1.003,23.003 7.146,12.303 7.146,12.303 7.146,12.303 1.278,1.997 1.278,1.997 1.278,1.997 10.27,1.997 10.27,1.997 10.27,1.997 13.157,6.801 13.157,6.801 13.157,6.801 15.966,1.997 15.966,1.997 15.966,1.997 24.76,1.997 24.76,1.997 24.76,1.997 18.854,12.303 18.854,12.303 18.854,12.303 24.997,23.003 24.997,23.003z" 
							Fill="#FFFFFFFF" Height="25" Canvas.Left="51" Canvas.Top="10" Width="26"/>
                    </Canvas>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsChecked" Value="False">
                            <Setter TargetName="Path_On" Property="Visibility" Value="Hidden"/>
                            <Setter TargetName="Path_Off" Property="Visibility" Value="Visible"/>
                            <Setter TargetName="Path_block" Property="Canvas.Left" Value="4"/>
                            <Setter TargetName="Path_Background" Property="Fill" Value="#FF3B3B3B"/>
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style TargetType="Button" x:Key="ButtonStyle_back" BasedOn="{StaticResource ButtonStyle_empty}">
        <Setter Property="Height" Value="80"/>
        <Setter Property="Width" Value="80"/>
        <Setter Property="Margin" Value="0,24"/>
        <Setter Property="Background" Value="{StaticResource Brush_theme_bar}"/>
        <Setter Property="Content">
            <Setter.Value>
                <Path Fill="White" Data="{StaticResource Geometry_arrow-left-bold}" 
                              SnapsToDevicePixels ="True"
                              Stretch="Fill"
                              Height="60" Width="60" HorizontalAlignment="Right" Margin="0,0,-2,0"/>
            </Setter.Value>
        </Setter>
    </Style>
    <Style TargetType="Button" x:Key="ButtonStyle_back2" BasedOn="{StaticResource ButtonStyle_empty}">
        <Setter Property="Height" Value="80"/>
        <Setter Property="Width" Value="80"/>
        <Setter Property="Margin" Value="0,24,0,24"/>
        <Setter Property="Background" Value="White"/>
        <Setter Property="Content">
            <Setter.Value>
                <Path Fill="{StaticResource Brush_theme_bar}" Data="{StaticResource Geometry_arrow-left-bold}" 
                              SnapsToDevicePixels ="True"
                              Stretch="Fill"
                              Height="60" Width="60" HorizontalAlignment="Right" Margin="0,0,-2,0"/>
            </Setter.Value>
        </Setter>
    </Style>

    <Style TargetType="Border" x:Key="BorderStyle_module">
        <Setter Property="Background" Value="{StaticResource Color_theme_background}"/>
        <Setter Property="Margin" Value="3"/>
        <Setter Property="CornerRadius" Value="3"/>
        <Setter Property="Effect">
            <Setter.Value>
                <DropShadowEffect Color="Black" Direction="270" ShadowDepth="1" Opacity="0.23" />
            </Setter.Value>
        </Setter>
    </Style>
    <Style TargetType="Grid" x:Key="GridStyle_ButtonShadow">
        <Setter Property="Effect">
            <Setter.Value>
                <DropShadowEffect BlurRadius="10" RenderingBias="Quality" Color="Black" Direction="270" ShadowDepth="2" Opacity="0.5" />
            </Setter.Value>
        </Setter>
    </Style>
</ResourceDictionary>