Skip to content

feat(ui): add accordion menus

Description

These changes add the possibility to create accordion menus in tool bars by enclosing buttons in the <accordion> tag. The toolbar in SightViewer was modified so that extrusion-related buttons are shown only if the extruder is activated and distance-related buttons are shown only if the distance mode is activated. The extrusion and distance mode are mutually exclusive, if buttons related to extrusion are shown, buttons related to distance are hidden, and vice versa.

Different versions are available in this thread: !955 (comment 246202).

Closes #1099 (closed)

How to test it?

Launch SightViewer and test the accordion menu.

Some results

2023-06-08_13-30-54

The extrusion and distance accordion menus in action in SightViewer.

Edited by Lucas SCHMIDT

Merge request reports