Commit Graph
561 Commits
Author SHA1 Message Date
skylartaylor 246f99c684 Merge craft-libs main (c0977ad6): docs regenerated, nothing else 2026-11-27 08:27:41 +01:00
BFlat 877b55f835 Merge pull request #3805 from dotCooCoo/fix/pointer-scoped-field-wheel
Allow apps to limit wheel edits to the focused field under the pointer
2026-11-27 14:22:49 +07:00
BFlat bb84da2f88 Merge pull request #2965 from dotCooCoo/feat/unit-text
Units: number rows can show unit text, and UnitKind gains Milliseconds
2026-11-27 14:16:13 +07:00
BFlat fa29f503f8 Merge pull request #3554 from dotCooCoo/fix/segmented-narrow-room
ui-widgets: a segmented strip wider than its room moves segments to the next line
2026-11-27 14:11:48 +07:00
BFlat d70f4f4391 Merge pull request #3439 from dotCooCoo/fix/tool-pointer-ink
theme, ui-contract: a painted pointer takes overlay.cursor, which VectorCraft's themes pin white
2026-11-27 14:11:08 +07:00
BFlat 326856bd18 Merge pull request #3512 from dotCooCoo/fix/dock-band-host-items
dock: a narrow group's drag band leaves room for the host's header items
2026-11-27 14:06:45 +07:00
dotCooCoo 5f896c5bdf Document the PerInch unit variant 2026-11-26 21:00:09 -08:00
dotCooCoo 1d85617a61 Merge main into feat/unit-text 2026-11-26 20:38:25 -08:00
skylartaylor 5468d9ffe5 Merge craft-libs main (9524262a, next merged into main): resolve conflicts and regenerate the catalog 2026-11-27 04:50:45 +01:00
dotCooCoo 8873320c70 Allow apps to limit wheel edits to the focused field under the pointer 2026-11-26 14:50:50 -08:00
skylartaylor 05345c06d3 Dock windows: the DragBounds summary says both policies and the default
Reviewer finding on #3446: the summary ended at a colon ("How much of a floating
layer stays inside the window when the user moves it, when it is placed at a
position, and ..."), and the catalog lists that line only — a variant's own doc
is never extracted. So the line is now a complete summary: the whole layer
(`Inside`, the default) or a strip of its title, with where the rule holds and
the overlay's own `bounds` in the paragraph under it. The variants keep their
detailed docs for rustdoc.

Regenerated with the branch's own generator; a second run leaves the file byte
for byte as it was. The run also picks up two entries the branch's merges added
without regenerating (`Action::restore`, and `floated`'s doc).
2026-11-26 23:17:50 +01:00
skylartaylor 8bc61c8621 Merge remote-tracking branch 'origin/main' into design-port/pr-docking-windows 2026-11-26 22:08:05 +01:00
dotCooCoo 60626900b7 Merge next into feat/unit-text 2026-11-26 07:42:52 -08:00
aiongg 5ec98bd628 Merge remote-tracking branch 'upstream/next' into next-into-main-2
# Conflicts:
#	crates/ui-widgets/src/text/text_field.rs
2026-11-26 11:03:44 +00:00
FredApps cc59357033 Merge pull request #3475 from storytold/fix/wordcraft-7708-print-zoom-whole-percent
ui-contract: a ZoomPrecision env value lets zoom show whole percents (storytold/wordcraft#7708)
2026-11-26 11:14:23 +01:00
FredApps 7e7456955a docs: contract-api lists FieldLook, StyleCx::quiet_field and TextOptions::look
Regenerated with the contract-api bin; only the three entries this PR adds are taken, the file's other drift on next is left alone.
2026-11-26 16:30:14 +07:00
FredApps e39fd100af Merge remote-tracking branch 'origin/next' into tc14-3475 2026-11-26 16:08:37 +07:00
aiongg ecdc221f4a Merge next into main 2026-11-26 05:38:41 +00:00
dotCooCoo 1eeb7baf17 Merge next into feat/unit-text 2026-11-25 20:36:19 -08:00
dotCooCoo a830ff539b theme, ui-contract: overlay.cursor colors a painted pointer's marks and a tool's icon; VectorCraft's themes pin it white
overlay.cursor follows overlay.stroke unless a theme pins it, so pointers in other themes keep the color they had. VectorCraft Modern and Modern Medium pin it to #ffffff in both variants, so their tool pointers no longer show in the #ffa492 overlay tint, and their hand, magnifier, rotate and badge marks match the icons. The shared pointer art no longer borrows overlay.handle_fill for tool icons.

overlay.cursor joins overlay.stroke in the halo contrast rule, so a pin that misses the minimum is reported, and a user's accent keeps a theme's pinned cursor color. Trials; dumps gain the token.
2026-11-25 20:32:11 -08:00
dotCooCoo bdccf96831 ui-widgets: a segmented strip in a row or bar keeps one line
In a row, a bar included, the strip's least is its whole line again, so the
row's shrink step does not wrap it. It still wraps in a column narrower than
the strip. A rect with room for one line only keeps the segments on that line.

- ui-contract: `MeasureCx::in_row` says whether a component is a direct child
  of a `Row` body.
2026-11-25 19:43:32 -08:00
BFlat 54cbab4c5e Merge pull request #2964 from dotCooCoo/feat/dialog-confirm-held-refusal
craft-automation: ui.dialog.confirm of a held OK replies with the app's answer, a refusal in English
2026-11-26 10:25:33 +07:00
BFlat c901ddcb79 Merge pull request #2956 from dotCooCoo/feat/automation-ui-drag
craft-automation: ui.drag presses, moves in even steps and releases as one request
2026-11-26 10:24:55 +07: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 14cd3ae8a9 Merge pull request #3513 from dotCooCoo/fix/link-text-contrast
ui-contract: link text reads at 4.5:1 on every surface it is drawn on
2026-11-26 09:56:34 +07:00
BFlat 733e35fea8 Merge pull request #3492 from dotCooCoo/fix/dock-group-band-keeps-tab
dock: a docked group's drag band narrows before the shown tab loses its first letters
2026-11-26 09:56:07 +07:00
BFlat 91877f4160 Merge pull request #3431 from dotCooCoo/fix/job-progress-layer-role
ui-contract, ui-panels: a job progress window's layer has the progress role, and OpenFilter::Asks leaves it out
2026-11-26 09:51:10 +07:00
Martin BallandClaude Opus 5.5 e173ef092e ui-contract: zoom_percent follows ZoomPrecision with zoom_codec
One zoom_decimals helper serves both, so the read-only zoom texts (Navigator slider, full-window title, zoom bar
entries) agree with the zoom fields. with_zoom_precision is pub(crate). Regenerates docs/contract-api.md.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 00:07:27 +00:00
aiongg 97794fff62 ui-contract: DocRun::coords draws a run at variation coordinates of its face; FontSample takes them 2026-11-25 20:37:43 +00:00
aiongg 2cc39c2c4e A modal that opens while a window it blocks has the keyboard takes it
A blocked window drops the keys, so a modal opened from a focused float by a key or a command (a save prompt in the main window) got none of them until the user clicked. The modal's window now gets one focus request 0.2 s after it becomes the app's modal, if a window it blocks still has the focus; an OS dialog that opens with the modal takes the focus in that time, and then nothing is sent. The modal's own popup windows keep the keyboard. It covers framework modals and FrameInput::app_modal alike (the docking of the former crate::ui did it for its floats, #306).
2026-11-25 19:11:46 +00:00
dotCooCoo ce87f5484d Merge next into fix/dock-group-band-keeps-tab 2026-11-25 10:22:44 -08:00
skylartaylor 86f19be818 docs: regenerate contract-api.md 2026-11-25 19:16:31 +01:00
skylartaylor d30327bfef docs: the fit module line back to next's, now that the fit helper is gone 2026-11-25 18:07:02 +01:00
skylartaylor bb5c23315e A stored placement keeps the part DragBounds keeps inside
resting_placement returned a stored placement that already held a size before applying Overlay::drag_bounds, and the
mount showed the layer's body at that rect, so a layer the user resized could end with its title row outside the
window under DragBounds::TitleVisible. The keep now applies to a floating layer's stored size and place, before the
default-size path, as it already did to a move and to a place the caller gives.

Trial: a_resized_layer_keeps_its_title_strip_inside_a_drag_past_the_window_edges in
crates/ui-contract/tests/it/body/placement.rs.
2026-11-25 18:03:07 +01:00
skylartaylor cac8725f59 Panel tabs clip and overflow: drop the ellipsis shrink
Panel tabs keep the framework's clip and overflow: they shrink to their first letters with the label clipped at
the tab's edge, the shown tab whole, and the tabs that do not fit go to the strip's overflow menu.
PanelTabShrink::Ellipsis goes with the option that chose it: DockConfig::tab_shrink, the group's tab_shrink,
TabStrip::panel_shrink, Tab::panel_shrink, FitMode::ShrinkToLeast, TabKind::fit_mode_for and clips_label_in,
and craft_behavior::fit::fit_to_least with its docs.

Trials: the two ellipsis trials and the helpers they alone used are removed with the option.
2026-11-25 17:56:05 +01:00
skylartaylor 2e7fcfacc8 Dock flyouts stand in the floating windows' order; drop the flyout layer option
A collapsed column's flyout joins the floating windows' own egui area order, for every app, so the last of
them opened or pressed is on top, and the app's own windows stack with it. The per-app choice goes:
PopupLayer, Tier::BelowWindows, Overlay::popup_layer, DockConfig::flyout_layer, IconicColumn::flyout_layer
and Flyout::popup_layer, with their docs. A layer stands in the windows' tier through
Overlay::among_windows, which a flyout always sets.

Trial: a_flyout_stands_among_the_floating_windows_in_their_order replaces the flyout_layer trial in
crates/ui-patterns/tests/it/docking/columns.rs.
2026-11-25 17:52:05 +01:00
skylartaylor 74d352ed03 Merge remote-tracking branch 'origin/next' into design-port/pr-docking-windows
# Conflicts:
#	crates/ui-panels/src/docking/iconic.rs
#	crates/ui-panels/src/docking/iconic/trials.rs
#	docs/ui-docking.md
2026-11-25 17:41:39 +01:00
aiongg d0254a0996 Merge pull request #3533 from aiongg/ports-combined
Ports: a click keeps the canvas focused, Escape from floats, rail drags dock
2026-11-25 11:15:43 -05:00
aiongg c3ff1715cb Merge pull request #3216 from storytold/design-port/pr-docking-rails
Docking and rails options
2026-11-25 11:05:51 -05:00
aiongg 1277d4b157 Merge pull request #3213 from storytold/design-port/pr-menus-popups
Menus and popups: keyboard opening and safer activation
2026-11-25 10:54:28 -05:00
aiongg 41519eaae5 Merge commit 'f15b0e87d2' into ports-combined 2026-11-25 15:34:57 +00:00
aiongg e9543a634d Merge commit 'd6aed656f2' into ports-combined 2026-11-25 15:34:56 +00:00
aiongg f3f0e69fde Merge pull request #3505 from aiongg/app-stop-focus
The app's own widgets: focus follows egui's rule, and a canvas that can't take focus is a finding
2026-11-25 10:16:44 -05:00
skylartaylor 6ed0356493 docs: regenerate contract-api.md 2026-11-25 15:58:08 +01:00
skylartaylor 84febd9938 docs: regenerate contract-api.md 2026-11-25 15:58:07 +01:00
skylartaylor f62036b16a docs: regenerate contract-api.md 2026-11-25 15:58:07 +01:00
aiongg f15b0e87d2 An Escape nothing in a floated dock window takes is the dock window's Cancel
A dock panel's OS window gets its keys alone, so an Escape pressed there with
nothing focused became that window's Cancel, which no app code reads: a command
started from a floated palette could not be cancelled. The end hook hands a Cancel
left in such a window (`WindowSpec::hands_on_cancel`) to the window it was opened
from, which reads it as its own in its next pass. A popup or a modal open in the
floated window keeps the Escape, and a modal that opened meanwhile drops it.
2026-11-25 14:57:40 +00:00
aiongg d6aed656f2 A press nothing takes leaves the app's document canvas focused
An unclaimed press surrendered the focus of a canvas declared with
host_canvas at the press (apply_press), and egui's click-away rule took
a focus the app itself had given the canvas at the release. The press
rule now keeps a declared canvas focused, and the begin hook takes the
focus on it off egui's rule, whoever gave it. A canvas the app no longer
declares follows egui's rule again.
2026-11-25 14:37:41 +00:00
skylartaylor bab45a549e Merge origin/next into design-port/pr-docking-windows
Conflicts, all resolved by keeping both sides:
- docking/config.rs: next's ColumnCards import and flush_docks setter beside our PopupLayer, PanelTabShrink and tab_shrink setter.
- docking/flyout.rs: next's docked field and Flyout::docked beside our popup_layer prop.
- docking/iconic.rs: next's ActiveLook import with our FlyoutHeight and PopupLayer; the flyout takes both popup_layer(layer) and docked(self.framed).
- dock/area.rs: the iconic column takes our flyout_layer and next's tab_look and framed.
- tests/it/docking/columns.rs: next's craft_theme import with our Button and PopupLayer imports.
- tabs/mod.rs, tabs/tab.rs: next's TabCloseLook beside our PanelTabShrink.
- docs/contract-api.md: next's host_canvas wording, keeping the generated runtime::focus::is_focused entry.

Next does not cover any of this branch's changes.
2026-11-25 15:21:31 +01:00
skylartaylor b003bd172a Merge origin/next into design-port/pr-docking-rails
One conflict, in docs/ui-docking.md: next added bullets for tab presses keeping
key focus and for floating windows stacking with app windows next to our
split-handle bullet. Kept our split-handle sentence (a pointer press or drag on
a handle leaves key focus) and next's two new bullets after it.

The Rust files merged cleanly. next still has dividers that take focus on a
press, the flyout room limited to the space below its top, and no RailTool
icon, so none of this branch's changes is covered by next.
2026-11-25 15:21:14 +01:00