Repository navigation
Toolbar: show or hide any tab; Sheet Metal is optional and appears in a design that uses it (#5717) - #5718
Closed
Karl-VonRichter wants to merge 4 commits into
Closed
Toolbar: show or hide any tab; Sheet Metal is optional and appears in a design that uses it (#5717)#5718Karl-VonRichter wants to merge 4 commits into
Karl-VonRichter wants to merge 4 commits into
Conversation
Karl-VonRichter
marked this pull request as ready for review
October 23, 2026 23:10
Karl-VonRichter
force-pushed
the
toolbar-optional-tabs-5717
branch
2 times, most recently
from
October 24, 2026 03:46
7818479 to
1c8438b
Compare
9 tasks
…a design that uses it (tangency-labs#5717) Sheet Metal becomes an optional toolbar tab, off by default. Each person turns it on by right-clicking a tab (or the toolbar's empty space) or in Settings > Interface > Toolbar tabs. The choice is the `toolbar_tabs` preference, also settable with `ui.prefs`. A design with a sheet-metal feature shows the tab whatever the setting, and it still selects itself for an active sheet body. workspace::OPTIONAL_TABS is the list that Weldments (tangency-labs#5262) joins. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…needed (tangency-labs#5717) - A small + sits after the last ribbon tab. It opens the toolbar's own menu (Toolbar tabs, Customize Toolbar…, Reset Toolbar) under it, shows pressed while that menu is open, and closes it on a second click. - It follows the tabs as optional ones are turned on. The Render workspace has no optional tabs and no +. - It reuses the accepted `plus` icon, as the new design tab and Pin to Toolbar do; the tooltip is the menu's "Toolbar tabs" heading. - Handle `ribbon:add_tab`; docs/ribbon-layout.md, docs/control-protocol.md and the Sheet Metal and UI tour guides mention it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…on by default (tangency-labs#5717) The toolbar menu (the + after the tabs, or right-click a tab) and Settings > Interface > Toolbar tabs now list every tab, not only the optional ones. Model, Surface, Assemble, Insert, Inspect, Manage and View show until the person hides them; Sheet Metal stays off by default and still appears in a design that uses it. - hidden_toolbar_tabs keeps the standard tabs hidden (what is hidden, not what shows, so a tab added later shows for everyone); toolbar_tabs keeps the optional tabs turned on. ui.prefs checks both, and reading a saved file keeps only known tabs, each once. - When the selected tab is hidden, Model is selected, or the first tab still shown. With every tab hidden the row keeps only the +, the ribbon says how to bring the tabs back, and the menu leaves out Customize Toolbar and Reset Toolbar. A sketch still brings its tab. - The menu rows and check boxes read like the tab row in every language; each row has the accepted icon of the command that leads its tab. - A click on the + no longer keeps keyboard focus, so S opens command search right after it. - New UI strings move to assets/locales/pending/toolbar-tabs.json (tangency-labs#6448) instead of the catalogs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Karl-VonRichter
force-pushed
the
toolbar-optional-tabs-5717
branch
from
October 26, 2026 06:56
1c8438b to
4042010
Compare
Collaborator
|
Thanks for the PR. I want the Sheet Metal tab to stay visible by default, so I'm closing this. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #5717.
Each person chooses which toolbar tabs they see. Any tab can be hidden, down to none at all, and the tabs shown today stay on by default. Sheet Metal becomes the first optional tab: off by default, and shown by itself in a design that uses it. #5262 (Weldments) adds its tab to the same list.
What changes
workspace::OPTIONAL_TABSlists them with the features of their kind. Sheet Metal is the only one now, and it is no longer in a fresh document's tab row.hidden_toolbar_tabs: the standard tabs hidden. It lists what is hidden, not what shows, so a tab added later shows for everyone.toolbar_tabs: the optional tabs turned on.ui.prefs, e.g.{"hidden_toolbar_tabs": ["SURFACE"]}. Each accepts only its own kind of tab, each once.disabled_pluginsalready does).docs/ribbon-layout.md,docs/control-protocol.md(ui.prefsandui.handles, includingribbon:add_tabandribbon:tabs_hidden), and the Sheet Metal and UI tour guides.assets/locales/pending/toolbar-tabs.json, instead of edits to the catalogs (Pending files for new UI strings and attribution rows #6448):ui.tab_assemble,ui.tab_manage,ui.tab_viewandui.tab_sheet_metal: those tabs' names exactly as the tab row draws them, in every catalog that translates them. They give the English menu rows a catalog entry; Model, Surface, Insert and Inspect already had one.extrude(Model › Create),surface_extrude(Surface › Create),joint(Assemble › Joints),import(Insert › Files),measure(Inspect › Measure),params(Manage › Parameters),camera(View › Views) andsheet(Sheet Metal, as before).plusicon, which the app already uses for adding things.Screenshots
Taken in the desktop app (ci profile, safe mode, so no saved settings were involved), driven through the control channel. Red boxes mark the detail.
To reproduce: start with default settings, then click the + after View (or right-click any tab) and untick tabs. For the sheet-metal part, draw a rectangle on XY and run
sheet.flange {}.1. A fresh design has no Sheet Metal tab. The row ends at View, then the +.
2. The menu lists every tab (here from a right-click on Model). The seven standard tabs are ticked; Sheet Metal is not, so it shows its icon. Customize Toolbar… and Reset Toolbar follow.
3. Untick Model: it leaves the row and Surface, the first tab left, is selected. In the + menu, Model is unticked and shows its icon.
4. Every tab hidden: only the + is left, and the ribbon says how to bring the tabs back.
5. The + menu with every tab hidden: every row unticked. With no tab to customise, there is no Customize Toolbar or Reset Toolbar.
6. Settings › Interface › Toolbar tabs offers the same choice, here with View hidden and Sheet Metal off.
7. Pick Sheet Metal: the tab joins the row after View, and the + moves along after it.
8–10. With Sheet Metal off, a sheet-metal feature brings it:
Tests
workspace::tests::standard_tabs_show_until_hidden_and_every_tab_can_be_hidden(new):ui.prefsvalidation, and the choice is kept throughprefs()/load_prefsworkspace::tests::optional_tabs_are_turned_on_by_the_person_or_shown_by_a_design_that_uses_them:prefs()/load_prefs;ui.prefsvalidationprefs::tests::a_value_this_version_does_not_understand_keeps_the_other_preferences: a hand-edited file's tab lists keep only known tabs, each once, including a list of 10,000 unknown names.Checks run locally (Windows)
Head 4042010, rebased onto
mainc831468.The rebases:
ui.handlesandui.prefsrows indocs/control-protocol.md. I merged them word by word, keeping bothmain's changes and this PR's.mainhad moved two commits; one changedcontext_menu.rs.The full run, on 348bbc1 with these changes (all except the last fix, the saved-list cleanup):
cargo fmt --checkcargo xtaskassets, lists, layers, ui-containers, i18n --check, icons and wasmcargo clippy --workspace --all-targets --profile ci -- -D warningssolidcraft-ui-eguiintegration test binary (21), including the 130 scenarios and the icon auditdocuments::tests::tab_tooltip_says_where_the_design_is_saved(Design tabs: the hover tooltip repeats the tab's name; show where the file is saved #5868, onmain). It expects~/Designs/bracket.solidcraft, and Windows joins the path with\.Run again after the last fix:
A local patch, not committed: on Windows,
crates/ui-egui/src/cli_link.rs(solidcraft-cli on PATH from the AppImage and the macOS app #6347, onmain) breaks two things:-D warnings:slotis unused off Unixstd::os::unix::fs::symlinkTo run clippy and the tests, I allowed the dead code and limited those tests to Unix in the working tree only.
The app: all screenshots come from this branch's ci-profile build. It quit cleanly with no crash reports.
Follow-up
OPTIONAL_TABSwith the frame-member feature kind, and Frames: a Weldments ribbon tab (#4003) #5262 drops its own unconditionaltabs.push("WELDMENTS"). Weldments then behaves like Sheet Metal: off by default, shown in a design that has a frame member.🤖 Generated with Claude Code