mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-22 20:37:19 -08:00
style<DiffViewer>: use different icons for binary diff and lfs object diff
This commit is contained in:
parent
48efec0e7c
commit
101295f86a
2 changed files with 3 additions and 1 deletions
|
@ -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"/>
|
||||
|
|
|
@ -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);
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue