Commit Graph
9308 Commits
Author SHA1 Message Date
aiongg c07dc92f2c ui-contract: collection rows name the row under the pointer through hover-only parts
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.
2026-11-27 01:22:31 +00:00
aiongg 4fe31f5dc3 ui-contract: a settled view under the pointer replays while what sensing gives it is unchanged
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.
2026-11-27 01:02:01 +00:00
aiongg 27e8a77145 ui-contract: one tracked hover-position read; cursor requests and pointer facts journaled
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.
2026-11-27 01:01:58 +00:00
David MannandClaude Opus 5.5 de45e61fad craft: egui_fork::REV at the pinned egui (storytold/egui#65's head)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 00:41:17 +01:00
David MannandClaude Opus 5.5 cbcc2ffbdb ui-contract: a repaint request's cause names its caller
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>
2026-11-27 00:09:55 +01:00
David MannandClaude Opus 5.5 bd2e084232 build: egui at storytold/egui#65's head (move-only passes ask the gate)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 23:51:51 +01:00
David MannandClaude Opus 5.5 b093185a33 perf(ui-contract): a pointer move that changes nothing under the pointer runs no pass (photocraft#17148)
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>
2026-11-26 23:34:01 +01:00
David MannandClaude Opus 5.5 e7f4e17fa7 WIP: perf(ui-contract): a pointer move that changes nothing runs no frame (photocraft#17148)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 23:22:26 +01:00
David Mann a46af76c7c Merge pull request #3788 from davidmann4/perf/photocraft-frame-cost
perf(layers): the panel's blend rows replay while the active layer's properties hold (photocraft#17131)
2026-11-26 22:08:55 +01:00
David MannandClaude Opus 5.5 2ab084fcca test(layers): no clone of a Copy selection in the blend rows trial
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 21:29:17 +01:00
David Mann cc8ee323cc Merge commit '5d2c8bdcf48efc94ba0d07bc684ac13f4fcc9e5a' into perf/photocraft-frame-cost-ff 2026-11-26 20:59:28 +01:00
David MannandClaude Opus 5.5 7f047ca901 perf(layers): the panel's blend rows replay while the active layer's properties hold (photocraft#17131)
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>
2026-11-26 20:55:30 +01:00
David Mann 8cb94baa2b Merge pull request #3773 from davidmann4/fix/readout-flicker-between-moves
Tool host: a gesture's readout stands between its moves (photocraft#17121)
2026-11-26 20:35:54 +01:00
David MannandClaude Opus 5.5 554f7877e0 Tool host: a gesture's readout stands between its moves (photocraft#17121)
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>
2026-11-26 18:49:22 +01:00
David MannandClaude Opus 5.5 34b197b52a WIP: the gesture readout stands between moves (photocraft#17121)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 18:37:23 +01:00
David Mann 5d2c8bdcf4 Merge pull request #3746 from davidmann4/fix/17102-flyout-no-empty-ring
Tool flyouts mark only the shown tool (photocraft#17102)
2026-11-26 18:06:48 +01:00
David Mann c2329b83f4 Merge pull request #3756 from davidmann4/fix/17112-dialog-band-whole-top-strip
A dialog moves by its whole top strip (photocraft#17112)
2026-11-26 18:06:37 +01:00
David MannandClaude Opus 5.5 eec33e6082 ui-panels: a tool flyout checks the shown tool and marks no other row
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>
2026-11-26 17:36:59 +01:00
David MannandClaude Opus 5.5 4062c6aa16 ui-contract: a layer's move band reaches its frame's top and side edges
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>
2026-11-26 17:32:01 +01:00
David MannandClaude Opus 5.5 8b78cc2b51 WIP: a dialog moves by its whole top strip (photocraft#17112)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 17:18:47 +01:00
David MannandClaude Opus 5.5 9970a37c6c WIP: tool flyouts mark only the shown tool (photocraft#17102)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 16:44:41 +01:00
FredApps ea14416aaf Merge pull request #2823 from storytold/fix/7171-scroll-bar-inset
#7171: scroll bodies offer fill-width children the view, not the bar lane
2026-11-26 11:14:50 +01:00
FredApps ecb69983ef Merge pull request #3146 from storytold/fix/docked-pane-divider
dock: a docked pane shows a divider on its inner edge (wordcraft#7317 C7-9)
2026-11-26 11:14:37 +01: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 c53066d193 Merge pull request #3481 from storytold/fix/wordcraft-7678-gallery-selected-outline
menu: the ribbon gallery's current tile is an accent fill with an accent edge, not a grey fill (storytold/wordcraft#7678)
2026-11-26 11:14:13 +01:00
FredApps 2956f5009e Merge pull request #3510 from storytold/fix/wordcraft-7682-palette-quiet-search
ui-patterns: a quiet look for an in-place command palette in a bar (storytold/wordcraft#7682)
2026-11-26 11:13:20 +01:00
FredApps 5aa05e74d0 ui-contract: a quiet field keeps its own edge at high contrast and where line.border is the window background
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.
2026-11-26 16:40:12 +07:00
FredApps f8b068a404 Merge branch 'next' into fix/7171-scroll-bar-inset 2026-11-26 10:33:21 +01:00
FredApps 02bc2f8264 Merge branch 'next' into fix/docked-pane-divider 2026-11-26 10:33:16 +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 9140bb0b57 Merge remote-tracking branch 'origin/next' into tc14-3510 2026-11-26 16:08:40 +07:00
FredApps cb399e16e2 Merge remote-tracking branch 'origin/next' into tc14-3481 2026-11-26 16:08:39 +07:00
FredApps e39fd100af Merge remote-tracking branch 'origin/next' into tc14-3475 2026-11-26 16:08:37 +07:00
BFlat 16b2981d49 Merge pull request #3637 from storytold/fix/next-design-lint 2026-11-26 14:34:33 +07:00
bflatastic 76322b729c menu: the macOS rebuild retry keeps std Instant, allowed and listed
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.
2026-11-26 13:03:37 +07:00
BFlat 9f93f32494 Merge pull request #3638 from dotCooCoo/fix/list-row-closed-toggle 2026-11-26 12:44:29 +07:00
BFlat b2e7113a41 Merge pull request #3509 from dotCooCoo/fix/list-row-toggle-once 2026-11-26 12:44:20 +07:00
BFlat aed392aebf Merge pull request #3501 from dotCooCoo/fix/list-row-cell-bounds 2026-11-26 12:44:11 +07:00
Martin Ballandacebear17 e172271774 ui-contract: keep an app's own text curve for each mode (#3516) (#3615)
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>
2026-11-26 04:56:27 +00:00
bflatastic ed7b213d51 design-lint: clear the four findings on next from #3534, #3541 and #3431
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)")].
2026-11-26 11:39:35 +07:00
dotCooCoo 3af616be85 ui-widgets: a toggle cell the list does not flip paints disabled
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.
2026-11-25 20:34:51 -08:00
dotCooCoo 9a4eea7a1b Merge next into fix/list-row-cell-bounds 2026-11-25 19:39:00 -08:00
BFlat 8f1bb4c460 Merge pull request #2088 from dotCooCoo/fix/color-portal-answer-shape
Screen: the color picker portal's answer of another shape fails the pick without a panic
2026-11-26 10:31:04 +07:00
BFlat 7f93aef96b Merge pull request #2086 from dotCooCoo/fix/portal-current-filter-shape
Dialogs: a Save As goes ahead when the portal answers with a file type of another shape
2026-11-26 10:30:38 +07:00
BFlat 74f875c758 Merge pull request #3080 from dotCooCoo/feat/craft-shared-vec
Add craft-shared-vec: an indexed list whose clones share their blocks
2026-11-26 10:26:09 +07:00
BFlat c41c9433e9 Merge pull request #2969 from dotCooCoo/feat/color-row-alpha
Form dialogs: a color row can carry opacity (ParamKind::color_with_alpha)
2026-11-26 10:25:56 +07: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 16c41e2f7a Merge pull request #2959 from dotCooCoo/feat/about-licenses-tab
About: a Licenses tab shows the app's third-party license texts
2026-11-26 10:25:20 +07:00
BFlat d9513bc418 Merge pull request #2957 from dotCooCoo/feat/range-param-step
Form dialogs: a Range row can take a step (Param::step) for its slider and field
2026-11-26 10:25:07 +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