<?xml version="1.0" encoding="utf-8" ?>
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
    <ResourceDictionary.MergedDictionaries>
        <XamlControlsResources xmlns="using:Microsoft.UI.Xaml.Controls" />
        <ResourceDictionary Source="ms-appx:///CommunityToolkit.WinUI.Controls.SettingsControls/Themes/Generic.xaml" />
    </ResourceDictionary.MergedDictionaries>

    <x:Double x:Key="SettingsCardSpacing">4</x:Double>

    <!--  Style (inc. the correct spacing) of a section header  -->
    <Style
        x:Key="SettingsSectionHeaderTextBlockStyle"
        BasedOn="{StaticResource BodyStrongTextBlockStyle}"
        TargetType="TextBlock">
        <Style.Setters>
            <Setter Property="Margin" Value="1,30,0,6" />
        </Style.Setters>
    </Style>

    <StackLayout
        x:Name="VerticalStackLayout"
        Orientation="Vertical"
        Spacing="{StaticResource SettingsCardSpacing}" />

    <Style x:Key="NewInfoBadge" TargetType="InfoBadge">
        <Setter Property="Padding" Value="5,1,5,2" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="InfoBadge">
                    <Border
                        x:Name="RootGrid"
                        Padding="{TemplateBinding Padding}"
                        Background="{TemplateBinding Background}"
                        CornerRadius="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=TemplateSettings.InfoBadgeCornerRadius}">
                        <TextBlock
                            x:Uid="SettingsPage_NewInfoBadge"
                            HorizontalAlignment="Center"
                            VerticalAlignment="Center"
                            FontSize="10" />
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

</ResourceDictionary>
