ux: prevents the top border from being cropped

This commit is contained in:
leo 2024-06-29 17:15:10 +08:00
parent 1241539260
commit 3ba027bd16
No known key found for this signature in database

View file

@ -62,7 +62,7 @@ namespace SourceGit.Views
{ {
x = LauncherTabsScroller.Bounds.X; x = LauncherTabsScroller.Bounds.X;
ctx.BeginFigure(new Point(x, y), true); ctx.BeginFigure(new Point(x, y), true);
y = 0; y = 1;
ctx.LineTo(new Point(x, y)); ctx.LineTo(new Point(x, y));
x = drawRightX - 6; x = drawRightX - 6;
} }
@ -76,7 +76,7 @@ namespace SourceGit.Views
y = 6; y = 6;
ctx.LineTo(new Point(x, y)); ctx.LineTo(new Point(x, y));
x += 6; x += 6;
y = 0; y = 1;
ctx.ArcTo(new Point(x, y), new Size(6, 6), angle, false, SweepDirection.Clockwise); ctx.ArcTo(new Point(x, y), new Size(6, 6), angle, false, SweepDirection.Clockwise);
x = drawRightX - 6; x = drawRightX - 6;
} }