Commit Graph
281 Commits
Author SHA1 Message Date
Dylan M. Taylor d49ee8d237 Merge main and regenerate contract API after inspector changes 2026-11-29 10:07:01 -05:00
BFlat c3672bd709 Merge pull request #4220 from dotCooCoo/feat/wheel-gesture-modal-and-keys
ui: a wheel share carries the keys held during its gesture and whether a modal held it
2026-11-29 13:01:53 +07:00
dotCooCoo a29ccbc1fb ui: a wheel share carries the keys held during its gesture and whether a modal held it
Wheel gains two fields. held is the modifiers held at any point of the
running gesture: those of its wheel events, of key events between them,
and of a key tapped between a swipe's device end and the momentum run
that resumes it. modal is set when a wheel event of the gesture, or one
less than GESTURE_GAP before it began, arrived while a modal layer held
the wheel, in the same window or in another. A canvas can then leave
the rest of a turn begun under a dialog alone after the dialog closes,
and apply a rule such as Shift tapped mid-gesture.

End shares carry the held and modal values of the gesture they end.
2026-11-28 20:08:12 -08:00
skylartaylor 711cfbd0bc Merge updated wheel handling from craft-libs main 2026-11-29 04:20:57 +01:00
skylartaylor a770df044d Merge craft-libs main into the input and focus fixes 2026-11-29 03:56:53 +01:00
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 9ca942c747 Merge craft-libs main (c0977ad6): access.rs doc is main's sentence plus our Scroll Into View one; docs regenerated 2026-11-27 08:40:45 +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 7e85934986 Merge remote-tracking branch 'origin/main' into design-port/pr-input-focus 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 ae7b92be69 Merge remote-tracking branch 'origin/main' into design-port/pr-input-focus 2026-11-26 17:38:10 +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
skylartaylor 108febfa57 Merge origin/next (d1920c54e) into design-port/pr-input-focus
Conflicts:
- value_drag/slider.rs: next added the TrackPress::OnPress follow-on-down path
  and kept press_at reading current(); kept next's shape and our mixed-aware
  press_at, so a press on a mixed slider still jumps to the pointer.
- tests/it/text/text_field.rs: both sides appended trials at the end; kept
  ours (wheel over focused fields) and next's (keeps_on_escape) side by side.

Next covers none of this branch's changes.
2026-11-25 04:49:14 +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 45d06de7f5 Take the wheel only for controls that sense it
A bound control that sensed no wheel bit still got a gated vertical wheel
taker. A focused check box, switch or other value control that never reads
the wheel therefore took the wheel while the pointer was over it and dropped
it, so the form around it did not scroll.

Controls now take the wheel only through their sense. The new
Sense::WHEEL_Y_FOCUSED bit takes the vertical share only while focused or
armed, in any wheel scope. RangeSlider and ThumbRow, the two value controls
that read the wheel without sensing it, declare it, and the fallback taker
is gone.
2026-11-24 22:53:16 +01: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