mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-21 12:15:00 +00:00
feature: supports preview and diff with image files
This commit is contained in:
parent
5ef542f92d
commit
6950055f24
9 changed files with 268 additions and 51 deletions
|
@ -2,6 +2,8 @@
|
|||
using System.Text;
|
||||
using System.Text.RegularExpressions;
|
||||
|
||||
using Avalonia.Media.Imaging;
|
||||
|
||||
namespace SourceGit.Models
|
||||
{
|
||||
public enum TextDiffLineType
|
||||
|
@ -547,6 +549,12 @@ namespace SourceGit.Models
|
|||
public long NewSize { get; set; } = 0;
|
||||
}
|
||||
|
||||
public class ImageDiff
|
||||
{
|
||||
public Bitmap Old { get; set; } = null;
|
||||
public Bitmap New { get; set; } = null;
|
||||
}
|
||||
|
||||
public class NoOrEOLChange
|
||||
{
|
||||
}
|
||||
|
|
|
@ -1,10 +1,17 @@
|
|||
namespace SourceGit.Models
|
||||
using Avalonia.Media.Imaging;
|
||||
|
||||
namespace SourceGit.Models
|
||||
{
|
||||
public class RevisionBinaryFile
|
||||
{
|
||||
public long Size { get; set; } = 0;
|
||||
}
|
||||
|
||||
public class RevisionImageFile
|
||||
{
|
||||
public Bitmap Image { get; set; } = null;
|
||||
}
|
||||
|
||||
public class RevisionTextFile
|
||||
{
|
||||
public string FileName { get; set; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue