Commit Graph
8446 Commits
Author SHA1 Message Date
aiongg eadfc623d3 Merge remote-tracking branch 'upstream/next' into next-ci-reds
# Conflicts:
#	crates/ui-contract/src/testing/key_trials.rs
2026-11-24 07:17:18 +00:00
bflatastic 3238a3eca8 Merge remote-tracking branch 'origin/next' into fix/vc-buttons-fields 2026-11-24 13:51:33 +07:00
bflatastic bbef5516c0 ui-widgets: the selectable text trial names its canvas with Id::unique, as egui deprecates Id::new 2026-11-24 13:48:36 +07:00
bflatastic 27493aca39 Merge remote-tracking branch 'origin/next' into fix/vc-keys-press 2026-11-24 13:38:53 +07:00
bflatastic 49d439d63d ui-widgets: a tile grid without card_columns asks for one card in a measuring run again (ebf925452, lost in the merge b138b533f), so a dialog pane sized from it holds its rows and the row under them: presses on the tiles, the button and the field beside it land on them 2026-11-24 13:33:04 +07:00
bflatastic d3b03c1b44 ui-contract: a command a key, a native menu pick or the palette runs no longer closes a layer whose Dismiss::commands is off; a dock panel's flyout turns it off, so the command no longer closes and reopens it and a focused list in it keeps the focus 2026-11-24 13:30:24 +07:00
bflatastic 065efff0c9 Outline buttons: a line.outline token for the neutral outline's edge
Outline and soft neutral looks take their edge from line.outline, which follows text.muted unless pinned, so only
the VectorCraft Modern themes, which pin production's dimmer button edge, change.
2026-11-24 13:27:48 +07:00
bflatastic 0aeb4251cc Filled push buttons follow PushButtonLook only when they ask for no variant
A component's default variant may now come from its scope (Component::default_variant, read from the env before
the style's first). A push or split button takes the filled variant there under PushButtonLook::Filled, outside a
ribbon, so a button that asks for Variant::SECONDARY, as VectorCraft's task bar actions do, keeps the outline.
2026-11-24 13:27:47 +07:00
bflatastic 17d8a34242 ui-widgets: the inline number trials share one field rig 2026-11-24 13:18:40 +07:00
bflatastic ddd2e3c4e6 Filled push buttons: an Emphasis::Filled look on a new surface.control token, and PushButtonLook for an app's default
A filled neutral tile with no edge at rest takes the hover fill and the control edge under the pointer and the
pressed fill with the accent edge under the press; disabled, it dims as a solid one does. surface.control follows
state.hover unless pinned, so only the VectorCraft Modern themes, which pin production's button fills, change.
An app sets PushButtonLook::Filled at its root to make it the default of its push and split buttons; a ribbon
keeps its flat look and toggles keep the outline.
2026-11-24 12:57:13 +07:00
bflatastic 0a31be98c3 ui-widgets: NumberPrecision::Measured shows a length to a thousandth of a point and a ten-thousandth of the larger units (357.114 pt) 2026-11-24 12:56:16 +07:00
bflatastic 269ce9d696 ui-widgets: NumberPrecision::Measured lets an app show whole percentages (60%) where the standard precision writes one decimal 2026-11-24 12:41:25 +07:00
bflatastic 8da5ec92a5 ui-widgets: NumberLook::Inline sets a number field's value and unit as one run at its start (720 pt, 0°, 100%) 2026-11-24 12:33:34 +07:00
bflatastic aa973d98fa ui-contract: a press the focused component holds leaves egui's input again unless the app's own widget reads it; the merge b138b533f passed whether anything had focus for whether the focus was the app's widget 2026-11-24 12:23:14 +07:00
bflatastic 51eaf9fd25 ui-contract: a page key the keymap binds to a command that runs now runs it ahead of the document canvas's page scroll, focused or not; an unbound one still pages 2026-11-24 12:19:01 +07:00
bflatastic 48d19d2810 ui-contract: a command fired from a button runs as a command; only a menu's or the palette's fire stands for the key a component claims 2026-11-24 12:08:24 +07:00
skylartaylor 1d281f38c1 atomic: a write-only file's unreadable attributes are dropped, as documented and tested (review)
On macOS a mode-0200 file's owner can list none of its attribute names either, so they are dropped, as
before attributes were kept. An ACL that denies the data but lets the names be listed still refuses the
save. Both are now tested on macOS. Also: the pages key doc gives the macOS exception for Cmd+Home/End.
2026-11-24 04:48:57 +00:00
skylartaylor f29372d280 atomic: an unreadable file saves only when it has no attributes to lose (review)
When the old file can't be opened for reading, its attribute names are listed by path: none (or only
com.apple.provenance) lets the save go on; any other refuses it, since they can't be copied without the file.
2026-11-24 04:48:57 +00:00
skylartaylor 52503acd71 Fix the macOS test failures next picked up from the PdfCraft framework sync (#3232)
- atomic: a file the user may write but not read (mode 0200) saves again on macOS; its extended
  attributes can't be read, so there are none to keep.
- menu, ui-shell, pages, ui-contract, ui-canvas tests: follow the macOS conventions the code already has. The
  in-window bar test pins its target as the other bar tests do; macOS has no Menu key and no Cmd+Home/End move;
  its platform copy key is Option; a press with Control there is a secondary click, so Control comes after the press.
2026-11-24 04:48:57 +00:00
bflatastic f2ee94bfc4 Merge remote-tracking branch 'origin/next' into fix/vc-theme-and-focus
# Conflicts:
#	crates/theme/tests/dumps/tokens/vectorcraft-modern-medium-dark-high-comfortable.txt
#	crates/theme/tests/dumps/tokens/vectorcraft-modern-medium-dark-high-compact.txt
2026-11-24 11:33:46 +07:00
bflatastic 0bf6239b0e Merge branch 'fix/grid-stacked-label-rows' into fix/vc-theme-and-focus 2026-11-24 11:33:23 +07:00
aionggandskylartaylor eaeb0fa028 platform: owner_only's docs name its Windows-only functions as code, not links
From storytold/craft-libs#3236, so this PR's Workspace docs check can pass.

Co-authored-by: skylartaylor <hi@skylar.cc>
2026-11-24 04:02:17 +00:00
aiongg 9750fe6d77 i18n: the region test module builds only where its one test runs 2026-11-24 03:41:37 +00:00
aiongg c13c6eeed5 docs: regenerate the components index 2026-11-24 03:28:05 +00:00
aiongg 8ef406cd5d ui-widgets: a tile grid that takes its width from its content asks for at least one card again
The merge of next (b138b533fe) brought back the early zero width that ebf9254522 removed, so a measured stack lost the
grid's rows and what follows them. The selectable-text trial names its canvas with Id::unique.
2026-11-24 03:28:05 +00:00
aiongg 3b200f43d6 text: a one-line field pastes each line ending as a space again; the editor's step loop is its own function
The merge of next (b138b533fe) dropped one_line from the paste when it took the step loop. Moving the loop out of
TextEditor::update keeps the update under clippy's cognitive complexity limit.
2026-11-24 03:28:05 +00:00
aiongg 22205fffd1 ui-contract: an OS file drop lands where it was dropped, and files hovering in the pass that takes it start their own drag
A drop the next frame takes reads the drop's own position, not a pointer the next files have moved, and the files the OS
holds over the window in that pass start a session once the drop ends the old one. The files' pointer is the system
pointer where the platform tells one, else the pass's own: the drag's noted source pointer is from the pass before.
2026-11-24 03:28:05 +00:00
aiongg ae722739ab ui-contract: presses the focused component holds leave egui's input again, and Tab stays navigation with nothing focused
The merge of next (b138b533fe) passed whether a stop was focused where withdraw_taken takes whether the app's own
widget reads its keys from egui, so no held press left egui's input while anything had focus. With nothing focused the
document canvas's held claims leave out Tab and Shift+Tab: a tool that claims the plain keys no longer keeps keyboard
navigation from moving into the window. The unfocused-canvas trial releases its keys, since a press of a key already
down is a repeat.
2026-11-24 03:28:05 +00:00
bflatastic 9c9e7ae806 ui-contract: a focused stop in a layer that plays its exit loses the focus in the first pass of the exit 2026-11-24 10:12:15 +07:00
bflatastic a6c6eda35a theme: VectorCraft Modern's selected, pressed and disabled colours take production's values
Production tints selected rows and pressed fills toward the accent in every
Modern palette, the default Coral included, and draws disabled text in its
disabled grey. The VectorCraft themes pinned the untinted values and left
text.disabled derived. Their dumps also lacked tokens added since they were
last written.
2026-11-24 09:58:45 +07:00
bflatastic 12c5d012ed ui-contract: a focused text field keeps the Escape it does not use, and every other focused control lends it to the window 2026-11-24 09:57:15 +07:00
bflatastic 7a01b71818 Merge remote-tracking branch 'origin/next' into vc/next-ci 2026-11-24 09:46:23 +07:00
bflatastic b6b2908123 theme: regenerate the VectorCraft token dumps with the six tokens next added 2026-11-24 09:27:06 +07:00
bflatastic 68a41a9e81 text: Format Text's font row names the font_picker prop without a link the font-picker feature gates 2026-11-24 09:17:56 +07:00
bflatastic 9aa180d031 ui-contract: a press egui gives to a selection part's text takes focus through the press plan
A press on SelectableText has no winning framework shape, so the press plan was Unclaimed and egui's read-only
text widget took focus by itself: the focus record never saw a press, and Tab with tab_toggles_chrome on moved
focus instead of toggling the panels. A press no shape wins that egui gives to the widget of a press-only stop
now takes focus for that stop, so it records FocusOrigin::Press.
2026-11-24 09:13:59 +07:00
bflatastic afbe61c547 automation: the control server ends a connection after its last reply by closing its write side and reading off what the client still sends, so the close no longer resets the connection and loses the reply or the end of the stream 2026-11-24 08:48:26 +07:00
bflatastic f92a0be4ec atomic: drop the empty line between KEPT_ATTRIBUTES and its doc comment 2026-11-24 08:37:06 +07:00
bflatastic 7002b2ec8f ui-contract: drag::register takes a target's reach as one TargetReach; collections report an item's output through one helper 2026-11-24 08:23:57 +07:00
bflatastic daed17160c ui-patterns: a hosted dialog's automation set takes the host's row labels and shown states, every tab's rows and the read-only refusal again, and reports the rows it changed, which the merge of next dropped from the batched set 2026-11-24 08:11:59 +07:00
bflatastic 969bfa99fa ui-patterns: a document dialog's fixed section puts its rows on a card again and heads them with its name, which the merge of next dropped from the section rewrite 2026-11-24 08:11:54 +07:00
bflatastic c41413e8b5 platform: name the page save callback type; web-host: implement Files::pending_pick 2026-11-24 08:08:04 +07:00
bflatastic 1b72220272 behavior: a grid's least probe keeps its Fill columns Fill, unbounded, so a field that fills its width there measures its own width instead of none; the fill column's least is then the field's, so a grid beside a menu no longer squeezes the field under it, stacks its label in rows measured unstacked, and overlaps the next row 2026-11-24 08:07:49 +07:00
bflatastic 5d094e34ad ui-widgets: declare the Arabic test font read from ui-contract 2026-11-24 08:02:08 +07:00
Dylan M. Taylor 945e849cba Merge pull request #2809 from storytold/port/stubs
VectorCraft UI port: framework contract and components
2026-11-23 19:55:54 -05:00
bflatastic 8a4d26ccbb Merge branch 'fix/hosted-answers-real-run' into vc/fixes-on-stubs 2026-11-24 07:42:11 +07:00
bflatastic 80854fad02 draw: Slice Options takes the host's answers only in a real run 2026-11-24 07:16:37 +07:00
bflatastic 8311df0401 ui-patterns: hosted New Document takes the host's answers and closes on an accepted held answer only in a real run 2026-11-24 07:16:28 +07:00
bflatastic 3eddf17eea ui-patterns: hosted New Guide Layout and New Guide take the host's answers only in a real run 2026-11-24 07:16:23 +07:00
bflatastic b178752244 ui-patterns: hosted Save for Web takes the host's answers, the Optimize answers and the automation inputs only in a real run, so a palette colour answered in a measured frame still becomes a shift 2026-11-24 07:16:21 +07:00
bflatastic 8f60b79b39 ui-patterns: hosted Export As takes the host's answers only in a real run, so a path answered in a frame whose first run measures the dialog still finishes it 2026-11-24 07:16:18 +07:00