Commit Graph
7884 Commits
Author SHA1 Message Date
bflatastic aa46fe4bbc ui-widgets: rustfmt the merged swatch face 2026-11-23 14:06:15 +07:00
bflatastic 9afb1ebf55 ui-panels: the grip trial reads GroupGripOutput::drag_started as the bool next's grip reports 2026-11-23 14:06:14 +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 a29bfe866b ui-canvas: the rulers' corner drag proposes where it lands at its start and its release, so a drag of one move sets the zero point 2026-11-23 13:37:04 +07:00
bflatastic f536089107 color-ui: a disc drag takes the host's colour as its echo when it lies where the drag put the marker, so a host that keeps the unshown channel from the press or stores its own colour model is not cancelled as an outside change 2026-11-23 13:34:41 +07:00
bflatastic 295c967c65 ui-shell: a document window's fallback layer moves by its title row and reports where a move or resize took it, so a host that places the window keeps it there
The fallback overlay was not movable, so its title row had no move band, and DocumentWindow dropped the layer's placement changes while first_placed held the window at the host's rect. DocumentWindowOutput::placed gives the rect a move or resize reached in the pass.
2026-11-23 13:27:47 +07:00
bflatastic cbf17f41b9 ui-panels: the rail's locate trial is reached by a module, against the rail's Tracked slots and its reveal and mark props 2026-11-23 13:20:49 +07:00
bflatastic b84703ac8b ui-contract: a container level keeps its run's core, hooks, plans and body Ui on the heap, so sixteen nested containers fit a 512 KiB stack in a Windows debug build
Each nesting level held the run's CxCore (2104 bytes), its BodyHooks (808), Begun (504), HostStep (672), BodyPlan (648), MeasurePlan and the body's and measuring sweep's Ui (376 each) by value while its children ran. They are built on the heap in the helpers that make them, and the label-column sweeps move out of sweeps. Measured on rustc 1.100, debug, Windows: 28.9 / 31.7 KB per Stack / Row level before, 22.3 / 24.0 KB after; the innermost body of body::nesting used 499 KB of the 512 KiB stack before, 384 KB after.
2026-11-23 13:18:20 +07:00
aiongg ee30b17c21 Merge pull request #3140 from aiongg/restore-lost-pc-features
Restore four PhotoCraft features lost in photocraft#15449 (curve grab, ruler snap, Hue/Saturation swatches, Mixer load)
2026-11-23 00:45:59 -05:00
aiongg cd4662c914 Merge pull request #3145 from aiongg/font-picker-speed
Fonts: load faces off the UI thread and serve them to egui without a rebuild (font picker speed)
2026-11-23 00:45:47 -05:00
bflatastic 7e2b61dba6 color-ui: SwatchPair activates a well only when focus moves onto it, so a well keeping the focus leaves the host's choice of the other well 2026-11-23 12:33:19 +07:00
bflatastic 2bad4aebd5 ui-contract: a field label without text names no control, so a custom row with an empty label leaves its control the name its own label gives it 2026-11-23 12:33:18 +07:00
bflatastic f712b3306b ui-contract: a plain press on a row or tile outside the selection picks it when it ends as a click, so a drag carries the row alone and leaves the selection, as the old apps picked on the click's release; a selection change restates the rows the pass measured with the old one 2026-11-23 12:18:29 +07:00
bflatastic ac24169b19 ui-contract: a press that moves past slop leaves the click run, so the press after a drag is a single press, as only clicks counted toward a double click in the old apps 2026-11-23 12:18:28 +07:00
bflatastic ebf9254522 ui-widgets: a tile grid that takes its width from its content asks for at least one card, so a measuring run lays it out at the width it shows in and a stack sized from it holds every row and what follows 2026-11-23 12:18:27 +07:00
bflatastic 0f14d9049e ui-widgets: an equal link the host turned off again before the pass that sees it turn on sets no field to the first one's value 2026-11-23 11:56:27 +07:00
bflatastic 71a5b3b0bb print: in the sections layout an app's row with a printer setting's key (copies, duplex, grayscale) takes the value automation sets and is the one the listing reports, as the printer panel shows only the printer there 2026-11-23 11:56:27 +07:00
aiongg 81868fe734 Merge remote-tracking branch 'upstream/next' into font-picker-speed 2026-11-23 04:54:41 +00:00
aiongg c896ab291f Merge pull request #3130 from aiongg/next-sync-1123
Merge storytold main into next (23 Nov sync)
2026-11-22 23:54:14 -05:00
aiongg 3b629776d8 Testing runtime runs background work inline: InstallSpec::jobs and Env::jobs_of
Story trials have no host, so document-face and texture loads ran on default_jobs' threads and a fixture
could settle before a face landed (StyleList::variants on Windows: rtl 52.0 vs 52.8, motion shapes change
after the drive). InstallSpec::jobs sets where a context's background work runs while no host is installed;
Env::jobs_of (host, else installed, else default_jobs) replaces the two copies in the face registry and the
texture loader. testing::install_spec and the suite's language hosts use InlineJobs, so a load asked for in
one pass lands in the next on every machine; the two per-story InlineJobs options go.
2026-11-23 04:43:29 +00:00
bflatastic 7d61a755c9 docs: regenerate contract-api for Reader::split_unit and contract::response_of 2026-11-23 11:32:56 +07:00
bflatastic 4335d1ef13 ui-widgets: a document tab dropped on a strip with no tabs, or past its tabs, is reported: DocumentTabsEvent::DroppedInto's over is an Option 2026-11-23 11:21:30 +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 bf91cb7e1e behavior: the number Reader reads picas and points written together (2p6, Reader::split_unit) and a percentage after * or / as a share (3cm*50%); length readers register p 2026-11-23 11:21:28 +07:00
bflatastic 1385f0ff3d ui-contract: a held Escape cancels once: its repeats raise no Cancel, focused or not 2026-11-23 11:21:26 +07:00
bflatastic 443a05c863 docs: regenerate contract-api for SubNode::run_link's removal, EditorStep, ItemLayout::set_fit, Fired's place and FrameOutput::dimmed 2026-11-23 10:52:58 +07:00
aiongg 090fd70580 font-manager: the install-queue trial counts only install runners 2026-11-23 03:52:33 +00: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
bflatastic 2c718b583b ui-panels: trial: a drag from a collapsible section's title moves it in a section stack, through a header menu and a drop slot, and a click there still folds it 2026-11-23 10:49:22 +07:00
aiongg 8c4e115ea4 docs/contract-api.md: regenerated (document_face's job and the face bytes; also ColumnSpec::at_least and data_fill_tiled, which next's copy lacked) 2026-11-23 03:27:14 +00:00
aiongg 1fadb03453 Document faces: one queue per context, lost loads fail, replays mark faces drawn, one byte budget
- The load queue is made once per context, as TextureLoader's is: without a
  host, default_jobs() returned a new Arc each call, so every new face made a
  new queue and dropped the loads before it.
- The begin-pass step marks a face unavailable when its load is neither
  queued nor running and delivered no result (a job that panicked), so the
  row stops asking for passes.
- A kept face's draw mark is journaled, so a settled view's replay marks the
  faces its run drew and eviction keeps them while on screen.
- One budget over the files the registry keeps plus the files egui still
  holds for faces taken out. Past it, the faces drawn longest ago go down to
  half the budget and egui's fonts are made again once. The budget is a
  registry field; trials set it with testing::document_face_budget.
- FacesCx::document_face takes a closure that makes the load, called only
  for a new key, so a ready face clones no FaceInfo or catalog.
- Similar fonts weigh a family by its file's raw usWeightClass again
  (FaceInfo::weight_class, None without OS/2; 400 then), not the scan's
  weight. The review point that families without OS/2 data now join Similar
  fonts was checked: the old read_traits listed them too, with zero PANOSE
  and weight 400, so they stay.
2026-11-23 03:25:59 +00:00
aiongg 6a1d13c762 ui-panels: the grip trials compare within a named slack (design-lint test/literal-size) 2026-11-23 03:23:17 +00:00
bflatastic d6d8e4c859 ui-widgets: a link in a sentence is one Link node: the paragraph is its own node, and the link's words on each row are their part's Link node below the row's run, which takes focus and the click; SubNode::run_link is gone 2026-11-23 10:19:57 +07:00
bflatastic fb939c5c7f text: the text editor takes its inputs and commands in arrival order with editor_steps, so typing after a commit's chord is not the session's 2026-11-23 10:11:24 +07:00
bflatastic f6fd9623b0 ui-contract: EditorStep is non_exhaustive 2026-11-23 10:11:23 +07:00
bflatastic 42d6487d9a ui-panels: a prompt with no default answer opens with no button focused, so Enter answers nothing 2026-11-23 10:11:22 +07:00
bflatastic d6b9b77de6 ui-widgets: HelpEntry::with_tie_order orders entries that match a query equally, before the label's length, as production's result kind did 2026-11-23 10:11:21 +07:00
bflatastic 28a5d985f0 ui-contract: a key press whose chord binds only commands disabled where it lands is reported in FrameOutput::dimmed, so the app can say why nothing ran 2026-11-23 10:11:19 +07:00
aiongg de01d25a52 font-catalog: name the per-file slot type (clippy type_complexity) 2026-11-23 03:06:37 +00:00
aiongg 67409c465f Font picker: sample faces load off the UI thread and stay while drawn lately
Opening the font list read and parsed every visible row's font file on the UI
thread, re-read a collection for each family it holds, rebuilt egui's whole
font set for each face added, and dropped off-screen faces after 64, so
scrolling back loaded them again.

- Document faces reach egui through one served-faces provider: egui parses a
  face the first time text is laid out in it, so a face arriving keeps the
  parsed faces, the atlas and the galley caches. Faces over the interface
  fonts use the same provider; edit_faces' add path and
  MAX_INTERFACE_FACE_BYTES go.
- Catalog faces load as jobs on a per-context JobQueue (the host's jobs) and
  are ready from the pass after they land; loads no frame asks for are
  dropped. Faces whose bytes the app holds register in the same pass.
- The registry keeps faces up to MAX_DOCUMENT_FACE_BYTES (512 MiB of distinct
  file bytes), least recently drawn out first; past the same budget of
  withdrawn files egui's fonts are made again to free them.
- The picker's coverage check reads the registry's loaded bytes instead of
  the file; traits come from FaceInfo, which the scan now fills with
  sFamilyClass, PANOSE and the post fixed-pitch flag.
- Catalog::file_bytes shares one read per file across threads.
2026-11-23 03:00:47 +00:00
aiongg 5ddae9f82d Hue/Saturation: AdjustedFn borrows for the editor's lifetime; swatch trials drop an unused import 2026-11-23 02:35:34 +00:00
aiongg cee746e97c ui-panels: rustfmt the grip's drag-start condition 2026-11-23 02:33:25 +00:00
bflatastic 96f769a6e8 imaging: the magnetic lasso fastens points only when the pointer moves, so a hover rerun by a key under a still pointer leaves the outline as it was 2026-11-23 09:31:56 +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 8242da0a92 ui-canvas: Space moves the Zoom tool's rectangle while held, once let go since the press, and the release zooms to the moved rectangle 2026-11-23 09:26:44 +07:00
aiongg 25c3f64902 Hue/Saturation: name the adjusted callback type AdjustedFn (clippy type_complexity) 2026-11-23 02:24:25 +00:00
aiongg e55137b72f Select and Mask previews again after a document edit
The workspace keyed its pending preview on the request alone, so after
HostedWorkspace::set_source the same request found the old job and no
preview of the edited document started. The key carries
WorkspaceCx::revision, as Vanishing Point and Wide Angle do.
2026-11-23 02:20:42 +00:00
aiongg 52b3381693 PaintBar: show the Mixer Brush load as a colour, image or checkerboard
MixerValues::load_color becomes current_load: MixerLoad (Clean, Color,
Image). The load swatch shows the sampled tip image after an Alt-click and
a checkerboard for a clean brush, through Swatch's fills. MixerValues is no
longer Copy.

Restores storytold/photocraft#11953.
2026-11-23 02:20:42 +00:00