<Application x:Class="BDU.App"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:local="clr-namespace:BDU"
             xmlns:converters="clr-namespace:BDU.Converters"
             xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
             xmlns:mah="http://metro.mahapps.com/winfx/xaml/controls"
             StartupUri="Windows/Login.xaml">
    <Application.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Controls.xaml" />
                <ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.MahApps;component/Themes/MaterialDesignTheme.MahApps.Fonts.xaml" />
                <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Themes/Light.Blue.xaml" />
                <materialDesign:BundledTheme BaseTheme="Light"
                                             PrimaryColor="DeepPurple"
                                             SecondaryColor="Lime" />
                <ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesign3.Defaults.xaml" />
                <ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.MahApps;component/Themes/MaterialDesignTheme.MahApps.Flyout.xaml" />
            </ResourceDictionary.MergedDictionaries>


            <converters:ParameterCategoryToStringConverter x:Key="ParameterCategoryToStringConverter" />
            <converters:BooleanToVisibilityConverter x:Key="BooleanToVisibilityConverter" />
            <converters:ParameterCategoryToVisibilityConverter x:Key="ParameterCategoryToVisibilityConverter" />
            <converters:StepResultToStringConverter x:Key="StepResultToStringConverter" />
            <converters:ParameterValueToStringConverter x:Key="ParameterValueToStringConverter" />
            <converters:DeviceSettingWindowConverter x:Key="DeviceSettingWindowConverter" />
            <converters:IsEnumTypeConverter x:Key="IsEnumTypeConverter" />
            <converters:EnumValuesConverter x:Key="EnumValuesConverter" />
            <converters:EnumValueConverter x:Key="EnumValueConverter" />
            <converters:BoolInverseConverter x:Key="BoolInverseConverter" />
            <converters:GuidToParameterNameConverter x:Key="GuidToParameterNameConverter" />
            <converters:ParameterTypeToBoolConverter x:Key="ParameterTypeToBoolConverter" />
            <converters:ParameterToGotoSettingStringConverter x:Key="ParameterToGotoSettingStringConverter" />
            <converters:FilteredParametersConverter x:Key="FilteredParametersConverter" />
            <converters:StringToVisibilityConverter x:Key="StringToVisibilityConverter" />
            <converters:DeviceNameConverter x:Key="DeviceNameConverter" />
            <converters:HexConverter x:Key="HexConverter" />
            <converters:HexToDecimalConverter x:Key="HexToDecimalConverter"/>

            <SolidColorBrush x:Key="HighlightBrush"
                             Color="{DynamicResource Primary700}" />
            <SolidColorBrush x:Key="AccentBaseColorBrush"
                             Color="{DynamicResource Primary600}" />
            <SolidColorBrush x:Key="AccentColorBrush"
                             Color="{DynamicResource Primary500}" />
            <SolidColorBrush x:Key="AccentColorBrush2"
                             Color="{DynamicResource Primary400}" />
            <SolidColorBrush x:Key="AccentColorBrush3"
                             Color="{DynamicResource Primary300}" />
            <SolidColorBrush x:Key="AccentColorBrush4"
                             Color="{DynamicResource Primary200}" />
            <SolidColorBrush x:Key="WindowTitleColorBrush"
                             Color="{DynamicResource Primary700}" />
            <SolidColorBrush x:Key="AccentSelectedColorBrush"
                             Color="{DynamicResource Primary500Foreground}" />
            <LinearGradientBrush x:Key="ProgressBrush"
                                 EndPoint="0.001,0.5"
                                 StartPoint="1.002,0.5">
                <GradientStop Color="{DynamicResource Primary700}"
                              Offset="0" />
                <GradientStop Color="{DynamicResource Primary300}"
                              Offset="1" />
            </LinearGradientBrush>
            <SolidColorBrush x:Key="CheckmarkFill"
                             Color="{DynamicResource Primary500}" />
            <SolidColorBrush x:Key="RightArrowFill"
                             Color="{DynamicResource Primary500}" />
            <SolidColorBrush x:Key="IDealForegroundColorBrush"
                             Color="{DynamicResource Primary500Foreground}" />
            <SolidColorBrush x:Key="IDealForegroundDisabledBrush"
                             Color="{DynamicResource Primary500}"
                             Opacity="0.4" />
            <SolidColorBrush x:Key="MahApps.Metro.Brushes.ToggleSwitchButton.OnSwitchBrush.Win10"
                             Color="{DynamicResource Primary500}" />
            <SolidColorBrush x:Key="MahApps.Metro.Brushes.ToggleSwitchButton.OnSwitchMouseOverBrush.Win10"
                             Color="{DynamicResource Primary400}" />
            <SolidColorBrush x:Key="MahApps.Metro.Brushes.ToggleSwitchButton.ThumbIndicatorCheckedBrush.Win10"
                             Color="{DynamicResource Primary500Foreground}" />


            <FontFamily x:Key="misans">pack://application:,,,/BVC;component/字体/MiSans-Normal.ttf#misans</FontFamily>
            <Style TargetType="{x:Type ListViewItem}"
                   BasedOn="{StaticResource MahApps.Styles.ListViewItem}">
                <Setter Property="FontFamily"
                        Value="{StaticResource misans}" />
            </Style>
            <Style TargetType="{x:Type ListView}"
                   BasedOn="{StaticResource MaterialDesignListView}">
                <Setter Property="FontFamily"
                        Value="{StaticResource misans}" />
            </Style>
            <Style TargetType="{x:Type ListBoxItem}"
                   BasedOn="{StaticResource MaterialDesignListBoxItem}">
                <Setter Property="FontFamily"
                        Value="{StaticResource misans}" />
            </Style>
            <Style TargetType="{x:Type ListBox}"
                   BasedOn="{StaticResource MaterialDesignListBox}">
                <Setter Property="FontFamily"
                        Value="{StaticResource misans}" />
            </Style>
            <Style TargetType="{x:Type TreeViewItem}"
                   BasedOn="{StaticResource MaterialDesignTreeViewItem}">
                <Setter Property="FontFamily"
                        Value="{StaticResource misans}" />
            </Style>
            <Style TargetType="{x:Type TreeView}"
                   BasedOn="{StaticResource MaterialDesignTreeView}">
                <Setter Property="FontFamily"
                        Value="{StaticResource misans}" />
            </Style>
            <Style TargetType="{x:Type Button}"
                   BasedOn="{StaticResource MaterialDesignRaisedButton}">
                <Setter Property="FontFamily"
                        Value="{StaticResource misans}" />
            </Style>
            <Style TargetType="{x:Type Label}"
                   BasedOn="{StaticResource MaterialDesignLabel}">
                <Setter Property="FontFamily"
                        Value="{StaticResource misans}" />
            </Style>
            <Style TargetType="{x:Type TextBox}"
                   BasedOn="{StaticResource MaterialDesignTextBox}">
                <Setter Property="FontFamily"
                        Value="{StaticResource misans}" />
            </Style>
            <Style TargetType="{x:Type PasswordBox}"
                   BasedOn="{StaticResource MaterialDesignPasswordBox}">
                <Setter Property="FontFamily"
                        Value="{StaticResource misans}" />
            </Style>
            <Style TargetType="{x:Type ComboBox}"
                   BasedOn="{StaticResource MaterialDesignComboBox}">
                <Setter Property="FontFamily"
                        Value="{StaticResource misans}" />
            </Style>
            <Style TargetType="{x:Type GroupBox}"
                   BasedOn="{StaticResource MaterialDesignGroupBox}">
                <Setter Property="FontFamily"
                        Value="{StaticResource misans}" />
            </Style>
            <Style TargetType="{x:Type TabControl}"
                   BasedOn="{StaticResource MaterialDesignTabControl}">
                <Setter Property="FontFamily"
                        Value="{StaticResource misans}" />
            </Style>
            <Style TargetType="{x:Type TabItem}"
                   BasedOn="{StaticResource MaterialDesignTabItem}">
                <Setter Property="FontFamily"
                        Value="{StaticResource misans}" />
            </Style>
            <Style TargetType="{x:Type Run}">
                <Setter Property="FontFamily"
                        Value="{StaticResource misans}" />
            </Style>
            <Style TargetType="{x:Type Menu}"
                   BasedOn="{StaticResource MaterialDesignMenu}">
                <Setter Property="FontFamily"
                        Value="{StaticResource misans}" />
            </Style>
            <Style TargetType="{x:Type ScrollViewer}"
                   BasedOn="{StaticResource MaterialDesignScrollViewer}">
                <Setter Property="VerticalScrollBarVisibility"
                        Value="Auto" />
            </Style>
        </ResourceDictionary>
    </Application.Resources>
</Application>
