forked from HearthSim/Hearthstone-Deck-Tracker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.xaml
115 lines (115 loc) · 8.74 KB
/
App.xaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
<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: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="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="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="DivineShield">Resources/divine-shield.png</ImageSource>
<ImageSource x:Key="MinionBorder">Resources/border.png</ImageSource>
<ImageSource x:Key="PremiumMinionBorder">Resources/border_premium.png</ImageSource>
<ImageSource x:Key="Deathrattle">Resources/deathrattle.png</ImageSource>
<ImageSource x:Key="Legendary">Resources/legendary.png</ImageSource>
<ImageSource x:Key="PremiumLegendary">Resources/legendary_premium.png</ImageSource>
<ImageSource x:Key="Poisonous">Resources/poisonous.png</ImageSource>
<ImageSource x:Key="Taunt">Resources/taunt.png</ImageSource>
<ImageSource x:Key="PremiumTaunt">Resources/taunt_premium.png</ImageSource>
<ImageSource x:Key="FacelessManipulator">Resources/faceless_manipulator.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>
<utility:ConfigWrapper x:Key="ConfigWrapper"/>
<utility:GlobalCommands x:Key="GlobalCommands"/>
<converters:InverseBoolToVisibilityConverter x:Key="InverseBoolToVisibility"/>
<converters:BoolToVisibilityConverter x:Key="BoolToVisibility"/>
<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>