Commit Graph
99 Commits
Author SHA1 Message Date
FredApps 428601bc95 Merge branch 'next' of https://github.com/storytold/craft-libs into publish/registry-2332
# Conflicts:
#	crates/color-ui/src/ui/swatches.rs
#	crates/draw/tests/it/main.rs
#	crates/imaging/tests/it/main.rs
#	crates/menu/tests/it/shortcuts/mod.rs
#	crates/text/tests/it/main.rs
#	crates/ui-patterns/tests/it/form_dialogs/mod.rs
#	crates/ui-widgets/tests/it/text/mod.rs
2026-11-20 16:35:19 +01:00
FredApps 9793d1a452 Merge branch 'next' of https://github.com/storytold/craft-libs into publish/registry-2332
# Conflicts:
#	crates/dialogs/src/lib.rs
#	crates/dialogs/src/ui/mod.rs
#	crates/draw/src/ui/gradient/mod.rs
#	crates/draw/src/ui/gradient/swatch.rs
#	crates/menu/src/shortcuts/view.rs
#	crates/menu/tests/it/main.rs
#	crates/menu/tests/it/shortcuts/mod.rs
#	crates/pages/tests/it/main.rs
#	crates/print/src/lib.rs
#	crates/review/tests/it/main.rs
#	crates/story-render/src/main.rs
#	crates/table/tests/it/main.rs
#	crates/text/tests/it/main.rs
#	crates/ui-canvas/src/canvas/navigate/mod.rs
#	crates/ui-canvas/tests/it/canvas/mod.rs
#	crates/ui-contract/tests/it/access/mod.rs
#	crates/ui-contract/tests/it/fonts/mod.rs
#	crates/ui-contract/tests/it/runtime/mod.rs
#	crates/ui-gallery/src/foundations/mod.rs
#	crates/ui-patterns/src/patterns/preferences/mod.rs
#	crates/ui-patterns/tests/it/docking/mod.rs
#	crates/ui-patterns/tests/it/form_dialogs/mod.rs
#	crates/ui-patterns/tests/it/panels/palette.rs
#	crates/ui-patterns/tests/it/preferences/mod.rs
#	crates/ui-shell/src/shell/mod.rs
#	crates/ui-shell/tests/it/shell/mod.rs
#	crates/ui-widgets/src/tabs/strip.rs
#	crates/ui-widgets/tests/it/bars/mod.rs
#	crates/ui-widgets/tests/it/contract/mod.rs
#	crates/ui-widgets/tests/it/layout/mod.rs
#	crates/ui-widgets/tests/it/main.rs
#	crates/ui-widgets/tests/it/menu/mod.rs
#	crates/ui-widgets/tests/it/pickers/mod.rs
#	crates/ui-widgets/tests/it/text/mod.rs
2026-11-20 15:04:36 +01:00
David MannandClaude Opus 5.5 16e2584365 Merge storytold next into haranishi-combined
Conflicts resolved by keeping both sides. The start screen keeps next's
Greeting layout and its move of the recent body to recent_list.rs; the
desktop Home grid aspect and card padding now reach recent_body through a
desktop_home flag. The scroll bars keep both the document chrome (arrows,
corner) and next's drag tip.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 14:55:23 +01:00
David Mann 98d0b8ce4b New Document: keep Orientation beside Height reachable
Orientation sat in a content-sized grid column that was measured empty,
so its segments were clipped to nothing and a click did not turn the
page. Height carried its own unit select as well, although one unit
serves both sides. Height now shows its number alone in the shared unit
and shares the row with Orientation in two equal columns, as Color Mode
and Depth do. The orientation test also checks that both glyphs paint
inside a visible clip, which would have caught this.
2026-11-20 13:18:00 +01:00
David Mann 77d35517dd Merge #2439: List Percent before Pixels in Image Size 2026-11-20 12:51:48 +01:00
David Mann b97df74abb Merge #2427: Restore the New Document preset layout 2026-11-20 12:51:47 +01:00
David Mann 7b1b840cba Merge #2423: Restore page orientation icons in New Document 2026-11-20 12:51:45 +01:00
David Mann 39cd7761e3 Merge #2401: Save for Web: restore Constrain proportions and retain exact pixel sizes 2026-11-20 12:51:43 +01:00
David Mann 2020862ecf Merge #2399: Let adjacent parameter fields share a row 2026-11-20 12:51:42 +01:00
David Mann 061e6de36b Merge #2397: Show declared units on parameter dialog number fields 2026-11-20 12:51:41 +01:00
David Mann 1b74267c78 Merge #2383: Show slice warnings below Save for Web previews 2026-11-20 12:51:36 +01:00
haranishi 3693274e82 Restore the preset layout of the New Document dialog 2026-11-20 16:01:25 +09:00
haranishi 020d70b7fb Clamp supplied Save for Web dimensions to document limits 2026-11-20 11:19:27 +09:00
haranishi f0942b4479 Keep popup sliders continuous without explicit precision 2026-11-20 11:08:02 +09:00
Martin Ball 9a4dd39d3a Workspace clippy: fix lints across ui crates and tests 2026-11-20 00:56:55 +00:00
Martin Ball f77301a76d Merge follow-up: resolve_in takes Reads; the host-key trial gives states through CommandStates; cargo fmt 2026-11-20 00:40:05 +00:00
Martin Ball 576dcb3817 fw-rest: resolve the framework sync conflicts (up/next into area/ribbon-fw)
- Dialogs: ButtonPlace { Foot, Side, Body } beside the port's refusal notice and
  ChildDialog; every side_buttons caller (find, hyperlink, paragraph, list manager,
  form dialogs) takes button_place, keeping the port's held answers, close buttons
  and name check.
- Colour picker: upstream's fixed Full arrangement, CompareSwatch and warning module;
  the port's shown_model and tabbed Colors dialog kept (its buttons stand in the side
  column, the Full layout's in the picker's slot); the Compact layout shows the
  compare block beside its area when the host gives a compare colour; focus_on_open
  goes as upstream.
- Task bar: the grip is the bar's first member on one floating surface, for the task
  kind only; the selection kind and the close reason stay.
- Keymap: lookup_where's accept filter runs through upstream's winners().
- craft-gpu: upstream's provider-neutral crate, with the port's eframe start-up
  choices behind a startup feature (facade gpu-startup); duplicate facade row removed.
- Facade features, ATTRIBUTION, BMP density probe, margin story fit, theme icon-pack
  and dialog first-field trials: both sides kept; the clipboard presence code stays
  replaced by the port's offer modules.
2026-11-19 20:57:28 +00:00
haranishi 61514f82d2 Use lifetime-generic dialog builders in the unit-order regression 2026-11-20 05:43:19 +09:00
Martin Ball 6dedbe4fe6 skeleton: merge up/next into area/ribbon-fw with conflict markers left in (land step 1) 2026-11-19 20:42:08 +00:00
haranishi 299a9edfea List Percent before Pixels in Image Size 2026-11-20 05:40:28 +09:00
Martin Ball 529146af3d Merge branch 'red/look-7b' into area/ribbon-fw 2026-11-19 20:27:59 +00:00
Martin Ball 4cd1f17627 look-7b: the listed About sets its name/version/blurb, links and built-with line apart by the item gap, as WordCraft's About (6 pt spaces); the row gap ran them together; trial 2026-11-19 19:55:38 +00:00
Martin Ball 4b4abd000e look-7b: a text field and a text form row can ask for a width in characters (TextField::width_chars, Param::field_chars: n times the body face's '0', as CSS's ch, plus the field padding) over the field length; a row that lacks room still narrows it; gallery stories and trials 2026-11-19 19:53:56 +00:00
Martin BallandClaude Opus 5.5 1a9dae9643 fwstub-2: trials: a picker form dialog (category list, three-row tile grid, large preview, as WordCraft's Insert SmartArt) runs one pass a frame from its second frame, in English and pseudo-locale lengths and when a docked pane closes in the frame it opens; the framework does not ask for a discard every frame there
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 19:53:40 +00:00
haranishi 7bbe63e918 Restore compact page outlines on New Document preset cards 2026-11-20 04:19:43 +09:00
haranishi fb1f693195 Restore New Document orientation glyphs 2026-11-20 04:02:13 +09:00
Martin BallandClaude Opus 5.5 3ed4e4ac1c fwstub-1: one Escape cancels a dialog while its focused field holds a draft: the draft ends as for Escape and the Escape goes to the dialog (focus::escape_closes_dialog; the gesture step and the text adapter leave it untaken); fields outside dialogs still revert first; trial
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 16:12:12 +00:00
haranishi 60b4ce469e Preserve exact Save for Web dimensions and restore proportions control 2026-11-20 00:34:35 +09:00
haranishi b186402675 feat(ui): let parameter forms pair adjacent fields 2026-11-20 00:05:13 +09:00
haranishi f926a7dd92 fix(ui): show declared units on parameter dialog number fields 2026-11-19 23:44:50 +09:00
Martin Ball 1b11ec4ac6 look-rest-3: the listed About's tabs are a strip of tab faces (TabKind::Panel), as WordCraft's; the centred layout keeps text tabs; trial 2026-11-19 14:18:29 +00:00
Martin Ball 6cc5affef5 look-rest-2: LeastWidth::WideDialog and Dialog::least_width; the listed About is a wide dialog, as WordCraft's; trial 2026-11-19 13:57:48 +00:00
Martin BallandClaude Opus 5.5 71a130b81e look-dialogs-b: Param::options_in_row for radio rows, AboutLayout::Listed for the About tab, with stories and trials
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 13:30:46 +00:00
haranishi 890b75f4db Show slice warnings below Save for Web previews 2026-11-19 21:36:09 +09:00
haranishi 23d397b6ad feat(ui): allow popup sliders for typed form ranges 2026-11-19 21:19:50 +09:00
FredApps b04d18a735 Select UI suite items through explicit registries 2026-11-19 12:20:08 +01:00
Martin Ball 59d39a2049 fu-dialogs: app batch 1 rulings (S-L285, S-L289, S-L301, S-L310, S-L312)
FormCx::accept files or closes as the OK press; FormButtons::Close leaves out OK;
ListManager::name_box binds the name box; FindReplaceDialog::show_tab and
set_go_to_kinds, and options() opens Search Options; ParagraphFormat::contextual_spacing.
2026-11-18 22:43:21 +00:00
Martin Ball c457bd32a4 dialogs-w5: net change of 3 commits
- dialogs-w5: written by an agent
- dialogs-w5: review fixes (review-1)
- dialogs-w5: review fixes (review-1b)
2026-11-18 18:18:25 +00:00
Martin Ball def1c54d40 fmt: chrome framework batch 2026-11-18 16:52:16 +00:00
Martin BallandClaude Sonnet 5.5 f905158869 about trial reads each tab's resolved accessible name (tab nodes are named through their labels)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-18 16:19:49 +00:00
ljkx 7be4487c58 fix(ui-contract): a dialog that opens on a text field selects its text
A focus scope shown for the first time moves focus to its initial stop
(a dialog's `Initial::FirstField`), but a plain text field then put the
caret after its text, as its codec asks for any focus gain, so typing
added to the value instead of replacing it (New Layer's name read
"Layer 17" after typing "7").

The initial focus now records its own origin, `FocusOrigin::Open`. A text
part that gains focus that way selects its whole text whatever its codec's
caret. Tab and clicks keep their caret rules, and `focus_arrived_by_key`
still counts the open as an arrival by key, as before.

photocraft#15540, part of storytold/photocraft#15476.
2026-11-18 17:15:31 +01:00
Martin Ball b912c077f0 chrome-w4: net change of 4 commits
- chrome-w4: written by an agent
- chrome-w4: finished by an agent
- chrome-w4: finished by an agent
- chrome-w4: review fixes (review-1)
2026-11-18 16:01:11 +00:00
aiongg 3806fdbe8a Trial: an optional number row is held to its bounds and remembers its value while off 2026-11-16 23:43:41 +00:00
aiongg 1d2dd82a0c save for web: trial for the WebP 4-Up variants 2026-11-16 21:39:35 +00:00
aiongg b1766bb698 Merge remote-tracking branch 'upstream/next' into fw/mac1 2026-11-16 19:42:31 +00:00
aiongg 3829737b47 Trial: the stacked parameter layout stacks sliders and puts the buttons across the foot; Below keeps the button column 2026-11-16 16:42:19 +00:00
aiongg 2103be6de1 Fix clippy and rustdoc errors in automation, draw, imaging, svg, ui-patterns and ui-widgets 2026-11-16 15:40:46 +00:00
aiongg 63a4811416 cargo fmt 2026-11-16 14:34:57 +00:00
aiongg fbe5a16ffe design-lint: api/non-exhaustive: #[non_exhaustive] on public types and variants, constructors where other crates build them 2026-11-16 13:31:29 +00:00
aiongg 4119da5b95 Merge branch 'fw/merge-d' into area/fwb2 2026-11-16 12:57:54 +00:00