|
239 | 239 | </DataTemplate>
|
240 | 240 | </StackPanel.DataTemplates>
|
241 | 241 |
|
242 |
| - <Path Width="64" Height="64" Data="{StaticResource Icons.Conflict}" Fill="{DynamicResource Brush.FG2}" HorizontalAlignment="Center"/> |
243 |
| - <TextBlock Margin="0,16" FontSize="20" FontWeight="Bold" Text="{DynamicResource Text.WorkingCopy.Conflicts}" Foreground="{DynamicResource Brush.FG2}" HorizontalAlignment="Center"/> |
| 242 | + <StackPanel Orientation="Horizontal"> |
| 243 | + <Path Width="32" Height="32" Margin="10,10,10,10" |
| 244 | + Data="{StaticResource Icons.Conflict}" Fill="{DynamicResource Brush.FG2}" HorizontalAlignment="Center"/> |
| 245 | + <TextBlock Margin="10,10,10,10" FontSize="20" FontWeight="Bold" |
| 246 | + Text="{DynamicResource Text.WorkingCopy.Conflicts}" |
| 247 | + Foreground="{DynamicResource Brush.FG2}" HorizontalAlignment="Center"/> |
| 248 | + </StackPanel> |
244 | 249 |
|
245 | 250 | <Border Margin="16,0" Padding="8" CornerRadius="4" BorderThickness="1" BorderBrush="{DynamicResource Brush.Border2}">
|
246 | 251 | <Border.IsVisible>
|
|
250 | 255 | </MultiBinding>
|
251 | 256 | </Border.IsVisible>
|
252 | 257 |
|
253 |
| - <Grid Margin="8,0,0,0" RowDefinitions="32,32" ColumnDefinitions="Auto,*"> |
254 |
| - <TextBlock Grid.Row="0" Grid.Column="0" Classes="info_label" Text="THEIRS"/> |
255 |
| - <ContentControl Grid.Row="0" Grid.Column="1" Margin="16,0,0,0" Content="{Binding Theirs}"/> |
256 |
| - <TextBlock Grid.Row="1" Grid.Column="0" Classes="info_label" Text="MINE"/> |
257 |
| - <ContentControl Grid.Row="1" Grid.Column="1" Margin="16,0,0,0" Content="{Binding Mine}"/> |
| 258 | + <Grid Margin="8,0,0,0" RowDefinitions="32,32,*" ColumnDefinitions="*,1,*,1,*,1,12"> |
| 259 | + <TextBlock Grid.Row="0" Grid.Column="0" Classes="info_label" HorizontalAlignment="Left" Text="MINE"/> |
| 260 | + <ContentControl Grid.Row="1" Grid.Column="0" Margin="16,0,0,0" HorizontalAlignment="Left" Content="{Binding Mine}"/> |
| 261 | + |
| 262 | + <TextBlock Grid.Row="0" Grid.RowSpan="2" Grid.Column="2" Classes="info_label" HorizontalAlignment="Center" Text="{DynamicResource Text.WorkingCopy}"/> |
| 263 | + |
| 264 | + <TextBlock Grid.Row="0" Grid.Column="4" Classes="info_label" HorizontalAlignment="Right" Text="THEIRS"/> |
| 265 | + <ContentControl Grid.Row="1" Grid.Column="4" Margin="16,0,0,0" HorizontalAlignment="Right" Content="{Binding Theirs}"/> |
| 266 | + |
| 267 | + <v:ConflictTextDiffPresenter Grid.Row="2" Grid.Column="0" |
| 268 | + x:Name="OurSidePresenter" |
| 269 | + DisplaySide="0" |
| 270 | + Foreground="{DynamicResource Brush.FG1}" |
| 271 | + LineBrush="{DynamicResource Brush.Border2}" |
| 272 | + EmptyContentBackground="{DynamicResource Brush.Diff.EmptyBG}" |
| 273 | + AddedContentBackground="{DynamicResource Brush.Diff.AddedBG}" |
| 274 | + DeletedContentBackground="{DynamicResource Brush.Diff.DeletedBG}" |
| 275 | + AddedHighlightBrush="{DynamicResource Brush.Diff.AddedHighlight}" |
| 276 | + DeletedHighlightBrush="{DynamicResource Brush.Diff.DeletedHighlight}" |
| 277 | + IndicatorForeground="{DynamicResource Brush.FG2}" |
| 278 | + FontFamily="{DynamicResource Fonts.Monospace}" |
| 279 | + FontSize="{Binding Source={x:Static vm:Preferences.Instance}, Path=EditorFontSize}" |
| 280 | + UseSyntaxHighlighting="{Binding Source={x:Static vm:Preferences.Instance}, Path=UseSyntaxHighlighting}" |
| 281 | + WordWrap="False" |
| 282 | + ShowHiddenSymbols="{Binding Source={x:Static vm:Preferences.Instance}, Path=ShowHiddenSymbolsInDiffView}" |
| 283 | + EnableChunkSelection="True"/> |
| 284 | + |
| 285 | + <Rectangle Grid.Row="2" Grid.Column="1" Fill="{DynamicResource Brush.Border2}" Width="1" HorizontalAlignment="Center" VerticalAlignment="Stretch"/> |
| 286 | + |
| 287 | + <v:ConflictTextDiffPresenter Grid.Row="2" Grid.Column="2" |
| 288 | + x:Name="WorkingCopyPresenter" |
| 289 | + DisplaySide="1" |
| 290 | + Foreground="{DynamicResource Brush.FG1}" |
| 291 | + LineBrush="{DynamicResource Brush.Border2}" |
| 292 | + EmptyContentBackground="{DynamicResource Brush.Diff.EmptyBG}" |
| 293 | + AddedContentBackground="{DynamicResource Brush.Diff.AddedBG}" |
| 294 | + DeletedContentBackground="{DynamicResource Brush.Diff.DeletedBG}" |
| 295 | + AddedHighlightBrush="{DynamicResource Brush.Diff.AddedHighlight}" |
| 296 | + DeletedHighlightBrush="{DynamicResource Brush.Diff.DeletedHighlight}" |
| 297 | + IndicatorForeground="{DynamicResource Brush.FG2}" |
| 298 | + FontFamily="{DynamicResource Fonts.Monospace}" |
| 299 | + FontSize="{Binding Source={x:Static vm:Preferences.Instance}, Path=EditorFontSize}" |
| 300 | + UseSyntaxHighlighting="{Binding Source={x:Static vm:Preferences.Instance}, Path=UseSyntaxHighlighting}" |
| 301 | + WordWrap="False" |
| 302 | + ShowHiddenSymbols="{Binding Source={x:Static vm:Preferences.Instance}, Path=ShowHiddenSymbolsInDiffView}"/> |
| 303 | + |
| 304 | + <Rectangle Grid.Row="2" Grid.Column="3" Fill="{DynamicResource Brush.Border2}" Width="1" HorizontalAlignment="Center" VerticalAlignment="Stretch"/> |
| 305 | + |
| 306 | + <v:ConflictTextDiffPresenter Grid.Row="2" Grid.Column="4" |
| 307 | + x:Name="TherrSidePresenter" |
| 308 | + DisplaySide="2" |
| 309 | + Foreground="{DynamicResource Brush.FG1}" |
| 310 | + LineBrush="{DynamicResource Brush.Border2}" |
| 311 | + EmptyContentBackground="{DynamicResource Brush.Diff.EmptyBG}" |
| 312 | + AddedContentBackground="{DynamicResource Brush.Diff.AddedBG}" |
| 313 | + DeletedContentBackground="{DynamicResource Brush.Diff.DeletedBG}" |
| 314 | + AddedHighlightBrush="{DynamicResource Brush.Diff.AddedHighlight}" |
| 315 | + DeletedHighlightBrush="{DynamicResource Brush.Diff.DeletedHighlight}" |
| 316 | + IndicatorForeground="{DynamicResource Brush.FG2}" |
| 317 | + FontFamily="{DynamicResource Fonts.Monospace}" |
| 318 | + FontSize="{Binding Source={x:Static vm:Preferences.Instance}, Path=EditorFontSize}" |
| 319 | + UseSyntaxHighlighting="{Binding Source={x:Static vm:Preferences.Instance}, Path=UseSyntaxHighlighting}" |
| 320 | + WordWrap="False" |
| 321 | + ShowHiddenSymbols="{Binding Source={x:Static vm:Preferences.Instance}, Path=ShowHiddenSymbolsInDiffView}"/> |
| 322 | + |
| 323 | + <Rectangle Grid.Row="2" Grid.Column="5" Fill="{DynamicResource Brush.Border2}" Width="1" HorizontalAlignment="Center" VerticalAlignment="Stretch"/> |
| 324 | + |
| 325 | + <v:TextDiffViewMinimap Grid.Column="6" |
| 326 | + DisplayRange="{Binding #OurSidePresenter.DisplayRange}" |
| 327 | + AddedLineBrush="{DynamicResource Brush.Diff.AddedBG}" |
| 328 | + DeletedLineBrush="{DynamicResource Brush.Diff.DeletedBG}"/> |
258 | 329 | </Grid>
|
259 | 330 | </Border>
|
260 |
| - |
| 331 | + |
261 | 332 | <StackPanel Margin="0,8,0,0" Orientation="Horizontal" HorizontalAlignment="Center">
|
262 | 333 | <Button Classes="flat" Content="USE THEIRS" Command="{Binding UseTheirs}"/>
|
263 | 334 | <Button Classes="flat" Margin="8,0,0,0" Content="USE MINE" Command="{Binding UseMine}"/>
|
|
0 commit comments