A shared UI crate for both applications#
Status: built for the look, the notices and messages, the long tables, the artwork's drawing and the glyph test (2026-11-07), in active development, not approved yet. The hotbar's drawing and the check footer are still to come.
OHL-Design (crates/ohl-app) and OHL-Structure
(apps/structure/ohl-structure-app) use one copy of the same look and widgets,
crates/ohl-ui, so a fix in one reaches the other.
What is in it#
| Module | What | What each application keeps |
|---|---|---|
style |
Text sizes, solid scroll bars, value fields unlike buttons, the UI scale list and menu, sentence case and unit headers | Its storage key; OHL-Structure its 22 pt rows and right-aligned value fields (field, num, num_label) |
link_question |
The question when an attachment point is linked to a joint it is not on (2026-11-16): its sentence with the distance, and the two choices — onto the joint (the default) or its position kept at an offset | Its window around it (title, (?) help, buttons); OHL-Design's Move attachment point adds this structure or the type |
messages |
message, error_label, ok_color: long texts scroll in a box of fixed height |
|
notices |
Notices that fade, errors that stay | How often the window is drawn while one fades in its tests; OHL-Design the short sentences it makes of an edit's message (plain) |
rows |
Long tables, only the rows in view | |
icons |
SVG files rasterised and kept as textures, the OpenOHL mark | Its own tools or actions and its application icon |
glyphs |
The helpers of the glyph test | Its test, on its own source files; ohl-ui tests its own texts |
navigation |
The mouse of the navigation schemes (2026-11-12): Drag, Mouse (ORBIT, CAD: the drag of each button, Shift + middle apart, turning and zooming about the cursor, double middle-click fits), held in the egui context for the 2D and Detail views; Scheme (Orbit, CAD) with its menu and storage |
OHL-Design its Controls (keys, first person, speed) around a Mouse; each its storage key |
snap_marker |
The snap marker (2026-11-12): its colour and size, the painter, the settings (shown, snap distance) held in the egui context, their View-menu entries and storage, the per-view Hover that finds the point again only when the pointer or the view changed |
Its storage key prefix; each view finds the point with its own click search |
tool_window |
The tool windows' shape (2026-11-14, Tool pages): the top sentence with its (?) and User guide button, a label or heading with a visible (?), the button row (action first, Cancel last), a heading's anchor as the book makes it | Each opens its own manual (the closure given to intro); OHL-Design's tools by theme page, OHL-Structure's one tools page |
The two applications differed in three small ways, now one (2026-11-07): the
box long errors scroll in is 160 points high in both (OHL-Structure's was 120),
OHL-Structure's UI scale is stored as plain text as OHL-Design's (values kept
before are still read), and Table::header writes sentence case in both.
What is left#
- The hotbar drawing (slots, inventory grid, drag and drop) with the
tools as a trait each application implements:
tools.rsin each still has its own copy, the drawing alike, the tools different. - The check footer (Run/Stop, progress), when OHL-Structure gets windows
that run:
check_help.rsin OHL-Design until then.
The separation rule#
ohl-ui depends on eframe/egui, resvg (for the SVG files) and log only:
no model, no engine, no format crate. It never depends on an apps/structure
crate (core crates do not) and never on ohl-app. It was added to what
ohl-structure-app may use on 2026-11-07
(Structure application crates).