mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-21 20:24:59 +00:00
enhance: show file size change in image diff
This commit is contained in:
parent
54ef9c0bf7
commit
8b1f28ac95
3 changed files with 26 additions and 13 deletions
|
@ -570,8 +570,11 @@ namespace SourceGit.Models
|
|||
public Bitmap Old { get; set; } = null;
|
||||
public Bitmap New { get; set; } = null;
|
||||
|
||||
public string OldSize => Old != null ? $"{Old.PixelSize.Width} x {Old.PixelSize.Height}" : "0 x 0";
|
||||
public string NewSize => New != null ? $"{New.PixelSize.Width} x {New.PixelSize.Height}" : "0 x 0";
|
||||
public long OldFileSize { get; set; } = 0;
|
||||
public long NewFileSize { get; set; } = 0;
|
||||
|
||||
public string OldImageSize => Old != null ? $"{Old.PixelSize.Width} x {Old.PixelSize.Height}" : "0 x 0";
|
||||
public string NewImageSize => New != null ? $"{New.PixelSize.Width} x {New.PixelSize.Height}" : "0 x 0";
|
||||
}
|
||||
|
||||
public class NoOrEOLChange
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue