|
13 | 13 | Icon="/App.ico" |
14 | 14 | Title="{DynamicResource Text.MergeConflictEditor.Title}" |
15 | 15 | MinWidth="1024" MinHeight="600"> |
16 | | - <Grid RowDefinitions="Auto,32,*,Auto"> |
| 16 | + <Grid RowDefinitions="Auto,32,*,32"> |
17 | 17 | <!-- TitleBar --> |
18 | 18 | <Grid Grid.Row="0" Height="28" IsVisible="{Binding !#ThisControl.UseSystemWindowFrame}"> |
19 | 19 | <Border Background="{DynamicResource Brush.TitleBar}" |
|
37 | 37 |
|
38 | 38 | <!-- Toolbar --> |
39 | 39 | <Border Grid.Row="1" Padding="8,0" Background="{DynamicResource Brush.ToolBar}" BorderThickness="0,0,0,1" BorderBrush="{DynamicResource Brush.Border2}"> |
40 | | - <Grid ColumnDefinitions="Auto,*,Auto"> |
41 | | - <!-- File Path --> |
42 | | - <StackPanel Grid.Column="0" Orientation="Horizontal" VerticalAlignment="Center"> |
43 | | - <Path Width="14" Height="14" Data="{StaticResource Icons.File}"/> |
44 | | - <TextBlock Margin="8" Text="{Binding FilePath}" VerticalAlignment="Center"/> |
45 | | - </StackPanel> |
| 40 | + <Grid ColumnDefinitions="Auto,*,Auto,Auto,Auto"> |
| 41 | + <Path Grid.Column="0" Width="14" Height="14" Data="{StaticResource Icons.File}"/> |
| 42 | + |
| 43 | + <TextBlock Grid.Column="1" |
| 44 | + Margin="8" |
| 45 | + Text="{Binding FilePath}" |
| 46 | + VerticalAlignment="Center" |
| 47 | + TextTrimming="CharacterEllipsis"/> |
46 | 48 |
|
47 | | - <!-- Navigation and Actions --> |
48 | | - <StackPanel Grid.Column="2" Orientation="Horizontal" Spacing="8"> |
49 | | - <!-- Navigation --> |
50 | | - <Button Classes="icon_button" |
51 | | - Width="24" |
52 | | - ToolTip.Tip="{DynamicResource Text.MergeConflictEditor.PrevConflict}" |
53 | | - Click="OnGotoPrevConflict" |
54 | | - HotKey="{OnPlatform Ctrl+Up, macOS=⌘+Up}" |
55 | | - IsEnabled="{Binding UnsolvedCount, Converter={x:Static c:IntConverters.IsGreaterThanZero}, Mode=OneWay}"> |
56 | | - <Path Width="12" Height="12" Margin="0,6,0,0" Data="{StaticResource Icons.Up}"/> |
57 | | - </Button> |
58 | | - <Button Classes="icon_button" |
59 | | - Width="24" |
60 | | - ToolTip.Tip="{DynamicResource Text.MergeConflictEditor.NextConflict}" |
61 | | - Click="OnGotoNextConflict" |
62 | | - HotKey="{OnPlatform Ctrl+Down, macOS=⌘+Down}" |
63 | | - IsEnabled="{Binding UnsolvedCount, Converter={x:Static c:IntConverters.IsGreaterThanZero}, Mode=OneWay}"> |
64 | | - <Path Width="12" Height="12" Margin="0,6,0,0" Data="{StaticResource Icons.Down}"/> |
65 | | - </Button> |
66 | | - |
67 | | - <!-- Info Bar --> |
68 | | - <TextBlock Text="{Binding UnsolvedCount, Converter={x:Static c:IntConverters.ToUnsolvedDesc}, Mode=OneWay}" |
69 | | - VerticalAlignment="Center"/> |
70 | | - <Rectangle Width="1" Fill="{DynamicResource Brush.Border2}" Margin="4,6"/> |
| 49 | + <Button Grid.Column="2" |
| 50 | + Classes="icon_button" |
| 51 | + Width="32" |
| 52 | + ToolTip.Tip="{DynamicResource Text.MergeConflictEditor.PrevConflict}" |
| 53 | + Click="OnGotoPrevConflict" |
| 54 | + HotKey="{OnPlatform Ctrl+Up, macOS=⌘+Up}" |
| 55 | + IsEnabled="{Binding UnsolvedCount, Converter={x:Static c:IntConverters.IsGreaterThanZero}, Mode=OneWay}"> |
| 56 | + <Path Width="12" Height="12" Margin="0,6,0,0" Data="{StaticResource Icons.Up}"/> |
| 57 | + </Button> |
| 58 | + |
| 59 | + <Button Grid.Column="3" |
| 60 | + Classes="icon_button" |
| 61 | + Width="32" |
| 62 | + ToolTip.Tip="{DynamicResource Text.MergeConflictEditor.NextConflict}" |
| 63 | + Click="OnGotoNextConflict" |
| 64 | + HotKey="{OnPlatform Ctrl+Down, macOS=⌘+Down}" |
| 65 | + IsEnabled="{Binding UnsolvedCount, Converter={x:Static c:IntConverters.IsGreaterThanZero}, Mode=OneWay}"> |
| 66 | + <Path Width="12" Height="12" Margin="0,6,0,0" Data="{StaticResource Icons.Down}"/> |
| 67 | + </Button> |
71 | 68 |
|
72 | | - <!-- Save --> |
73 | | - <Button Classes="icon_button" |
74 | | - Margin="0" Padding="0" |
75 | | - Click="OnSaveAndStage" |
76 | | - HotKey="{OnPlatform Ctrl+S, macOS=⌘+S}" |
77 | | - ToolTip.Tip="{DynamicResource Text.MergeConflictEditor.SaveAndStage}"> |
78 | | - <Path Width="16" Height="16" Data="{StaticResource Icons.Save}"/> |
79 | | - </Button> |
80 | | - </StackPanel> |
| 69 | + <TextBlock Grid.Column="4" |
| 70 | + Margin="8,0,0,0" |
| 71 | + Text="{Binding UnsolvedCount, Converter={x:Static c:IntConverters.ToUnsolvedDesc}, Mode=OneWay}" |
| 72 | + VerticalAlignment="Center"/> |
81 | 73 | </Grid> |
82 | 74 | </Border> |
83 | 75 |
|
|
331 | 323 | HotKey="Escape"/> |
332 | 324 | </StackPanel> |
333 | 325 | </Border> |
| 326 | + |
| 327 | + <!-- Foot --> |
| 328 | + <StackPanel Grid.Row="3" Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Top" Spacing="8"> |
| 329 | + <Button Classes="flat primary" |
| 330 | + HorizontalAlignment="Center" VerticalAlignment="Top" |
| 331 | + HotKey="{OnPlatform Ctrl+S, macOS=⌘+S}" |
| 332 | + Click="OnSaveAndStage" |
| 333 | + IsEnabled="{Binding UnsolvedCount, Converter={x:Static c:IntConverters.IsZero}}"> |
| 334 | + <TextBlock Text="{DynamicResource Text.MergeConflictEditor.SaveAndStage}"/> |
| 335 | + </Button> |
| 336 | + |
| 337 | + <Button Classes="flat" |
| 338 | + Width="80" |
| 339 | + Content="{DynamicResource Text.Cancel}" |
| 340 | + Click="CloseWindow" |
| 341 | + HorizontalAlignment="Center"/> |
| 342 | + </StackPanel> |
334 | 343 | </Grid> |
335 | 344 | </v:ChromelessWindow> |
0 commit comments