2024-06-12 20:54:10 -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"
|
|
|
|
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
|
|
|
|
x:Class="SourceGit.Views.About"
|
|
|
|
x:DataType="v:About"
|
|
|
|
Icon="/App.ico"
|
|
|
|
Title="{DynamicResource Text.About}"
|
|
|
|
SizeToContent="WidthAndHeight"
|
|
|
|
CanResize="False"
|
|
|
|
WindowStartupLocation="CenterScreen">
|
|
|
|
<Grid RowDefinitions="Auto,*">
|
2024-03-14 03:23:36 -07:00
|
|
|
<!-- TitleBar -->
|
|
|
|
<Grid Grid.Row="0" ColumnDefinitions="Auto,*,Auto" Height="30">
|
2024-03-07 19:13:53 -08:00
|
|
|
<Border Grid.Column="0" Grid.ColumnSpan="3"
|
|
|
|
Background="{DynamicResource Brush.TitleBar}"
|
|
|
|
BorderThickness="0,0,0,1" BorderBrush="{DynamicResource Brush.Border0}"
|
2024-03-14 03:23:36 -07:00
|
|
|
PointerPressed="BeginMoveWindow"/>
|
2024-06-12 20:54:10 -07:00
|
|
|
|
2024-02-05 23:08:37 -08:00
|
|
|
<Path Grid.Column="0"
|
|
|
|
Width="14" Height="14"
|
|
|
|
Margin="10,0,0,0"
|
|
|
|
Data="{StaticResource Icons.Info}"
|
2024-03-14 03:23:36 -07:00
|
|
|
IsVisible="{OnPlatform True, macOS=False}"/>
|
2024-02-05 23:08:37 -08:00
|
|
|
|
2024-03-07 19:13:53 -08:00
|
|
|
<Grid Grid.Column="0" Classes="caption_button_box" Margin="2,4,0,0" IsVisible="{OnPlatform False, macOS=True}">
|
2024-02-05 23:08:37 -08:00
|
|
|
<Button Classes="caption_button_macos" Click="CloseWindow">
|
|
|
|
<Grid>
|
|
|
|
<Ellipse Fill="{DynamicResource Brush.MacOS.Close}"/>
|
2024-02-18 23:30:10 -08:00
|
|
|
<Path Height="6" Width="6" Stretch="Fill" Fill="#404040" Stroke="#404040" StrokeThickness="1" Data="{StaticResource Icons.Window.Close}"/>
|
2024-02-05 23:08:37 -08:00
|
|
|
</Grid>
|
|
|
|
</Button>
|
|
|
|
</Grid>
|
|
|
|
|
|
|
|
<TextBlock Grid.Column="0" Grid.ColumnSpan="3"
|
|
|
|
Classes="bold"
|
|
|
|
Text="{DynamicResource Text.About}"
|
|
|
|
HorizontalAlignment="Center" VerticalAlignment="Center"
|
|
|
|
IsHitTestVisible="False"/>
|
|
|
|
|
|
|
|
<Button Grid.Column="2"
|
|
|
|
Classes="caption_button"
|
|
|
|
Click="CloseWindow"
|
2024-03-14 03:23:36 -07:00
|
|
|
IsVisible="{OnPlatform True, macOS=False}">
|
2024-02-05 23:08:37 -08:00
|
|
|
<Path Data="{StaticResource Icons.Window.Close}"/>
|
|
|
|
</Button>
|
|
|
|
</Grid>
|
|
|
|
|
2024-06-12 20:54:10 -07:00
|
|
|
<Grid Grid.Row="1" ColumnDefinitions="Auto,*">
|
2024-02-05 23:08:37 -08:00
|
|
|
<Image Grid.Column="0"
|
|
|
|
Width="200" Height="200"
|
|
|
|
Margin="8,0"
|
|
|
|
Source="/App.ico"
|
2024-03-31 20:45:30 -07:00
|
|
|
HorizontalAlignment="Center"
|
|
|
|
VerticalAlignment="Center"/>
|
2024-02-05 23:08:37 -08:00
|
|
|
|
2024-06-12 20:54:10 -07:00
|
|
|
<StackPanel Grid.Column="1" Orientation="Vertical" Margin="0,8,32,8">
|
2024-02-05 23:08:37 -08:00
|
|
|
<StackPanel Height="48" Orientation="Horizontal">
|
|
|
|
<TextBlock Classes="bold" Text="SourceGit" FontSize="32" />
|
2024-05-20 19:54:19 -07:00
|
|
|
<Border Margin="12,0,0,0" Height="20" CornerRadius="10" Background="{DynamicResource Brush.Accent}" Effect="drop-shadow(0 0 6 #40000000)">
|
2024-02-05 23:08:37 -08:00
|
|
|
<TextBlock Classes="monospace" Margin="8,0" Text="{Binding Version}" FontSize="12" Foreground="White"/>
|
|
|
|
</Border>
|
|
|
|
</StackPanel>
|
|
|
|
|
2024-03-31 20:45:30 -07:00
|
|
|
<TextBlock Margin="2,0,0,0" Text="{DynamicResource Text.About.SubTitle}" FontSize="16"/>
|
2024-02-05 23:08:37 -08:00
|
|
|
|
2024-03-31 20:45:30 -07:00
|
|
|
<TextBlock Margin="2,8,0,0" Text="{DynamicResource Text.About.Copyright}" Foreground="{DynamicResource Brush.FG2}"/>
|
|
|
|
|
|
|
|
<StackPanel Orientation="Vertical" Margin="0,24,0,0">
|
2024-02-22 05:45:32 -08:00
|
|
|
<StackPanel Orientation="Horizontal" Height="18">
|
2024-02-05 23:08:37 -08:00
|
|
|
<TextBlock Text="{DynamicResource Text.About.BuildWith}" />
|
2024-05-20 19:54:19 -07:00
|
|
|
<TextBlock Text="Avalonia UI" Cursor="Hand" Foreground="{DynamicResource Brush.Accent}" TextDecorations="Underline" PointerPressed="OnVisitAvaloniaUI"/>
|
2024-03-31 20:45:30 -07:00
|
|
|
<TextBlock Text=" & " />
|
2024-05-20 19:54:19 -07:00
|
|
|
<TextBlock Text="AvaloniaEdit" Cursor="Hand" Foreground="{DynamicResource Brush.Accent}" TextDecorations="Underline" PointerPressed="OnVisitAvaloniaEdit"/>
|
2024-02-05 23:08:37 -08:00
|
|
|
</StackPanel>
|
|
|
|
|
2024-02-22 05:45:32 -08:00
|
|
|
<StackPanel Orientation="Horizontal" Height="18" Margin="0,2,0,0">
|
2024-02-05 23:08:37 -08:00
|
|
|
<TextBlock Text="{DynamicResource Text.About.Fonts}" />
|
2024-05-20 19:54:19 -07:00
|
|
|
<TextBlock Text="JetBrains Mono" Cursor="Hand" Foreground="{DynamicResource Brush.Accent}" TextDecorations="Underline" PointerPressed="OnVisitJetBrainsMonoFont"/>
|
2024-02-05 23:08:37 -08:00
|
|
|
</StackPanel>
|
2024-06-12 20:54:10 -07:00
|
|
|
|
2024-03-31 20:45:30 -07:00
|
|
|
<StackPanel Orientation="Horizontal" Height="18" Margin="0,2,0,0">
|
|
|
|
<TextBlock Text="{DynamicResource Text.About.SourceCode}" />
|
2024-05-20 19:54:19 -07:00
|
|
|
<TextBlock Text="Github" Cursor="Hand" Foreground="{DynamicResource Brush.Accent}" TextDecorations="Underline" PointerPressed="OnVisitSourceCode"/>
|
2024-03-31 20:45:30 -07:00
|
|
|
</StackPanel>
|
2024-02-05 23:08:37 -08:00
|
|
|
</StackPanel>
|
|
|
|
</StackPanel>
|
|
|
|
</Grid>
|
|
|
|
</Grid>
|
2024-06-12 20:54:10 -07:00
|
|
|
</v:ChromelessWindow>
|