style<DiffViewer>: use different icons for binary diff and lfs object diff

This commit is contained in:
leo 2021-01-15 17:43:25 +08:00
parent 48efec0e7c
commit 101295f86a
2 changed files with 3 additions and 1 deletions

View file

@ -80,7 +80,7 @@
<Border x:Name="sizeChange" Grid.Row="1" ClipToBounds="True" Background="{StaticResource Brush.Window}" Visibility="Collapsed">
<StackPanel Orientation="Vertical" VerticalAlignment="Center">
<Label x:Name="txtSizeChangeTitle" Content="{StaticResource Text.Diff.Binary}" Margin="0,0,0,32" FontSize="18" FontWeight="UltraBold" Foreground="{StaticResource Brush.FG2}" HorizontalAlignment="Center"/>
<Path Width="64" Height="64" Style="{StaticResource Style.Icon}" Data="{StaticResource Icon.Binary}" Fill="{StaticResource Brush.FG2}"/>
<Path x:Name="iconSizeChange" Width="64" Height="64" Style="{StaticResource Style.Icon}" Data="{StaticResource Icon.Binary}" Fill="{StaticResource Brush.FG2}"/>
<Grid Margin="0,16,0,0" HorizontalAlignment="Center" TextElement.FontSize="18" TextElement.FontWeight="UltraBold">
<Grid.RowDefinitions>
<RowDefinition Height="32"/>

View file

@ -390,6 +390,7 @@ namespace SourceGit.UI {
sizeChange.Visibility = Visibility.Visible;
textChangeOptions.Visibility = Visibility.Collapsed;
txtSizeChangeTitle.Content = App.Text("Diff.Binary");
iconSizeChange.Data = FindResource("Icon.Binary") as Geometry;
txtNewSize.Content = App.Format("Bytes", bc.PreSize);
txtOldSize.Content = App.Format("Bytes", bc.Size);
});
@ -408,6 +409,7 @@ namespace SourceGit.UI {
sizeChange.Visibility = Visibility.Visible;
textChangeOptions.Visibility = Visibility.Collapsed;
txtSizeChangeTitle.Content = App.Text("Diff.LFS");
iconSizeChange.Data = FindResource("Icon.LFS") as Geometry;
txtNewSize.Content = App.Format("Bytes", newSize);
txtOldSize.Content = App.Format("Bytes", oldSize);
});