Commit Graph
271 Commits
Author SHA1 Message Date
autocraft-bot[bot] e8bb26145d Merge pull request #3271 2026-11-29 02:12:19 +00:00
autocraft-bot[bot] 1f42f701dc Merge main into lightcraft-pr/fw-value-editing 2026-11-29 01:33:55 +00:00
autocraft-bot[bot] 325ae14c28 Merge pull request #4192 from storytold/integration-craft-libs-20261129-5
Integration batch integration-craft-libs-20261129-5
2026-11-29 01:29:51 +00:00
dotCooCoo 93006634f4 dock: part of a collapsed column floats or docks expanded
A group or panel taken out of a column collapsed to icons kept the
column's collapsed state in its new column. A group dragged out of an
icon column by its grip floated as a strip with a flyout: the tab names
were cut off and a click on a tab did not switch the panel.

A new column, floating or docked, now stays collapsed only when it holds
the whole column it came from. When other panels stay behind, the new
column is expanded. Groups that join an existing column still keep the
source column's state, so their flyout widths are unchanged.

An icon dragged out of a collapsed column that keeps other panels now
starts a plain group drag, so the float preview and the window rect match
the expanded window that the drop makes.
2026-11-28 12:07:34 -08:00
skylartaylor 7d1d1051a5 Merge framework dock key forwarding into scalar routing 2026-11-28 20:21:48 +01:00
autocraft-bot[bot] 03bd2112a5 Merge main into design-port/pr-dialog-looks 2026-11-28 19:19:47 +00:00
skylartaylor 7e7128ad21 Merge craft-libs main and regenerate the contract catalog 2026-11-28 18:22:22 +01:00
skylartaylor a5fa9872d0 Merge latest craft-libs main 2026-11-27 18:42:44 +01:00
skylartaylor a9d0ec2fa7 Merge craft-libs main (40e0459086) without changing layout ownership 2026-11-27 18:31:00 +01:00
aiongg ee7ae9fb80 Merge storytold main (2aa00e60bf) into fw365-int
Conflicts:
- ui-contract items/hooks.rs: rest_lead takes no placement here; main's
  lead focus ring block is kept as main wrote it.
- ui-panels docking/mod.rs: main's FocusLook import kept; the memory::sub
  import goes, since the dock no longer keeps pass frames in memory.

Follow-ups of the merge:
- MeasureCx::in_row (main) reads row_alone_room from the component's
  scope env, as column_room does here.
- The split-handle focus ring trial (main) passes SplitArea's revision.
2026-11-27 15:00:15 +00:00
skylartaylor 33f2e722c9 Merge remote-tracking branch 'origin/main' into rv-3271
# Conflicts:
#	crates/ui-widgets/src/value_drag/slider.rs
2026-11-27 08:50:41 +01:00
skylartaylor e14a0e9be8 Merge craft-libs main (c0977ad6): module list unioned, docs regenerated 2026-11-27 08:40:45 +01:00
BFlat 85d26f43e0 Merge pull request #3632 from dotCooCoo/fix/flyout-keeps-width-on-redock
dock: a group docked into a collapsed column keeps its width as its flyout width
2026-11-27 14:21:34 +07:00
BFlat f17d2a71a1 Merge pull request #3804 from dotCooCoo/fix/quantity-leading-zero-decimal
Read a lone grouping mark after zero as a decimal
2026-11-27 14:18:46 +07:00
BFlat 1b6a488a66 Merge pull request #3619 from dotCooCoo/feat/wheel-zoom-lines
ui-contract, behavior: a wheel that zooms carries its wheel lines
2026-11-27 14:06:59 +07:00
skylartaylor a8786edae3 Merge remote-tracking branch 'origin/main' into design-port/pr-dialog-looks 2026-11-27 04:51:02 +01:00
skylartaylor 3c91dccde5 Merge remote-tracking branch 'origin/main' into design-port/pr-dock-forwarded-keys 2026-11-27 04:51:01 +01:00
skylartaylor 8273704631 Merge craft-libs main; merge only, no code changes
# Conflicts:
#	crates/ui-widgets/src/form/slider_field.rs
2026-11-27 04:43:16 +01:00
aiongg dc82c38b97 Merge remote-tracking branch 'upstream/main' into fw365-int 2026-11-27 03:40:00 +00:00
aiongg b402ab7455 The tool options' types are PlainData (FW-365 F6b) 2026-11-27 03:10:21 +00:00
dotCooCoo 30152bd16e Read a lone grouping mark after zero as a decimal 2026-11-26 14:42:15 -08:00
skylartaylor d76d12cb01 Dialog looks: the catalog entries that stopped mid-sentence now end one
Reviewer finding on #3448: entries in `docs/contract-api.md` ended mid-sentence
(`size_ok` at "a `min` that is", `label_decimals`, and the `WindowSpec`,
`pressed_part` and `icon_ink_on` summaries). The generator lists the first line
of each doc comment only, so each of those doc comments now opens with a
complete sentence and keeps the rest below it: `size_ok` says on its second line
that a `min` that is not a number counts as one unit, `label_decimals` keeps its
cases in the paragraph under the summary, and `WindowSpec`'s first line carries
the whole "what it is for, who draws its frame, where it stands and whether it
has a taskbar entry" sentence.

Regenerated with the branch's own generator; a second run leaves the file byte
for byte as it was. Every entry this branch adds or changes now ends in a full
stop. The rest of the file keeps the entries the base leaves truncated (1273 of
4820 entry lines still end mid-sentence, none of them touched here): sweeping
those, or teaching the generator to join a doc's first sentence, is a separate
change.

The regeneration also picks up two entries the branch's merges added without
regenerating (`Action::restore`, and `floated`'s doc).
2026-11-26 23:09:50 +01:00
skylartaylor d254821a27 Merge remote-tracking branch 'origin/main' into design-port/pr-dock-forwarded-keys 2026-11-26 22:08:04 +01:00
skylartaylor b4466f52b2 Merge craft-libs main dc2cb42b15 into the branch 2026-11-26 08:34:47 +01:00
aiongg ecdc221f4a Merge next into main 2026-11-26 05:38:41 +00:00
dotCooCoo 95f51ab149 dock: a group docked into a collapsed column keeps its width as its flyout width
A group moved from a floating window or an expanded column into a column
collapsed to icons joined with no flyout width, so its flyout opened at the
column's width and the size the panel was resized to was lost.

The group now takes the width it was shown at as its flyout width: the
floating window's width or the expanded column's. A width equal to the
column's leaves the flyout following the column, and a group from another
collapsed column keeps its own flyout width.
2026-11-25 19:44:48 -08:00
BFlat 40c4cb3157 Merge pull request #2949 from dotCooCoo/feat/fit-short-order
Fit: items rank their short forms, and late ones shorten after the free items leave
2026-11-26 10:24:19 +07:00
BFlat 30ee47714b Merge pull request #3458 from dotCooCoo/fix/grid-fill-columns-share-excess
behavior: a Fill column raised to its least takes the difference from the other Fill columns
2026-11-26 09:53:50 +07:00
BFlat acd3892871 Merge pull request #3423 from dotCooCoo/fix/per-inch-typed-suffix
behavior: a typed /in after a count reads as the per-inch unit (40/in)
2026-11-26 09:52:40 +07:00
dotCooCoo 8ed02d4910 ui-contract, behavior: a wheel that zooms carries its wheel lines
A Ctrl+wheel on Windows and Linux reaches a taker as a zoom factor with no
scroll, and a touchpad's fractional Ctrl+wheel there becomes a pinch step. A
taker that steps a value by notches (VectorCraft's Quick Pen arc size) could
only count them by working the lines back out of the factor with egui's zoom
speed.

- `Wheel::zoom_lines`: the motion that reached the share as `zoom`, in wheel
  lines: wheel events under the zoom modifier, measured before the user's
  wheel speed, and the Ctrl+wheel steps folded into pinch steps. It travels
  with the zoom share. A native pinch carries none.
- `Wheel::zoom_gathered`: the running gesture's `zoom_lines`, gathered the way
  `gathered` gathers the scroll.
2026-11-25 18:19:40 -08:00
aiongg 66004baedb Dock Panel returns a floated panel to its own place
A floating panel keeps the docked place it left while it is closed, as long
as its hidden record, so after it reopens floating Dock Panel still returns
it there. Dock Panel restores that place with Action::Restore, built on
Layout::restore, so the panel comes back at the split size, sibling subtree
and group state it had instead of a halved frame.
2026-11-26 00:17:55 +00:00
lightcraft-port 6ad8c69ce8 Directional wheel: a Shift-wheel with both axes edits by its vertical share, and a focused directional field keeps its running gesture 2026-11-26 00:41:43 +01:00
lightcraft-port 440bd59808 Value editing review: a focused row wins the arrow, hover leaves a focused list's moves, the directional wheel share drops Shift, and one model-grid builder 2026-11-25 23:44:05 +01:00
skylartaylor c6ecb700a7 docs: start the leftover_events and frame_step notes with a full sentence
The contract's generator lists a doc comment's first line, so both entries were
cut mid-sentence in docs/contract-api.md. Their first line is now a complete
sentence, and the rest says the same as before.
2026-11-25 22:14:52 +01:00
dotCooCoo 52a090c642 behavior: a Fill column raised to its least takes the difference from the other Fill columns, so a grid whose least widths fit no longer overflows
GridCursor::new raised each Fill column's share to the column's least
width but left the other Fill columns at their shares, so the row was
wider than the grid by the difference even when the least widths fit.

The Fill columns now share their room again: a column whose share by
weight is below its least takes its least, and the other Fill columns
share what is left by weight, down to their own least widths. The row
is wider than the grid only when the least widths together do not fit.
A grid whose shares already cover every least width is unchanged.
2026-11-25 00:48:05 -08:00
dotCooCoo c5b1197af3 dock: a closed panel floated by Action::Float keeps the docked place it would reopen at
Workspace::apply_all recorded a floating panel's docked place only when the
panel had been docked in the layout before the action. A closed panel that
floated by Action::Float alone got no record, so Dock Panel had no place to
return it to. An app that wanted the old place had to open the panel first,
which made it the front tab of its old group before it floated.

Floating a hidden panel now records the location it would reopen at, the same
record that opening it and then floating it gives, without reopening it in its
old group. A panel that would reopen in a floating window gets no record, as a
panel floated from a floating window gets none.
2026-11-25 00:31:49 -08:00
skylartaylor 67bfb8db06 Merge origin/next
# Conflicts:
#	crates/ui-widgets/src/form/slider_field.rs
#	crates/ui-widgets/src/value_drag/slider.rs
2026-11-25 05:38:03 +01:00
dotCooCoo 74d7ea395c behavior: a typed /in after a count reads as the per-inch unit (40/in)
The number reader accepted unit spellings made of letters and unit
symbols only, so the "/in" spelling of UnitKind::PerInch was never
registered. In a field that draws its unit apart from the number, a
typed "40/in" was then read as 40 divided by a quantity with no number,
and the field refused it.

A unit spelling may now start with one "/" followed by letters or unit
symbols. After a number, the reader takes such a spelling when the
letters after the "/" start it, so "40/in", "40 /in" and "40/IN" read
as 40 per inch. Any other "/" still divides: "80/2" is 40, and a field
without a "/in" spelling reads "/in" as before. Only UnitKind::PerInch
has a spelling with a "/", so no other field changes.
2026-11-24 18:30:23 -08:00
skylartaylor 55eb2c93fa Merge origin/next 2026-11-24 21:38:35 +01:00
aiongg 191ad699b6 Dock: a panel drag a floating window took over docks whatever title_bar_docks says
A window that continues a panel's drag (DockArea::continue_move, a rail popup
floated by its tab) began its move as a title-row move, which docks only with
DockConfig::title_bar_docks. The handed-over press now says so through the
move: PressStart::handed (set by PressMachine::take_over) and
PlacementChange::continued on the layer move's reports. FloatingGroup starts
its window drag with GroupDrag::title_row only for a press on its title row,
and DockDropTarget refuses only those when title_bar_docks is off.
2026-11-24 18:50:12 +00:00
David MannandClaude Opus 5.5 5b190db66a Lasso cursors: an arrow on the hotspot with the tool icon beside it (photocraft#16671)
The Lasso, Polygonal Lasso and Magnetic Lasso showed only their icon, with
the icon box's empty top-left corner on the pointer, so the outline started
at a blank spot beside the lasso. They now show the solid arrow with its tip
on the pointer and the tool's icon below right of it, as the reference
application does and as the Paint Bucket and Ruler pointers already do.

PaintedCursor::PointerTool gains an optional badge, drawn at the icon's lower
right, so the add / subtract / intersect mark stays; pointer_tool_badged
builds it. pointer_tool keeps its signature.

Tests: the three lassos show the arrow with their icon and the operation's
badge (fails on next: the lasso returned PaintedCursor::Tool); a badged arrow
pointer keeps ink on its hotspot at 1x, 1.25x and 2x with the badge at the
icon's lower right.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 16:35:25 +01:00
skylartaylor 8fce242979 Merge origin/next
# Conflicts:
#	crates/ui-contract/src/runtime/keys/route.rs
2026-11-24 14:52:03 +01:00
aiongg 290415fd4f Merge storytold next into rc-dock-drag 2026-11-24 13:26:57 +00:00
bflatastic 0bf6239b0e Merge branch 'fix/grid-stacked-label-rows' into fix/vc-theme-and-focus 2026-11-24 11:33:23 +07:00
aiongg 48936610c5 arrange: Tile All tiles docked cells in the document area
Tile All Vertically and Horizontally dock every document first and give each its own cell, as Tile does, instead of floating every document into its own window.
2026-11-24 04:07:24 +00: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
skylartaylor 32eb4c3f1c Merge origin/next
# Conflicts:
#	crates/behavior/src/codec.rs
#	crates/ui-contract/src/runtime/keys.rs
#	crates/ui-contract/src/runtime/keys/intents.rs
#	crates/ui-contract/src/runtime/keys/route.rs
#	crates/ui-widgets/src/form/slider_field.rs
#	crates/ui-widgets/src/text/number.rs
2026-11-24 02:01:29 +01:00
Dylan M. Taylor b138b533fe Merge remote-tracking branch 'upstream/next' into pr-2809-merge
# Conflicts:
#	crates/automation/Cargo.toml
#	crates/automation/src/access.rs
#	crates/automation/src/synthetic.rs
#	crates/automation/tests/it/access.rs
#	crates/automation/tests/it/synthetic.rs
#	crates/behavior/src/codec.rs
#	crates/behavior/src/edit_history.rs
#	crates/behavior/src/lib.rs
#	crates/behavior/src/wheel.rs
#	crates/color-ui/src/ui/paint_chip.rs
#	crates/color-ui/src/ui/pair.rs
#	crates/color-ui/src/ui/palette.rs
#	crates/color-ui/src/ui/palette/stories.rs
#	crates/dialogs/src/service.rs
#	crates/draw/src/ui/transform/transform_box.rs
#	crates/draw/src/ui/transform/transform_box/stories.rs
#	crates/draw/tests/it/transform_box.rs
#	crates/font-manager/src/glyphs.rs
#	crates/font-manager/src/picker.rs
#	crates/font-manager/src/picker/rank.rs
#	crates/font-manager/src/picker/rows.rs
#	crates/font-manager/src/picker/stories.rs
#	crates/font-manager/tests/it/picker.rs
#	crates/host/src/lib.rs
#	crates/menu/src/context.rs
#	crates/menu/src/mac.rs
#	crates/menu/src/model.rs
#	crates/pages/src/ui/view.rs
#	crates/platform/README.md
#	crates/platform/src/browser_files.rs
#	crates/print/src/ui/dialog.rs
#	crates/print/src/ui/mod.rs
#	crates/print/src/ui/panel.rs
#	crates/print/src/ui/stories.rs
#	crates/print/tests/it/dialog.rs
#	crates/text/src/ui/character.rs
#	crates/text/src/ui/character/rows.rs
#	crates/text/src/ui/editor.rs
#	crates/text/tests/it/editor.rs
#	crates/text/tests/it/main.rs
#	crates/ui-canvas/src/canvas/mod.rs
#	crates/ui-canvas/src/canvas/split/stories.rs
#	crates/ui-canvas/src/canvas/tool_host.rs
#	crates/ui-canvas/src/canvas_controls/outline/mod.rs
#	crates/ui-canvas/src/canvas_controls/task_bar.rs
#	crates/ui-canvas/src/canvas_controls/task_bar/stories.rs
#	crates/ui-canvas/tests/it/canvas/navigate.rs
#	crates/ui-canvas/tests/it/canvas/tool_keys.rs
#	crates/ui-canvas/tests/it/canvas_controls/task_bar.rs
#	crates/ui-contract/src/contract/collection/props.rs
#	crates/ui-contract/src/contract/cx/pointer.rs
#	crates/ui-contract/src/contract/items/access.rs
#	crates/ui-contract/src/contract/items/drag.rs
#	crates/ui-contract/src/contract/items/lead.rs
#	crates/ui-contract/src/contract/label.rs
#	crates/ui-contract/src/contract/mod.rs
#	crates/ui-contract/src/contract/run.rs
#	crates/ui-contract/src/contract/steps/report.rs
#	crates/ui-contract/src/contract/steps/update.rs
#	crates/ui-contract/src/primitives/mod.rs
#	crates/ui-contract/src/primitives/sensing.rs
#	crates/ui-contract/src/primitives/text_adapter.rs
#	crates/ui-contract/src/primitives/text_input.rs
#	crates/ui-contract/src/runtime/access/emit.rs
#	crates/ui-contract/src/runtime/access/text.rs
#	crates/ui-contract/src/runtime/commands/board.rs
#	crates/ui-contract/src/runtime/commands/mod.rs
#	crates/ui-contract/src/runtime/drag.rs
#	crates/ui-contract/src/runtime/egui/access.rs
#	crates/ui-contract/src/runtime/egui/access/tree.rs
#	crates/ui-contract/src/runtime/egui/input.rs
#	crates/ui-contract/src/runtime/env.rs
#	crates/ui-contract/src/runtime/focus/nav.rs
#	crates/ui-contract/src/runtime/frame.rs
#	crates/ui-contract/src/runtime/keys.rs
#	crates/ui-contract/src/runtime/keys/claims.rs
#	crates/ui-contract/src/runtime/keys/input.rs
#	crates/ui-contract/src/runtime/keys/route.rs
#	crates/ui-contract/src/runtime/pointer.rs
#	crates/ui-contract/src/runtime/windows.rs
#	crates/ui-contract/src/testing/fixture.rs
#	crates/ui-contract/src/testing/host_key_trials.rs
#	crates/ui-contract/tests/it/collection/rows.rs
#	crates/ui-contract/tests/it/drag/mod.rs
#	crates/ui-contract/tests/it/runtime/wheel.rs
#	crates/ui-macros/src/props.rs
#	crates/ui-panels/src/dialog/mod.rs
#	crates/ui-panels/src/dialog/prompts.rs
#	crates/ui-panels/src/dialog/recovery.rs
#	crates/ui-panels/src/dialog/trials.rs
#	crates/ui-panels/src/dialog/words.rs
#	crates/ui-panels/src/rails/drawer.rs
#	crates/ui-panels/src/rails/drawer/stories.rs
#	crates/ui-panels/src/rails/tool/trials.rs
#	crates/ui-panels/src/sections/footer.rs
#	crates/ui-panels/tests/it/rails/drawer.rs
#	crates/ui-patterns/src/patterns/dock/area.rs
#	crates/ui-patterns/src/patterns/form_dialogs/about.rs
#	crates/ui-patterns/src/patterns/form_dialogs/dialog.rs
#	crates/ui-patterns/src/patterns/form_dialogs/dialog/stories.rs
#	crates/ui-patterns/src/patterns/form_dialogs/host_requests.rs
#	crates/ui-patterns/src/patterns/form_dialogs/mod.rs
#	crates/ui-patterns/src/patterns/form_dialogs/param.rs
#	crates/ui-patterns/src/patterns/form_dialogs/properties.rs
#	crates/ui-patterns/src/patterns/form_dialogs/properties/stories.rs
#	crates/ui-patterns/src/patterns/form_dialogs/rows.rs
#	crates/ui-patterns/src/patterns/form_dialogs/rows/stories.rs
#	crates/ui-patterns/src/patterns/panels/history.rs
#	crates/ui-patterns/src/patterns/preferences/document/model.rs
#	crates/ui-patterns/src/patterns/preferences/model.rs
#	crates/ui-patterns/src/patterns/preferences/page.rs
#	crates/ui-patterns/src/patterns/preferences/rows.rs
#	crates/ui-patterns/src/patterns/preferences/window.rs
#	crates/ui-patterns/src/patterns/preferences/window/stories.rs
#	crates/ui-patterns/src/patterns/presets/browser.rs
#	crates/ui-patterns/tests/it/docking/group_view.rs
#	crates/ui-patterns/tests/it/form_dialogs/dialog.rs
#	crates/ui-patterns/tests/it/form_dialogs/params.rs
#	crates/ui-patterns/tests/it/preferences/model.rs
#	crates/ui-shell/src/shell/start.rs
#	crates/ui-shell/src/shell/start/stories.rs
#	crates/ui-widgets/src/buttons/icon_button.rs
#	crates/ui-widgets/src/buttons/mod.rs
#	crates/ui-widgets/src/buttons/stories.rs
#	crates/ui-widgets/src/choice/swatch.rs
#	crates/ui-widgets/src/choice/swatch_table.rs
#	crates/ui-widgets/src/display/text.rs
#	crates/ui-widgets/src/form/slider_field.rs
#	crates/ui-widgets/src/layout_components/mod.rs
#	crates/ui-widgets/src/list/mod.rs
#	crates/ui-widgets/src/list/row/paint.rs
#	crates/ui-widgets/src/list/row/show.rs
#	crates/ui-widgets/src/list/stories.rs
#	crates/ui-widgets/src/list/view.rs
#	crates/ui-widgets/src/list/view_stories.rs
#	crates/ui-widgets/src/menu/mod.rs
#	crates/ui-widgets/src/menu/stories.rs
#	crates/ui-widgets/src/pickers/select.rs
#	crates/ui-widgets/src/tabs/document.rs
#	crates/ui-widgets/src/text/number.rs
#	crates/ui-widgets/src/text/zoom_field.rs
#	crates/ui-widgets/src/tile_grid/grid.rs
#	crates/ui-widgets/src/tile_grid/grid/stories.rs
#	crates/ui-widgets/src/tile_grid/mod.rs
#	crates/ui-widgets/tests/it/label/tooltip.rs
#	crates/ui-widgets/tests/it/popover/popup.rs
#	crates/ui-widgets/tests/it/tabs.rs
#	crates/ui-widgets/tests/it/text/mod.rs
#	crates/ui-widgets/tests/it/text/number.rs
#	crates/ui-widgets/tests/it/tile_grid/grid.rs
#	crates/window/Cargo.toml
#	docs/components-index.md
#	docs/porting.md
2026-11-23 19:01:32 -05:00
skylartaylor 83c8fd1787 rustfmt 2026-11-24 00:13:51 +01:00
skylartaylor 45ebb7b898 Value editing: scalar row keys, drag modifiers, number codecs, custom slider scales and a directional wheel
Pieces a ported app's value rows need, each opt-in with defaults unchanged:

- ScalarKeyPolicy (Slider::key_policy, SliderField::key_policy): Up and Down nudge a
  slider row by its own amount, Shift by shift_factor, snapped to model_step, from the
  row's caption, track or field, without moving focus; AccessKit increment and
  decrement use the same amount.
- DragModifiers (Slider, SliderField, NumberField::pointer_modifiers): which modifier
  makes a pointer drag or scrub fine or coarse. pointer_model_step snaps pointer values
  on a slider to a zero-origin grid without changing keys or wheel.
- NumberCodec::parse_with: a reader that owns the whole input, for a domain grammar.
  SliderField::number_codec passes a codec to its number field.
- SliderScale::Custom: a caller's monotonic projection between values and track
  positions; text, steps, wheel and accessibility stay in model units.
- WheelScope::Directional: value controls edit on a horizontal swipe or Shift-wheel
  under the pointer, and on a vertical wheel only after a press, until the pointer
  leaves; keyboard focus does not re-arm it.
2026-11-24 00:10:14 +01:00