Skip to content

Commit 705f653

Browse files
committed
ux: bottom corner for launcher page tab
1 parent 3ba027b commit 705f653

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/Views/LauncherTabBar.axaml.cs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,13 @@ public override void Render(DrawingContext context)
4747
var selected = LauncherTabsList.ContainerFromIndex(selectedIdx);
4848
var activeStartX = selected.Bounds.X;
4949
var activeEndX = activeStartX + selected.Bounds.Width;
50-
if (activeStartX > endX + 6 || activeEndX < startX - 6)
50+
if (activeStartX > endX + 5 || activeEndX < startX - 5)
5151
return;
5252

5353
var geo = new StreamGeometry();
5454
var angle = Math.PI / 2;
5555
var x = 0.0;
56-
var y = height + 0.5;
56+
var y = height + 0.25;
5757
using (var ctx = geo.Open())
5858
{
5959
var drawLeftX = activeStartX - startX + LauncherTabsScroller.Bounds.X;
@@ -68,11 +68,11 @@ public override void Render(DrawingContext context)
6868
}
6969
else
7070
{
71-
x = drawLeftX - 6;
71+
x = drawLeftX - 5;
7272
ctx.BeginFigure(new Point(x, y), true);
7373
x = drawLeftX;
74-
y -= 6;
75-
ctx.ArcTo(new Point(x, y), new Size(6.5, 6.5), angle, false, SweepDirection.CounterClockwise);
74+
y -= 5;
75+
ctx.ArcTo(new Point(x, y), new Size(5, 5), angle, false, SweepDirection.CounterClockwise);
7676
y = 6;
7777
ctx.LineTo(new Point(x, y));
7878
x += 6;
@@ -87,17 +87,17 @@ public override void Render(DrawingContext context)
8787
x = drawRightX;
8888
y = 6;
8989
ctx.ArcTo(new Point(x, y), new Size(6, 6), angle, false, SweepDirection.Clockwise);
90-
y = height - 6;
90+
y = height + 0.25 - 5;
9191
ctx.LineTo(new Point(x, y));
92-
x += 6;
93-
y = height + 0.5;
94-
ctx.ArcTo(new Point(x, y), new Size(6.5, 6.5), angle, false, SweepDirection.CounterClockwise);
92+
x += 5;
93+
y = height + 0.25;
94+
ctx.ArcTo(new Point(x, y), new Size(5, 5), angle, false, SweepDirection.CounterClockwise);
9595
}
9696
else
9797
{
9898
x = LauncherTabsScroller.Bounds.Right;
9999
ctx.LineTo(new Point(x, y));
100-
y = height + 0.5;
100+
y = height + 0.25;
101101
ctx.LineTo(new Point(x, y));
102102
}
103103
}

0 commit comments

Comments
 (0)