mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-24 20:57:19 -08:00
enhance: better commit graph
This commit is contained in:
parent
7ee3db500a
commit
8fa19ecd0c
2 changed files with 8 additions and 3 deletions
|
@ -61,8 +61,13 @@ namespace SourceGit.Models
|
||||||
}
|
}
|
||||||
else if (x < LastX)
|
else if (x < LastX)
|
||||||
{
|
{
|
||||||
if (y > LastY + halfHeight)
|
var testY = LastY + halfHeight;
|
||||||
Add(new Point(LastX, LastY + halfHeight));
|
if (y > testY)
|
||||||
|
Add(new Point(LastX, testY));
|
||||||
|
|
||||||
|
if (!isEnd)
|
||||||
|
y += halfHeight;
|
||||||
|
|
||||||
Add(new Point(x, y));
|
Add(new Point(x, y));
|
||||||
}
|
}
|
||||||
else if (isEnd)
|
else if (isEnd)
|
||||||
|
|
|
@ -193,7 +193,7 @@ namespace SourceGit.Views
|
||||||
if (i < size - 1)
|
if (i < size - 1)
|
||||||
{
|
{
|
||||||
var midY = (last.Y + cur.Y) / 2;
|
var midY = (last.Y + cur.Y) / 2;
|
||||||
ctx.CubicBezierTo(new Point(last.X, midY + 2), new Point(cur.X, midY - 2), cur);
|
ctx.CubicBezierTo(new Point(last.X, midY + 4), new Point(cur.X, midY - 4), cur);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue