feat(ui): add measured level buttons and suspend modal hosts during scene editing
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
# LevelButton
|
||||
|
||||
Measured resource level inside the standard pill Button. Initial consumer: Mission
|
||||
Core battery state in the observatory header. Width is 2.5 canonical controls;
|
||||
height, focus, keyboard, disabled and hover grammar remain Button-owned.
|
||||
|
||||
`value` is a fraction in [0,1]; unknown/NaN has no fill and displays an em dash.
|
||||
`valueText` supplies the visible value; `label` names the resource. `freshness`
|
||||
is live, stale or unknown. Stale retains the reading, neutralises fill and adds
|
||||
accessible last-reading text. No animation, no fabricated progress, no nested
|
||||
interactive elements. `levelTone` uses semantic tokens, never a local palette.
|
||||
|
||||
Click opens domain details supplied by the consumer. The consumer decides which
|
||||
physical resource is selected; it must not average unrelated batteries or treat
|
||||
a stale number as fresh. Catalog includes normal, stale and unavailable states.
|
||||
|
||||
An explicit operator-selected `fillColor` (#RRGGBB) overrides semantic tint.
|
||||
The measured fraction clips a solid fill and a second, aria-hidden copy of its
|
||||
label. WCAG luminance chooses black/white text independently over the filled
|
||||
part, while the unfilled part keeps the normal theme text. Unknown has no fill;
|
||||
stale retains the chosen colour and its accessible stale label. Colour-range
|
||||
configuration belongs to the domain profile, not the visual component.
|
||||
@@ -151,3 +151,8 @@ Turning the free mode off returns the same contents to the normal centered size
|
||||
Drag a tool header to any of four outer edges to create a full-side area; drop over another tool to split beside it. Drop in the primary center to detach. An exact destination preview is shown only during placement. A 24 px outer zone wins over panel targets; broader magnets reach 160 px horizontally / 96 px vertically, capped at 16% of the workspace. The center of a tool chooses its nearest side, never swaps it with the primary. Split minima protect content; small viewports scroll the bounded layout. Invisible floating edges resize, and only the cursor changes.
|
||||
|
||||
Header Enter/Space begins keyboard docking, arrows choose an edge, Shift+arrows choose the whole workspace, Tab selects a tool, Home selects floating, Enter commits and Escape cancels. Floating headers also accept arrows to move and Shift+arrows to resize. Pointer cancellation and Escape restore the uncommitted layout. Automatic viewport fitting does not overwrite stored rectangles. The living catalog includes the same workspace with a fixed scene, outliner and material palette.
|
||||
|
||||
When an EditorWorkspace detaches from a Window, the owning overlay is suspended
|
||||
without unmounting its children. Its backdrop and focus trap are inactive until
|
||||
the editor returns. Escape/Tab belong to the focused dialog, so nested settings
|
||||
close without also closing the battery/detail window.
|
||||
|
||||
Reference in New Issue
Block a user