Commit Graph
8520 Commits
Author SHA1 Message Date
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
studiosloppyandFredApps ad0cb48e82 craft-psd: tolerate a missing pad byte after the last image resource (#1949) (#1951)
Co-authored-by: FredApps <153173854+FredApps@users.noreply.github.com>
2026-11-21 09:22:30 +07: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 b56b17f63e Merge branch 'rework-dialogs-b' into rework-dialogs 2026-11-21 02:18:12 +00:00
aiongg d73c1c337f A dock window whose groups are all minimized shrinks to its strips
The window's column takes one held-height state shared with the collapsed
column: WindowColumn::held is the content height, and collapsed the strip's
own width. A column whose every group is minimized shows at its rect's place
and width with the title row and strips' height (DockSizes::minimized_height);
its sides resize the width, and WindowColumn::kept keeps the rect's height, so
an OS window's recorded placement and an in-app window's rect keep the
expanded size and a restore gives it back. Stepped columns keep fitting their
content, which already measures minimized groups as strips.

Fixes storytold/photocraft#15862.
2026-11-21 02:14:51 +00:00
aiongg c957090b8b New Document cards: drop the unused Env import 2026-11-21 02:12:02 +00:00
aiongg feceac184b Export As and Save for Web list resample methods in the host's order; New Document: Background Contents before the advanced fields, save icon on the Name row, section captions as a type role 2026-11-21 02:10:34 +00:00
aiongg ad0c2fccc6 Show Image Size and Canvas Size fields at their compact width
A content-sized UnitSelect shows its number field one number cell wide
and its select as wide as its longest unit; a unit select of any other
sizing keeps a field's width and gives the select the room after it.
Image Size's and Canvas Size's Width, Height and Resolution rows are
content-sized, as their fields were before the port.
2026-11-21 02:07:40 +00:00
aiongg bf2d97ba40 Settle a label group when any sweep of its measure read a narrower column
A content-sized stack runs its rows twice in one measuring run: a second
sweep at the width the first found. A row inside a row of the group
(Image Size's Width and Height beside their link) reads the label column
in the first sweep only; the second takes its measure without reading the
column, so its group found nothing unsettled there and overwrote what the
first sweep found. The rows then kept the measure taken at the narrower
column, while the real run read the group's widest and stacked each label
above a field sized for one beside it: the field was cut to a strip.

The group now runs its rows again whenever any sweep found a row that read
a narrower column. Trials: a stack of labelled unit selects in a row of a
content-sized form, and Image Size and Canvas Size on a host, at 1x and
1.25x (photocraft#15483).
2026-11-21 02:02:16 +00:00
aionggandJere Salonen 5d5c729f7a Palette windows follow the app's modal and minimized state
A palette window stands as an ordinary window while an app-modal layer in
another window blocks it, and the modal's window is raised above it once,
by toggling its level (egui-winit ignores Focus for a focused window, and
on Windows a palette made non-topmost stands in front of the main window
otherwise). The palette goes back above the app's windows when the modal
closes (#15525).

A palette window is hidden while the main window is minimized and shown
again when it is restored, on Windows and Linux; on macOS the app stays
active with its main window minimized, and palettes stay (#15860).

One function, WindowLevel::standing, decides a window's level and
visibility from the app's state (focus, app-modal window, minimized main
window), which follow_activity records once per frame. The raise is
WindowAction::Raise.

Supersedes craft-libs#2267, whose design and trial this takes over.

Co-authored-by: Jere Salonen <hi@jere.co>
2026-11-21 02:01:03 +00:00
aiongg af50339b27 Escape keeps the anchor selection under Direct, Convert and Curvature
The overlay no longer clears the selection on Escape; the key goes on to the window as in 0.23.1.
2026-11-21 01:55:29 +00:00
aiongg a32fe7d6fd Option lists: hover moves only the lead
HoverLead (Off, Lead, LeadAndSelection) replaces lead_follows_hover. List::options takes Lead, so the hovered row no longer draws as the chosen option for a frame; UndoList keeps LeadAndSelection.
2026-11-21 01:50:30 +00:00
aiongg b66a60caf8 DocumentWindow: the body takes the window's room and never scrolls 2026-11-21 01:42:09 +00: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
Terra854 b674d91fbe stream-codecs: decode a RunLength stream prefix (#2703) 2026-11-21 08:32:16 +07:00
aiongg 3eebedfcff Component sets: the productivity set 2026-11-21 01:19:14 +00:00
Dylan M. Taylor 81f692810e Allow shells to center toast notifications 2026-11-20 20:10:20 -05: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
vangel76 425a1cf427 Merge upstream next into the checkbox sweep port 2026-11-21 01:57:28 +01:00
Dylan M. Taylor d18d5edb42 Open menus from keyboard and accessibility activation 2026-11-20 19:56:01 -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
Dylan M. Taylor f3c53d63a2 Allow zoom fields in explicitly sized slots 2026-11-20 19:37:22 -05:00
Dylan M. TayloranddotCooCoo 9b28b56bc7 craft-cdr: look up clipped objects' own chunks once (port vectorcraft#8862) (#2727)
Ports @dotCooCoo's clipped-group lookup accounting and regression test
() from storytold/vectorcraft#8862
into craft-cdr (#778, storytold/vectorcraft#8857).

Co-authored-by: dotCooCoo <RobertLeeLW@gmail.com>
2026-11-20 19:30:33 -05:00
Dylan M. Taylor 0350c2edc0 sqlite: extract shared page-size, B-tree header, local-payload, and signed-int helpers (#2694)
* sqlite: extract shared page-size, B-tree header, and signed-int helpers (#778)

* sqlite: remove duplicate test block in wire.rs

* sqlite: cover Error Display and truncated/invalid page-header branches
2026-11-20 19:26:17 -05:00
David MannandClaude Opus 5.5 c49a12a99d Crop: an edge or corner drag may take a document crop past its bounds
The Crop tool bounds the overlay by the canvas while Delete Cropped Pixels is on so that an
image-mode turn keeps the frame inside the image (photocraft#10869). The drag rules also cut
every edge and corner resize to those bounds, so a crop could not grow the canvas. In the
reference application it does. A resize of a document crop now goes past the bounds; turns,
moves, drawn frames, nudges and a placed picture's crop (bounded by its source) are unchanged.

Fixes storytold/photocraft#16043.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 01:24:29 +01:00
Dylan M. Taylor 4eeb6ae139 Support trailing text beside hosted table fields 2026-11-20 19:19:17 -05:00
Dylan M. TayloranddotCooCoo 75d179f8df craft-cdr: move VectorCraft's bounded CDR/CMX reader into craft-libs (#2697)
* craft-cdr: move VectorCraft's bounded CDR/CMX reader into craft-libs (#778)

Moves crates/cdr (vectorcraft-cdr, landed in storytold/vectorcraft#8632)
to craft-libs as craft-cdr: legacy WL (v1-v2), RIFF/cmpr (v3-v13),
ZIP packages and data streams (v14-v27), .cmx (32-bit), provenance
(R1-R63), synthetic test builders, and integration tests.

Co-authored-by: dotCooCoo <RobertLeeLW@gmail.com>

* craft-cdr: address CodeRabbit review findings

- Classify all-zero CMX dash patterns once in Tables::read instead of per-curve
- Validate loda offset table length before reserving offsets Vec capacity

---------

Co-authored-by: dotCooCoo <RobertLeeLW@gmail.com>
2026-11-20 19:12:32 -05: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
Dylan M. Taylor ec985c5e59 Leave unused Escape to the window from notices 2026-11-20 18:25:59 -05:00
Terra854 c6c90e991b sqlite: share B-tree local payload sizing (#2696) 2026-11-21 06:16:40 +07: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
Dylan M. Taylor 13e4f9d6bb Process pointer releases before later Escape events 2026-11-20 18:08:32 -05:00
Dylan M. Taylor bc0a72165c Route scoped keys through the current modal focus chain 2026-11-20 17:46:45 -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
Dylan M. Taylor eecaef6de0 Allow grid group headers to opt into keyboard selection 2026-11-20 17:18:26 -05: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