From ef4c606ed18cae42d7dcb4c93eef12ed0d35475c Mon Sep 17 00:00:00 2001 From: Frank Noirot Date: Fri, 28 Mar 2025 12:42:31 -0400 Subject: [PATCH] Update sweep-related icons to be less detailed, show result (#6047) * WIP trying out various icons * Update to use outcome bodies for icons --- src/components/CustomIcon.tsx | 8 +++---- src/lib/toolbar.ts | 42 +++++++++++++++++------------------ 2 files changed, 25 insertions(+), 25 deletions(-) diff --git a/src/components/CustomIcon.tsx b/src/components/CustomIcon.tsx index bd4edfa3b..b3179c9bf 100644 --- a/src/components/CustomIcon.tsx +++ b/src/components/CustomIcon.tsx @@ -387,7 +387,7 @@ const CustomIconMap = { @@ -732,7 +732,7 @@ const CustomIconMap = { @@ -1048,7 +1048,7 @@ const CustomIconMap = { @@ -1148,7 +1148,7 @@ const CustomIconMap = { diff --git a/src/lib/toolbar.ts b/src/lib/toolbar.ts index 7bff968f1..b1cc024ab 100644 --- a/src/lib/toolbar.ts +++ b/src/lib/toolbar.ts @@ -101,27 +101,6 @@ export const toolbarConfig: Record = { description: 'Pull a sketch into 3D along its normal or perpendicular.', links: [{ label: 'KCL docs', url: 'https://zoo.dev/docs/kcl/extrude' }], }, - { - id: 'revolve', - onClick: () => - commandBarActor.send({ - type: 'Find and select command', - data: { name: 'Revolve', groupId: 'modeling' }, - }), - icon: 'revolve', - status: 'available', - title: 'Revolve', - hotkey: 'R', - description: - 'Create a 3D body by rotating a sketch region about an axis.', - links: [ - { label: 'KCL docs', url: 'https://zoo.dev/docs/kcl/revolve' }, - { - label: 'KCL example', - url: 'https://zoo.dev/docs/kcl-samples/ball-bearing', - }, - ], - }, { id: 'sweep', onClick: () => @@ -162,6 +141,27 @@ export const toolbarConfig: Record = { }, ], }, + { + id: 'revolve', + onClick: () => + commandBarActor.send({ + type: 'Find and select command', + data: { name: 'Revolve', groupId: 'modeling' }, + }), + icon: 'revolve', + status: 'available', + title: 'Revolve', + hotkey: 'R', + description: + 'Create a 3D body by rotating a sketch region about an axis.', + links: [ + { label: 'KCL docs', url: 'https://zoo.dev/docs/kcl/revolve' }, + { + label: 'KCL example', + url: 'https://zoo.dev/docs/kcl-samples/ball-bearing', + }, + ], + }, 'break', { id: 'fillet3d',