2024-02-05 23:08:37 -08:00
|
|
|
<Window 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:vm="using:SourceGit.ViewModels"
|
|
|
|
xmlns:v="using:SourceGit.Views"
|
|
|
|
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
|
|
|
|
x:Class="SourceGit.Views.About"
|
|
|
|
x:DataType="v:About"
|
2024-02-21 22:51:31 -08:00
|
|
|
Icon="/App.ico"
|
2024-02-05 23:08:37 -08:00
|
|
|
Title="{DynamicResource Text.About}"
|
|
|
|
Background="{DynamicResource Brush.Window}"
|
|
|
|
SizeToContent="WidthAndHeight"
|
|
|
|
CanResize="False"
|
|
|
|
WindowStartupLocation="CenterScreen"
|
|
|
|
ExtendClientAreaToDecorationsHint="True"
|
|
|
|
ExtendClientAreaChromeHints="NoChrome">
|
|
|
|
<Grid RowDefinitions="30,*">
|
|
|
|
<Grid Grid.Row="0" ColumnDefinitions="Auto,*,Auto">
|
|
|
|
<Path Grid.Column="0"
|
|
|
|
Width="14" Height="14"
|
|
|
|
Margin="10,0,0,0"
|
|
|
|
Data="{StaticResource Icons.Info}"
|
|
|
|
IsVisible="{Binding Source={x:Static vm:Preference.Instance}, Path=UseMacOSStyle, Converter={x:Static BoolConverters.Not}}"/>
|
|
|
|
|
|
|
|
<Grid Grid.Column="0" Classes="caption_button_box" Margin="2,4,0,0" IsVisible="{Binding Source={x:Static vm:Preference.Instance}, Path=UseMacOSStyle}">
|
|
|
|
<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"
|
|
|
|
IsVisible="{Binding Source={x:Static vm:Preference.Instance}, Path=UseMacOSStyle, Converter={x:Static BoolConverters.Not}}">
|
|
|
|
<Path Data="{StaticResource Icons.Window.Close}"/>
|
|
|
|
</Button>
|
|
|
|
</Grid>
|
|
|
|
|
|
|
|
<Grid Grid.Row="1" ColumnDefinitions="Auto,*">
|
|
|
|
<Image Grid.Column="0"
|
|
|
|
Width="200" Height="200"
|
|
|
|
Margin="8,0"
|
|
|
|
Source="/App.ico"
|
|
|
|
HorizontalAlignment="Center"/>
|
|
|
|
|
|
|
|
<StackPanel Grid.Column="1" Orientation="Vertical" Margin="0,20,32,0">
|
|
|
|
<StackPanel Height="48" Orientation="Horizontal">
|
|
|
|
<TextBlock Classes="bold" Text="SourceGit" FontSize="32" />
|
|
|
|
<Border Margin="12,0,0,0" Height="20" CornerRadius="10" Background="{DynamicResource Brush.Accent1}">
|
|
|
|
<Border.Effect>
|
|
|
|
<DropShadowEffect OffsetX="0" OffsetY="0" BlurRadius="6" Color="Black" Opacity=".3"/>
|
|
|
|
</Border.Effect>
|
|
|
|
<TextBlock Classes="monospace" Margin="8,0" Text="{Binding Version}" FontSize="12" Foreground="White"/>
|
|
|
|
</Border>
|
|
|
|
</StackPanel>
|
|
|
|
|
|
|
|
<TextBlock Margin="2,0,0,0" Text="{DynamicResource Text.About.Copyright}" Foreground="{DynamicResource Brush.FG2}"/>
|
|
|
|
|
|
|
|
<StackPanel Orientation="Vertical" Margin="0,28,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}" />
|
|
|
|
<TextBlock Text="Avalonia UI" Cursor="Hand" Foreground="{DynamicResource Brush.Accent1}" TextDecorations="Underline" PointerPressed="OnVisitAvaloniaUI"/>
|
|
|
|
</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.Editor}" />
|
2024-02-19 23:44:26 -08:00
|
|
|
<TextBlock Text="AvaloniaEdit" Cursor="Hand" Foreground="{DynamicResource Brush.Accent1}" 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}" />
|
|
|
|
<TextBlock Text="JetBrains Mono" Cursor="Hand" Foreground="{DynamicResource Brush.Accent1}" TextDecorations="Underline" PointerPressed="OnVisitJetBrainsMonoFont"/>
|
|
|
|
</StackPanel>
|
|
|
|
</StackPanel>
|
|
|
|
</StackPanel>
|
|
|
|
</Grid>
|
|
|
|
</Grid>
|
|
|
|
</Window>
|