Each built item row of a collection declares a hover-only part over its rect,
above the collection's background and below its other parts and the row's own
shapes. Sensing reports every root's own parts under the pointer, on top or
not (pointer::Under::parts, read with pointer::parts_under), and a memoized
view's Sensed includes those of its roots. The collection takes a row's
hovered and pointer-over state, the hover lead and the rest wait from the row
part under the pointer instead of reading the hover position, so a move within
one row replays a view around the list and a move onto another row runs it.
The edge band still reads the hover position: it is drawn at the line nearest
the pointer.
Trials: a list of 10 and of 40 rows in a memoized view replays on moves within
a row, runs once on a move to another row, and the hover fill follows; a press
and its release, a wheel over a list, and a modifier change under the pointer
run the view; a replayed hovered view keeps its cursor; a tooltip runs its
view at the wake and when its layer first paints; Cx::hover_pos reads the
point over its part only and marks it as following the pointer for the
pointer-move gate.
A memoized view replays with the pointer over it unless its pointer facts
changed: the hover, parts and pointer-over of its roots and egui widgets at the
hover point (pointer::Sensed), the modifiers while it is under the pointer, a
move in a rect it follows, a wheel share or owed ease for a taker it registered,
a tap in it, or, while a drag session runs, the pointer over it. A press held
that started in it still runs it. A move within one part replays the view; a
move onto another part runs it.
Reading where the pointer hovers marks what reads it as following the pointer:
Cx::hover_pos marks the part's hit area, and pointer::hover_point_in marks the
rect it reads in. PartResult::hover_pos is crate-private, member responses carry
the pointer only for a press, and the collections' row hover, edge band, the
menus, canvas, colour, timeline and font readers go through the accessors.
design-lint's contract/pointer rule bans egui's hover-position reads.
Cursor requests are journaled, so a replay requests its cursor again. A record
notes the arena roots, follows rects and wheel takers its run registered.
repaint::request and request_of are #[track_caller], so egui's repaint causes
name the component that asked, not the wrapper: how the hover fades that
keep frames running were found (photocraft#17148).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
pointer::gate_pointer_moves sets egui's pointer-move gate (storytold/egui#65):
a move with no button held needs a pass only when the pointer comes in, a
drag runs, either point lies in a rect that follows the pointer
(pointer::follows_pointer, journaled so replays keep it), or the layer, egui's
widgets (Context::widgets_at) or the component shapes under the two points
differ in the last finished pass. Opt-in per app. egui moves to the PR's head.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The blend, Opacity, Fill and lock rows ran in every pass of the Layers panel,
also while the pointer only moved over its rows: about half of the panel's
time in such a frame. They are a memoized view keyed by the active layer's
properties and the modes it offers; their edits leave through an outbox.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The host painted a tool's readout or hud only in a pass where the tool
asked for it, and a tool asks from press or drag, which run only in a
pass with a pointer move. Every other pass of the drag (the ants and the
live outline repaint all the time) painted no box, so the marquee's W/H
box blinked. The host now keeps the box the gesture's last press or drag
asked for and shows it again in passes with neither; a drag that asks
for nothing drops it, and it ends with the gesture.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The flyout marked each row with radio_mark(tool.id == shown), and an
unchosen radio row paints an empty ring, so every other tool had a
circle before it. Rows now take check(tool.id == shown): a check before
the shown tool and nothing before the others, as the reference
application's tool flyouts show (photocraft#17102). The mark column
stays reserved, so icons and labels keep their alignment.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A dialog moved only by its title line inside the frame's padding: the
16 px above the title and beside it did nothing. A layer's band now runs
from the frame's top and side edges down to where the body starts, as a
title bar does (photocraft#17112). An OS window's band stays in its
header, clear of the edges the platform hit-tests for resizing.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
In Artcraft dark, Pro dark and Solarized dark (standard and high contrast), line.border is surface.background, so the quiet field had no edge at rest on a fill of the same colour. At high contrast the field's boundary should show. The test fails without the guard.
runtime::motion::now returns a web_time Instant, which is not std's on wasm,
so the menu macOS and WASM lint job failed to compile mac.rs. The AppKit
rebuild retry is a native timer outside any pass, so it keeps Instant::now
with a contract/motion marker and its entry in
design/exceptions/craft-menu/crate.toml.
The mode sync from #3259 wrote egui's default curve for the resolved mode into both theme styles every pass, so an app's own curve (WordCraft's dark Gamma(0.8)) was lost. Each style's curve is now remembered as the app's own whenever it differs from the one the sync last wrote, and the resolved mode's own curve is written into both styles.
(cherry picked from commit 0f7450e578)
Co-authored-by: acebear17 <121527825+acebear17@users.noreply.github.com>
craft-design-lint's workspace test fails on next with four findings in code
that landed before the lint became a hard test:
- draw (#3534): the Bezier overlay's read counter is a thread_local in a module
gated cfg(all(test, feature)); the global-state rule skips cfg(test) modules
only, so the gate is split into #[cfg(test)] and #[cfg(feature)], which
compiles the same code.
- menu (#3541): the macOS menu rebuild retry reads the runtime's clock
(runtime::motion::now) and asks for its frame through
runtime::frame::request_repaint_after instead of Instant::now and
Context::request_repaint_after.
- ui-panels (#3431): Prompt::layer_role was a hand-written setter; the field is
now #[prop(vis = "pub(super)")].
A collection already refuses a press, a sweep and the Space key on a
toggle cell whose source says it does not flip
(`ItemSource::toggle_enabled` false, or a section row), and reports its
node disabled. The row still painted that cell with the normal toggle
ink, brightened it under the pointer and showed the off glyph on hover,
so a locked cell looked clickable.
- `ItemFacts` carries `closed_toggles`, the toggle columns whose cell in
the item does not flip, filled from `toggle_open`.
- `ListRow` reads them with the other facts and declares such a cell's
part inactive, so its glyph or check box paints in the Disabled state
at rest, under the pointer and under a press.
- An off cell there shows no off glyph under the pointer.