Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 34 additions & 19 deletions src/StructuredLogViewer/MainWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:StructuredLogViewer"
Title="{x:Static local:MainWindow.DefaultTitle}"
Title="{x:Static local:MainWindow.DefaultTitle}"
AllowDrop="True"
Background="{DynamicResource Theme_Background}"
UseLayoutRounding="True"
Expand Down Expand Up @@ -48,26 +48,41 @@
<MenuItem Header="About" Click="HelpAbout_Click" />
</MenuItem>
</Menu>
<StackPanel x:Name="exceptionPanel"
Orientation="Horizontal"
Visibility="Hidden"
Background="Yellow"
<StackPanel Orientation="Horizontal"
HorizontalAlignment="Right"
VerticalAlignment="Top">
<TextBlock x:Name="exceptionText"
Padding="8,2,8,2"
MouseDown="ExceptionText_MouseDown"
VerticalAlignment="Center"
Foreground="Black"
ToolTip="Click to show the exception log"
>Exception:</TextBlock>
<Button x:Name="closeExceptionButton"
Click="CloseException_Click"
BorderThickness="0"
TextBlock.Foreground="Black"
Background="Transparent"
MinWidth="16"
MinHeight="16">⨯</Button>
<StackPanel x:Name="exceptionPanel"
Orientation="Horizontal"
Visibility="Hidden"
Background="Yellow">
<TextBlock x:Name="exceptionText"
Padding="8,2,8,2"
MouseDown="ExceptionText_MouseDown"
VerticalAlignment="Center"
Foreground="Black"
ToolTip="Click to show the exception log"
>Exception:</TextBlock>
<Button x:Name="closeExceptionButton"
Click="CloseException_Click"
BorderThickness="0"
TextBlock.Foreground="Black"
Background="Transparent"
MinWidth="16"
MinHeight="16">⨯</Button>
</StackPanel>
<Button x:Name="llmButton"
Padding="8,2,8,2"
Margin="0,0,8,0"
Click="LLMButton_Click"
ToolTip="Download LLM-enabled preview version"
Background="{DynamicResource Theme_InfoBarBackground}"
Foreground="{DynamicResource Theme_Foreground}"
BorderThickness="1">
<StackPanel Orientation="Horizontal">
<TextBlock Text="✨" FontSize="14" Margin="0,0,4,0" />
<TextBlock Text="LLM (Preview)" />
</StackPanel>
</Button>
</StackPanel>
</Grid>
<Grid>
Expand Down
5 changes: 5 additions & 0 deletions src/StructuredLogViewer/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1250,5 +1250,10 @@ private void UpdateExceptionVisibility()
exceptionPanel.Visibility = Visibility.Hidden;
}
}

private void LLMButton_Click(object sender, RoutedEventArgs e)
{
Process.Start(new ProcessStartInfo("https://github.com/JanKrivanek/MSBuildStructuredLog/releases") { UseShellExecute = true });
}
}
}