|
224 | 224 |
|
225 | 225 | <!-- LFS Diff -->
|
226 | 226 | <DataTemplate DataType="m:LFSDiff">
|
227 |
| - <StackPanel Orientation="Vertical" VerticalAlignment="Center"> |
228 |
| - <TextBlock Text="{DynamicResource Text.Diff.LFS}" |
229 |
| - Margin="0,0,0,32" |
230 |
| - FontSize="18" FontWeight="Bold" |
231 |
| - Foreground="{DynamicResource Brush.FG2}" |
232 |
| - HorizontalAlignment="Center"/> |
233 |
| - <Path Width="64" Height="64" Data="{StaticResource Icons.LFS}" Fill="{DynamicResource Brush.FG2}"/> |
234 |
| - <Grid Margin="0,16,0,0" HorizontalAlignment="Center" RowDefinitions="32,32" ColumnDefinitions="Auto,Auto,Auto"> |
235 |
| - <Border Grid.Row="0" Grid.Column="0" Height="16" Background="{DynamicResource Brush.Badge}" CornerRadius="8" VerticalAlignment="Center"> |
236 |
| - <TextBlock Classes="primary" Text="{DynamicResource Text.Diff.Binary.Old}" Margin="8,0" FontSize="10" Foreground="{DynamicResource Brush.BadgeFG}"/> |
237 |
| - </Border> |
238 |
| - |
239 |
| - <TextBlock Grid.Row="0" Grid.Column="1" Classes="primary" Text="{Binding Old.Size}" Foreground="{DynamicResource Brush.FG2}" HorizontalAlignment="Right" FontSize="16" Margin="8,0"/> |
240 |
| - <TextBlock Grid.Row="0" Grid.Column="2" Classes="primary" Text="{DynamicResource Text.Bytes}" Foreground="{DynamicResource Brush.FG2}" FontSize="16"/> |
241 |
| - |
242 |
| - <Border Grid.Row="1" Grid.Column="0" Height="16" Background="Green" CornerRadius="8" VerticalAlignment="Center"> |
243 |
| - <TextBlock Classes="primary" Text="{DynamicResource Text.Diff.Binary.New}" Margin="8,0" FontSize="10"/> |
244 |
| - </Border> |
245 |
| - |
246 |
| - <TextBlock Grid.Row="1" Grid.Column="1" Classes="primary" Text="{Binding New.Size}" Foreground="{DynamicResource Brush.FG2}" HorizontalAlignment="Right" FontSize="16" Margin="8,0"/> |
247 |
| - <TextBlock Grid.Row="1" Grid.Column="2" Classes="primary" Text="{DynamicResource Text.Bytes}" Foreground="{DynamicResource Brush.FG2}" FontSize="16"/> |
248 |
| - </Grid> |
249 |
| - </StackPanel> |
| 227 | + <v:LFSDiffView/> |
250 | 228 | </DataTemplate>
|
251 | 229 |
|
252 | 230 | <!-- Submodule Diff -->
|
|
302 | 280 | <v:ImageDiffView/>
|
303 | 281 | </DataTemplate>
|
304 | 282 |
|
| 283 | + <!-- LFS Image Diff --> |
| 284 | + <DataTemplate DataType="vm:LFSImageDiff"> |
| 285 | + <TabControl Margin="0,8,0,0"> |
| 286 | + <TabControl.Styles> |
| 287 | + <Style Selector="TabControl /template/ ItemsPresenter#PART_ItemsPresenter > WrapPanel"> |
| 288 | + <Setter Property="HorizontalAlignment" Value="Center"/> |
| 289 | + </Style> |
| 290 | + </TabControl.Styles> |
| 291 | + |
| 292 | + <TabItem> |
| 293 | + <TabItem.Header> |
| 294 | + <TextBlock Text="LFS" FontWeight="Bold"/> |
| 295 | + </TabItem.Header> |
| 296 | + |
| 297 | + <ContentControl Content="{Binding LFS}"> |
| 298 | + <ContentControl.DataTemplates> |
| 299 | + <DataTemplate DataType="m:LFSDiff"> |
| 300 | + <v:LFSDiffView/> |
| 301 | + </DataTemplate> |
| 302 | + </ContentControl.DataTemplates> |
| 303 | + </ContentControl> |
| 304 | + </TabItem> |
| 305 | + |
| 306 | + <TabItem> |
| 307 | + <TabItem.Header> |
| 308 | + <TextBlock Text="IMAGE" FontWeight="Bold"/> |
| 309 | + </TabItem.Header> |
| 310 | + |
| 311 | + <ContentControl Content="{Binding Image}"> |
| 312 | + <ContentControl.DataTemplates> |
| 313 | + <DataTemplate DataType="m:ImageDiff"> |
| 314 | + <v:ImageDiffView/> |
| 315 | + </DataTemplate> |
| 316 | + </ContentControl.DataTemplates> |
| 317 | + </ContentControl> |
| 318 | + </TabItem> |
| 319 | + </TabControl> |
| 320 | + </DataTemplate> |
| 321 | + |
305 | 322 | <!-- Text Diff -->
|
306 | 323 | <DataTemplate DataType="m:TextDiff">
|
307 | 324 | <v:TextDiffView UseSideBySideDiff="{Binding Source={x:Static vm:Preferences.Instance}, Path=UseSideBySideDiff, Mode=OneWay}"
|
|
0 commit comments