Commit Graph
7914 Commits
Author SHA1 Message Date
bflatastic 503ccd4cd9 Merge branch 'sync/next' into sync/delta11 2026-11-23 17:32:13 +07:00
bflatastic e433ef83eb ui-widgets: trial: a grid row holds a field whose label stacks above its control for want of room 2026-11-23 17:28:13 +07:00
bflatastic 3ce58d7cae ui-patterns: a form dialog's body takes the host's answers, the opening pass and OK only in a real run: the dialog's own measuring run of the body (a re-layout under a child dialog) used them up, so Save for Web's real run reported no palette shift 2026-11-23 17:28:13 +07:00
bflatastic 2e4bf56a88 print: the hosted print dialog's automation preset field takes a row's key or its name in any case and applies that row's key, as production found presets by name ignoring case 2026-11-23 17:28:12 +07:00
bflatastic b14f3a313d ui-contract: a component's focus request in a press's pass holds: the press's own focus move at the pass end does not take the focus back, as a layer that appeared in the pass already kept it 2026-11-23 17:28:11 +07:00
bflatastic 2f068b43a0 ui-contract: an injected step whose events the frame it entered held back (behind a real press, H0) stays in flight into the pass that delivers them, which reports injected_pass 2026-11-23 17:28:09 +07:00
bflatastic 77b2d98f66 ui-contract: an open anchored layer keeps the side it took only while its host asks for the same side; asked for another, it takes that side's placement 2026-11-23 17:28:07 +07:00
bflatastic a7f40c4474 draw: a running TransformFields gesture reads its values against the start box it began with, so a host that moves the start box with the gesture's own values does not cancel it as an outside change 2026-11-23 17:28:06 +07:00
bflatastic deb9ad9f07 ui-contract: Tab toggles the panels from read-only text a press focused (a selection part, a press-only stop), as from any pressed control; only a text field keeps Tab for the next field 2026-11-23 17:28:05 +07:00
bflatastic d824d42d25 ui-patterns: a new palette query's active row is its first match, enabled or not, so Enter on a disabled first match runs nothing and the footer says why, rather than Enter running the next match 2026-11-23 17:28:05 +07:00
bflatastic 508faa1eb7 ui-contract: an Alt press an input method types through is typing: the focused text stop that has the IME holds it, so its bound command does not run beside the commit 2026-11-23 17:28:04 +07:00
bflatastic 1fc46b5730 ui-contract: a one-character text with no press of its own is a tap of the key it stands for: a claim takes it, the shortcuts read it with the held modifiers (Shift+~ arrives as ~ alone) and a focused field types it; a text Alt typed with a press no claim took is its key's for a claim (Option+8 types [) 2026-11-23 17:28:03 +07:00
bflatastic cbbc1c26e7 ui-contract: a clipboard event with Cmd and Shift or Alt held is that chord (Cmd+Shift+X), the app's, unless the focused editor lists it for the edit: only the edit's own chord is the editor's Cut, Copy or Paste 2026-11-23 17:28:03 +07:00
bflatastic fd80adccc0 ui-contract: a press of a key that is down already is a repeat, as egui reads it: egui-winit sends every press as no repeat and leaves egui to tell, so the key stage's repeat rules (shortcuts, Escape, Tab) never saw a held key's repeats; the trials that pressed one key twice release it between 2026-11-23 17:28:02 +07:00
bflatastic eaff06f298 Merge branch 'sync/next2' into sync/delta11 2026-11-23 17:13:44 +07:00
bflatastic 34d7846cd3 ui-panels: a docking flyout closes on a press outside it only with Auto-Collapse Iconic Panels on 2026-11-23 17:11:24 +07:00
bflatastic b72fc4200d ui-contract: Fixture::by_label passes over a node that labels another, so a field's control comes before its caption link 2026-11-23 17:11:23 +07:00
bflatastic 80e46cf00e ui-widgets: IconButton::choice reads as a combo box named by its label, valued by the picked row, expanded while the container hung from it is open (contract::overlay::opened_from) 2026-11-23 17:11:23 +07:00
bflatastic 879b8f82a8 ui-canvas: Fit Artboard on Screen leaves 30 pt around the board on every side 2026-11-23 17:11:22 +07:00
bflatastic 08ada730d3 ui-panels: an edited tool rail takes the drops off its buttons: beside the nearest button, and on a blank toolbar as its last slot 2026-11-23 17:11:22 +07:00
bflatastic 000aac087e Merge remote-tracking branch 'origin/next' into sync/delta11
# Conflicts:
#	crates/font-manager/src/panel/specimen.rs
#	crates/font-manager/src/picker/rows.rs
#	crates/font-manager/src/picker/stories.rs
#	crates/font-manager/tests/it/picker.rs
#	crates/ui-widgets/src/choice/swatch.rs
2026-11-23 16:46:21 +07:00
bflatastic 47c6d53a1f font-catalog: FaceTraits goes, its class and PANOSE are FaceInfo's; the picker reads Japanese from the OS/2 code pages and ranges and Thai from the cmap 2026-11-23 15:42:50 +07:00
bflatastic 12d67b1cdf ui-contract: a reveal that moves a collection's rows after it declared its parts asks for another pass, so a memoized view around it runs rather than replay a stale scroll bar 2026-11-23 15:38:27 +07:00
bflatastic ecd1565856 ui-contract: on the focused menu bar a plain letter is a title's access key: it opens the title it marks, and one no title marks runs no shortcut 2026-11-23 15:24:26 +07:00
aiongg 5c5e0d52c3 Font samples: one baseline in a fixed band, shrunk only where their ink would leave it (#3144)
* Font samples sit on one baseline in a fixed band, shrunk only where their ink would leave it

A font sample was as high as its face's line (ascent, descent and line gap, the gap
below the baseline as egui lays it out) and centred in its rect, so faces with a taller
or bottom-heavy line sat higher in the picker's rows, and a face whose line was taller
than the banner's band was centred past its edge and clipped.

One rule, faces::sample_line, now serves FontSample and the picker's banner: the sample
fills a fixed band, sits on the baseline of the interface face's line at its size
centred in the band, and is laid out at its size unless its ink (the galley's mesh
bounds) would cross the band's top or bottom, then at the largest size whose ink fits.
FontSample takes its band as an option; the picker's rows set it to the thumbnail side,
as the banner's band is the large thumbnail side, and the panels keep LINE_EM of the
sample's size.

Trials: rows follow a host text that arrives after the list opened, in a CJK face; and
samples in faces with different lines sit on one baseline with their ink inside their
bands, rows and banner. Story font_picker_cjk_sample_text over the repository's Noto
Sans CJK SC subset.

* font-manager: declare the CJK test font its picker trials and story read

* font-manager: FontSample::band as a derived prop

* Swatch: the image well's mesh takes the shared UNTINTED vertex colour
2026-11-23 03:20:40 -05:00
bflatastic 7089e2de85 color-ui: ColorPickerDialog::working_rgb puts the host's working RGB in place of the built-in RGB in the Full and tabbed layouts 2026-11-23 15:14:51 +07:00
bflatastic 3ccf14ed9b color-ui: the Color panel rounds only what its channel fields show; an edit of one channel leaves the others unrounded 2026-11-23 15:14:50 +07:00
bflatastic cd96c3e43c Merge remote-tracking branch 'origin/next' into sync/next
# Conflicts:
#	crates/font-catalog/src/catalog.rs
2026-11-23 14:37:24 +07:00
bflatastic 89ce8fcbf6 ui-widgets: a hexagon swatch picture's mesh takes the textures' UNTINTED tint, not a raw white (design-lint raw-colour/const) 2026-11-23 14:29:12 +07:00
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
aiongg 46b14822af font-catalog: app start helper, font store watch and changed-family list (#2781)
* font-catalog: app start helper, font store watch and the list of changed families

app::start sets the app's folders, scans on a background thread and polls the
font store's folders, so a family the launcher installs shows at once.
app::on_activated rescans on window activation. Catalog::changes_since names
the families added, removed and changed since a generation, and
Catalog::store_changed checks only the store's folders.

* font-manager: a click on a font row's sample picks its family

* font-manager: a press on a row keeps the list the typed name filtered

* Font picker: a row pick of the family the field already holds adds no edit

* font-catalog: a rescan that finds no changed file keeps the generation
2026-11-23 02:00:03 -05: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