Commit Graph
43 Commits
Author SHA1 Message Date
aiongg c7362a6790 TabStrip wheel_selects: the wheel over the strip steps the shown tab by the collection's wheel notch; a collection that senses the wheel registers in the item step with its notch; DockConfig::wheel_selects_tabs passes it to dock groups 2026-11-12 14:32:45 +00:00
aiongg 2ff07c7258 JPEG Options drops the Format Options section line: the format radio row titles itself 2026-11-12 14:32:45 +00:00
aiongg 1d1f2f2ce1 The colour row shows a swatch of the custom colour beside the list while one is chosen, and a click on it asks the host's picker at that colour, as picking Custom… does 2026-11-12 14:32:45 +00:00
aiongg 6d9381f411 A parameter radio row is its own section titled by the parameter, so its name shows once; Targa drops the section that repeated it 2026-11-12 14:32:45 +00:00
aiongg 84639de189 A disabled component that shows data paints its enabled look faded
Component::DISABLED picks how a disabled instance looks: the style's Disabled
state (DisabledLook::States, the default for chrome controls) or its enabled
look at Opacity::DISABLED (DisabledLook::Faded). Step 13 fades the surface,
part layers, paint, faces and paint_over of a faded component; its children
and step 14 paint outside the fade and show their own disabled look. egui
fades a shape as it is added, so a settled region replays the faded paint.

Tile, RowThumb, Swatch, PointPicker, Navigator, PreviewPane, ColorStrip,
ColorArea, PaintChip, PagePicture, PagePictures, ReadingView and DrawPad
declare Faded. The tile's disabled veil and the Disabled entries of the tile
and swatch looks go. Opacity::DISABLED is 0.5, the old disabled fade and the
old knob's disabled share.
2026-11-12 14:32:44 +00:00
aiongg 0897874266 Every component takes one sizing setter: a leaf with Sizing::Content is as wide as its content, without its style's ideal width, and the selects the old gallery fitted to their entries are content-sized 2026-11-12 14:32:44 +00:00
aiongg e97d392892 OutputPathRow: the file name is a link; a click asks for the file dialog, Alt-click edits the template in place (comp2:64)
ButtonOutput carries the modifiers held at the activation (Activation::mods), and Link reports a ButtonOutput, so a
caller reads a modified click from the framework's signal.
2026-11-12 14:32:44 +00:00
aiongg 6901310103 AboutDialog: Contributors has a View control, Grab bag by default, whose names are links to the profiles (pat2:31, 32) 2026-11-12 14:32:44 +00:00
aiongg b7a9d56b49 NewDocumentDialog: each saved preset row has a Delete button (pat2:18) 2026-11-12 14:32:44 +00:00
aiongg 269d59a358 JPEG options: the quality field and preset list on one line with the slider under them, the encoding as a radio group (pat2:54, 55)
The quality row is a full-width custom row, so the slider starts at the form's start edge as the old one did. A
dialog confirmed without a quality edit answers the quality it opened with.
2026-11-12 14:32:44 +00:00
aiongg e4193b33fd PasswordDialog: the reveal button shows the crossed-out eye while the password shows (pat2:34) 2026-11-12 14:32:44 +00:00
aiongg 93950a1ddd Brush preset field: the current size under the tip, through a caption under SelectFace's thumbnail and PresetPicker's caption (ctl:76) 2026-11-12 14:32:44 +00:00
aiongg bd6fbd2b54 A picture in a column sized from its content measures at its least width
picture_width took the column's room where the measure offered none. A measuring run in a content column offers no
room so that nothing there fills it; the picture took the room anyway, and a dialog sized from its content with a
preview (Export As, a parameter dialog) took its whole share of the window, or more. The picture now takes the room it
is offered and its least width where it is offered none; the real run shows it across the width the column settles on.
2026-11-12 14:32:42 +00:00
aiongg 05d5603a45 Preferences opens at 1040 x 800 and resizes down to 560 x 400, as the old window
DEFAULT_SIZE and MIN_SIZE are pattern constants again, given to the dialog's overlay. An OS viewport whose resizable
fallback has a default size opens at it, as the layer does, unless the caller placed it.
2026-11-12 14:32:42 +00:00
aiongg d1a90a2447 Toggles open on the press by default: menu and dropdown openers (split button arrow, breadcrumb ellipsis, number field chevrons, bar overflow, panel menu) let press, drag, release pick a row; on_click keeps the release for the iconic flyout and the date calendar 2026-11-12 14:32:41 +00:00
aiongg 4d6ff42eb7 Selection parts: read-only text any component can make selectable
PartsCx::selectable_text declares a run as a selection part with a press-only
stop in no group; step 8b gives the focused one Select All and Copy; and
PaintUi::selectable_text shows it through the text widget with the run's own
galley, in the state's colours. Notice title and message, MetadataTable values
(ListRow::cell_selectable) and SelectableText use it. SelectableText loses its
Bind and Input::Text path and becomes a label whose value is its text. The
suite presses the focus registration's press-only stops when Tab reaches
nothing, instead of guessing from Input::Text and a read-only node.
2026-11-12 14:32:41 +00:00
aiongg 05080d1f80 fmt 2026-11-12 14:32:41 +00:00
aiongg 81c22f3469 Old modality: Tour and ViewportWindow block nothing, Preferences is app-modal, a tool window ignores Escape (K17, D10)
The tour card is a popup that blocks and dims nothing and stays on an outside press; Backdrop::ScrimWithHole and the
cover layer's hole go with it. ViewportWindow blocks nothing until app_modal(backdrop). A modeless Dialog without a
footer ignores Escape; a modal one or one with a footer closes on it. PreferencesWindow drops modeless and takes the
shared app-modal path (blocked cursor, refused close).
2026-11-12 14:32:41 +00:00
aiongg dba0f0d3fa Dialog focus: the first field on open, the new tab stop after Set, the password field after reveal (K17)
A dialog opens on its first text or number field, else its default button, else nothing (Initial::FirstField, the
DIALOG policy's default). The per-dialog first-pass focus requests in Markers, Slice options and Page Setup go: the rule
gives the same field. focus::request reports whether it took effect, so a pending request outlives a measuring run.
2026-11-12 14:32:41 +00:00
aiongg 152a5b19d6 Container header parts: a container keeps room at its header's edges for its own parts, whose stops sit where they do; DockGroup's drag band and panel menu button are its parts, its tabs and host items share one line, and TabStrip reports a drag or double click on its empty room 2026-11-12 14:32:41 +00:00
aiongg 8c3715256c Pictures take the width they are given
`MeasureCx::picture_width`: a picture takes its column's room, between its
least and its most, and its least at `Proposal::Min`. CurveGraph's own rule
moves onto it. Band pictures (the point picker and the colour area, the
histogram, the vectorscope, the navigator preview, the preview pane, the
reading view) take the width at least `size.plot.width` and keep their
height; the colour wheel and disc are squares between `size.plot.height`
and `size.plot.width`.

ColorWheel, ScopePanel's plots and the ColorPicker area fill the card's
width as the old ones did.
2026-11-12 14:32:41 +00:00
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 ed0307bc1e Trial: a settled dock runs no closed menu and the same runs per group 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 264ad8cc53 Native windows: the macOS title-row move starts on the press
The tracked macOS move sent StartMove a pass after the pointer passed the
click distance. winit hands performWindowDragWithEvent the event AppKit is
handling when the command runs, and in that later pass it is often not the
press, or none, so the drag took only some of the time.

- StartMove goes out in the band's Down pass where the OS tracks moves. The
  move is reported (Begin, Update, Commit) once the system pointer has passed
  the click distance; a click on the row moves and docks nothing.
- A window whose move the app runs keeps AppKit's own movable flag: the band
  writes nothing for it and the end hook leaves it alone. AppKit moves such a
  window for the hand-off and resizes it from its edges only while it is
  movable.
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 c19abe8663 Dock a native window by dragging its title row
A floating dock group in its own OS window now moves through a window move
gesture the app runs, which reports Begin, Update, Commit and Cancel like a
layer's move, so the dock marks the target under the pointer and docks the
whole window on release.

- macOS (Caps::OS_MOVES_TRACKED): the OS moves the window (StartMove), and the
  app follows the system pointer, button and Cmd through SystemWindows, the
  running platform's WindowSystem in craft-window. The hand-off ends when the
  system reports the button up.
- X11 and Windows: the app moves the window with SetOuterPosition so the
  pressed point stays under the pointer; Escape puts it back.
- A drag started by a container shown in its own OS window follows that
  window's pointer, not its parent's.
- The runtime's end hook sets NSWindow.movable for every window; a window
  whose move the app runs is never moved by AppKit from its band.
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 31948854ad A native dock window's own title row is its only title bar
A tool window's frame comes from policy::tool_frame, whatever frame the main
window has: Inset with the traffic lights hidden on macOS, undecorated with no
caption buttons elsewhere. The installed decision applies to the other kinds.
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 47d26b9813 Keep layer and window mounts out of their parent's fill share
A container on a layer, a full-window layer or an OS window takes no room in
its parent's flow, but step 5 sized it in the parent's Ui and counted it among
the children that share a Stack or Row body's room. A dock area's floating
window was a second fill child of the dock root, so the docked tree took half
the window's height.
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