|
546 | 546 | BorderBrush="{DynamicResource Brush.Border0}"/> |
547 | 547 |
|
548 | 548 | <!-- Right --> |
549 | | - <Grid Grid.Column="2" RowDefinitions="Auto,Auto,*"> |
550 | | - <Grid Grid.Row="0" Height="28" ColumnDefinitions="*,Auto,Auto" Background="{DynamicResource Brush.Conflict}" IsVisible="{Binding InProgressContext, Converter={x:Static ObjectConverters.IsNotNull}}"> |
| 549 | + <Grid Grid.Column="2" RowDefinitions="Auto,Auto,*"> |
| 550 | + <Grid Grid.Row="0" Height="28" ColumnDefinitions="*,Auto" Background="{DynamicResource Brush.Conflict}" IsVisible="{Binding InProgressContext, Converter={x:Static ObjectConverters.IsNotNull}}"> |
551 | 551 | <ContentControl Grid.Column="0" Margin="8,0" Content="{Binding InProgressContext}"> |
552 | 552 | <ContentControl.DataTemplates> |
553 | 553 | <DataTemplate DataType="m:Commit"> |
|
563 | 563 | </DataTemplate> |
564 | 564 |
|
565 | 565 | <DataTemplate DataType="vm:CherryPickInProgress"> |
566 | | - <StackPanel Orientation="Horizontal"> |
567 | | - <TextBlock FontWeight="Bold" Foreground="{DynamicResource Brush.ConflictForeground}" Text="{DynamicResource Text.InProgress.CherryPick}"/> |
568 | | - <TextBlock FontWeight="Bold" Margin="4,0,0,0" Foreground="{DynamicResource Brush.ConflictForeground}" Text="{DynamicResource Text.InProgress.CherryPick.Head}"/> |
569 | | - <TextBlock FontWeight="Bold" Margin="4,0,0,0" Foreground="DarkOrange" Text="{Binding Head.SHA, Converter={x:Static c:StringConverters.ToShortSHA}}" ToolTip.Tip="{Binding Head}"/> |
570 | | - </StackPanel> |
| 566 | + <Grid ColumnDefinitions="*,Auto"> |
| 567 | + <StackPanel Grid.Column="0" Orientation="Horizontal"> |
| 568 | + <TextBlock FontWeight="Bold" Foreground="{DynamicResource Brush.ConflictForeground}" Text="{DynamicResource Text.InProgress.CherryPick}"/> |
| 569 | + <TextBlock FontWeight="Bold" Margin="4,0,0,0" Foreground="{DynamicResource Brush.ConflictForeground}" Text="{DynamicResource Text.InProgress.CherryPick.Head}"/> |
| 570 | + <TextBlock FontWeight="Bold" Margin="4,0,0,0" Foreground="DarkOrange" Text="{Binding Head.SHA, Converter={x:Static c:StringConverters.ToShortSHA}}" ToolTip.Tip="{Binding Head}"/> |
| 571 | + </StackPanel> |
| 572 | + |
| 573 | + <Button Grid.Column="1" Classes="flat" FontWeight="Regular" BorderThickness="0" Content="{DynamicResource Text.Repository.Skip}" Padding="8,2" Click="OnSkipInProgress"/> |
| 574 | + </Grid> |
571 | 575 | </DataTemplate> |
572 | 576 |
|
573 | 577 | <DataTemplate DataType="vm:RebaseInProgress"> |
574 | | - <StackPanel Orientation="Horizontal"> |
575 | | - <TextBlock FontWeight="Bold" Foreground="{DynamicResource Brush.ConflictForeground}" Text="{DynamicResource Text.InProgress.Rebase}"/> |
576 | | - <TextBlock FontWeight="Bold" Margin="4,0,0,0" Foreground="{DynamicResource Brush.ConflictForeground}" Text="{DynamicResource Text.InProgress.Rebase.StoppedAt}"/> |
577 | | - <TextBlock FontWeight="Bold" Margin="4,0,0,0" Foreground="DarkOrange" Text="{Binding StoppedAt.SHA, Converter={x:Static c:StringConverters.ToShortSHA}}" ToolTip.Tip="{Binding StoppedAt}"/> |
578 | | - </StackPanel> |
| 578 | + <Grid ColumnDefinitions="*,Auto"> |
| 579 | + <StackPanel Grid.Column="0" Orientation="Horizontal"> |
| 580 | + <TextBlock FontWeight="Bold" Foreground="{DynamicResource Brush.ConflictForeground}" Text="{DynamicResource Text.InProgress.Rebase}"/> |
| 581 | + <TextBlock FontWeight="Bold" Margin="4,0,0,0" Foreground="{DynamicResource Brush.ConflictForeground}" Text="{DynamicResource Text.InProgress.Rebase.StoppedAt}"/> |
| 582 | + <TextBlock FontWeight="Bold" Margin="4,0,0,0" Foreground="DarkOrange" Text="{Binding StoppedAt.SHA, Converter={x:Static c:StringConverters.ToShortSHA}}" ToolTip.Tip="{Binding StoppedAt}"/> |
| 583 | + </StackPanel> |
| 584 | + |
| 585 | + <Button Grid.Column="1" Classes="flat" FontWeight="Regular" BorderThickness="0" Content="{DynamicResource Text.Repository.Skip}" Padding="8,2" Click="OnSkipInProgress"/> |
| 586 | + </Grid> |
579 | 587 | </DataTemplate> |
580 | 588 |
|
581 | 589 | <DataTemplate DataType="vm:RevertInProgress"> |
582 | | - <StackPanel Orientation="Horizontal"> |
583 | | - <TextBlock FontWeight="Bold" Foreground="{DynamicResource Brush.ConflictForeground}" Text="{DynamicResource Text.InProgress.Revert}"/> |
584 | | - <TextBlock FontWeight="Bold" Margin="4,0,0,0" Foreground="{DynamicResource Brush.ConflictForeground}" Text="{DynamicResource Text.InProgress.Revert.Head}"/> |
585 | | - <TextBlock FontWeight="Bold" Margin="4,0,0,0" Foreground="DarkOrange" Text="{Binding Head.SHA, Converter={x:Static c:StringConverters.ToShortSHA}}" ToolTip.Tip="{Binding Head}"/> |
586 | | - </StackPanel> |
| 590 | + <Grid ColumnDefinitions="*,Auto"> |
| 591 | + <StackPanel Grid.Column="0" Orientation="Horizontal"> |
| 592 | + <TextBlock FontWeight="Bold" Foreground="{DynamicResource Brush.ConflictForeground}" Text="{DynamicResource Text.InProgress.Revert}"/> |
| 593 | + <TextBlock FontWeight="Bold" Margin="4,0,0,0" Foreground="{DynamicResource Brush.ConflictForeground}" Text="{DynamicResource Text.InProgress.Revert.Head}"/> |
| 594 | + <TextBlock FontWeight="Bold" Margin="4,0,0,0" Foreground="DarkOrange" Text="{Binding Head.SHA, Converter={x:Static c:StringConverters.ToShortSHA}}" ToolTip.Tip="{Binding Head}"/> |
| 595 | + </StackPanel> |
| 596 | + |
| 597 | + <Button Grid.Column="1" Classes="flat" FontWeight="Regular" BorderThickness="0" Content="{DynamicResource Text.Repository.Skip}" Padding="8,2" Click="OnSkipInProgress"/> |
| 598 | + </Grid> |
587 | 599 | </DataTemplate> |
588 | 600 |
|
589 | 601 | <DataTemplate DataType="vm:MergeInProgress"> |
|
597 | 609 | </DataTemplate> |
598 | 610 | </ContentControl.DataTemplates> |
599 | 611 | </ContentControl> |
600 | | - |
601 | | - <ContentControl Grid.Column="1" Margin="4,0" Content="{Binding InProgressContext}"> |
602 | | - <ContentControl.DataTemplates> |
603 | | - <DataTemplate DataType="vm:CherryPickInProgress"> |
604 | | - <Button Classes="flat" FontWeight="Regular" BorderThickness="0" Content="{DynamicResource Text.Repository.Skip}" Padding="8,2" Command="{Binding Skip}"/> |
605 | | - </DataTemplate> |
606 | | - |
607 | | - <DataTemplate DataType="vm:RebaseInProgress"> |
608 | | - <Button Classes="flat" FontWeight="Regular" BorderThickness="0" Content="{DynamicResource Text.Repository.Skip}" Padding="8,2" Command="{Binding Skip}"/> |
609 | | - </DataTemplate> |
610 | | - |
611 | | - <DataTemplate DataType="vm:RevertInProgress"> |
612 | | - </DataTemplate> |
613 | | - |
614 | | - <DataTemplate DataType="vm:MergeInProgress"> |
615 | | - </DataTemplate> |
616 | | - </ContentControl.DataTemplates> |
617 | | - </ContentControl> |
618 | 612 |
|
619 | | - <Button Grid.Column="2" |
| 613 | + <Button Grid.Column="1" |
620 | 614 | Classes="flat" |
621 | 615 | FontWeight="Regular" |
622 | 616 | BorderThickness="0" |
623 | 617 | Content="{DynamicResource Text.Repository.Abort}" |
624 | | - Padding="8,2" Margin="4,0" |
| 618 | + Padding="8,2" Margin="0,0,8,0" |
625 | 619 | Command="{Binding AbortMerge}"/> |
626 | 620 | </Grid> |
627 | 621 |
|
|
0 commit comments