<Window x:Class="PSLauncher.App.Views.ReleaseNotesViewerDialog"
        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.MsgBoxReleaseNotes}"
        Icon="pack://application:,,,/Resources/favicon.ico"
        Width="640" Height="540"
        MinWidth="480" MinHeight="400"
        WindowStartupLocation="CenterOwner"
        Background="{StaticResource Brush.Bg.Window}">
    <Grid Margin="24">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="*" />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>

        <TextBlock Grid.Row="0"
                   Text="{Binding Title}"
                   FontSize="22" FontWeight="SemiBold"
                   Margin="0,0,0,18"
                   Foreground="{StaticResource Brush.Text.Primary}" />

        <Border Grid.Row="1"
                Background="{StaticResource Brush.Bg.Card}"
                BorderBrush="{StaticResource Brush.Border}" BorderThickness="1"
                CornerRadius="6"
                Padding="16">
            <FlowDocumentScrollViewer
                Document="{Binding ReleaseNotesDocument}"
                Foreground="{StaticResource Brush.Text.Primary}"
                Background="Transparent" />
        </Border>

        <Button Grid.Row="2"
                Style="{StaticResource SecondaryButton}"
                Content="{x:Static loc:Strings.ActionClose}"
                IsCancel="True"
                IsDefault="True"
                HorizontalAlignment="Right"
                Margin="0,18,0,0"
                Click="OnClose" />
    </Grid>
</Window>
