<ResourceDictionary
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:System="clr-namespace:System;assembly=mscorlib"
	xmlns:local="clr-namespace:ForzaUI">
	<!-- Resource dictionary entries should be defined here. -->

	<!-- Important note: point size is 1.333(96/72) times larger than pixel size, this is the scaling factor that is applied by blend -->

    <!-- Default FZTextBlock style so that if no color has been set an obvious default will be shown, rather than silently defaulting to transparent. -->
    <Style TargetType="local:FZTextBlock">
        <Setter Property="Color" Value="{StaticResource A_Color_Debug_Default_Text}"/>
    </Style>

	<System:Double x:Key="A_Double_LineAdjust_HorizonA">-0.125</System:Double>
    <System:Double x:Key="A_Double_LineAdjust_HorizonB">-0.125</System:Double>
    <System:Double x:Key="A_Double_LineAdjust_HorizonC">-0.125</System:Double>
	<System:Double x:Key="A_Double_LineAdjust_HorizonD">0</System:Double>
    <System:Double x:Key="A_Double_LineAdjust_HorizonE">0</System:Double>
	<System:Double x:Key="A_Double_LineAdjust_HorizonF">0</System:Double>

    <MappingConverter x:Key="A_LangStrToAutoScrollMargin" Default="0,5,0,5">
        <MappingConverterEntry Key="EN" Value="0,0,0,0"/>
        <MappingConverterEntry Key="GB" Value="0,0,0,0"/>
        <MappingConverterEntry Key="DEV" Value="0,0,0,0"/>
    </MappingConverter>

	<!-- BASE TEXT STYLES -->
	<System:Double x:Key="A_Double_FontSize_Minimum">19.24</System:Double>

	<Style x:Key="A_Style_TextBlock_HorizonB" TargetType="TextBlock">
		<Setter Property="FontFamily" Value="Horizon_B"/>
		<Setter Property="FontSize" Value="{StaticResource A_Double_FontSize_Minimum}"/>
	</Style>

	<Style x:Key="A_Style_TextBlock_HorizonC" TargetType="TextBlock">
		<Setter Property="FontFamily" Value="Horizon_C"/>
		<Setter Property="FontSize" Value="{StaticResource A_Double_FontSize_Minimum}"/>
	</Style>

	<!-- GLOBAL TEXT STYLES -->
	<Style x:Key="A_Style_TextBlock_Heading" TargetType="TextBlock" BasedOn="{StaticResource A_Style_TextBlock_HorizonB}" >
		<Setter Property="FontSize" Value="42"/>
	</Style>
	
	<Style x:Key="A_Style_TextBlock_Heading_Button" TargetType="TextBlock" BasedOn="{StaticResource A_Style_TextBlock_Heading}" >
		<Setter Property="FontSize" Value="50"/>
	</Style>
	
	<Style x:Key="A_Style_TextBlock_SubHeading" TargetType="TextBlock" BasedOn="{StaticResource A_Style_TextBlock_HorizonC}" >
		<Setter Property="FontSize" Value="42"/>
	</Style>	
	
	<Style x:Key="A_Style_TextBlock_SubHeading_Button" TargetType="TextBlock" BasedOn="{StaticResource A_Style_TextBlock_SubHeading}" >
		<Setter Property="FontSize" Value="42"/>
	</Style>

    <!-- BASE TEXT STYLES -->
    <Style x:Key="A_Style_FZTextBlock_HorizonA" TargetType="local:FZTextBlock">
        <Setter Property="FontFamily" Value="Horizon_A"/>
        <Setter Property="FontSize" Value="{StaticResource A_Double_FontSize_Minimum}"/>
        <Setter Property="LineAdjust" Value="{StaticResource A_Double_LineAdjust_HorizonA}"/>
        <Setter Property="Preset" Value="{StaticResource A_FZMaterialPreset_Glossy}" />
    </Style>

    <Style x:Key="A_Style_FZTextBlock_HorizonB" TargetType="local:FZTextBlock">
        <Setter Property="FontFamily" Value="Horizon_B" />
        <Setter Property="FontSize" Value="{StaticResource A_Double_FontSize_Minimum}" />
        <Setter Property="LineAdjust" Value="{StaticResource A_Double_LineAdjust_HorizonB}"/>
        <Setter Property="Preset" Value="{StaticResource A_FZMaterialPreset_Glossy}" />
    </Style>

    <Style x:Key="A_Style_FZTextBlock_HorizonC" TargetType="local:FZTextBlock">
        <Setter Property="FontFamily" Value="Horizon_C" />
        <Setter Property="FontSize" Value="{StaticResource A_Double_FontSize_Minimum}" />
        <Setter Property="LineAdjust" Value="{StaticResource A_Double_LineAdjust_HorizonC}"/>
        <Setter Property="Preset" Value="{StaticResource A_FZMaterialPreset_Glossy}" />
    </Style>

    <Style x:Key="A_Style_FZTextBlock_HorizonD" TargetType="local:FZTextBlock">
        <Setter Property="FontFamily" Value="Horizon_D"/>
        <Setter Property="FontSize" Value="{StaticResource A_Double_FontSize_Minimum}"/>
        <Setter Property="LineAdjust" Value="{StaticResource A_Double_LineAdjust_HorizonD}"/>
        <Setter Property="Preset" Value="{StaticResource A_FZMaterialPreset_Glossy}" />
    </Style>

    <Style x:Key="A_Style_FZTextBlock_HorizonE" TargetType="local:FZTextBlock">
        <Setter Property="FontFamily" Value="Horizon_A" />
        <Setter Property="FontSize" Value="{StaticResource A_Double_FontSize_Minimum}" />
        <Setter Property="LineAdjust" Value="{StaticResource A_Double_LineAdjust_HorizonE}"/>
        <Setter Property="Preset" Value="{StaticResource A_FZMaterialPreset_Glossy}" />
    </Style>

    <Style x:Key="A_Style_FZTextBlock_HorizonF" TargetType="local:FZTextBlock">
        <Setter Property="FontFamily" Value="Horizon_B"/>
        <Setter Property="FontSize" Value="{StaticResource A_Double_FontSize_Minimum}"/>
        <Setter Property="LineAdjust" Value="{StaticResource A_Double_LineAdjust_HorizonF}"/>
        <Setter Property="Preset" Value="{StaticResource A_FZMaterialPreset_Glossy}" />
    </Style>

    <!-- TABULAR TEXT STYLES -->
    <Style x:Key="A_Style_FZTextBlock_HorizonA_tf" TargetType="local:FZTextBlock" BasedOn="{StaticResource A_Style_FZTextBlock_HorizonA}">
        <Setter Property="FontFamily" Value="Horizon_A_tf"/>
    </Style>

    <Style x:Key="A_Style_FZTextBlock_HorizonB_tf" TargetType="local:FZTextBlock" BasedOn="{StaticResource A_Style_FZTextBlock_HorizonB}">
        <Setter Property="FontFamily" Value="Horizon_B_tf"/>
    </Style>

    <Style x:Key="A_Style_FZTextBlock_HorizonC_tf" TargetType="local:FZTextBlock" BasedOn="{StaticResource A_Style_FZTextBlock_HorizonC}">
        <Setter Property="FontFamily" Value="Horizon_C_tf"/>
    </Style>

    <Style x:Key="A_Style_FZTextBlock_HorizonD_tf" TargetType="local:FZTextBlock" BasedOn="{StaticResource A_Style_FZTextBlock_HorizonD}">
        <Setter Property="FontFamily" Value="Horizon_D_tf"/>
    </Style>

    <Style x:Key="A_Style_FZTextBlock_HorizonE_tf" TargetType="local:FZTextBlock" BasedOn="{StaticResource A_Style_FZTextBlock_HorizonE}">
        <Setter Property="FontFamily" Value="Horizon_A_tf"/>
    </Style>

    <Style x:Key="A_Style_FZTextBlock_HorizonF_tf" TargetType="local:FZTextBlock" BasedOn="{StaticResource A_Style_FZTextBlock_HorizonF}">
        <Setter Property="FontFamily" Value="Horizon_B_tf"/>
    </Style>

    <!-- GLOBAL TEXT STYLES -->
    <Style x:Key="A_Style_FZTextBlock_Title" TargetType="local:FZTextBlock" BasedOn="{StaticResource A_Style_FZTextBlock_HorizonA}" >
        <Setter Property="FontSize" Value="50"/>
    </Style>
    <Style x:Key="A_Style_FZTextBlock_Title_Small" TargetType="local:FZTextBlock" BasedOn="{StaticResource A_Style_FZTextBlock_Title}" >
        <Setter Property="FontSize" Value="28"/>
    </Style>
    <Style x:Key="A_Style_FZTextBlock_Title_Large" TargetType="local:FZTextBlock" BasedOn="{StaticResource A_Style_FZTextBlock_HorizonB}" >
        <Setter Property="FontSize" Value="78"/>
    </Style>
    <Style x:Key="A_Style_FZTextBlock_Title_Huge" TargetType="local:FZTextBlock" BasedOn="{StaticResource A_Style_FZTextBlock_Title}" >
        <Setter Property="FontSize" Value="90"/>
    </Style>
    <Style x:Key="A_Style_FZTextBlock_SubTitle" TargetType="local:FZTextBlock" BasedOn="{StaticResource A_Style_FZTextBlock_HorizonC}" >
        <Setter Property="FontSize" Value="50"/>
    </Style>
    <Style x:Key="A_Style_FZTextBlock_SubTitle_Large" TargetType="local:FZTextBlock" BasedOn="{StaticResource A_Style_FZTextBlock_SubTitle}" >
        <Setter Property="FontSize" Value="78"/>
    </Style>

    <Style x:Key="A_Style_FZTextBlock_Heading" TargetType="local:FZTextBlock" BasedOn="{StaticResource A_Style_FZTextBlock_HorizonA}" >
        <Setter Property="FontSize" Value="42"/>
    </Style>
    <Style x:Key="A_Style_FZTextBlock_Heading_Regular" TargetType="local:FZTextBlock" BasedOn="{StaticResource A_Style_FZTextBlock_Heading}" />
    <Style x:Key="A_Style_FZTextBlock_Heading_Large" TargetType="local:FZTextBlock" BasedOn="{StaticResource A_Style_FZTextBlock_Heading}" >
        <Setter Property="FontSize" Value="50"/>
    </Style>
    <Style x:Key="A_Style_FZTextBlock_Heading_Medium" TargetType="local:FZTextBlock" BasedOn="{StaticResource A_Style_FZTextBlock_Heading}" >
        <Setter Property="CapHeight" Value="24"/>
    </Style>
    <Style x:Key="A_Style_FZTextBlock_Heading_Small" TargetType="local:FZTextBlock" BasedOn="{StaticResource A_Style_FZTextBlock_Heading}" >
        <Setter Property="FontSize" Value="28"/>
    </Style>
    <Style x:Key="A_Style_FZTextBlock_Heading_ExtraSmall" TargetType="local:FZTextBlock" BasedOn="{StaticResource A_Style_FZTextBlock_Heading}" >
        <Setter Property="FontSize" Value="24"/>
    </Style>
    <Style x:Key="A_Style_FZTextBlock_Heading_Minimum" TargetType="local:FZTextBlock" BasedOn="{StaticResource A_Style_FZTextBlock_Heading}" >
        <Setter Property="FontSize" Value="22"/>
    </Style>
    <Style x:Key="A_Style_FZTextBlock_SubHeading" TargetType="local:FZTextBlock" BasedOn="{StaticResource A_Style_FZTextBlock_HorizonC}" >
        <Setter Property="FontSize" Value="42"/>
    </Style>
    
    <Style x:Key="A_Style_FZTextBlock_Body" TargetType="local:FZTextBlock" BasedOn="{StaticResource A_Style_FZTextBlock_HorizonD}" >
        <Setter Property="FontSize" Value="20"/>
    </Style>
    
	<Style x:Key="A_Style_FZTextBlock_Body_Minimum" TargetType="local:FZTextBlock" BasedOn="{StaticResource A_Style_FZTextBlock_HorizonD}" />

    <!--Text styles with tighter margins (em-height to baseline)-->
    <Style x:Key="A_Style_FZTextBlock_Body_Tight" TargetType="local:FZTextBlock" BasedOn="{StaticResource A_Style_FZTextBlock_Body}" >
    </Style>
    <Style x:Key="A_Style_FZTextBlock_Heading_Tight" TargetType="local:FZTextBlock" BasedOn="{StaticResource A_Style_FZTextBlock_Heading}" >
    </Style>
    <Style x:Key="A_Style_FZTextBlock_Heading_Small_Tight" TargetType="local:FZTextBlock" BasedOn="{StaticResource A_Style_FZTextBlock_Heading_Small}" >
    </Style>
    <Style x:Key="A_Style_FZTextBlock_Heading_ExtraSmall_Tight" TargetType="local:FZTextBlock" BasedOn="{StaticResource A_Style_FZTextBlock_Heading_ExtraSmall}" >
    </Style>
    
    <Style x:Key="A_Style_FZTextBlock_Title_HugeActive" TargetType="local:FZTextBlock" BasedOn="{StaticResource A_Style_FZTextBlock_Title_Huge}">
        <Setter Property="Color" Value="{StaticResource A_Color_Header_Text}" />    
    </Style>    	

    <Style x:Key="A_Style_FZTextBlock_Title_LargeActive" TargetType="local:FZTextBlock" BasedOn="{StaticResource A_Style_FZTextBlock_Title_Large}">
        <Setter Property="Color" Value="{StaticResource A_Color_Header_Text}" />    
    </Style>

    <Style x:Key="A_Style_FZTextBlock_SubTitle_LargeActive" TargetType="local:FZTextBlock" BasedOn="{StaticResource A_Style_FZTextBlock_SubTitle_Large}">
        <Setter Property="Color" Value="{StaticResource A_Color_Header_Text}" />    
    </Style>    	
	
    <Style x:Key="A_Style_FZTextBlock_Heading_SmallActive" TargetType="local:FZTextBlock" BasedOn="{StaticResource A_Style_FZTextBlock_Heading_Small}">
        <Setter Property="Color" Value="{StaticResource A_Color_Header_Text}" />
    </Style>    
    
    <Style x:Key="A_Style_FZTextBlock_Heading_SmallInactive" TargetType="local:FZTextBlock" BasedOn="{StaticResource A_Style_FZTextBlock_Heading_Small}">
        <Setter Property="Color" Value="{StaticResource A_Color_InactiveHeader_Text}" />
    </Style>
    
    <Style x:Key="A_Style_FZTextBlock_Heading_ExtraSmallInactive" TargetType="local:FZTextBlock" BasedOn="{StaticResource A_Style_FZTextBlock_Heading_ExtraSmall}">
        <Setter Property="Color" Value="{StaticResource A_Color_InactiveHeader_Text}" />
    </Style>

    <Style x:Key="A_Style_FZTextBlock_HeaderBlock"
           TargetType="local:FZTextBlock"
           BasedOn="{StaticResource A_Style_FZTextBlock_Heading_Medium}" >
        <Setter Property="VerticalAlignment" Value="Center" />
        <Setter Property="HorizontalAlignment" Value="Center" />
        <Setter Property="Margin" Value="24,15" />
        <Setter Property="Color" Value="{StaticResource A_Color_Header_Text}" />
    </Style>  

    <!-- TODO: Merge/Share with H_Style_StatName from A_CarSelect.xaml -->
    <Style x:Key="A_Style_FZTextBlock_InfoLabel" TargetType="FZTextBlock" BasedOn="{StaticResource A_Style_FZTextBlock_HorizonA}" >
        <Setter Property="Color" Value="{StaticResource H_Color_Primary_White}" />
        <Setter Property="HorizontalAlignment" Value="Left"/>
        <Setter Property="VerticalAlignment" Value="Center"/>
        <Setter Property="CapHeight" Value="18"/>
    </Style>

    <Style x:Key="A_Style_FZTextBlock_InfoValue" TargetType="local:FZTextBlock" BasedOn="{StaticResource A_Style_FZTextBlock_InfoLabel}">
    </Style>
    
    <SkewTransform x:Key="A_Transform_Italic" AngleX="-8"/>

    <!-- This outline effect is used by TextContrast tester. Please do not change, especially the Key and the Color-->
    <OutlineEffect x:Key="PART_DEBUG_TextContrastTest_Outline" ThicknessInPixels="3" UiScalerValue="{Binding Path=ScaleValue, Source={StaticResource PART_UIResolutionScaler}, Mode=TwoWay}" Color="#FF00FF" />
</ResourceDictionary>