enhance: show file size change in image diff

This commit is contained in:
leo 2024-06-06 10:36:17 +08:00
parent 54ef9c0bf7
commit 8b1f28ac95
No known key found for this signature in database
GPG key ID: B528468E49CD0E58
3 changed files with 26 additions and 13 deletions

View file

@ -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