Skip to content

Commit 0aff0ce

Browse files
Reorder toolbar icons (#522)
* Reorder toolbar icons * Update Playwright Snapshots --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent cdc9d11 commit 0aff0ce

File tree

2 files changed

+19
-18
lines changed

2 files changed

+19
-18
lines changed

packages/base/src/toolbar/widget.tsx

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -169,59 +169,60 @@ export class ToolbarWidget extends ReactiveToolbar {
169169

170170
// View helpers
171171
this.addItem(
172-
'Axes Helper',
172+
'Exploded View',
173173
new CommandToolbarButton({
174-
id: CommandIDs.updateAxes,
174+
id: CommandIDs.updateExplodedView,
175175
label: '',
176176
commands: options.commands
177177
})
178178
);
179179
this.addItem(
180-
'Exploded View',
180+
'Clip View',
181181
new CommandToolbarButton({
182-
id: CommandIDs.updateExplodedView,
182+
id: CommandIDs.updateClipView,
183183
label: '',
184184
commands: options.commands
185185
})
186186
);
187187
this.addItem(
188-
'Camera Settings',
188+
'Toggle Wireframe',
189189
new CommandToolbarButton({
190-
id: CommandIDs.updateCameraSettings,
190+
id: CommandIDs.wireframe,
191191
label: '',
192192
commands: options.commands
193193
})
194194
);
195+
this.addItem('separator6', new Separator());
196+
195197
this.addItem(
196-
'Clip View',
198+
'Axes Helper',
197199
new CommandToolbarButton({
198-
id: CommandIDs.updateClipView,
200+
id: CommandIDs.updateAxes,
199201
label: '',
200202
commands: options.commands
201203
})
202204
);
203-
204-
this.addItem('separator6', new Separator());
205205
this.addItem(
206-
'Toggle console',
206+
'Camera Settings',
207207
new CommandToolbarButton({
208-
id: CommandIDs.toggleConsole,
209-
commands: options.commands,
208+
id: CommandIDs.updateCameraSettings,
210209
label: '',
211-
icon: terminalIcon
210+
commands: options.commands
212211
})
213212
);
213+
this.addItem('separator7', new Separator());
214214

215215
this.addItem(
216-
'Toggle Wireframe',
216+
'Toggle console',
217217
new CommandToolbarButton({
218-
id: CommandIDs.wireframe,
218+
id: CommandIDs.toggleConsole,
219+
commands: options.commands,
219220
label: '',
220-
commands: options.commands
221+
icon: terminalIcon
221222
})
222223
);
223224

224-
this.addItem('separator7', new Separator());
225+
this.addItem('separator8', new Separator());
225226
(options.externalCommands ?? []).forEach(cmd => {
226227
this.addItem(
227228
cmd.name,
789 Bytes
Loading

0 commit comments

Comments
 (0)