<Window x:Class="PowerLauncher.ReportWindow"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:p="clr-namespace:PowerLauncher.Properties"
             mc:Ignorable="d" 
             WindowStartupLocation="CenterScreen"
             Background="{DynamicResource SystemChromeLow}"
             Icon="Images/app_error.dark.png"
             Topmost="True"
             ResizeMode="NoResize"
             Width="760"
             Height="560"
             Title="{x:Static p:Resources.reportWindow_wox_got_an_error}"
             d:DesignHeight="300" d:DesignWidth="600" x:ClassModifier="internal">
    <Window.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="pack://application:,,,/Styles/ModernScrollBarStyle.xaml" />
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Window.Resources>
    <Grid Margin="24">
        <Grid.RowDefinitions>
            <RowDefinition Height="64"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>
        
        <TextBlock Text="{x:Static p:Resources.reportWindow_header}"
                   FontFamily="Segoe UI Light"
                   FontSize="32"
                   Foreground="{DynamicResource ControlTextBrushKey}"/>

            <TextBlock FontSize="14"
                       Grid.Row="1"
                       TextWrapping="Wrap"
                      
                       Foreground="{DynamicResource ControlTextBrushKey}">
                <Run Text="{x:Static p:Resources.reportWindow_file_bug}"/>
                <Hyperlink x:Name="RepositoryHyperlink"
                           Click="RepositoryHyperlink_Click"
                           FontWeight="SemiBold"
                           NavigateUri="https://aka.ms/powerToysReportBug">
                    <Run Text="{x:Static p:Resources.reportWindow_github_repo}"/>
                </Hyperlink>
                <Run Text="{x:Static p:Resources.reportWindow_period}"/>
                <Run Text="{x:Static p:Resources.reportWindow_upload_log}"/>
            </TextBlock>
  
            <TextBox Background="Transparent"
                 BorderThickness="0"
                 Grid.Row="2"
                 x:Name="LogFilePathBox"
                 Margin="0,16,0,0"
                 FontSize="14"
                 FontFamily="Consolas"
                 Foreground="{DynamicResource ControlTextBrushKey}"
                 IsReadOnly="True"
                 TextWrapping="Wrap">
            </TextBox>

        <RichTextBox x:Name="ErrorTextbox" 
                     Grid.Row="3"
                     BorderBrush="{DynamicResource ScrollBarThumbBackground}"
                     BorderThickness="1"
                     Background="Transparent"
                     IsDocumentEnabled="True"
                     Foreground="{DynamicResource ControlTextBrushKey}"
                     VerticalAlignment="Stretch"
                     FontFamily="Consolas"
                     VerticalScrollBarVisibility="Auto" 
                     HorizontalScrollBarVisibility="Auto" 
                     FontSize="14"/>
    </Grid>
</Window>
