Skip to content

Commit d42666d

Browse files
committed
fix(desktop): round the dev tray marker
1 parent 3795a89 commit d42666d

1 file changed

Lines changed: 14 additions & 8 deletions

File tree

apps/desktop/src/main/tray.ts

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -79,19 +79,25 @@ function traySubscriptSegments(marker: TrayEnvironmentMarker): GlyphSegment[] {
7979
]
8080
}
8181
if (marker === 'D') {
82-
const curve = Array.from({ length: 17 }, (_, index) => {
83-
const angle = -Math.PI / 2 + (Math.PI * index) / 16
84-
return {
85-
x: 0.65 + Math.cos(angle) * 3.75,
86-
y: 3.5 + Math.sin(angle) * 2.95,
87-
}
88-
})
8982
return [
9083
[
9184
{ x: 0.65, y: 0.55 },
9285
{ x: 0.65, y: 6.45 },
9386
],
94-
...segmentsFromPoints(curve),
87+
...cubicBezier(
88+
{ x: 0.65, y: 0.55 },
89+
{ x: 3.15, y: 0.55 },
90+
{ x: 4.4, y: 1.55 },
91+
{ x: 4.4, y: 3.5 },
92+
12
93+
),
94+
...cubicBezier(
95+
{ x: 4.4, y: 3.5 },
96+
{ x: 4.4, y: 5.45 },
97+
{ x: 3.15, y: 6.45 },
98+
{ x: 0.65, y: 6.45 },
99+
12
100+
),
95101
]
96102
}
97103
return [

0 commit comments

Comments
 (0)