Commit Graph
17 Commits
Author SHA1 Message Date
aiongg 0f00de8bd2 Hold-to-compare: holding the Preview box shows the unfiltered picture
ParamDialogOutput::comparing is true while the Preview check box is on and held; the box toggles at the release,
so preview_on stays as it was while held. contract::pressed reads the held press from a component's response.
The ParamDialog preview stories swap to the unfiltered picture while comparing.
2026-11-12 14:32:40 +00:00
aiongg 863aedd7bd Dialog-local undo: FormDialog::history steps the dialog's own value
A FormDialog with history keeps an EditHistory of its value while it is open. Undo and Redo reach it through
Commands::take_step, after a focused text field's own steps. A change becomes a step once no gesture runs in
the body: runtime::edit::watch_gestures says whether a component's gesture ran inside the body call, counted
at the apply step. ParamDialog takes the history prop; the Contour editor and the ParamDialog stories turn it on.
2026-11-12 14:32:40 +00:00
aiongg 7c6c187a45 Read-only text is selectable and Tab passes over it; Properties values are selectable text
A read-only text stop takes focus from a press only (Stop::press_only), so the user can select and copy it
while Tab and F6 pass over it, as selectable labels did. PropertiesDialog shows its read-only values with
SelectableText. The suite reaches read-only text with a press where Tab passes over it.
2026-11-12 14:32:40 +00:00
aiongg 06d8d76868 Footer content reaches the dialog's body context; GuideLayout's Preview under the side buttons
FooterCx::dialog gives footer content the dialog's body context, as settle_buttons and
on_pick have it. FormDialog::footer_value edits the bound value from the footer, and New
Guide Layout's Preview check box uses it under the side buttons.
2026-11-12 14:32:40 +00:00
aiongg e4075062c5 GuideLayoutDialog: buttons in the side column 2026-11-12 14:32:40 +00:00
aiongg 91fec0031d Side button columns in the dialogs that had them (K16)
FindReplace, Hyperlink, Paragraph, Check Spelling, Marker, the Contour editor, ListManager
and ParamDialog with a preview put their buttons in the side column. FormDialog takes extra
footer buttons (ResetFooter::extra, ResetPick::Extra) in place of hand-made buttons in
footer_extra; ParamDialog's Preview check box sits under the buttons. FileListPicker's
buttons stand beside the list through Stack::footer_beside, one width.
2026-11-12 14:32:40 +00:00
aiongg ce8a6d6216 Preview zoom row: a typed zoom field between the zoom buttons
PreviewZoom shows the zoom as a percent field; a typed value applies at once through PreviewView::zoomed_to, kept inside the view's zoom range. The parameter dialogs' preview row and Save for Web share it.
2026-11-12 14:32:40 +00:00
aiongg c427e539c3 Bars: rules between groups, faint hints and the options bar's Home and tool icon
A Divider::vertical() is the bar's one section break: the connector,
shape and eyedropper bars, the about dialog's controls and the status
story place it where the old bars did. Hints use the faint shade.
BarHome and BarTool are the parts an options bar starts with. A
captioned control in a bar is a Field; BarCell goes.
2026-11-12 14:32:40 +00:00
aiongg 3f63b71b3a Collection keys: a command palette's arrows wrap at the ends
CollectionProps::arrows_wrap passes the navigation's wrap to the item step's moves; the
command palette's list turns it on.
2026-11-12 14:32:40 +00:00
aiongg 3ad4bdd55c Collection keys: arrows move the focus in tab strips and preset browsers
Where a collection's arrows leave the selection (arrows_select off), Enter selects the
lead before it activates it, as the setting promised. The tab strip and the preset
browser's list and grid turn arrows_select off: the arrows move the focus, and Space,
Enter or a click shows the tab or picks the preset.
2026-11-12 14:32:40 +00:00
aiongg 8b2e44fa98 State looks: one state layer, check indicator press and well, dropdown and field edges
- StyleCx::state_layer is the one hover and press fill; PartBuilder::state_layer declares a part whose look it is,
  and the paint step fills such parts under the component's paint (Rating stars, Breadcrumb crumbs, the reset dot).
  Button's local overlay goes.
- The paint step's surface shapes move into one function, which Draw::surface_look also paints for a part.
- Check box, radio and switch draw their well on the sunken surface (the bevel in bevelled themes), take the press
  fill while pressed and the accent's pressed shade while on and pressed.
- StyleCx::dropdown: the closed box of Select, TreePicker, PresetPicker and the stroke button takes the hover fill
  under the pointer and while open.
- A focused invalid field keeps its focus edge and draws the failure colour as a line inside it (SurfaceLook::inner).
- The selected segment keeps hover and press looks; the disclosure glyph lights under the pointer; the EdgePicker's
  hovered line widens in its own colour; the chip body wears an outline badge, so it takes the hover fill.
- SurfaceLook::kind_on: the kind a look takes while on.
2026-11-12 14:32:39 +00:00
aiongg 353579afd3 Docking: a new float opens at a height fitted to its content
A panel or group floated out of the dock opens at its docked width and at
the height its group measures at in a floating window's room, at most
size.float.height. Content that fills its body opens at that height.

- Proposal::Size measures a component as it is shown at a rect of that
  size, with no share of the parent body's room.
- drag::amend lets a host change a drag's payload in the frame the drag
  started. The dock area measures the dragged panel there and puts the
  size on PanelDrag::source / GroupDrag::source. The Float command and a
  tab torn out of the window measure where they run.
- DockGroupOutput::drag_started also reports tab drags.
- FloatSpace::size_of caps a panel's, group's or column's height at the
  default float height. FloatSpace::record and its contents are gone.
2026-11-12 14:32:39 +00:00
aiongg 52cc593d40 Native windows: one writer of a window's place at a time
A viewport window's builder carried its caller's rect every pass, and egui sent
each change of it to the window. The caller's rect follows the window's own
reports a pass late (the dock model records the OS place, a saved window reads
its store), so every OS move or resize came back as a command of the place one
pass old. While AppKit moved or live-resized a window the two writers set it to
two places in turn, without end: the title-row drag jittered, and a live resize
stretched the content with black edges.

- The builder carries the place only until the window opens.
- Each window keeps its known place: what its own pass last saw, or what act
  last commanded. A caller's place goes out only where it differs from the
  known place, never while a move gesture runs or the window is minimized,
  maximized or full screen. Placements are recorded from the known place.
- A dock window is fitted to the monitors when it opens; an open one stays at
  the placement the model recorded.
- The windows fixture sends a child the changes of its builder as commands,
  as eframe does, so trials see what an integration would send.
2026-11-12 14:32:39 +00:00
aiongg 97d56c2964 Floats open at their docked size, and the floating drag bar shows no title
A native float's OS window opens at its placed rect; the measured size applies
only to a window sized by its content. A tab, group or window drag carries the
size it left where it started, and a float command the size of the group it
runs from: the float takes it (with the drag bar above), after a panel's own
float size and before the default. FloatSpace's never-filled group and column
records go.

A floating window's drag bar carries no title: the tabs below name the panels.
2026-11-12 14:32:39 +00:00
aiongg 0799bc7588 Open floating dock windows as OS windows where the host reports window positions
DockConfig::native_windows is on by default. A float opens native where the
window host opens OS windows and reports their positions (ShellInfo::window_positions,
WindowHost::positions_reported: not on Wayland); a float never shown native opens
over its place in the main window. AppSpec::new takes the backend winit opens on.

The OS close of a native float is its Close action, taken when every panel in the
window may close; the group's open state belongs to the dock model. The gallery's
mock editor keeps its floats inside its preview.
2026-11-12 14:32:39 +00:00
aiongg 6d5ba693f7 Doc comments: drop DebugInspector and DragBadge, which no crate defines 2026-11-12 14:32:38 +00:00
aiongg a2676b8eac Framework UI crates: widgets, panels, canvas, patterns, shell and the craft-ui facade 2026-11-12 14:09:32 +00:00