Commit Graph
551 Commits
Author SHA1 Message Date
bflatastic 85ba69b147 ui-patterns: PaletteOutput::refused names the disabled command Enter was pressed on, from the new CollectionEvent::Refused of a disabled lead's Enter, so an app can close the palette and say why: the palette stayed open and told the app nothing 2026-11-24 00:57:53 +07:00
bflatastic 662ff9264a ui-contract: with RootEnv::escape_leaves_fields, Escape in a field of a dialog that Escape closes stays the dialog's with nothing typed too: the field took it to give up the focus and the dialog stayed open 2026-11-24 00:57:52 +07:00
bflatastic 157714c25a ui-patterns: in the pass a tab click picks a panel of the focused group, DockAreaOutput::focused names that panel: it named the panel the group drew in that pass, the one before the click 2026-11-23 19:48:27 +07:00
bflatastic 51ad138dd2 ui-contract: a drag of OS files runs in the window under them: the main window's pass, which the OS sends none of a child window's files, ended the session, so files dropped on a native panel window never reached DockAreaOutput::window_files; the test kit's Windows now sends files to one window (FilesOver), as the OS does 2026-11-23 19:42:19 +07:00
bflatastic 503ccd4cd9 Merge branch 'sync/next' into sync/delta11 2026-11-23 17:32:13 +07:00
bflatastic 3ce58d7cae ui-patterns: a form dialog's body takes the host's answers, the opening pass and OK only in a real run: the dialog's own measuring run of the body (a re-layout under a child dialog) used them up, so Save for Web's real run reported no palette shift 2026-11-23 17:28:13 +07:00
bflatastic d824d42d25 ui-patterns: a new palette query's active row is its first match, enabled or not, so Enter on a disabled first match runs nothing and the footer says why, rather than Enter running the next match 2026-11-23 17:28:05 +07:00
bflatastic 34d7846cd3 ui-panels: a docking flyout closes on a press outside it only with Auto-Collapse Iconic Panels on 2026-11-23 17:11:24 +07:00
bflatastic 0a4d309686 Merge remote-tracking branch 'origin/next' into sync/next
# Conflicts:
#	Cargo.toml
#	crates/font-manager/src/picker/rank.rs
#	crates/font-manager/src/picker/rows.rs
#	crates/ui-panels/src/docking/group.rs
#	crates/ui-panels/src/docking/iconic/trials.rs
#	crates/ui-patterns/src/patterns/dock/area.rs
#	crates/ui-widgets/src/choice/mod.rs
#	crates/ui-widgets/src/choice/swatch.rs
#	crates/ui-widgets/src/choice/swatch/stories.rs
#	docs/contract-api.md
2026-11-23 13:53:35 +07:00
bflatastic 47d6a3e095 ui-panels: a tool rail inside an arena (a dock) reports its Edit Toolbar button: the grid's run sends the button's response, and a replay reads it back through contract::response_of, which also knows arena members 2026-11-23 11:21:29 +07:00
bflatastic 897b45faaa ui-patterns: the hosted New Document keeps the details rows' memory and lends it to the dialog (NewDocumentDialog::memory), so a field automation sets is noted where the rows read it, and its preset field applies the saved preset's card 2026-11-23 10:49:22 +07:00
bflatastic 8e05942efb ui-patterns: the hosted Save PDF's automation OK in the preset editor files nothing for an empty name or one the app's check refuses, as the footer's OK is off then 2026-11-23 10:49:22 +07:00
bflatastic 1bd0567df4 ui-patterns: the hosted Save PDF keeps both passwords through an automation write to another setting, which reads the settings back from JSON that never carries them 2026-11-23 10:49:22 +07:00
aiongg b634808ce4 Dock grips on next pass design-lint; the facade table lists main's new crate features
The rail grip takes the press that started its drag from GroupGrip's own
press (GroupGripOutput::drag_origin) instead of reading egui's pointer
state. The grip trials compare with GRIP_ABOVE and the theme's grip
shape instead of literal sizes. crates/craft/Cargo.toml [features] is
regenerated from the member manifests (exr, media-source and tiff
features from main; android-res in order).
2026-11-23 02:30:29 +00:00
bflatastic 0e9af5befe Merge remote-tracking branch 'origin/next' into sync/next
# Conflicts:
#	crates/ui-panels/src/docking/group.rs
2026-11-23 08:00:44 +07:00
bflatastic eaa7808dfd ui-patterns: the preset browser trial toggles the lead with Ctrl+Space, the chord that toggles on macOS too 2026-11-23 07:49:36 +07:00
bflatastic 871d184833 ui-patterns: the row menu shows the host's entries as the entry popup does, so a plain row is a menu item and only a checked one a check box 2026-11-23 06:42:49 +07:00
bflatastic b1218a5fb2 ui-patterns: a grid reorder or drop counts the group header rows, so a drop in the left half of a tile under a header lands before it 2026-11-23 06:40:35 +07:00
bflatastic abb4f1e9f0 ui-contract: a click on the sole selected item reports CollectionEvent::Picked, and PresetBrowser reports it as Select 2026-11-23 06:32:58 +07:00
bflatastic 3c9bd2e48e ui-contract: a drag carries any number of extra payloads, one per type; PresetBrowser and SwatchesPanel take a host drag payload beside their own 2026-11-23 06:27:06 +07:00
bflatastic 9a128c770c dock: a group grip reports its drag's press point, which a tool rail's grip puts on the drag instead of reading egui's pointer; the grip trials assert relations to the grip shape 2026-11-23 05:23:41 +07:00
David MannandClaude Opus 5.5 55d3a66134 Dock: a docked tool rail column takes the dock's height; tight-gap dividers (photocraft#16461)
A docked stepped column (a tool rail) was clamped to its content's height, so under a docked
toolbar the window background showed instead of the toolbar's surface. The reference
application keeps the docked toolbar's column surface down to the dock's foot, with the tools
at the top. Docked, a stepped column now takes the dock's height like any column; a floating
stepped window stays as tall as its content.

The dividers between docked columns and between a dock and the document area were the inline
gap (6 px comfortable, 4 compact); the reference application's are 3 px at 100%. They are now
the tight gap (3 px comfortable, 2 compact).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 23:14:16 +01:00
bflatastic 534db793a0 Merge remote-tracking branch 'origin/next' into sync/next
# Conflicts:
#	crates/font-manager/tests/it/picker.rs
#	crates/ui-shell/tests/it/shell/app_shell.rs
2026-11-23 04:35:03 +07:00
bflatastic 89c28d42b1 ui-patterns: the hosted PDF dialog takes the open and permissions passwords as automation fields (never listed), under the rows' standard rule 2026-11-23 04:28:52 +07:00
bflatastic e1632f95fd ui-patterns: HostedParamDialog::can_reset compares with the reset target (opening values with reset_to over them), as reset does 2026-11-23 04:17:27 +07:00
bflatastic 116029a894 ui-patterns: trials that drops on a preset browser reach a tile and the empty notice in the grid view as in the list 2026-11-23 04:08:27 +07:00
aiongg 8d436f486a Merge pull request #3087 from aiongg/dropdown-drives
Dropdowns name the list that takes their opener's keys (font picker Enter after typing)
2026-11-22 15:05:41 -05:00
David Mann 1cb53fbbf4 Merge pull request #3055 from davidmann4/fix/16403-16406-navigator-crop-bar-grip
Navigator drag, Crop move and shield seam, options bar clip, grip ink (photocraft#16403, #16404, #16405, #16406, #16410)
2026-11-22 21:02:29 +01:00
bflatastic d467ed3dcd Merge remote-tracking branch 'origin/next' into sync/next
# Conflicts:
#	crates/font-catalog/src/tests.rs
#	crates/font-manager/src/picker.rs
#	crates/font-manager/src/picker/rows.rs
#	crates/font-manager/src/picker/stories.rs
#	crates/ui-patterns/src/patterns/panels/palette.rs
#	crates/ui-patterns/src/patterns/presets/browser.rs
#	crates/ui-widgets/src/list/mod.rs
#	crates/ui-widgets/src/list/view.rs
2026-11-23 02:15:44 +07:00
aiongg fe271bf574 Dropdowns name the list that takes their opener's keys
A dropdown's opener (a picker's field or button) hands Up, Down, Page keys,
Enter and Tab to a collection in its dropdown. The framework took the first
type-ahead collection it found in the layer. The font picker's dropdown holds
the class column before the family list, so with filters shown Enter and the
arrows went to the class column: typing a name and pressing Enter picked
nothing.

Overlay::list (FocusPolicy::list) names the collection instead, and every
dropdown names its list: Select, ComboBox, TreePicker, completions, number
presets, PopupList (new PopupList::list) and the font picker, which names its
family list while it shows one. The type-ahead guess is gone.
2026-11-22 18:59:40 +00:00
David MannandClaude Opus 5.5 8995360551 Docking: a floating tool rail dropped by its grip keeps the grabbed point under the pointer (photocraft#16426)
GroupDrag carries the press a rail's grip started it with; a drop that
moves the floating window it is the whole of moves the window by the
pointer's travel from there (kept inside the float area) and keeps its
size, instead of putting its title row under the pointer.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 19:25:33 +01:00
David MannandClaude Opus 5.5 daf0a8d827 Docking: a floating tool rail's grip moves its window (photocraft#16426)
The grip under a tool rail's column bar starts a drag of the rail's group;
released over empty room it floated the group under the pointer, which the
model refuses for a group that floats already, so a floating toolbar's grip
did nothing. A unit that is a whole floating window now moves that window
under the pointer (Action::MoveFloating), as its title row does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 18:18:21 +01:00
David MannandClaude Opus 5.5 cdde34581e Theme: the dock grips' shape is a theme setting, apart from the reference by default (photocraft#16426)
shape.grip in a theme file sets the grips' marks: ticks or dots, how many,
a tick's length, a mark's width and the gap. Each value is optional and
keeps the default, now eleven ticks five points tall (one more mark and
one point taller than the reference application's ten of four). The
theme editor, the writer (unknown keys kept) and the token dumps carry it;
GripMarks paints from the tokens.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 17:49:02 +01:00
bflatastic e85a6d3fee ui-patterns: clippy 1.100 clean: no must_use on builders of must_use types; collapsed ifs; Copy fields not cloned; the drop builder type named; the PDF export automation trial is two trials 2026-11-22 22:36:50 +07:00
David MannandClaude Opus 5.5 13d70a400d Theme: a line.grip token for the dock grips' marks, a little apart from the panel
The dock grips drew their marks at 0.83 of the panel colour, as the references do on their lighter
panels; on our dark panels that is #2a2a2a on #323232, almost invisible, and no theme could choose
it. The marks now use a `line.grip` token: by default two steps from the panel (lighter in dark
mode, darker in light mode; Pro dark #474747 on #323232), and a theme can pin its own.

Fixes storytold/photocraft#16406.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 15:42:58 +01:00
bflatastic b1af55834d ui-patterns: NewDocumentDialog print_resolution and screen_resolution are quantity props again, set over the setup through DocumentSettings::set_resolutions 2026-11-22 21:01:13 +07:00
bflatastic bcce1c9f89 ui-patterns: DockArea::continue_move is a quantity prop taking (panel, grab) 2026-11-22 21:01:12 +07:00
bflatastic b950fb234a ui-patterns: PresetRow::preview with its counted anonymous key goes; callers give a keyed face through preview_face (pattern swatches by texture, contours by their points) 2026-11-22 21:01:09 +07:00
bflatastic e3d43eaf2f framework: button presses read through contract::clicked; the command registry names layers as runtime::egui::areas::LayerKey; Pasteboard declares its overlay (its rename story covers Open); rename_field returns the TextField for callers to show; the tool host's cancel mapping no longer names the pipeline's Gesture; quantities declared on roundness and a field's named number; fixed sample and paste-picture colours from Srgba and the test kit 2026-11-22 20:37:43 +07:00
bflatastic bd7e55c424 framework: FacePaint and the preset browser's host closures key through the MemoProps and PlainData derives (covered_by, every_pass) instead of hand impls; the Font Height Reference glyphs are consts, and their segment helper no longer shares egui's stroke-taking name line 2026-11-22 20:16:41 +07:00
bflatastic 35535b7720 ui-patterns: ParamDialog keeps its footer rows' states and pending flip in one session slot (runtime::memory::with_session), not egui temp data; the chord story narrows its room in testing::memory::scoped 2026-11-22 20:11:08 +07:00
bflatastic 9a4b9efb48 framework: setters that only store their argument are #[prop] fields the Props derive writes (TaskBar, FloatingGroup, ToolbarDrawer, CommandPalette, PresetBrowser, PresetPicker, AppShell, Radio, Swatch, Text, ListRow); ToolbarDrawer::mark and reveal take the tool, as ToolRail's do 2026-11-22 20:07:27 +07:00
bflatastic eaa3433662 framework: public enums and records the port added are #[non_exhaustive]; HoldSetting, PopupRegion, ParamPresets, CardSource::preset and WebDocument::vector take constructors for the crates that build them 2026-11-22 20:01:00 +07:00
bflatastic 55512ecf7b ui-patterns: a section list shows its sections at their natural height, so it owns no scroll in a dialog body that scrolls 2026-11-22 19:30:47 +07:00
aiongg 8a546e58f1 One separator between option groups: ListRow::rule goes, the preset browser, command palette and brush settings use ListRow::separator, whose height comes from the Divider's SeparatorRule 2026-11-22 06:57:34 +00:00
bflatastic fec30bbd83 Merge remote-tracking branch 'origin/next' into sync/next
# Conflicts:
#	crates/ui-contract/tests/it/runtime/mod.rs
#	crates/ui-shell/src/shell/app_shell.rs
#	crates/ui-shell/tests/it/shell/app_shell.rs
2026-11-22 09:57:26 +07:00
bflatastic 7395c5f1ec ui-patterns: a param row's help button uses the catalog's open icon, as contract wg.W23 names 2026-11-22 09:14:41 +07:00
bflatastic 3acb0d21a2 ui-patterns: PresetPicker::reborrowed; the named preset row shows a fresh picker in each run of its wrapping row 2026-11-22 09:10:48 +07:00
bflatastic f1114495f0 ui-widgets, ui-patterns: NumberField::submits; Enter in Save for Web's Desired File Size field files the search 2026-11-22 09:10:47 +07:00
bflatastic 78b03dd901 ui-patterns: HostedPdfExport is a HoldsOk dialog; take_ok hands out the answer OK filed, once 2026-11-22 08:41:41 +07:00