|
10 | 10 | <StackPanel Orientation="Vertical" Margin="8,0">
|
11 | 11 | <TextBlock FontSize="18"
|
12 | 12 | Classes="bold"
|
13 |
| - Text="{DynamicResource Text.Checkout.Commit}"/> |
| 13 | + Text="{DynamicResource Text.Checkout.Commit}" /> |
14 | 14 |
|
15 |
| - <TextBlock FontSize="14" |
16 |
| - TextWrapping="Wrap" |
17 |
| - Classes="italic" |
18 |
| - Text="{DynamicResource Text.Checkout.Commit.Warning}"/> |
19 |
| - |
20 |
| - <TextBlock TextWrapping="Wrap" Margin="0,16,0,0"> |
21 |
| - <TextBlock Classes="bold" Grid.Row="0" Grid.Column="0" |
22 |
| - Text="{DynamicResource Text.Checkout.CommitTarget.Sha}"/> |
23 |
| - <TextBlock TextWrapping="Wrap" Text="{Binding Commit}"/> |
24 |
| - (<TextBlock Classes="italic" TextWrapping="Wrap" Text="{Binding Commit, Converter={x:Static c:StringConverters.ToShortSHA}}"/>) |
25 |
| - </TextBlock> |
26 |
| - |
27 |
| - <StackPanel Margin="0, 26, 0, 0" Grid.Row="1" Grid.Column="1" Orientation="Vertical" IsVisible="{Binding HasLocalChanges}"> |
| 15 | + <TextBlock Margin="0,8,0,16" |
| 16 | + Text="{DynamicResource Text.Checkout.Commit.Warning}" |
| 17 | + TextWrapping="Wrap" |
| 18 | + Foreground="{DynamicResource Brush.FG2}" |
| 19 | + FontStyle="Italic"/> |
| 20 | + |
| 21 | + <Grid RowDefinitions="32,Auto" ColumnDefinitions="120,*"> |
| 22 | + <TextBlock Grid.Row="0" Grid.Column="0" |
| 23 | + HorizontalAlignment="Right" VerticalAlignment="Center" |
| 24 | + Margin="0,0,8,0" |
| 25 | + Text="{DynamicResource Text.Checkout.Commit.Target}" /> |
| 26 | + <StackPanel Grid.Row="0" Grid.Column="1" Orientation="Horizontal"> |
| 27 | + <Path Width="14" Height="14" Margin="0,8,0,0" Data="{StaticResource Icons.Commit}" /> |
| 28 | + <TextBlock Classes="monospace" Foreground="DarkOrange" VerticalAlignment="Center" Margin="8,0" Text="{Binding Commit.SHA, Converter={x:Static c:StringConverters.ToShortSHA}}" /> |
| 29 | + <TextBlock Text="{Binding Commit.Subject}"/> |
| 30 | + </StackPanel> |
| 31 | + |
28 | 32 | <TextBlock Grid.Row="1" Grid.Column="0"
|
29 |
| - HorizontalAlignment="Left" VerticalAlignment="Center" |
| 33 | + HorizontalAlignment="Right" VerticalAlignment="Center" |
30 | 34 | Margin="0,0,8,0"
|
31 |
| - Text="{DynamicResource Text.Checkout.LocalChanges}"/> |
32 |
| - |
33 |
| - <StackPanel Margin="0, 13, 0, 0" Grid.Row="1" Grid.Column="1" Orientation="Horizontal"> |
| 35 | + Text="{DynamicResource Text.Checkout.LocalChanges}" |
| 36 | + IsVisible="{Binding HasLocalChanges}"/> |
| 37 | + <StackPanel Grid.Row="1" Grid.Column="1" Height="32" Orientation="Horizontal" IsVisible="{Binding HasLocalChanges}"> |
34 | 38 | <RadioButton Content="{DynamicResource Text.Checkout.LocalChanges.StashAndReply}"
|
35 | 39 | GroupName="LocalChanges"
|
36 |
| - IsChecked="{Binding AutoStash, Mode=TwoWay}"/> |
| 40 | + IsChecked="{Binding AutoStash, Mode=TwoWay}" /> |
37 | 41 | <RadioButton Content="{DynamicResource Text.Checkout.LocalChanges.Discard}"
|
38 | 42 | GroupName="LocalChanges"
|
39 |
| - Margin="8,0,0,0"/> |
| 43 | + Margin="8,0,0,0" /> |
40 | 44 | </StackPanel>
|
41 |
| - </StackPanel> |
42 |
| - |
43 |
| - |
| 45 | + </Grid> |
44 | 46 | </StackPanel>
|
45 | 47 | </UserControl>
|
0 commit comments