Commit Graph
10684 Commits
Author SHA1 Message Date
FredApps 36beff97cd Merge branch 'main' into fix/panel-layout-gaps 2026-11-28 23:21:13 +01:00
FredApps af8c5913b4 Merge branch 'main' into fix/panel-layout-gaps 2026-11-28 23:15:30 +01:00
autocraft-bot[bot] 636f669b68 Merge pull request #4130 from storytold/integration-craft-libs-20261128-16
Integration batch integration-craft-libs-20261128-16
2026-11-28 22:08:39 +00:00
FredApps da4ed02b96 Merge main into fix/popover-padding-menu-spacing 2026-11-28 22:26:17 +01:00
dotCooCoo cc3172c606 ui: a wrapping spread row on one line sets its children on an unwrapped row's line
A wrapping SpaceBetween row whose children fit one line recorded its line at
the middle of its tallest child. When the real run spread the children, a
child whose line lies above its middle (a nested row whose line is its first
button's, beside a column of two buttons) sat its line on that middle and
reached below the row's measured height, over the next sibling.

The measuring run now records what each child takes about a line, as an
unwrapped row's children do, and the row records that line and its height.
The measuring block takes that height when the real run may spread the
children, so the container measures the row as tall as it shows.
2026-11-28 13:22:26 -08:00
FredApps 0848fc98d9 Merge main into fix/popover-padding-menu-spacing
# Conflicts:
#	crates/ui-contract/src/contract/overlay/props.rs
2026-11-28 22:06:42 +01:00
dotCooCoo 9ab5e3a135 ui-contract: OverlayUi::show pads a popover overlay with POPOVER_PAD
Overlay carries the pad OverlayUi::show puts around a popup's body
closure. Overlay::popover() sets POPOVER_PAD, and menus, dropdowns and
the other overlays keep POPUP_PAD, so DatePicker's calendar, the stroke
editor, the color pair and paint chip popovers, the number field popups
and the ribbon gallery's More grid pad their content as Popover and
CalendarPopover do. Overlay::pad sets it; the pasteboard's in-place name
editor keeps POPUP_PAD so its field stays over the page name.

A test checks that DatePicker's calendar stands as far in from its
popup's start edge as CalendarPopover's, the regular pad.
2026-11-28 13:06:04 -08:00
dotCooCoo 063b7295e5 ui: a wrapping spread row on one line keeps to its container's wrap width
A wrapping SpaceBetween row whose children fit one line was spread over the
whole room its container offered, while the same row wraps its lines at the
container's paragraph line length (a wrap width set on a content-sized
container). A row that fills a stack whose least width is wider than its wrap
width put its last child at the stack's end instead of at the wrap width.

The rect the row wraps in is now one helper, wrap_rect. The one-line check
compares the children with that rect's width, and the spread row places them
in that rect. A row with no narrower wrap width still spreads over its room.
2026-11-28 13:04:58 -08:00
FredApps e058e4d58e Merge branch 'main' into fix/ui-perf-1-floating-windows 2026-11-28 22:02:54 +01:00
Martin BallandClaude Sonnet 5.5 09c3736e7b pages: EdgePicker takes a sample-sized preview (#4024) (#4061)
* fix(pages): EdgePicker takes a sample-sized preview (#4024)

EdgeSize::Sample draws the square at size.thumb.sample.lg; the default stays size.thumb.lg.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FypgCWNarDG3QfXK2YMzdx

* fix(pages): rename EdgePicker::size to preview

The setter shadowed the Props setter of that name (craft-design-lint props/shadow).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FypgCWNarDG3QfXK2YMzdx

---------

Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 20:57:28 +00:00
Martin BallandClaude Opus 5.5 b055d0fb30 shortcuts: cap the Categories list in the command-lists layout so Commands keeps room (wordcraft#7971) (#4029)
Claude-Session: https://claude.ai/code/session_01FypgCWNarDG3QfXK2YMzdx

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 20:57:23 +00:00
dotCooCoo 8c807a9a04 ui: wrapped spread rows keep their end edge, check boxes in a field's row keep their labels
- A wrapping SpaceBetween row whose children fit on one line now spreads
  them over its room, with the last child at the end edge and every child
  on the middle of the line. Once the children take more than one line,
  each line starts at the start edge as before. The children run in the
  same child Ui either way, so they keep their ids when the row starts or
  stops wrapping.
- A check box or other control that draws its label after its mark hides
  that label only when it sits directly in the body of the field that
  names it. In a row or grid inside the field it shows its own label,
  as the accessibility tree already names it.
- The Color Guide variation grid puts the theme's item gap between its
  cells.
- A tile grid whose group heads are dividers no longer reserves a head
  row above its first group: the first tiles sit the inset below the top.
2026-11-28 12:31:53 -08:00
Martin BallandClaude Sonnet 5.5 1abc877a4f fix(text): Columns dialog draws preset thumbnails and a sample-sized preview (#4025) (#4092)
Claude-Session: https://claude.ai/code/session_01FypgCWNarDG3QfXK2YMzdx

Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 20:18:54 +00:00
Martin BallandClaude Sonnet 5.5 bd4f24ac1e fix(ui-patterns): a preferences text row takes a placeholder (#4028) (#4091)
Claude-Session: https://claude.ai/code/session_01FypgCWNarDG3QfXK2YMzdx

Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 20:18:48 +00:00
Martin BallandClaude Opus 5.5 7c058a1d2d fix(menu): GalleryFace::rendered gets a checker switch (#4027) (#4059)
Claude-Session: https://claude.ai/code/session_01FypgCWNarDG3QfXK2YMzdx

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 20:18:42 +00:00
Martin BallandClaude Opus 5.5 1a09c8ad77 ListManager list keeps its height; tabbed Colors dialog's Standard page shows the compare block (storytold/wordcraft#7979, #7984) (#4032)
* fix(list-manager): the list takes height from its rows so the empty message and rows clear the section under it (storytold/wordcraft#7979)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FypgCWNarDG3QfXK2YMzdx

* fix(color-ui): the tabbed dialog's Standard page shows the compare block

Part of storytold/wordcraft#7984.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FypgCWNarDG3QfXK2YMzdx

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 20:18:37 +00:00
Martin BallandClaude Opus 5.5 6e4d505601 fix(theme): a disabled solid button's label reads and the button stays unlike the enabled one (wordcraft#7978) (#4030)
The label of a disabled solid button is moved off its dimmed fill until it has 4.5:1, and the fill is dimmed until it is 1.5:1 from the enabled fill (towards black or white where the theme's disabled fill is itself close to the solid colour), in every built-in theme and contrast setting.


Claude-Session: https://claude.ai/code/session_01FypgCWNarDG3QfXK2YMzdx

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 20:18:33 +00:00
dotCooCoo 1de335203e ui-widgets: tile grid header and tail faces are cut at the scroll bar
A group header's or tail row's face is painted under a clip at the row's
end, so text laid out past it is not drawn under the scroll bar. A
header or tail row left with no width in a view narrower than its inset
and the bar takes no part, so it cannot catch presses meant for the rows
beneath it.
2026-11-28 12:03:13 -08:00
BFlat c78cb46b03 Merge pull request #4054 from dotCooCoo/fix/png-band-capacity
image-codecs: drop each PNG band's spare deflate buffer before joining
2026-11-29 03:01:57 +07:00
BFlat 5c5b7d82e8 Merge pull request #3999 from dotCooCoo/fix/pdf-load-attempt-count
craft-pdf: two cos loading tests count parses and references instead of timing
2026-11-29 03:01:38 +07:00
dotCooCoo 5c84c026e2 Docking: a native window's move records its place once, when it ends
While the app moved a floating window shown in an OS window, the dock
area recorded the window's new place (Action::SetNative) in every pass
of the drag. Each record was a workspace edit, which changed the
workspace revision and rebuilt the dock's kept specs, titles and
geometry in every frame of the drag.

FloatingGroupOutput gains `moving`, kept in the group's memory from a
move's Begin to its Commit or Cancel. DockArea skips native::reported
while it is set; the Commit pass and the passes after it record the
place where the window was let go.

The new trial counts the placement records during a six-step drag of
a palette the app moves: 6 without the change, 0 with it, and the
release still records the final place.
2026-11-28 12:01:20 -08:00
BFlat be1061eea1 Merge pull request #4001 from dotCooCoo/fix/affinity-run-match-count
.af reader: the paragraph matching test counts lookups instead of timing
2026-11-29 03:01:18 +07:00
BFlat f64db64856 Merge pull request #4000 from dotCooCoo/fix/xml-subset-scan-count
craft-xml: the internal subset search counts what it reads instead of timing
2026-11-29 03:00:58 +07:00
BFlat b8be138ea7 Merge pull request #3998 from dotCooCoo/fix/proof-stem-scan-count
proof: the large MAP test counts lookups instead of CPU time
2026-11-29 03:00:40 +07:00
BFlat 8f8615727f Merge pull request #3997 from dotCooCoo/fix/svg-entity-expansion-count
svg: the ampersand run test counts name bytes instead of timing
2026-11-29 03:00:21 +07:00
BFlat 9123de652a Merge pull request #3996 from dotCooCoo/fix/tiff-strip-sort-count
craft-tiff: the missing byte count test counts offset reads instead of timing
2026-11-29 03:00:01 +07:00
BFlat b9e358f23f Merge pull request #3995 from dotCooCoo/fix/psd-name-score-steps
craft-psd: the long letter run test counts name reads instead of timing
2026-11-29 02:59:42 +07:00
BFlat 66437ffef7 Merge pull request #3627 from dotCooCoo/fix/ruler-feet-inches
ui-canvas rulers: the units menu can offer Feet & Inches beside Feet
2026-11-29 02:59:23 +07:00
BFlat 3fc16e2039 Merge pull request #3859 from dotCooCoo/fix/swatches-panel-keeps-drop-placements
Keep between-row and onto-row drops available in Swatches
2026-11-29 02:59:04 +07:00
BFlat 8816f1af3a Merge pull request #3993 from dotCooCoo/fix/cms-inverse-probe-count
cms: the flat-table inversion test counts table reads instead of timing
2026-11-29 02:58:26 +07:00
BFlat dfa9aeea23 Merge pull request #3583 from dotCooCoo/fix/color-panel-rgb-units-double-click
color-ui: a double click right of an R, G or B field switches the Color panel's RGB units
2026-11-29 02:58:02 +07:00
BFlat 2935a01cc8 Merge pull request #4125 from dotCooCoo/fix/canvas-chrome-i13665
canvas chrome: corner widgets sit a fixed inset, the compass clears the scroll bars, the ruler corner shows a plus
2026-11-29 02:57:28 +07:00
autocraft-bot[bot] 4d9ff08910 Merge pull request #3582 2026-11-28 19:16:26 +00:00
autocraft-bot[bot] 481e96b831 Merge pull request #4118 from storytold/integration-craft-libs-20261128-15
Integration batch integration-craft-libs-20261128-15
2026-11-28 19:16:08 +00:00
autocraft-bot[bot] 49e8df6885 Merge pull request #4117 from storytold/integration-craft-libs-20261128-14
Integration batch integration-craft-libs-20261128-14
2026-11-28 19:15:00 +00:00
dotCooCoo c0461c3468 ui-widgets: popovers pad as panels, menu samples and grid headers clear their neighbors
Popover and CalendarPopover pad their content by the new POPOVER_PAD,
space.pad.regular, instead of space.pad.control, so controls no longer
sit against the popover's edge. Menus, popup lists and OverlayUi::show
keep POPUP_PAD, since their rows carry their own inset. The color HUD
places its start point through POPOVER_PAD, as it shows in a Popover.

A menu row's sample column starts space.gap.section after the label,
the gap the shortcut column already gets, so a font name no longer runs
into its sample.

A tile grid's group headers and tail rows end at the scroll bar while it
shows, so the count at a header's end is not painted under the bar.
2026-11-28 11:13:44 -08:00
dotCooCoo b037b2a6ba canvas chrome: corner widgets sit a fixed inset, the compass clears the scroll bars, the ruler corner shows a plus
- Corner widgets sit 10 points inside their corner at every density
  (CornerWidgets::INSET) instead of space.gap.stack, which changed with
  the density. A host that hit-tests the widgets reads the constant.
- CanvasScrollbars::clear_of returns a canvas rect without the scroll
  bars' strips, from the sizes the bars draw with, so a canvas passes it
  to RotateView::compass_rect and the vertical bar does not cover the
  compass.
- The ruler corner shows a "+" that marks the draggable zero point.
- ZoomField::status_bar is public, so an app's own status-bar zoom field
  can use the status bar's look.
2026-11-28 11:08:51 -08:00
BFlat 3150312cc1 Merge pull request #3784 from dotCooCoo/fix/mesh-primitive-invalid-dimensions
craft-mesh-ops: reject invalid box dimensions
2026-11-29 02:06:04 +07:00
autocraft-bot[bot] 604941c4ba Merge pull request #3446 2026-11-28 18:35:45 +00:00
autocraft-bot[bot] 82180bb27c Merge pull request #3217 2026-11-28 18:35:25 +00:00
BFlat 4d92c4f371 Merge pull request #4111 from dotCooCoo/fix/mesh-ops-unwrap-one-material
craft-mesh-ops: auto_unwrap rejects triangles listed under two materials
2026-11-29 01:30:57 +07:00
BFlat 866cd0d153 Merge pull request #4110 from dotCooCoo/fix/mesh-ops-gbuffer-band-bins
craft-mesh-ops: UvGBuffer bins triangles in one fallible list with a size cap
2026-11-29 01:29:22 +07:00
dotCooCoo 2e693ebd60 craft-mesh-ops: auto_unwrap rejects triangles listed under two materials
auto_unwrap gave a triangle the material of the last submesh listing it,
while Mesh::triangles_of lists it under every such material, so the UVs of
one material could overlap. auto_unwrap now returns an error, before it
changes the mesh, when submeshes of two materials share a triangle.
2026-11-28 10:05:43 -08:00
dotCooCoo 7c05bd4e8e craft-mesh-ops: UvGBuffer bins triangles in one fallible list with a size cap
UvGBuffer::new pushed each triangle into a Vec per band it touches before
reserving the output buffers, and a failed push aborts the process. A
counting pass now sizes one flat list of band entries, which is reserved
with try_reserve_exact and capped at MAX_BAND_ENTRIES (2^27). Each band
keeps its triangles in mesh order.
2026-11-28 10:05:42 -08:00
BFlat 4fbe743a60 Merge pull request #3511 from dotCooCoo/fix/theme-faint-text-contrast
theme: faint text reads at 4.5:1 below muted text in every built-in
2026-11-29 01:03:25 +07:00
BFlat 923a3dcf33 Merge pull request #1409 from dotCooCoo/feat/craft-testkit-image
craft-testkit: add the image feature for image comparison and golden checks
2026-11-29 00:26:05 +07:00
dotCooCoo 5d4e8da624 theme: ArtCraft app palettes keep faint text at 4.5:1; dark raised keeps its lift
The WordCraft and PdfCraft palettes in artcraft.json pinned text.faint
at 3.4 to 4.4:1 on their hover, pressed and background fills. Their
light faint and muted pins and WordCraft's dark pins move along their
own hue so faint text reads at 4.5:1 there and muted text stays 1.25
times above it. The faint text test now resolves every built-in alone
and with each app palette it carries, and the fills it leaves out must
match a named list.

ArtCraft dark pins surface.raised to #5e5e5e, so raised fills stand
above the #535353 panel again (the contrast pass had darkened them to
#545454). Normal text reads at 5.59:1 on that fill, which leaves no
room for a muted grey between faint and normal, so faint text on it
stays listed as a warning, like the control, hover and pressed fills.
High contrast keeps its #595959 raised fill, and the WordCraft and
PdfCraft palettes keep their own raised fills (#353535 and #2e2e33) in
both contrasts.
2026-11-28 09:20:18 -08:00
autocraft-bot[bot] 4bde899e50 Merge pull request #4094 from storytold/integration-craft-libs-20261128-5
Integration batch integration-craft-libs-20261128-5
2026-11-28 17:10:28 +00:00
BFlat 143702b2c8 Merge pull request #4090 from dotCooCoo/fix/mesh-ops-gbuffer-size
craft-mesh-ops: UvGBuffer::new rejects sizes that overflow its texel math
2026-11-29 00:00:38 +07:00
BFlat 19c08ce81a Merge pull request #1233 from dotCooCoo/feat/craft-mesh-ops
craft-mesh-ops: mesh operations, a BVH and primitives for the 3D apps
2026-11-28 23:59:52 +07:00