Commit Graph
7095 Commits
Author SHA1 Message Date
aiongg 408a6131a2 Preset picker idle trial: the popover opens with the focus in its search field, the list replays 2026-11-21 03:20:44 +00:00
aiongg 1b62c5687d Preset sources: the remaining framework callers, the popover replay trial and the preset count trials
ParamRows and ParamDialog take a PresetSource for their pattern rows (a hosted dialog's build gives one over owned
inputs); the export and PDF export dialogs, the swatch list (swatch_source, thumbs from the drawn colours), the
gradient palette and Gradient Map picker, the pattern fill editor, the text style picker (style_source) and the Layer
Style dialog (patterns, style presets, contour_source) build their presets from sources. Their painters are fns:
RampSampler, SwatchPainter, ContourSampler. Key types and the model types they are built from are memo props.

A memoized view inside an open popover replays while nothing changes; an open preset picker runs no list row while
nothing changes; a Size drag in the Brush Preset picker runs its head and replays the list.

The Swatches panel's rows stay public as `swatch_rows(groups, words)`, which the source's rows fn calls.
2026-11-21 03:20:44 +00:00
aiongg bae11d7916 Preset lists as sources: PresetSource keys a browser's rows, the list runs as a memoized view
PresetBrowser, PresetPicker, PresetManager and BrushPresetPicker take a PresetSource (the host's
MemoProps inputs and capture-free fns that build the rows and answer can_rename, can_delete,
can_move, accepts and thumb), so the browser's grid or list, its drop zone and row menu run in
a memoized view keyed on the inputs. Rows are kept per inputs and scope units (runtime::derived).
The Brush Preset picker's head and its search-row tools are memoized views of their own; the gear
rows are a fn.

Work in progress: the remaining callers (form dialogs, color-ui, draw gradients and patterns,
text style panel, imaging layer styles) are not moved yet and do not build.
2026-11-21 03:20:37 +00:00
aiongg 000a091d4b craft-menu: English names on the menu model, the MenuBarUi::english hook goes 2026-11-21 03:20:37 +00:00
aiongg 6eae28f167 craft-tracked: From<T>, value equality and an optional serde feature for Tracked
A Tracked field inside a derived PartialEq or serde type (a brush's tip inside its settings) compares by value and
saves as its value; a loaded one starts a new source.
2026-11-21 03:20:37 +00:00
aiongg d37c886c2d Memoized views: rustfmt 2026-11-21 03:20:37 +00:00
aiongg 5734238622 Memoized views: the view's content keeps the axes the enclosing body sizes from its content
A memoized member of a bar whose content held a vertical rule took the bar's whole open room as its height: the
view's layout room started with no content-sized axes, so a child that fills took the room. The room keeps the
enclosing body's content axes (they join the scope key), so the view takes what its content used, as without the
view. Trial: a bar with a memoized member is as high as the bar with the same content shown plainly.
2026-11-21 03:20:37 +00:00
aiongg a94a95107f Memoized views: a held press engages a view only where its layer is the top layer at the press origin
A drag on a popover over a memoized view ran the view on every move: the press half of lazy::engaged asked only
whether the press origin lay in the view's rect. It now asks whether the view's layer is the top layer there, as the
pointer half does through rect_contains_pointer. Trial: a drag on a popover's slider over a view replays the view.
2026-11-21 03:20:37 +00:00
aiongg da74cd2c85 craft-color-ui: MemoProps on the Color panel's settings, mode and ramp 2026-11-21 03:20:36 +00:00
aiongg 3502761b89 craft-draw, craft-ui-patterns: MemoProps and PlainData on the paint bar, brush picker, symmetry and preset view types
PaintValues drops the size and the hardness: the bar shows neither (the preset picker before it does), so a view over it keys only on what it shows.

The gradient tile, its style and its focus outline are memo props too: a gradient item carries its tile.
2026-11-21 03:20:36 +00:00
aiongg eb28db6ba9 Merge pull request #2589 from aiongg/memo-stack
Memoized views: derived values; dock, Layers, menu and tool rail keys without model walks
2026-11-20 21:37:21 -05:00
aiongg 4201696e6b Merge pull request #2742 from aiongg/office-ruler
Text ruler: the tab selector shows in the corner its host gives
2026-11-20 21:26:32 -05:00
aiongg fd652b372d Merge pull request #2738 from aiongg/component-set-productivity
Component sets: Office is named Productivity
2026-11-20 21:19:04 -05:00
aiongg 0ea84419cd Text ruler: the tab selector shows in the corner its host gives
PageRulers handed the text ruler the canvas's top strip, which starts after the
canvas corner, and the ruler cut its own corner square out of that strip, so the
selector sat one strip depth right of the corner, over the horizontal ruler, and
the corner stayed blank. The host now gives the corner (TextRuler::corner):
Rulers::strips returns it beside the strips, and PageRulers shows the ruler over
the top strip and the corner. The corner follows the host in either direction.

The selector's box is the icon size with the theme's small rounding, in the
column's colour with the state layer under the pointer; the corner continues the
strip round it; the glyph is centred by its own bounds.
2026-11-21 01:34:06 +00:00
aiongg 3eebedfcff Component sets: the productivity set 2026-11-21 01:19:14 +00:00
aiongg 1fac93e295 Merge remote-tracking branch 'upstream/next' into memo-stack
# Conflicts:
#	crates/ui-contract/src/contract/memo.rs
2026-11-21 01:06:55 +00:00
aiongg 3f440d3ff1 Merge pull request #2578 from aiongg/component-constants
Component constants and component sets (creative and office looks, rulers first)
2026-11-20 20:06:24 -05:00
FredApps f1c4dd50c9 Merge pull request #2672 from storytold/fix/registry-fixture-only
Gate downstream UI registrations on the suite feature
2026-11-21 07:39:13 +07:00
David Mann eb8e6c98e9 Merge pull request #2682 from davidmann4/fix/crop-idle-frame-keys
Crop: O, I, X and Shift+O stay the app's over the untouched frame
2026-11-21 01:04:44 +01:00
Martin Ball 05acb5587f Merge pull request #2566 from storytold/fix/7149-items2-3-start-cards
ui-shell: start-screen cards take the app's picture shape, size and paper; card tiles frame all four sides
2026-11-21 00:01:28 +00:00
Martin Ball aaa87b5754 Merge pull request #2568 from storytold/fix/7149-item7-top-clamp
pages: one rect for the page view and its canvas, so the page no longer jumps at the top with rulers on
2026-11-21 00:00:26 +00:00
aiongg 241990270c Docking tests from next: the workspace through its accessor and Arc 2026-11-20 23:44:01 +00:00
aiongg 5062108d5b Format the testing exports 2026-11-20 23:38:59 +00:00
aiongg d202ab2fec Merge remote-tracking branch 'upstream/next' into memo-stack
# Conflicts:
#	crates/ui-contract/src/testing/mod.rs
#	crates/ui-panels/src/docking/targets.rs
#	crates/ui-patterns/tests/it/docking/floating_area.rs
2026-11-20 23:37:01 +00:00
aiongg 268aa7893e Merge remote-tracking branch 'upstream/next' into component-constants
# Conflicts:
#	docs/contract-api.md
2026-11-20 23:35:49 +00:00
aiongg e0965cf0b0 Merge pull request #2678 from aiongg/text-memo-fix
Text layout memo: one measurement path, eviction by use, a total budget
2026-11-20 18:34:57 -05:00
FredApps 34908a057c Reuse existing suite-gated registration macro 2026-11-21 00:27:44 +01:00
aiongg 6f92d8e130 Merge pull request #2667 from aiongg/next-sync-1120c
Merge storytold main into next (20 Nov evening sync)
2026-11-20 18:13:07 -05:00
aiongg aa9e22db05 Merge pull request #2648 from aiongg/floating-restore
Floating dock windows: production's bar, grips and macOS resizing; grip bar and width resize for collapsed icon groups
2026-11-20 17:35:08 -05:00
David Mann 4bdd7b7e54 Crop: O, I, X and Shift+O stay the app's over the untouched frame
The Crop tool claimed I, X, O and Shift+O as soon as it showed its
untouched default frame (on picking the tool, after a commit, or on a
selection's bounds), so O cycled the overlay instead of picking the
Dodge group, I switched to Front Image instead of the Eyedropper, and X
swapped the frame instead of the colours. As in the reference application, the crop
now takes its keys only while a crop is pending, the way H and P
already were.

The key trial gave the canvas no keyboard before its first press, so
its untouched-frame half passed whatever the tool did; the rig now
focuses the canvas first.

Part of storytold/photocraft#6536.
2026-11-20 23:21:19 +01:00
FredAppsandClaude Opus 5.5 a79b975188 tile: no card frame over a flat thumbnail
The new frame over a card's picture also drew on flat thumbnails, which
have no sunken well to restore: the New Document preset cards gained a
second outline around their page, and
form_dialogs::new_document::recent_preset_cards_paint_one_small_page_at_its_aspect
failed on every leg. Frame only where the sunken well was painted.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 23:10:52 +01:00
aiongg 108a8a3550 contract-api: regenerated 2026-11-20 22:06:55 +00:00
aiongg d84b15cca1 Text layout memo: one measurement path, eviction by use, a total budget
Removes the paired measure (Component::PAIRED_MEASURE, measure_pair and its
six adopters, MeasureCx::least_width) and the prepared-leaf path
(PreparedLeaf, PreparedStep, run_with, show_leaf_prepared,
measure_under_prepared, child_with_prepared): every leaf is measured by
measure alone, and the recursive run frames carry only what they read after
their children again.

Keeps the text layout memo and the lazy layout runs, with three fixes: a Line
run keys its width as infinity, entries unused for 60 passes go instead of
first in first out, and a 32 MiB budget bounds what the memo retains.
TextLayout's full and runs are private behind full() and runs().
2026-11-20 22:06:54 +00:00
FredApps 599fcd462b Re-export suite helper through UI facades 2026-11-20 23:02:28 +01:00
FredApps ead1233137 Test dependency-gated registry helpers 2026-11-20 22:56:31 +01:00
FredApps 531d7bbd0f Gate generated registry helpers on dependency suite 2026-11-20 22:49:52 +01:00
aiongg 4e11e2b9d4 drawingml: the format doc link names the function 2026-11-20 21:43:12 +00:00
aiongg 5d72faf4b2 Cross-member reads on next: svg's font from ui-contract, font-manager declares Inter, pdf's Tiny-glyf fixture restored 2026-11-20 21:26:45 +00:00
aiongg 901f3c785b Merge remote-tracking branch 'upstream/main' into next-sync-1120c
# Conflicts:
#	.github/workflows/workspace.yml
#	crates/proof/src/affix_suggest.rs
#	crates/proof/src/it/suggest.rs
#	crates/proof/src/pl/suggest.rs
#	crates/proof/src/pt/suggest.rs
#	crates/proof/src/ru/suggest.rs
#	scripts/test-workspace-tests.py
2026-11-20 21:22:40 +00:00
David Mann 50e00dd493 Merge pull request #2631 from davidmann4/fix/scrollbar-arrows-pointer-only
Canvas scroll bars: thumb drag follows every move; arrows take no keyboard focus
2026-11-20 22:16:12 +01:00
aiongg c30c9e1749 Merge remote-tracking branch 'upstream/next' into memo-stack
# Conflicts:
#	crates/layers/tests/it/main.rs
#	crates/menu/tests/it/main.rs
#	crates/ui-contract/src/testing/mod.rs
#	crates/ui-contract/tests/it/runtime/mod.rs
#	crates/ui-widgets/tests/it/menu/mod.rs
2026-11-20 20:32:36 +00:00
aiongg baa3a2f258 Merge remote-tracking branch 'upstream/next' into ruler-look
# Conflicts:
#	crates/ui-contract/src/testing/mod.rs
2026-11-20 20:31:23 +00:00
aiongg 6fea865c9a Grip trial: the icon-rect closure is not named like an icon id 2026-11-20 20:31:09 +00:00
FredApps 2ad95c4994 Merge pull request #2361 from storytold/perf/2333-text-layout
Reuse text layouts and measure supported leaves once per sweep
2026-11-21 03:16:33 +07:00
FredApps 9c180fca2f Merge pull request #2363 from storytold/perf/2332-explicit-ui-suite
Split the UI test kit and select suite registrations explicitly
2026-11-21 03:16:06 +07:00
David Mann 399922917f Merge pull request #2634 from davidmann4/fix/picker-full-hex-enter
Color Picker: Enter in the Full layout's hex field confirms
2026-11-20 21:11:43 +01:00
David Mann 2422396c0b Merge pull request #2612 from davidmann4/fix/snap-span-reach
Snap targets can reach past their spans
2026-11-20 21:04:32 +01:00
aiongg a45db600db contract: MOVE_BAND's re-export stays testing-only 2026-11-20 20:04:01 +00:00
aiongg a36e14750f design-lint: the menu bar stories keep their model in a static; GridWidths::Content names the content's measured widths 2026-11-20 20:01:54 +00:00
aiongg 761faa9d3a Merge remote-tracking branch 'upstream/next' into floating-restore
# Conflicts:
#	crates/ui-contract/src/contract/body/hooks.rs
#	crates/ui-patterns/src/patterns/dock/area.rs
#	docs/contract-api.md
2026-11-20 20:00:02 +00:00