Every ratchet entry in check-style-gates.py now states its class: the
src/ui/ui.c theme-catalog application is a legacy bridge whose removal
follows downstream migration off the pre-KSS theme API (tracked by the
legacy-removal plan), the src/ui/ui_tree.c app background is the
documented no-pack platform fallback, and the Go font/opacity and page
metric bases are caller-supplied content metrics under the metrics
contract. plan/style/04 records the status: no unclassified product
decoration remains in the allowlists.
canvas TextFormat wrote through buffers[next] before rotating: once a
frame formatted more than sixteen strings the vsnprintf destination ran
past the array and trapped in wasm, which is why the 03_theme capture
died with a memory access out of bounds inside vsnprintf at an offset
that moved with the format string. Compute the slot once, like the dom
and termi backends already do, and guard a NULL format the same way.
The 03_theme web Canvas gap entry is gone: the capture renders 446
colors of the dark theme after the fix. The widget_catalog gap reason
now records what is actually missing (full-array slice lowering plus
the TextLines, SelectableText, and ColorPickerProps widgets) instead of
the generic prop-shapes wording. The remaining known gaps are the five
scene-only sources without generated-C app-host routes, widget_catalog,
and the interaction-only drag_drop fixture, all documented accurately.
The visual matrices exposed three real defects after the emcc builds
linked again:
- Background() deferred its fill to the tree paint pass, which runs after
every widget that renders during declaration (TabBar, PanedView,
Collapsible, MenuBar, Text). The opaque backdrop then covered the whole
screen, leaving 10_menus, 12_collections, 15_containers, 20_scroll,
09_geometry, 11_basic_controls, and 17_keyboard_platform capturing a
single flat color. Background now paints in declaration order and marks
its node painted-immediate so the tree pass cannot double-paint it.
- k2c registered every public #ui function as an implicit route, then the
route wrapper lowered non-screen signatures as fn(app). buttons_layout
declared CancelAction(props: ActionProps) #ui and failed to compile.
Implicit routes now require a callable screen signature: no arguments or
a single viewport Rectangle. This also unblocked 14_canvas, whose
non-screen #ui helper previously broke its generated C.
- composed.kry had no screen, so k2c emitted no project C and the capture
harness could not link CreateAppHost. Give the fixture a composed_screen
route that exercises the carousel visually next to the existing function
parity checks.
drag_drop.kry stays listed as a render gap with an accurate reason: its
sources and targets are interaction-only and draw nothing by design.
k2c_syntax_test.sh also needs the generated include dirs now that
kryon.h includes ui_icon_types.h.
raylib-matrix-check-internal passes: 40 sources captured, 7 known gaps.
Both generated-C visual matrices run again now that the emcc test builds
link (previous commit fixed the missing generated includes and runtime
sources). The results:
- Raylib and web Canvas both capture 01_file_dialog, 02_buttons,
04_modal, fields, focus, and long_text; drop the stale blank entries.
- Five screens (10_menus, 12_collections, 15_containers, 20_scroll,
drag_drop) now paint nothing in headless captures on both backends;
record them as render gaps on each side.
- buttons_layout.kry and composed.kry fail generated-C compilation on
both backends (property-form local #ui function lowering passes the
app pointer to an ActionProps parameter; the composed fixture emits
no CreateAppHost); record both as compile gaps.
raylib-matrix-check-internal passes: 30 sources captured, 17 known gaps.
The canvas, dom, and audio backend test scripts and the web Canvas
generated-C matrix no longer compiled: kryon.h now includes the
generated ui_icon_types.h, and src/ui/*.c links against the widget C
lowered from runtime/*.kry (PaintButton, ReadButtonInput, ...), which
those emcc builds never passed or compiled. Discover the last completed
build generated dir, add its include paths, link its generated sources,
and exclude dom_*.c from the web Canvas matrix source set so it cannot
collide with canvas_*.c on the KryonRaylibBackend_* seam under
Emscripten.
Extend the retained+immediate widget surface with PlotLines, PlotHistogram,
DragFloat/DragInt, SliderFloat/SliderInt, VSlider variants, SliderAngle,
InputFloat/InputInt/InputDouble, TreeView and the widget catalog example,
wired through k2go, the Go runtime and web runtime parity coverage. Fix the
k2go lowering of &arr[i] address-of-array-element expressions so pointer
props like SliderAngle.Value stay addresses in generated Go. List the new
parity sources in the KRB alpha-diff matrix.