|
261 | 261 |
|
262 | 262 | <ScrollViewer Grid.Row="1" HorizontalScrollBarVisibility="Disabled" VerticalScrollBarVisibility="Auto">
|
263 | 263 | <StackPanel Orientation="Vertical" Margin="8,0">
|
264 |
| - <Border IsVisible="{Binding Old, Converter={x:Static ObjectConverters.IsNotNull}}"> |
| 264 | + <Border Height="16" HorizontalAlignment="Center" Background="Red" CornerRadius="8" IsVisible="{Binding New, Converter={x:Static ObjectConverters.IsNull}}"> |
| 265 | + <TextBlock Classes="primary" Text="{DynamicResource Text.Diff.Submodule.Deleted}" Margin="8,0" FontSize="10" Foreground="White"/> |
| 266 | + </Border> |
| 267 | + |
| 268 | + <Border Margin="0,8,0,0" IsVisible="{Binding Old, Converter={x:Static ObjectConverters.IsNotNull}}"> |
265 | 269 | <ContentControl Content="{Binding Old}">
|
266 | 270 | <ContentControl.DataTemplates>
|
267 | 271 | <DataTemplate DataType="m:RevisionSubmodule">
|
|
273 | 277 | </ContentControl>
|
274 | 278 | </Border>
|
275 | 279 |
|
| 280 | + <Path Width="16" Height="16" Data="{StaticResource Icons.DoubleDown}" HorizontalAlignment="Center"> |
| 281 | + <Path.IsVisible> |
| 282 | + <MultiBinding Converter="{x:Static BoolConverters.And}"> |
| 283 | + <Binding Path="Old" Converter="{x:Static ObjectConverters.IsNotNull}"/> |
| 284 | + <Binding Path="New" Converter="{x:Static ObjectConverters.IsNotNull}"/> |
| 285 | + </MultiBinding> |
| 286 | + </Path.IsVisible> |
| 287 | + </Path> |
| 288 | + |
276 | 289 | <Border Height="16" HorizontalAlignment="Center" Background="Green" CornerRadius="8" IsVisible="{Binding Old, Converter={x:Static ObjectConverters.IsNull}}">
|
277 | 290 | <TextBlock Classes="primary" Text="{DynamicResource Text.Diff.Submodule.New}" Margin="8,0" FontSize="10" Foreground="White"/>
|
278 | 291 | </Border>
|
279 | 292 |
|
280 |
| - <Path Width="16" Height="16" Data="{StaticResource Icons.DoubleDown}" HorizontalAlignment="Center" IsVisible="{Binding Old, Converter={x:Static ObjectConverters.IsNotNull}}"/> |
281 |
| - |
282 | 293 | <Border Margin="0,8,0,0" BorderThickness="1" BorderBrush="Green" Background="{DynamicResource Brush.Window}" IsVisible="{Binding New, Converter={x:Static ObjectConverters.IsNotNull}}">
|
283 | 294 | <ContentControl Content="{Binding New}">
|
284 | 295 | <ContentControl.DataTemplates>
|
|
288 | 299 | </ContentControl.DataTemplates>
|
289 | 300 | </ContentControl>
|
290 | 301 | </Border>
|
291 |
| - |
292 |
| - <Border Margin="0,8,0,0" Height="16" HorizontalAlignment="Center" Background="Red" CornerRadius="8" IsVisible="{Binding New, Converter={x:Static ObjectConverters.IsNull}}"> |
293 |
| - <TextBlock Classes="primary" Text="{DynamicResource Text.Diff.Submodule.Deleted}" Margin="8,0" FontSize="10" Foreground="White"/> |
294 |
| - </Border> |
295 | 302 | </StackPanel>
|
296 | 303 | </ScrollViewer>
|
297 | 304 | </Grid>
|
|
0 commit comments