<Application x:Class="Hearthstone_Deck_Tracker.App"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:utility="clr-namespace:Hearthstone_Deck_Tracker.Utility"
             xmlns:wpf="clr-namespace:LiveCharts.Wpf;assembly=LiveCharts.Wpf"
             xmlns:converters="clr-namespace:Hearthstone_Deck_Tracker.Utility.Converters"
             xmlns:overlay="clr-namespace:Hearthstone_Deck_Tracker.Utility.Overlay"
             xmlns:enums="clr-namespace:Hearthstone_Deck_Tracker.Enums"
             Startup="App_OnStartup"
             DispatcherUnhandledException="App_DispatcherUnhandledException">
    <Application.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary>
                    <Color x:Key="GrayTextColor1">#FF7F7F7F</Color>
                    <Color x:Key="GrayTextColor2">#FFAAAAAA</Color>
                    <SolidColorBrush x:Key="GrayTextColorBrush" Color="#FF7F7F7F"/>
                    <SolidColorBrush x:Key="HSReplayNetBlue" Color="#1D3657"/>
                    <SolidColorBrush x:Key="HSReplayNetPremiumGold" Color="#FFB00D"/>
                </ResourceDictionary>
                <ResourceDictionary>
                    <ImageSource x:Key="AppIcon">pack://siteoforigin:,,,/Images/HearthstoneDeckTracker.ico</ImageSource>
                    <ImageSource x:Key="JoustScreenshot">Resources/joust-screenshot.jpg</ImageSource>
                    <ImageSource x:Key="HsReplayInfo1">Resources/hsreplay_info_1.png</ImageSource>
                    <ImageSource x:Key="HsReplayInfo2">Resources/hsreplay_info_2.png</ImageSource>
                    <ImageSource x:Key="HsReplayInfo3">Resources/hsreplay_info_3.png</ImageSource>
                    <ImageSource x:Key="HsReplayIcon">Resources/hsreplay_logo_blue.png</ImageSource>
                    <ImageSource x:Key="HsReplayIconBlue">Resources/hsreplay_logo_blue.png</ImageSource>
                    <ImageSource x:Key="HsReplayIconWhite">Resources/hsreplay_logo_white.png</ImageSource>
                    <ImageSource x:Key="ClassIconDeathknightRound">Resources/ClassIcons/Round/deathknight.png</ImageSource>
                    <ImageSource x:Key="ClassIconDemonHunterRound">Resources/ClassIcons/Round/demonhunter.png</ImageSource>
                    <ImageSource x:Key="ClassIconDruidRound">Resources/ClassIcons/Round/druid.png</ImageSource>
                    <ImageSource x:Key="ClassIconHunterRound">Resources/ClassIcons/Round/hunter.png</ImageSource>
                    <ImageSource x:Key="ClassIconMageRound">Resources/ClassIcons/Round/mage.png</ImageSource>
                    <ImageSource x:Key="ClassIconNeutralRound">Resources/ClassIcons/Round/neutral.png</ImageSource>
                    <ImageSource x:Key="ClassIconPaladinRound">Resources/ClassIcons/Round/paladin.png</ImageSource>
                    <ImageSource x:Key="ClassIconPriestRound">Resources/ClassIcons/Round/priest.png</ImageSource>
                    <ImageSource x:Key="ClassIconRogueRound">Resources/ClassIcons/Round/rogue.png</ImageSource>
                    <ImageSource x:Key="ClassIconShamanRound">Resources/ClassIcons/Round/shaman.png</ImageSource>
                    <ImageSource x:Key="ClassIconWarlockRound">Resources/ClassIcons/Round/warlock.png</ImageSource>
                    <ImageSource x:Key="ClassIconWarriorRound">Resources/ClassIcons/Round/warrior.png</ImageSource>
                    <ImageSource x:Key="DustIcon">Resources/dust.png</ImageSource>
                    <ImageSource x:Key="TwitchExtDecklist">Resources/twitch_ext_decklist.png</ImageSource>
                    <ImageSource x:Key="TwitchExtSecret">Resources/twitch_ext_secret.png</ImageSource>
                    <ImageSource x:Key="CollectionPromo">Resources/collection_promo.jpg</ImageSource>
                    <ImageSource x:Key="HearthstoneIcon">Resources/hearthstone-icon.png</ImageSource>
                    <ImageSource x:Key="BgsToastBackground">Resources/bgs-toast-background.jpg</ImageSource>
                    <ImageSource x:Key="MulliganToastBackground">Resources/mulligan-toast-bg.jpg</ImageSource>
                    <ImageSource x:Key="MulliganToastBackgroundGrey">Resources/mulligan-toast-bg-grey.jpg</ImageSource>
                    <ImageSource x:Key="DivineShield">Resources/Minion/divine-shield.png</ImageSource>
                    <ImageSource x:Key="MinionBorder">Resources/Minion/border.png</ImageSource>
                    <ImageSource x:Key="PremiumMinionBorder">Resources/Minion/border_premium.png</ImageSource>
                    <ImageSource x:Key="MinionStats">Resources/Minion/stats.png</ImageSource>
                    <ImageSource x:Key="PremiumMinionStats">Resources/Minion/stats_premium.png</ImageSource>
                    <ImageSource x:Key="Deathrattle">Resources/Minion/deathrattle.png</ImageSource>
                    <ImageSource x:Key="Legendary">Resources/Minion/legendary.png</ImageSource>
                    <ImageSource x:Key="PremiumLegendary">Resources/Minion/legendary_premium.png</ImageSource>
                    <ImageSource x:Key="Poisonous">Resources/Minion/poisonous.png</ImageSource>
                    <ImageSource x:Key="Venomous">Resources/Minion/venomous.png</ImageSource>
                    <ImageSource x:Key="Taunt">Resources/Minion/taunt.png</ImageSource>
                    <ImageSource x:Key="PremiumTaunt">Resources/Minion/taunt_premium.png</ImageSource>
                    <ImageSource x:Key="Reborn">Resources/Minion/reborn.png</ImageSource>
                    <ImageSource x:Key="MinionTrigger">Resources/Minion/trigger.png</ImageSource>
                    <ImageSource x:Key="FacelessManipulator">Resources/faceless_manipulator.png</ImageSource>
                    <ImageSource x:Key="XPScrollIcon">Resources/xp_scroll_item.png</ImageSource>
                    <ImageSource x:Key="XPFullBar">Resources/xp_filled_bar.png</ImageSource>
                    <ImageSource x:Key="XPEmptyBar">Resources/xp_empty_bar.png</ImageSource>
                    <ImageSource x:Key="XPGem">Resources/xp_gem.png</ImageSource>
                    <ImageSource x:Key="LoadingHero">Resources/Loading/loading_hero.png</ImageSource>
                    <ImageSource x:Key="LoadingMinion">Resources/Loading/loading_minion.png</ImageSource>
                    <ImageSource x:Key="LoadingSpell">Resources/Loading/loading_spell.png</ImageSource>
                    <ImageSource x:Key="LoadingWeapon">Resources/Loading/loading_weapon.png</ImageSource>
                    <ImageSource x:Key="MercsAbilityFrame">Resources/merc_ability.png</ImageSource>
                    <ImageSource x:Key="MercsAbilityCooldown">Resources/merc_hourglass.png</ImageSource>
                    <ImageSource x:Key="MercsIcon">Resources/merc_icon.png</ImageSource>
                    <ImageSource x:Key="MercsFrame">Resources/merc_frame.png</ImageSource>
                    <ImageSource x:Key="MercsCheckmark">Resources/checkmark.png</ImageSource>
                    <ImageSource x:Key="NewUserOnboardingBackground">Resources/onboarding-background.jpg</ImageSource>
                    <ImageSource x:Key="Tier7PreLobbySmall">Resources/Tier7/PreLobby-Small.png</ImageSource>
                    <ImageSource x:Key="Tier7PreLobbyLarge">Resources/Tier7/PreLobby-Large.png</ImageSource>
                </ResourceDictionary>
                <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Controls.xaml" />
                <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Fonts.xaml" />
                <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Colors.xaml" />
                <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Accents/Blue.xaml" />
                <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Accents/BaseLight.xaml" />
                <ResourceDictionary Source="Resources/Icons.xaml"/>
                <ResourceDictionary Source="Controls/Overlay/Constructed/ConstructedResources.xaml"/>
                <ResourceDictionary Source="Controls/Overlay/Battlegrounds/BattlegroundsResources.xaml"/>
                <ResourceDictionary>
                    <overlay:OverlayOpacityMask x:Key="OverlayOpacityMask"/>
                    <utility:ConfigWrapper x:Key="ConfigWrapper"/>
                    <utility:GlobalCommands x:Key="GlobalCommands"/>
                    <converters:InverseBoolToVisibilityConverter x:Key="InverseBoolToVisibility"/>
                    <converters:BoolToVisibilityConverter x:Key="BoolToVisibility"/>
                    <converters:EnumToVisibilityConverter x:Key="EnumToVisibility"/>
                    <enums:EnumDescriptionConverter x:Key="EnumDescriptionConverter"/>
                </ResourceDictionary>
                <ResourceDictionary>
                    <Style TargetType="{x:Type Hyperlink}">
                        <Setter Property="Foreground" Value="#FF47B1DF" />
                    </Style>
                    <Style TargetType="TextBlock" x:Key="WinrateGaugeTextStyle">
                        <Setter Property="FontWeight" Value="SemiBold"/>
                        <Setter Property="TextAlignment" Value="Center"/>
                        <Setter Property="TextWrapping" Value="Wrap"/>
                        <Setter Property="VerticalAlignment" Value="Center"/>
                        <Setter Property="Width" Value="80"/>
                    </Style>
                    <Style TargetType="wpf:Gauge" x:Key="WinrateGaugeStyle">
                        <Setter Property="Width" Value="90"/>
                        <Setter Property="Height" Value="90"/>
                        <Setter Property="From" Value="0"/>
                        <Setter Property="To" Value="100"/>
                        <Setter Property="InnerRadius" Value="40"/>
                        <Setter Property="Uses360Mode" Value="True"/>
                        <Setter Property="LabelFormatter" Value="{Binding EmptyFormatter}"/>
                        <Setter Property="GaugeActiveFill" Value="{DynamicResource AccentColorBrush}"/>
                        <Setter Property="GaugeBackground" Value="{DynamicResource AccentColorBrush4}"/>
                        <Setter Property="GaugeRenderTransform">
                            <Setter.Value>
                                <RotateTransform Angle="90"/>
                            </Setter.Value>
                        </Setter>
                    </Style>
                    <Style TargetType="ListView" BasedOn="{StaticResource MetroListView}">
                        <Setter Property="ScrollViewer.PanningMode" Value="VerticalOnly"/>
                        <EventSetter Event="ManipulationBoundaryFeedback" Handler="HandleManipulationBoundaryFeedback"/>
                    </Style>
                    <Style TargetType="ListBox" BasedOn="{StaticResource MetroListBox}">
                        <Setter Property="ScrollViewer.PanningMode" Value="VerticalOnly"/>
                        <EventSetter Event="ManipulationBoundaryFeedback" Handler="HandleManipulationBoundaryFeedback"/>
                    </Style>
                    <Style TargetType="GroupBox" BasedOn="{StaticResource MetroGroupBox}">
                        <Setter Property="Margin" Value="5"/>
                    </Style>
                    <Style TargetType="ScrollViewer">
                        <Setter Property="PanningMode" Value="VerticalOnly"/>
                        <EventSetter Event="ManipulationBoundaryFeedback" Handler="HandleManipulationBoundaryFeedback"/>
                    </Style>
                </ResourceDictionary>
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Application.Resources>
</Application>
