<Window x:Class="PSLauncher.App.Views.LauncherUpdateDialog"
        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.LauncherUpdateTitle}"
        Icon="pack://application:,,,/Resources/favicon.ico"
        Width="500" Height="320"
        ResizeMode="NoResize"
        WindowStartupLocation="CenterOwner"
        Background="{StaticResource Brush.Bg.Window}">
    <Grid Margin="32,28">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="*" />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>

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

        <StackPanel Grid.Row="1" Margin="0,12,0,0">
            <TextBlock x:Name="VersionText"
                       FontSize="14"
                       Foreground="{StaticResource Brush.Text.Primary}" />
            <TextBlock x:Name="SizeText"
                       FontSize="12"
                       Foreground="{StaticResource Brush.Text.Secondary}"
                       Margin="0,4,0,0" />
        </StackPanel>

        <Border Grid.Row="2" Background="{StaticResource Brush.Bg.Card}"
                BorderBrush="{StaticResource Brush.Border}" BorderThickness="1"
                CornerRadius="6" Padding="16" Margin="0,16,0,0">
            <TextBlock Text="{x:Static loc:Strings.LauncherUpdateBody}"
                       Foreground="{StaticResource Brush.Text.Secondary}"
                       TextWrapping="Wrap" />
        </Border>

        <StackPanel Grid.Row="3" 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.LauncherUpdateNow}"
                    Padding="32,8"
                    IsDefault="True"
                    Click="OnUpdate" />
        </StackPanel>
    </Grid>
</Window>
