Commit Graph
528 Commits
Author SHA1 Message Date
aiongg b8fba385db Merge branch 'red/t6' into fw/mac1 2026-11-16 21:35:40 +00:00
aiongg e546c64d77 Merge branch 'red/t4' into fw/mac1 2026-11-16 21:35:40 +00:00
aiongg e6ab0f2153 Merge branch 'red/t3' into fw/mac1 2026-11-16 21:35:40 +00:00
aiongg edd7a2afcd A host cancels an open press by its owner through the press lifecycle Escape uses; BezierOverlay's parts follow the press's tool
cancel_press_of(ctx, owner) marks the arena holding the owner's open press; its next lifecycle run ends the press with
PressCancel::Host, which step 9 turns into a HostChanged cancel of the gesture. PartsCx reads the component's press
slot, so BezierOverlay declares its parts under the tool the press began with, as it handles them. The overlay lets go
of a press that is cancelled or that none of its parts carries, and a release with nothing held does nothing.
2026-11-16 21:29:20 +00:00
aiongg b8416e7cc7 An open press keeps the pointer until its button comes up: a press of a held button starts nothing, and injected input drops a Down for a button it holds 2026-11-16 21:26:42 +00:00
aiongg 2b66d91e8b IME engine: the input method's byte-counted delete-surrounding deletes the characters those bytes cover, converted at the editor against its text around the caret 2026-11-16 21:20:27 +00:00
aiongg 503c7b1f78 Frames can keep their clock still, so time passes only where a test advances it 2026-11-16 21:17:37 +00:00
aiongg c101ffbcbe IME engine: the input method's delete-surrounding reaches the editor owning the IME 2026-11-16 21:10:15 +00:00
aiongg c89eec0537 Scroll bar trial: hover with the hover mix the thumb width resolves from 2026-11-16 20:03:12 +00:00
aiongg 95b0a3e714 Design-lint clean: the scroll thumb's width per state, Canvas::layer_bounds as a prop, centring relations in the tool rail trial 2026-11-16 19:55:05 +00:00
aiongg c323c312f7 Runtime imports: IdMap and IdSet for access records in every build; drop unused imports 2026-11-16 19:41:02 +00:00
aiongg b6088dbdcf Merge branch 'fw/speed1' into fw/mac1
# Conflicts:
#	crates/ui-patterns/src/patterns/dock/area.rs
#	crates/ui-shell/src/shell/app_shell.rs
2026-11-16 19:05:56 +00:00
aiongg 9d61d87e46 cargo fmt 2026-11-16 18:29:58 +00:00
aiongg 9332e1c0c8 Fill children of a content-sized body take their measured width: a fill container not given the width offers its body the width it measured, unless it is held in a content column or passes its column's width on; a collection not given the width takes its content width in the real run too, unless held; trial: a content-sized row's fill leaf, held container and list leave the next member after them, inside the row 2026-11-16 18:16:48 +00:00
aiongg cf72d57473 Runtime maps keyed by egui Ids use IdMap and IdSet
The ids already carry their hash: the runtime's per-pass stores (lazy, layout memory, sensing arenas, id pass,
reads of overlays, inspect, keys, pointer, access) look them up without SipHash. The id pass keys its Auto
ordinals by the scope's id joined with the component type.
2026-11-16 17:42:23 +00:00
aiongg 9341d4d478 Settling children: a content version, repaints scoped to the child that asks, input elsewhere leaves versioned children settled
Lazy::content gives the version of the app data a settling child shows; it runs when the version changes.
frame::request_repaint asked inside a settling child runs only that child; outside every one it still runs
them all. frame::request_own_repaint moves only what the caller shows: the tool host and the canvas zoom ease
use it. Input other than pointer motion unsettles only the children without a content version.
2026-11-16 17:42:11 +00:00
aiongg 154fd9cb59 Rerun diagnostics: each pass that asks to run again logs what changed under craft_ui::rerun 2026-11-16 17:25:10 +00:00
aiongg e0ebaf4634 A row's line record holds the line it shared: a row centred in another height measures its line afresh, so a title bar in its slot sits in the slot; the Swatches panel fills its room and scrolls its own swatches 2026-11-16 17:25:09 +00:00
aiongg 8090388f3b Merge branch 'fw/det' into fw/mac1
# Conflicts:
#	crates/ui-widgets/src/bars/status_readout.rs
2026-11-16 16:48:00 +00:00
aiongg 1b376ba317 Merge branch 'fw/dlg-b' into fw/mac1 2026-11-16 16:47:54 +00:00
aiongg 5215f02eef Merge branch 'fw/dlg-a' into fw/mac1 2026-11-16 16:47:54 +00:00
aiongg 18f6bc55f8 List rows: trailing icon buttons rest in the quiet panel-rail glyph role 2026-11-16 16:47:13 +00:00
aiongg b7e972651b A row centres its line only in a fixed height: a rect, a pane or the row line it fills, not a fill share of its parent's room 2026-11-16 16:46:05 +00:00
aiongg 45a14a4dad Rulers: minor tick token, mid tick 6/9, ticks end at the divider band, vertical labels step by the label size, horizontal labels sit one gap below the strip top 2026-11-16 16:45:11 +00:00
aiongg e8ec7b44ae A unit select names its unit once: the number field reads the unit's spellings without a suffix, and the unit lists show the units' names (Units::name) 2026-11-16 16:40:28 +00:00
aiongg e6cc6225a6 Dialogs draw no scrim backdrop by default 2026-11-16 16:27:33 +00:00
aiongg 1dcf0f8a17 Gradient icon: add the suite drawing of PhotoCraft's gradient swatch that icons.toml names 2026-11-16 16:26:39 +00:00
aiongg 1d8c7d13a2 Merge branch 'fw/mac1-bars' into fw/mac1
# Conflicts:
#	crates/ui-contract/src/contract/body/hooks.rs
#	crates/ui-shell/src/shell/app_shell.rs
#	crates/ui-shell/tests/it/shell/app_shell.rs
2026-11-16 16:25:37 +00:00
aiongg 1cf223ebbc Merge branch 'fw/mac1-edges' into fw/mac1 2026-11-16 16:20:25 +00:00
aiongg dc41b3dbe3 Shell slots choose their region before naming it; exhaustive pad edges 2026-11-16 16:13:37 +00:00
aiongg 7cd391de7e One floating scroll indicator for every scroll area
ScrollBarLook is one look: a clear track and a thin dim thumb line along the track's outer edge
at rest (stroke.thick), the whole track thickness (handle.sm) over a tinted track under the
pointer or while pressed. The docked kind (chrome track, edge rule, inset thumb) goes:
canvas and timeline bars take the same look. CxCore::scroll_bar_state gives a bar's state,
hovered while the pointer is anywhere on the bar, for every painter of a bar.
2026-11-16 16:12:12 +00:00
aiongg 60bdf15129 ToolRail fits its slot: block padding, a rail-width column per column with the buttons centred, toggles on one line
ContainerProps gains pad_edges (PadEdges::Block pads top and bottom only) and LeastWidth::Rail
(size.rail.width per column). ToolRail pads only above and below, is at least its columns'
rail width wide, and centres its grid of buttons, so no button or corner mark reaches past the
slot. The column and side toggles share one header line as small control-glyph buttons that
touch, which fits two in one rail column. A container's child_size and child_glyphs reach its
header and footer as well as its body, so a rail's footer buttons show the rail's glyphs.
AppShell::tools takes the rail's column count, so a two-column rail gets a two-column slot.
2026-11-16 16:05:13 +00:00
aiongg 8296832417 A field takes its content width among a bar's members
ContainerProps::content_in_bar keeps a container from the width in a bar; Field sets it, and an explicit sizing
clears it. The Content sizing every bar set on its fields is gone.
2026-11-16 16:02:09 +00:00
aiongg 81078945af A row given its height centres its line; a fill-width row on that line fills it; top and bottom shell panes lay their bar on one line
A container given its height whose body is an unwrapped row sets the row's line at the middle of its band and
pads only along the line. A fill-width container with a row body on such a line is given the line's height, so a
bar in a top or bottom slot fills the slot. A container whose first line is its own row's line sits on an outer
row's line by it even with a child of two lines. The shell's top and bottom panes lay their content out as a row;
the egui centring wrapper and the slot's surface under the bar are gone.
2026-11-16 15:59:53 +00:00
aiongg 4816295631 Shell edge panes paint chrome and the rule toward the body; the window paints the background
Every shell slot but the title is a chrome pane: its surface covers the whole pane, so a rail
shorter than the window leaves no band of the clear colour, and a divider runs along its edge
toward the body (rails, options bar, status bar, the canvas panel rail). The edge rule is drawn
by the pane itself; PanelRail's own rule and the env's enclosing pane edge go. The window root
paints the background surface and the document tabs pane sits on it.
2026-11-16 15:55:32 +00:00
aiongg 296810849c Report an unresolved icon name once per name 2026-11-16 15:51:37 +00:00
aiongg 540387ec88 Gradient icon: a suite drawing of PhotoCraft's gradient swatch replaces Phosphor's striped file 2026-11-16 15:51:25 +00:00
aiongg 63a4811416 cargo fmt 2026-11-16 14:34:57 +00:00
aiongg 4c6712623f Keys: texts record their place in egui's input as presses do (in_egui); withdraw finds presses and texts by that place through one lookup 2026-11-16 14:18:56 +00:00
aiongg f647f41e82 Merge branch 'dl/api' into dl/all 2026-11-16 13:39:11 +00:00
aiongg b39d967677 Merge branch 'dl/contract' into dl/all 2026-11-16 13:39:10 +00:00
aiongg fbe5a16ffe design-lint: api/non-exhaustive: #[non_exhaustive] on public types and variants, constructors where other crates build them 2026-11-16 13:31:29 +00:00
aiongg 2512b3c381 design-lint: style/token-read: StyleCx::of_env gives the style context of a scope (with_root and ContentPainterCx::style_cx build on it); the adjustments grid works out its columns from it 2026-11-16 13:29:30 +00:00
aiongg d580ecfc16 design-lint: rustfmt the files of the contract fixes 2026-11-16 13:25:07 +00:00
aiongg 839b67b628 Merge branch 'fw/merge-fb' into area/fwb2 2026-11-16 13:20:06 +00:00
aiongg 2c129a64e3 merge-fwf: F3 pointer slop: Sense::FOLLOWS_IN_SLOP (Sense widens to u32) declares a drag part that begins at the first move inside slop; TransformBox's following parts declare it; the suite's pointer-slop case expects one gesture ending in a Commit within slop for it, reading the part's sense by owner 2026-11-16 13:19:54 +00:00
aiongg 62523e765b design-lint: contract/egui-import, contract/memory, test/cfg-test: ui-canvas's picture slot is a contract PaintSlot (PaintUi::reserve_slot); tool fixture and brush story ids and memory through runtime::memory and StoryData; ruler tick trial in the integration binary 2026-11-16 13:19:50 +00:00
aiongg 889089b4d6 design-lint: contract/egui-import, contract/keys: ui-contract names layers through runtime::egui::areas and reads Tab and step keys in runtime::egui::input; pointer art sides marked as art data 2026-11-16 13:14:21 +00:00
aiongg cb0b9afa4a merge-fwf: F7 settled regions: a Loading answer of the texture loader notes the asking code as still moving, so a settled region showing a stand-in reruns when the job lands; trial: the mip trial in a settling region 2026-11-16 13:13:18 +00:00
aiongg 743218ea23 Merge branch 'fw/merge-b3' into area/fwb2 2026-11-16 13:07:31 +00:00