ux: tab bottom corner

This commit is contained in:
leo 2024-07-26 15:14:05 +08:00
parent bab1a57480
commit c83b1fb145
No known key found for this signature in database

View file

@ -58,7 +58,7 @@ namespace SourceGit.Views
var geo = new StreamGeometry();
var angle = Math.PI / 2;
var y = height + 0.25;
var y = height + 0.1;
using (var ctx = geo.Open())
{
double x;
@ -94,17 +94,17 @@ namespace SourceGit.Views
x = drawRightX;
y = 6;
ctx.ArcTo(new Point(x, y), new Size(6, 6), angle, false, SweepDirection.Clockwise);
y = height + 0.25 - 5;
y = height + 0.1 - 5;
ctx.LineTo(new Point(x, y));
x += 5;
y = height + 0.25;
y = height + 0.1;
ctx.ArcTo(new Point(x, y), new Size(5, 5), angle, false, SweepDirection.CounterClockwise);
}
else
{
x = LauncherTabsScroller.Bounds.Right;
ctx.LineTo(new Point(x, y));
y = height + 0.25;
y = height + 0.1;
ctx.LineTo(new Point(x, y));
}
}