|
8 | 8 | x:Name="ThisControl" |
9 | 9 | Icon="/App.ico" |
10 | 10 | Title="{DynamicResource Text.About}" |
11 | | - Width="520" Height="230" |
| 11 | + SizeToContent="WidthAndHeight" |
12 | 12 | CanResize="False" |
13 | 13 | WindowStartupLocation="CenterOwner"> |
14 | | - <Grid RowDefinitions="Auto,*"> |
| 14 | + <StackPanel Orientation="Vertical"> |
15 | 15 | <!-- TitleBar --> |
16 | | - <Grid Grid.Row="0" Height="28" IsVisible="{Binding !#ThisControl.UseSystemWindowFrame}"> |
| 16 | + <Grid Height="28" IsVisible="{Binding !#ThisControl.UseSystemWindowFrame}"> |
17 | 17 | <Border Background="{DynamicResource Brush.TitleBar}" |
18 | 18 | BorderThickness="0,0,0,1" BorderBrush="{DynamicResource Brush.Border0}" |
19 | 19 | PointerPressed="BeginMoveWindow"/> |
|
34 | 34 | IsVisible="{OnPlatform True, macOS=False}"/> |
35 | 35 | </Grid> |
36 | 36 |
|
37 | | - <Grid Grid.Row="1" Height="200" ColumnDefinitions="Auto,*"> |
38 | | - <Image Grid.Column="0" |
39 | | - Width="200" Height="200" |
| 37 | + <!-- Content --> |
| 38 | + <StackPanel Orientation="Horizontal"> |
| 39 | + <Image Width="200" Height="200" |
40 | 40 | Margin="8,0" |
41 | 41 | Source="/App.ico" |
42 | 42 | HorizontalAlignment="Center" |
43 | 43 | VerticalAlignment="Center"/> |
44 | 44 |
|
45 | | - <Grid Grid.Column="1" RowDefinitions="Auto,Auto,Auto,Auto,Auto" VerticalAlignment="Center"> |
46 | | - <StackPanel Grid.Row="0" Height="40" Orientation="Horizontal"> |
| 45 | + <StackPanel Orientation="Vertical" Margin="4,18,24,18"> |
| 46 | + <StackPanel Height="40" Orientation="Horizontal"> |
47 | 47 | <TextBlock Classes="bold" Text="SourceGit" FontSize="32" /> |
48 | 48 | <Border Margin="12,0,0,0" Height="20" |
49 | 49 | CornerRadius="10" |
|
56 | 56 | </Border> |
57 | 57 | </StackPanel> |
58 | 58 |
|
59 | | - <Border Grid.Row="1" Margin="0,4,0,0"> |
| 59 | + <Border Margin="0,4,0,0"> |
60 | 60 | <TextBlock Text="{DynamicResource Text.About.SubTitle}" FontSize="16" TextWrapping="Wrap"/> |
61 | 61 | </Border> |
62 | 62 |
|
63 | | - <StackPanel Grid.Row="2" Orientation="Horizontal" Margin="0,8,0,0"> |
| 63 | + <StackPanel Orientation="Horizontal" Margin="0,8,0,0"> |
64 | 64 | <Button Width="18" Height="18" Classes="icon_button" Click="OnVisitWebsite" ToolTip.Tip="https://sourcegit-scm.github.io/"> |
65 | 65 | <Path Width="16" Height="16" Data="{StaticResource Icons.Remotes}"/> |
66 | 66 | </Button> |
|
70 | 70 | </Button> |
71 | 71 | </StackPanel> |
72 | 72 |
|
73 | | - <TextBlock Grid.Row="3" x:Name="TxtReleaseDate" Margin="0,28,0,0" Foreground="{DynamicResource Brush.FG2}"/> |
74 | | - <TextBlock Grid.Row="4" x:Name="TxtCopyright" Margin="0,2,0,0" Foreground="{DynamicResource Brush.FG2}"/> |
75 | | - </Grid> |
76 | | - </Grid> |
77 | | - </Grid> |
| 73 | + <TextBlock x:Name="TxtReleaseDate" Margin="0,28,0,0" Foreground="{DynamicResource Brush.FG2}"/> |
| 74 | + <TextBlock x:Name="TxtCopyright" Margin="0,2,0,0" Foreground="{DynamicResource Brush.FG2}"/> |
| 75 | + </StackPanel> |
| 76 | + </StackPanel> |
| 77 | + </StackPanel> |
78 | 78 | </v:ChromelessWindow> |
0 commit comments