2024-09-11 03:22:05 -07:00
|
|
|
<v:ChromelessWindow xmlns="https://github.com/avaloniaui"
|
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
|
|
xmlns:v="using:SourceGit.Views"
|
|
|
|
xmlns:vm="using:SourceGit.ViewModels"
|
|
|
|
xmlns:c="using:SourceGit.Converters"
|
|
|
|
mc:Ignorable="d" d:DesignWidth="400" d:DesignHeight="120"
|
|
|
|
x:Class="SourceGit.Views.AIAssistant"
|
|
|
|
x:Name="ThisControl"
|
|
|
|
Icon="/App.ico"
|
|
|
|
Title="{DynamicResource Text.AIAssistant}"
|
2024-09-13 02:59:29 -07:00
|
|
|
Width="400" SizeToContent="Height"
|
2024-09-11 03:22:05 -07:00
|
|
|
CanResize="False"
|
|
|
|
WindowStartupLocation="CenterOwner">
|
|
|
|
<Grid RowDefinitions="Auto,Auto,Auto">
|
|
|
|
<!-- TitleBar -->
|
2024-10-31 06:36:51 -07:00
|
|
|
<Grid Grid.Row="0" Height="28" IsVisible="{Binding !#ThisControl.UseSystemWindowFrame}">
|
|
|
|
<Border Background="{DynamicResource Brush.TitleBar}"
|
2024-09-11 03:22:05 -07:00
|
|
|
BorderThickness="0,0,0,1" BorderBrush="{DynamicResource Brush.Border0}"
|
|
|
|
PointerPressed="BeginMoveWindow"/>
|
|
|
|
|
2024-10-31 06:36:51 -07:00
|
|
|
<Path Width="14" Height="14"
|
2024-09-11 03:22:05 -07:00
|
|
|
Margin="10,0,0,0"
|
2024-10-31 06:36:51 -07:00
|
|
|
HorizontalAlignment="Left"
|
2024-09-11 03:22:05 -07:00
|
|
|
Data="{StaticResource Icons.AIAssist}"
|
|
|
|
IsVisible="{OnPlatform True, macOS=False}"/>
|
|
|
|
|
2024-10-31 06:36:51 -07:00
|
|
|
<TextBlock Classes="bold"
|
2024-09-11 03:22:05 -07:00
|
|
|
Text="{DynamicResource Text.AIAssistant}"
|
|
|
|
HorizontalAlignment="Center" VerticalAlignment="Center"
|
|
|
|
IsHitTestVisible="False"/>
|
|
|
|
|
2024-10-31 06:36:51 -07:00
|
|
|
<v:CaptionButtons HorizontalAlignment="Right"
|
2024-09-11 03:22:05 -07:00
|
|
|
IsCloseButtonOnly="True"
|
|
|
|
IsVisible="{OnPlatform True, macOS=False}"/>
|
|
|
|
</Grid>
|
|
|
|
|
|
|
|
<!-- Animated Icon -->
|
|
|
|
<v:LoadingIcon Grid.Row="1"
|
|
|
|
Width="24" Height="24"
|
|
|
|
Margin="0,16,0,0"/>
|
|
|
|
|
|
|
|
<!-- Message -->
|
|
|
|
<TextBlock Grid.Row="2"
|
|
|
|
x:Name="ProgressMessage"
|
|
|
|
Margin="16"
|
|
|
|
FontSize="{Binding Source={x:Static vm:Preference.Instance}, Path=DefaultFontSize, Converter={x:Static c:DoubleConverters.Decrease}}"
|
|
|
|
HorizontalAlignment="Center"
|
2024-10-22 23:05:40 -07:00
|
|
|
Text="Generating commit message... Please wait!"
|
2024-09-11 03:22:05 -07:00
|
|
|
TextTrimming="CharacterEllipsis"/>
|
|
|
|
</Grid>
|
|
|
|
</v:ChromelessWindow>
|