Commit Graph
52 Commits
Author SHA1 Message Date
aiongg 1362d47fe4 Label scheme: a container sets Form or Inspector rows for the labels under it
LabelScheme decides where a beside label sits (against its control or at
the row's start), whether it ends with a colon (and, in a bar, a glyph
caption too) and whether its control fills the rest of the row. It is set
with ContainerProps::labels and replaces the per-label LabelAlign.
Inspector is set on the old inspectors: ShapePanel, ArtboardProperties,
TableProperties, the colour picker's and gradient editor's fields and the
Inspector pattern, and on the TextField, NumberField and Select stories;
a Field story shows inspector rows.
2026-11-12 14:32:48 +00:00
aiongg ae4b9748f1 NewDocumentDialog: the preset grid asks for three card columns, the width the left side had 2026-11-12 14:32:48 +00:00
aiongg 8703a667ba FooterBar: lay panel actions out from the reading end
The first action given sits at the end edge, as the old PanelFooter and
Photoshop's panel footers place them; a start group keeps its order.
Callers give their actions from the end edge: Layers, Channels,
Actions, Pages, the styles panel, the preset footer and MediaBin.
The filter gallery keeps Move Up and Move Down at the start edge.
LinkList's actions read as in the old: the menu at the start edge,
Relink at the end edge.
2026-11-12 14:32:48 +00:00
aiongg 8cb7ec3f02 Tile grid group headers are tree heading rows
A group header is a heading ListRow at the group's depth, with its icon and detail. The row places its disclosure column; the grid declares its disclosure part at that rect (ListRow::disclosure_at) and paints the tree triangle there, so the title starts after the disclosure instead of under it. The grid's own toggle geometry goes, and its layout sizes move out of the style into GridSizes.

TileGroup gains depth and icon. PresetBrowser passes each group's depth and a folder or open folder glyph, and its list view's group rows show the same glyph.
2026-11-12 14:32:48 +00:00
aiongg f86466c18c PreferencesWindow: a rule between the page list and the page
The page list and the page are divided by a vertical rule down the body, as in the old Preferences window.
2026-11-12 14:32:48 +00:00
aiongg 79c7732c40 NumberField: the unit follows the shown number, spaced as the language's unit template 2026-11-12 14:32:47 +00:00
aiongg d5d711068d Thumbnail-only picker fields as wide as the thumbnail and chevron: a select face showing its thumbnail alone keeps no text-field widths, and a thumbnail field with no preset shows an empty thumbnail; the export template select sized to its entries 2026-11-12 14:32:47 +00:00
aiongg 868c3ca47a Table columns: a Content column is as wide as its widest cell, which rows report from their measure; a double click on a column's edge fits it to its widest cell in view; MetadataTable's name column fits its names up to a third of the table 2026-11-12 14:32:47 +00:00
aiongg b2101fa757 Caller rows: ActionsPanel lists the one recording row that applies (panel_rows(recording)), CommandPalette rows are one line with the path before the chord; trials for a CJK title's English mnemonic and for a letter no menu row takes 2026-11-12 14:32:46 +00:00
aiongg 3d37ad424f Tour: the old card (count and close, title, text, Skip and the platform-ordered Back and Next) and a TargetMark on a step's target 2026-11-12 14:32:46 +00:00
aiongg 72561b52e2 Panel: no header unless titled, as a docked panel is named by its tab 2026-11-12 14:32:46 +00:00
aiongg 9379f900c5 presets: the browser's trailing tools take Bar::trailing's body context 2026-11-12 14:32:46 +00:00
aiongg 4258ddb15c presets: the browser's toolbar takes the host's tools and a picker names its browser; BrushPresetPicker puts its buttons in the search row and renames in place 2026-11-12 14:32:46 +00:00
aiongg b537a04cc0 Validity::Error: a checked value that stands, read invalid with its message in the bad tone; TextColumns marks an out-of-range Number or Spacing field so, in place of the notices after it; the New Document preset name refusal uses it 2026-11-12 14:32:45 +00:00
aiongg 9acaa83178 NamedPresetRow: Buttons and Menu styles, commands scoped to the row (F2 renames), prompt opens focused 2026-11-12 14:32:45 +00:00
aiongg 54a549100c CommandPalette: recents kept for the session when the host binds none 2026-11-12 14:32:45 +00:00
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 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 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 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