Commit Graph
97 Commits
Author SHA1 Message Date
aiongg 53ff1a9cc7 cargo fmt 2026-11-13 17:44:43 +00:00
aiongg c895a8a45b PresetPanelMenu trial: view checks and Save… gating agree between states and the per-command answers 2026-11-13 17:44:42 +00:00
aiongg bc95df75c0 PresetPanelMenu: checked and enabled per command, for a host that draws the panel menu itself 2026-11-13 17:44:42 +00:00
aiongg e8329e5d52 FooterBar leading controls: units of the bar's row, narrowing to leave the actions their width 2026-11-13 17:44:41 +00:00
aiongg 25bc6bda1c PresetBrowser footer: stays in the room under a long library, spans the footer under one rule, count on one line; room_height sizes a browser to its presets 2026-11-13 17:44:41 +00:00
aiongg 4e542896f7 PresetEvent: constructors for the struct variants, so hosts can table-test their event mapping 2026-11-13 17:44:40 +00:00
aiongg d76615b3d4 PresetBrowser drop zone: a preset released over the host's zone reports DropAt, on the drag runtime's targets
DropZone names a rect on an egui layer; drag::zone_target registers a target over it with the
layer order, operation and mark of a component's own target, which now goes through the same
function. Trials: the zone drop (and the covered, outside and group cases), and a PresetPicker
inside a Popover keeping the popover open through open and pick.
2026-11-13 17:44:40 +00:00
aiongg 3314ffeb28 F-16 fix round 1: one canvas zoom field with the percent unit, NavigateBar::zoom over the canvas's ViewTarget, Fit Artboard margins 30 by 40 2026-11-13 13:17:30 +00:00
aiongg 1e5782dfd4 Dialogs: StackDialog::story_facts; hosted forms keep their last pass's facts and hosted stories report them 2026-11-13 02:26:58 +00:00
aiongg af8855c139 Dialogs: FormDialog::preview takes an optional owner, every owner-less open starts with Preview on; Guide Layout's Preview box is FormDialog's; the story host is a story note 2026-11-13 02:26:58 +00:00
aiongg 7f34140aa6 Dialogs: FormDialog::preview is the one Preview box; hosted stories reopen their dialog when a knob changes
FormDialog::preview(Bind<bool>) adds the Preview check box under the side buttons, with one
word (formDialog.preview) and hold-to-compare in FormOutput::comparing. ParamDialog,
HostedAdjustDialog and HostedLayerStyle use it; their own boxes and the paramDialog.preview,
adjust.preview and layerStyle.preview words are gone.

The hosted story helpers take the knob values the dialog is built from and replace the open
dialog when they change. The Export As story asks for a preview only while preview_ready is on.
2026-11-13 02:26:58 +00:00
aiongg be927e9393 Dialogs: hosted forms for Canvas Size, About, format options, Export As, Alert, Layer Style and the adjustment dialogs
Each opens on a DialogHost as a StackDialog that owns what its dialog edits
and binds the dialog's open state to its own field, so it opens again after
closing. HostedCanvasSize and HostedImageSize share SizingOutput::hosted.
HostedExportAs keeps its preview and save requests for the app as
HostedSaveForWeb does; HostedAbout keeps the activated link. HostedAlert
holds an Alert's content. HostedLayerStyle frames the Layer Style body in a
form dialog with side buttons and the Preview box, and queues the page's asks
as LayerStyleAsk. HostedAdjustDialog<V, E> frames any adjustment editor the
same way, resizable and remembered for Curves, with the editor's asks as E.

Stories open the hosted dialogs through a story host bound to the card's
open value (dialog::stories::hosted), so the card holds them behind its
button and story-render shows them open. Trials open each on a DialogHost
and check Escape, OK and the asks.
2026-11-13 02:26:58 +00:00
aiongg 908da71beb New Workspace's Capture boxes sit in a titled group box; contract API lists the workspace captures 2026-11-13 01:22:55 +00:00
aiongg a2e346e414 Trials: dock side width, workspace captures, bottom pane on switch, workspace dialogs 2026-11-13 01:22:55 +00:00
aiongg 741be65f20 New Workspace and Delete Workspace dialogs for WorkspaceAsk 2026-11-13 01:22:55 +00:00
aiongg 41c16c7b6e Commands: a key command keeps open the popup whose content declares its scope; instances record the layer they run in 2026-11-12 22:54:16 +00:00
aiongg 7fd2b260db ui-contract: the host's tool gesture holds only beside a modal body that keeps the canvas
The registry keeps the dialog's part and the host's part apart: the
host's gestures join the reach only while a modal body keeps the same
canvas, whatever order the two are made in, so a modal that keeps
nothing (an alert) leaves the canvas blocked. Trials: the host's gesture
lapses when the dialog stops keeping the canvas; under a dialog that
keeps nothing it passes no press and no wheel.

Also: the BlockingOverlay story's drive opens it; rows.rs doc wrapped;
api-map TonePickerRow note names pass_canvas_gesture.
2026-11-12 22:38:11 +00:00
aiongg 5f279e9a00 ui-contract: a modal's canvas reach names the gestures it passes
The canvas a modal dialog keeps open (runtime::sampler) passes the view
navigation and, beside it, only the presses the dialog names: a
CanvasGesture is a button with the modifiers it needs held, its drag
included. Sampler::pass_canvas_gesture replaces arm_sampler; the
eyedropper rows, the Color Picker and the tone pickers name a primary
press, Curves names its Cmd-click, and every other press stays blocked.

Trials: the kept view passes the wheel (scroll and zoom) and the middle
pan and blocks the primary press; a modifier gesture passes only with
its modifier. Story: Canvas "under a dialog", a live region under an
open modal.
2026-11-12 22:38:11 +00:00
aiongg 01f146b931 Dialogs: automation answers only what a user can press
StandardPrompt and UnsavedChangesDialog build their buttons, their choice
check and their programmatic OK from one offered list; a choice without an
enabled button is refused. HostedParamDialog opens its values once (remembered
values, defaults) before its first show, OK or set, through the helper the
first pass uses; OK builds its result through one helper; set refuses rows
that are hidden or disabled and reads the value as its row's kind.
set_json_field takes the Context. Automation lists dialog ids as decimal
strings, takes a string or a number, and names only the host's dialogs.
2026-11-12 22:27:40 +00:00
aiongg e51e929e48 Dialogs: automation surface for every StackDialog
StackDialog gains json_fields and set_json_field; DialogHost lists its open
dialogs with their fields, sets one by id, and confirms or cancels by id
whatever the type. HostedParamDialog (values by parameter row, with a
programmatic OK), StandardPrompt and UnsavedChangesDialog (their choice)
implement them. craft_automation::dialogs runs ui.dialog.set/confirm/cancel
on a host and lists its dialogs for ui.inspect.
2026-11-12 22:27:40 +00:00
aiongg fc7d05a5fc NumberField: monospace digits, the unit apart at the end of the value area
The digits take the mono type role, as the timecode field does. The unit is a
smaller faint caption pinned at the end of the value area with the inline gap,
so the number centres in the room before it and stacked fields line their
units up. Units::suffix goes; callers pass the unit's symbol.
2026-11-12 15:12:11 +00:00
aiongg f7f75c178f Sizing::FillWidth makes a leaf fill its row's leftover room
Component::fills defaults to the width when the caller set Sizing::FillWidth,
and the sizing stays on the component after step 1 so the layout hooks read
it. Button, TextField and Slider lose their fill_width props and Swatch and
GradientSwatch their fill flags; callers set Sizing::FillWidth. The blend
select in BlendRows takes the room before Opacity, as in PhotoCraft.

A contract trial checks that a FillWidth leaf takes the row's room and a
Content leaf does not.
2026-11-12 15:12:10 +00:00
aiongg 7a02997ac1 CommandPalette: the lead row is the command highlight
ListRow's command flag puts an option that runs a command in the menu row
form: the lead row in accent.solid with text.on_accent, with no lead or
chosen edge. The palette's rows take it; other option lists keep the
option form.
2026-11-12 14:32:51 +00:00
aiongg cef153147a PdfExportDialog: the shown page's title heads the page, as Preferences titles its page 2026-11-12 14:32:51 +00:00
aiongg e8e7142df9 Preferences groups have no column modes: the label step places each check box row 2026-11-12 14:32:51 +00:00
aiongg 41ded35010 ParamRows: group headings (sections and radio rows) are quiet captions with no rule, as the old dialogs drew them 2026-11-12 14:32:51 +00:00
aiongg 4a6d07a02e Save for Web's Image Size and the PDF export headings are quiet section labels, as they were 2026-11-12 14:32:50 +00:00
aiongg a4316d6d6a Export As story: a 4000 x 3000 document of a landscape, opened on JPG as the old story was, so its pair shows the Quality rows 2026-11-12 14:32:50 +00:00
aiongg f204291477 PreviewPane: an aspect sets the well's height from its width; Export As shows a square preview beside its settings 2026-11-12 14:32:50 +00:00
aiongg b127a87dc8 Export As: the format is a select, Constrain Proportions a check box under Height, Image Size a quiet heading, and every settings row shares one label column 2026-11-12 14:32:50 +00:00
aiongg 477b080845 Title rows: a note runs on after the title in muted body text, and the subtitle sits at the band's end in muted caption text; the gallery card shows its story name as the note, the Inspector its target's kind as the subtitle 2026-11-12 14:32:50 +00:00
aiongg b54195e805 One path row: PathRow, a path field and a Browse button that reports the press; ParamRows and Watermark ask with a PathRequest, PathField picks through the file service 2026-11-12 14:32:50 +00:00
aiongg 66134ff430 Colour picks show a swatch: Save for Web's Matte, the parameter rows' colour and New Document's background open the picker from a swatch of the colour, mixed while unset, in place of a button with the hex code 2026-11-12 14:32:50 +00:00
aiongg 7fcd160eca Field and number widths per control size: size.length.field and size.length.number hold sm and md, and controls read them through ControlMetrics, so a field in a small options bar is narrower than one in a dialog 2026-11-12 14:32:49 +00:00
aiongg 4a25bebc19 CommandPalette lists and runs commands from the window under it; disabled rows paint in the disabled ink
- The command board judges a resolution from a Vantage: the modal facts and the focus. Its own is the key
  focus of the pass; resolve_beneath and fire_beneath judge from the window under the modal layer whose body
  is running, as it is once that layer closes (the modal layers below it, the stop focus returns to, that
  stop's chain and edits). key_layer takes the layer to count below; keys::owner_at gives the key owner there.
- The palette resolves its rows beneath its own layer, so its modal blocks none of the app's commands, and
  runs a pick itself: focus returns from its layer (return_from_pick, which also serves menu picks), then the
  command fires as FireSource::Palette. Its list fills the box width.
- A row's disabled state takes text.disabled in row_ink_of, for list, option and menu rows alike; the menu
  row drops its own copy.
- A keyed activation skips a disabled lead, as a press does.
2026-11-12 14:32:49 +00:00
aiongg 935613c4f7 Columns place their text as their spec says: rows take each column's alignment and tabular figures from the collection, and an end-aligned column's header ends at its cell's end; ListRow::columns goes 2026-11-12 14:32:49 +00:00
aiongg c0fe97bb21 Stories show the old cards' states and data: Switch, Checkbox, Segmented, Rating, Badge, ConstraintFields readout, PresetBrowser library, CommandPalette entries and recents 2026-11-12 14:32:49 +00:00
aiongg 8a7d2ca627 Layer Style dialog fits a scrolling dialog body: the effect list takes its natural height, the Styles grid shows five rows and scrolls the rest (PresetBrowser max_rows) 2026-11-12 14:32:49 +00:00
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