mirror of
https://github.com/bherbruck/solidcraft.git
synced 2026-11-22 00:20:58 +00:00
7.8 KiB
7.8 KiB
Layout
Board: Prefs2_Layout (1920x1750). Heading: Look. Subtitle "Where the parts of the window sit."
Tag: In profile. Reference for the navigation-bar editor's interaction states: Navbar_Settings.
Source today: Interface page (prefs/interface.rs, prefs/navbar.rs).
Window
| Label | Control | Edits | Default | Hover | Figure | Notes |
|---|---|---|---|---|---|---|
| Workspace | Segmented: Floating / Compact | Prefs.layout (shell::LayoutMode: Floating, and Docked serialised as compact) |
Floating | none | layout-schematic |
Today's labels are Floating and Docked; the board says Compact (the serialised name is compact). |
| Toolbar | Segmented: Labels / Icons only | Prefs.ribbon_labels |
true (Labels) |
none | none | |
| Menus | Segmented: List / Large icons | Prefs.ribbon_icon_grid |
false (List) |
none | none | |
| Notices | Segmented: Bottom right / Bottom centre | Prefs.toast_place (ToastPlace; Corner = Bottom right) |
Corner (Bottom right) | none | none | |
| Status bar | Checkbox | Prefs.status_bar |
false |
"What is being edited, the sketch state and units." | none | |
| Layout preview | Schematic (262 wide) of the window, showing the choices above | none | n/a | none | layout-schematic |
Reflects the Workspace choice and the History, Browser and Dialog choices below. |
Panels
History
| Label | Control | Edits | Default | Hover | Figure | Notes |
|---|---|---|---|---|---|---|
| History: Bottom / Left / Under browser / In browser | Four picture cards (116 wide) | Prefs.timeline_left, Prefs.timeline_under_browser, Prefs.history_in_browser (three booleans; Bottom is all off) |
Bottom | none | history-bottom, history-left, history-under-browser, history-in-browser |
One choice maps to the three booleans; keep them mutually consistent as today's page does. |
Browser
| Label | Control | Edits | Default | Hover | Figure | Notes |
|---|---|---|---|---|---|---|
| Browser: Column / Card | Two picture cards | Prefs.browser_float (Card = floating) |
Column (false) |
none | browser-column, browser-card |
|
| Shown | Segmented: Shown / On hover | Prefs.browser_show (browser::BrowserShow) |
Shown | none | none | |
| Sketches in History | Segmented: In order / Under feature | Prefs.history_sketches (HistorySketches) |
In order | none | none | |
| Bodies folders | Segmented: Always / Several / Never | Prefs.browser_bodies_folders (BodiesFolders) |
Several | none | none | |
| Play History button | Checkbox | Prefs.history_play_button |
true |
none | none | |
| Folder icon from its features | Checkbox | Prefs.history_folder_kind_icon |
false |
"A folder whose features are all of one kind shows their icon." | none | |
| Origin and bodies on top | Checkbox | Prefs.timeline_origin_bodies |
false |
"Vertical history only." | none | |
| Eye beside the fold arrow | Checkbox | Prefs.browser_eye_left |
false |
none | none |
Dialogs
| Label | Control | Edits | Default | Hover | Figure | Notes |
|---|---|---|---|---|---|---|
| Open | Segmented: At the view's edge / In the left column | Prefs.dialog_place (dialog_column::DialogPlace: Edge, LeftColumn) |
Edge | none | none | |
| OK and Cancel | Segmented: Bottom / Top | Prefs.dialog_buttons (ui_kit::DialogButtons) |
Bottom | none | none | |
| Also in the view's corner | Checkbox | Prefs.view_confirm_corner |
false |
"While a dialog or sketch is open." | none |
Toolbar tabs
| Label | Control | Edits | Default | Hover | Figure | Notes |
|---|---|---|---|---|---|---|
| Model, Surface, Mesh, Form, Sheet Metal, Render | Six tab chips, each with a show/hide toggle | Prefs.hidden_toolbar_tabs (list of hidden tab ids) |
none hidden | none | none | |
| Keep the Sketch tab shown | Checkbox | Prefs.sketch_tab_always |
false |
none | none | |
| Highlight active commands | Checkbox | Prefs.persistent_ribbon_pressed |
true |
none | none | |
| Show search results in the ribbon | Checkbox | Prefs.ribbon_reveal |
false |
none | none | Verify the field: ribbon_reveal is the only ribbon search field in the table. |
| Pinned commands out of menus | Checkbox | Prefs.ribbon_menus_skip_pinned |
false |
none | none |
Design tabs
Board: Tabs_Menus, "Preferences · Layout · Design tabs". Source: prefs/interface.rs, read through design_tab_prefs::DesignTabPrefs.
| Label | Control | Edits | Default | Hover | Figure | Notes |
|---|---|---|---|---|---|---|
| Views of a design | Segmented: Show views as tabs / Show one tab with a view switcher | Prefs.design_views_as_tabs |
true (tabs) |
"Each view is a tab inside its design's tab, falling back to the switcher when the bar is too narrow." | none | |
| Open drawing sheets in a sub-tab | Checkbox | Prefs.design_sub_tab_sheets |
true |
none | none | |
| Open sketches in a sub-tab | Checkbox | Prefs.design_sub_tab_sketches |
true |
"Editing a sketch opens it as its own view; Finish Sketch returns to the previous one." | none | |
| Open Render and Animate in a sub-tab | Checkbox | Prefs.design_sub_tab_render |
true |
none | none | One setting for both workspaces. |
| Reuse a view of the same sheet, sketch or workspace | Checkbox | Prefs.design_reuse_views |
true |
"Opening it again shows the view you already have." | none | |
| Reopen a design's views next time it opens | Checkbox | Prefs.design_reopen_views |
false |
none | none |
Navigation bar
Source: Prefs.navigation_bar (navigation_bar::NavigationBar) and app.ui.show_navigation_bar.
The interaction states (drag onto the bar, drop targets, reorder) stay as in Navbar_Settings.
| Label | Control | Edits | Default | Hover | Figure | Notes |
|---|---|---|---|---|---|---|
| Preview as | Tabs: Design / Render | previews the shared bar as Design or Render | Design | none | none | Preview modes use the Design or Render capabilities; edits affect the one shared bar in both workspaces. |
| Show navigation bar | Checkbox | app.ui.show_navigation_bar (session; in the Snapshot) |
per session | none | none | |
| Reset to default | Button | resets navigation_bar |
n/a | none | none | |
| When idle | Segmented: Always visible / Fade / Hide until hovered | navigation_bar.idle (Idle: Always, Fade, Hide) |
Fade | none | none | Directly below the header containing Show navigation bar, before the preview strip. Fade dims the bar; Hide until hovered hides it until the pointer is over it. |
| Preview strip | The bar drawn as it will look, with the slots in order | navigation_bar.slots (plus slot_options) |
orbit, pan, zoom, separator, fit, look_at, home, separator, visual_style, display | none | none | Slot icons on the board are stand-ins; use the app's icons. |
| 10 of 16 slots | Count text | none | n/a | none | none | Sample numbers; the count is slots on the bar of all available slots. |
| Available | Row of slot chips, e.g. Faces and edges, Spin, Projection, Ground shadow, Ambient occlusion | none (drag source) | n/a | "Drag onto the bar" on each chip and on the label | none | Slot names and icons are sample content. |
| Position | Segmented: Left / Centre / Right | navigation_bar.position (Position) |
Centre | none | none | |
| Edge | Segmented: Bottom / Top | navigation_bar.edge (Edge) |
Bottom | none | none | |
| Size | Segmented: Compact / Regular | navigation_bar.size (Size) |
Regular | none | none | |
| Buttons | Segmented: Icons / Icons + labels | navigation_bar.labels (Labels) |
Icons (Labels::Icons) |
none | none |
Mismatches
- The board implies per-workspace navigation bars; the app stores one shared slot list. Design/Render only changes its preview.
- "Compact" on the board is
LayoutMode::Docked(serialisedcompact) in the code. - The History choice is three booleans in the code, one card group on the board.
- The status chips ("Analysis", "Section", "Live details", "Fold items") are not on this page; they are on Graphics under "In the view".