<Window x:Class="PSLauncher.App.Views.OnboardingDialog"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:loc="clr-namespace:PSLauncher.Core.Localization;assembly=PSLauncher.Core"
        Title="{x:Static loc:Strings.OnboardingTitle}"
        Icon="pack://application:,,,/Resources/favicon.ico"
        Width="540" Height="420"
        MinWidth="480" MinHeight="380"
        WindowStartupLocation="CenterOwner"
        ResizeMode="CanResize"
        Background="{StaticResource Brush.Bg.Window}">
    <Grid Margin="32,28">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="*" />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>

        <TextBlock Grid.Row="0" Text="{x:Static loc:Strings.OnboardingHeading}"
                   FontSize="22" FontWeight="SemiBold"
                   Foreground="{StaticResource Brush.Text.Primary}" />

        <TextBlock Grid.Row="1"
                   Text="{x:Static loc:Strings.OnboardingBody}"
                   TextWrapping="Wrap"
                   Foreground="{StaticResource Brush.Text.Secondary}"
                   Margin="0,8,0,18" />

        <TextBlock Grid.Row="2" Text="{x:Static loc:Strings.OnboardingLicenseKey}"
                   FontSize="12" FontWeight="Bold"
                   Foreground="{StaticResource Brush.Text.Secondary}" />
        <TextBox  Grid.Row="3" x:Name="KeyBox"
                  Margin="0,6,0,16"
                  Padding="10,8"
                  FontFamily="Consolas" FontSize="14"
                  CharacterCasing="Upper"
                  Background="#1A1A20"
                  Foreground="{StaticResource Brush.Text.Primary}"
                  BorderBrush="{StaticResource Brush.Border}"
                  BorderThickness="1"
                  Text="PRSRV-XXXX-XXXX-XXXX-XXXX" />

        <ScrollViewer Grid.Row="4" VerticalScrollBarVisibility="Auto">
            <StackPanel x:Name="StatusPanel">
                <TextBlock x:Name="StatusText"
                           TextWrapping="Wrap"
                           Foreground="{StaticResource Brush.Text.Secondary}" />
            </StackPanel>
        </ScrollViewer>

        <StackPanel Grid.Row="5" Orientation="Horizontal" HorizontalAlignment="Right" Margin="0,18,0,0">
            <Button Style="{StaticResource SecondaryButton}"
                    Content="{x:Static loc:Strings.ActionLater}"
                    IsCancel="True"
                    Margin="0,0,12,0"
                    Click="OnLater" />
            <Button Style="{StaticResource AccentButton}"
                    Content="{x:Static loc:Strings.OnboardingActivate}"
                    Padding="32,10"
                    IsDefault="True"
                    Click="OnActivate"
                    x:Name="ActivateButton" />
        </StackPanel>
    </Grid>
</Window>
