Commit Graph
7926 Commits
Author SHA1 Message Date
bflatastic fe2d1d09d7 ui-contract: DropTarget::under_modal and WindowDropTarget::under_modal let a target take OS file drops while a modal layer holds input, through the modal's scrim but not its body: a modal refused every drop below it and on the window, where VectorCraft placed files dropped under its alert; off by default 2026-11-23 21:26:08 +07:00
bflatastic 46b9fe002d ui-contract: Shift or Alt with Escape that the keymap binds to an enabled command runs it: the key stage read every Escape without Cmd or Ctrl as the scope's escape, so a command bound to Shift+Escape never ran; a plain Escape keeps its meaning 2026-11-23 21:26:07 +07:00
bflatastic df0b910dcc Merge branch 'sync/next2' into sync/delta11 2026-11-23 20:31:25 +07:00
bflatastic eb7fe4ff00 ui-contract: a bare Tab where it would toggle the panels runs the enabled command the keymap binds to it, when that is not a chrome command: an app command that took Tab from Toggle Panels never ran, as the Tab gate only took chrome commands 2026-11-23 20:27:43 +07:00
bflatastic 157714c25a ui-patterns: in the pass a tab click picks a panel of the focused group, DockAreaOutput::focused names that panel: it named the panel the group drew in that pass, the one before the click 2026-11-23 19:48:27 +07:00
bflatastic 51ad138dd2 ui-contract: a drag of OS files runs in the window under them: the main window's pass, which the OS sends none of a child window's files, ended the session, so files dropped on a native panel window never reached DockAreaOutput::window_files; the test kit's Windows now sends files to one window (FilesOver), as the OS does 2026-11-23 19:42:19 +07:00
bflatastic ac276c4e92 font-manager: the picker's script trial reads Sarabun from font-subset's test data, so the crate declares that read 2026-11-23 19:38:28 +07:00
bflatastic f8714b2374 ui-canvas: ToolHost::navigates: a press the host says navigates (a finger once a pen has been seen) runs the momentary Hand, latched for its gesture 2026-11-23 19:35:36 +07:00
bflatastic 95e4ec879e behavior, ui-canvas: RulerUnits::with_labels(TickLabels::Signed) writes ruler ticks signed with only the decimals they need (-2.5, 0.3, 1), VectorCraft's form; TickLabels::Distance stays the default 2026-11-23 19:35:36 +07:00
bflatastic 24e30ffacb ui-shell: a document window's raise brings its fallback layer to the front in that pass (overlay::raise), as a press on it does: it only asked an OS window for focus 2026-11-23 19:27:33 +07:00
bflatastic bbd5eb35d1 ui-contract: a focused text part takes as its edits only the bindings of Cut, Copy, Paste and the rest that are the platform's text-editing chords: an app's alternate key (F4 for Paste) went to the field too, where production left the text alone 2026-11-23 19:27:29 +07:00
bflatastic 0c633a83cd ui-canvas: a rulers corner drag lands at its release only while its edit is open: after the host cancelled it, the release proposed and committed again and moved the zero point 2026-11-23 18:05:09 +07:00
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