Commit Graph
8520 Commits
Author SHA1 Message Date
Dylan M. Taylor eaac197b42 Merge branch 'pdf-port/sync-fw-panels-shell' into pdf-port/sync 2026-11-22 23:05:15 -05:00
Dylan M. Taylor 0df03d1d67 Merge branch 'pdf-port/sync-fw-widgets' into pdf-port/sync 2026-11-22 23:05:15 -05:00
Dylan M. Taylor 8b5133f680 Merge branch 'pdf-port/sync-fw-contract-core' into pdf-port/sync 2026-11-22 23:05:15 -05:00
Dylan M. Taylor 58f35e8ec0 fw-panels-shell: resolve the sync of origin/next into the port's ui-panels and ui-shell files
Dialog: upstream's ButtonPlace replaces the port's side flag; the port's title note, title icon and close-unchanged stay.
Footer roles: upstream's Alternate and the port's Alternative are both kept, with one rank table.
Unsaved question: upstream's alert role, Alternate role and failure reason, with the port's wording options.
Docking: the port's group footer, titled header, tab marks and counts and caption go into upstream's memoized tab row;
the port's footer, rail footer and content hooks stay on DockPanels beside upstream's PanelSpecs; iconic rail mode on
upstream's bar; floating grip on upstream's chrome sizes. Tool rail edit icon in the memoized grid.
Start screen: upstream's Home and Greeting layouts, picture shape and recent_list split, with the port's pinned
folder listing, host sections, offers_new/offers_open, pinned title and section headings.
Tests: both sides' trials kept; port trials moved to Titles, Registry and the props-keyed CommandGate.
2026-11-22 23:04:30 -05:00
Dylan M. Taylor c6250e81b9 fw sync, fw-widgets: merge origin/next into the port's ui-widgets
Union of both sides in buttons, swatches, picture, lists and rows, menus,
notices, date picker, popup list, tabs, text fields and the tile grid, and
their stories and trials. Picture keeps upstream's Rendered source and the
port's Svg source on the shared packed store. Swatches take upstream's
hexagon shape with the port's WellFill and icon cells. Tab strips take
upstream's Fitting (ghosts, kept tabs, end items) with the port's document
tab gap; tabs take upstream's place() with the port's marker dot. Menu rows
keep the port's RowInput with upstream's pointer-driven activation. Test
module lists are the union, pub(crate).
2026-11-22 23:01:15 -05:00
Dylan M. Taylor 0228bb2569 fw-canvas: resolve the origin/next sync conflicts (canvas autoscroll, wheel schemes, rulers, editor part, crop scope, task bar kinds, transform box handles; trials and stories) 2026-11-22 23:00:58 -05:00
Dylan M. Taylor 80ce862b7a fw sync fw-contract-core: resolve ui-contract contract/primitives conflicts with origin/next
Union of both sides: upstream's rewritten code (items_extent, scroll_rows, known rows, HostStep, EditorHandle,
prepare/run text split, drop_spot, roving_group/parts_group, counted tooltip texts, data_quad, add_shapes_in,
texture shown()) with the port's additions re-applied (middle scroll, hover delete, hovered row, menu request,
auto-width run, zoom anchor, report_sense, parts re-report, select_all, window-blur draft, modal-dialog escape,
crossing-axis part groups, WellFill, stacking/drag_to_root, break_anywhere, strikethrough, waited). Test module
lists are the union.
2026-11-22 22:59:25 -05:00
Dylan M. Taylor 84dd65f487 fw-sync fw-menu-misc: resolve menu, behavior, automation, font picker, theme, color-ui, docs, vendor, Cargo.lock
menu: upstream's memoised bar and English names in the model, with the port's icons/compact
options and disabled submenus. behavior: press keeps both the pointer-left and pass-drag
states; KeyRole gains PartialEq/Eq. automation: agents deps via craft-control, screenshot
params with region, document points with a page. font picker: upstream's column list, kinds,
actions and missing note, with the port's host groups, current host row and mixed label.
theme: wordcraft and pdfcraft app palettes. Cargo.lock: port side; vendor jbig2: upstream.
2026-11-22 22:58:08 -05:00
Dylan M. Taylor a9126c6a72 fw-sync fw-contract-runtime: resolve ui-contract runtime, egui glue, fonts, style, testing kit, manifest and runtime trials
Union of the port's and upstream next's changes: document-face chains carried onto
upstream's over-interface faces (one begin-pass edit), refused/declined commands and
requested pastes onto the rewritten command board (resolve_once, Instances), drop
operations beside region tokens in drag registration, wheel layers/exit gate/modal
family beside scroll_owner_inside, locate_wheel beside press records, text_edit
scroll + submit_key, both focus/policy additions, test module lists and trials.
2026-11-22 22:57:47 -05:00
Dylan M. Taylor 98d01dfc3f fw-services: resolve the sync of origin/next into pdf-port/gaps
platform (appearance, portal, clipboard, open), settings, host files, dialogs
service, print, i18n date. Settings take upstream's LocalStorageFiles, with
BrowserFiles a deprecated alias (L-313); Windows reduced motion is upstream's
native worker; the port's forced pick answers, write intent, GNOME text scale,
open-for and byte intake stay on upstream's code.
2026-11-22 22:57:38 -05: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
Dylan M. Taylor cb3101725c sync skeleton: origin/next 118f1d2ff9 into pdf-port/gaps ea77c1676f, markers left
257 conflicted files staged with their conflict markers (630 hunks). The one
modify/delete, crates/ui-patterns/src/patterns/preferences/body.rs (deleted
upstream, modified by the port), keeps the port's file for its area to carry
into upstream's preferences/page.rs. Plan: landing/fw-sync-plan.md.
2026-11-22 22:42:09 -05:00
Dylan M. Taylor ea77c1676f Quiet check box: white mark, small corners 2026-11-22 22:32:47 -05: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
Dylan M. Taylor 83b4245713 Param::beside_previous: rows that share a line in a parameter form (trial) 2026-11-22 22:15:37 -05:00
Dylan M. Taylor e117e783cb TransformBox::round_handles: circular corner and side handles (trial) 2026-11-22 22:11:46 -05: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
Dylan M. Taylor 4b7937c270 Tile: quiet check box (Checkbox::quiet) and an outlined selected band tile (trials) 2026-11-22 22:06:49 -05:00
aiongg de01d25a52 font-catalog: name the per-file slot type (clippy type_complexity) 2026-11-23 03:06:37 +00:00
Dylan M. Taylor ef11aa2431 MenuBarUi::compact / MenuItem::compact: rows a text line tall (trial) 2026-11-22 22:03:59 -05: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
Dylan M. Taylor cfb37fb71f TileGrid: insert gaps are muted at rest, accent under the pointer (trial) 2026-11-22 21:21:08 -05: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
aionggandRickiNano a309c143ab Hue/Saturation: pick the range with seven round swatches
The range dropdown becomes a radio group of round swatches: Master as the
hue wheel, then Reds to Magentas. An edited range shows its centre colour
before and after that range alone, with a dot under it. The range's centre
stands above Hue ("240°", "0° / 30°"), and Colorize shows one read-only
swatch of what it makes of a mid grey.

adjusted(&dyn Fn(&HueSaturation, Srgba) -> Srgba) replaces
adjusted_spectrum: one engine callback for the lower spectrum bar, the
range swatches and the Colorize swatch. HueRangeValue::centre gives a
range's centre.

Restores storytold/photocraft#14753.

Co-authored-by: RickiNano <81099017+RickiNano@users.noreply.github.com>
2026-11-23 02:20:42 +00:00
aiongg 7ada3dc77b Swatch: round wells, split, spectrum, image and empty fills
SwatchShape::Round joins Square and Hexagon, and SwatchFill names what fills
the well: a colour, a before/after split, the hue wheel, a picture (through
the texture cache, keyed by the picture's hash) or an empty well.
Swatch::with_fill shows any fill beside Swatch::new, which is unchanged.

A component can now shape its own focus ring with Cx::focus_shape, the
FocusShape parts already use. Swatch sets it for round wells (a circle) and
for hexagon wells (the hexagon), so hexagon swatches get their shaped ring
too.
2026-11-23 02:20:42 +00:00
aiongg 8f82948bc6 Ruler: Shift snaps to 45 degrees keeping the shorter leg
Restores storytold/photocraft#11985.
2026-11-23 02:20:42 +00:00
aionggandhnoerenberg a8a3a594de Curve graph: one grab radius for every point, past the plot edge too
Point parts take presses, and one nearest-point picker serves plot and
point presses, so a point at the plot edge is grabbed from outside it.

Restores storytold/photocraft#14443.

Co-authored-by: hnoerenberg <hnoerenberg@users.noreply.github.com>
2026-11-23 02:20:37 +00:00
aiongg 118f1d2ff9 Merge pull request #3121 from aiongg/next-lost-tests
Build the integration tests next lost in the syncs (craft-pdf, craft-cms, craft-prepress)
2026-11-22 21:19:56 -05:00
bflatastic 0a33cd9217 ui-contract: a command a key fires carries its event's place, and Cx::editor_steps gives an editor its inputs and its scope's commands in one stream in arrival order 2026-11-23 09:19:36 +07:00
Dylan M. Taylor 276161b92b Shortcuts reference opens at a moderate fixed height; FindBar options icon is the adjustments glyph (trial) 2026-11-22 21:18:48 -05:00
Dylan M. Taylor c7e1e41266 Document tabs: a long name is cut to a compact tab, and a tab drag shows no badge (CollectionProps::drag_badge; trials) 2026-11-22 21:10:47 -05:00