IconExpand (127) is the two-corner open-in-full glyph, drawn in the same
style as the navigation icons and placed in the next free ui.png cell so no
existing icon moves. The icon generator now keeps the IconType ids it writes,
instead of dropping them from ui.json.
src/kss/style_pack_classic.zi embeds styles/kryon/classic.kss so apps can
install the pack without the file. It stays committed: apps import Kryon
as a package without running its Makefile. A Python script wrote it by
hand, and nothing noticed when the two drifted apart.
tools/style_pack_module.zi now writes it (`make style-packs`) with the same
chunks as before; only the header names the new tool. `make
style-pack-check`, part of `make test`, fails while a module differs from
its pack.
SystemTheme parses a GTK theme's @define-color palette; SystemThemeLinux finds
the configured theme (Xfce xfconf, GTK settings.ini, GTK_THEME); SystemStyle
installs the embedded classic pack with the palette's colors. This replaces the
system theme the legacy C runtime had.
include/ui_icons.h is deleted. runtime/icon_sheet_props.kry declares IconSheet
as a one-line #type enum (#type records emit before the enum pass, so
IconAsset's field needs it that way), IconAsset as a #type record over the
script-generated IconType, and the two asset queries as externs.
The round-32 "extern-variable gap" closed differently than expected: the
ui_icon_names array is generated data from scripts/embed-icon-sheets.py, so
the script now also emits "extern const char *ui_icon_names[ICON_COUNT];" into
the ui_icon_types.h it already generates — the declaration lives with its
generator, sized to the count it owns. The generated asset table includes the
props header, and the Makefile rule drops the deleted header as a prerequisite.
Gates: generated-runtime-parity-test, fast-test, k2c/k2cpp/k2go-syntax-test,
go-runtime-test, examples-syntax-test, kryon-boundary-check, icon-policy-test,
and the refreshed public-API snapshot pass.
include/ui_style_sheet.h is deleted. runtime/style_pack_props.kry declares
STYLE_PACK_MAX as a Kry constant, StylePack — whose sheet field points at a
parsed StyleSheet owned by the loader — as a one-line "#type" record importing
the build-generated runtime/style_sheet.h and runtime/style.h headers, and the
twenty registration/resolution/picker calls as "#extern #export" declarations.
The Go host keeps its handwritten style_pack.go parallel (externs and #types
emit nothing in Go).
Makefile test dependencies, the C style-table generator's emitted include, the
KSS host ledger (the props header and the embedded runtime declarations are
now classified call sites), and twenty-four consumer files follow the header.
kss-parser-test and bridge-ledger-check fail identically on pristine master
(concurrent-session palette work) and are excluded; everything else passes:
generated-runtime-parity-test, fast-test, all syntax tests, go-runtime-test,
examples, boundary, style-pack/picker/release-table suites, kss-host-ledger,
and the refreshed public-API snapshot.
Move app shell, frame, locale, node, screen routes, theme state, and window
policy ownership into src/ui/*.kry, delete the replaced src/core owners, and
make generated public ABI the type source for capability and retained-node
records.
- runtime/capability_props.kry and runtime/node_props.kry generate the public
capability and node type headers; handwritten headers keep only the C-only
declarations (function-pointer typedefs, unions, host functions).
- k2c/k2cpp: terminate a same-line case body and map fixed-width casts
(i32/i64/u8/f32/...) to their C types.
- locale.c matches the generated LocaleParseEntries argument order;
locale_policy.kry keeps its return type on the signature line.
- ui_window.c renames the X11 dlopen shim symbols off the downstream app prefix.
- Refresh the canonical surface doc, public API snapshot, and test gates.
Verified: runtime parity (C+Go), k2c/k2cpp/k2go syntax, go runtime,
public-api-names, canonical-surface, kryon-boundary, public-api-snapshot,
laws, fast-test, smart-test.
Widget, layout, interaction, style, and UI-tree logic is now authored in
the Kry (.kry) UI language and compiled into the native C and Go runtimes,
replacing the hand-written C widget implementation. The remaining C is
platform and raster backends (X11 window, font rasterization, paint command
execution, surface/image caches, test helpers).
- Clipboard OSC52/paste callbacks are host-provided write functions instead
of raw function-pointer typedefs, unblocking Go runtime generation.
- AccessibilityNode and Accelerator types are generated from .kry.
- Generated-runtime parity test passes for both C and Go.
Carries the staged tree cleanup (preview canvas/host/io/layers, kry_settings,
helper scripts, probe examples) plus RenderTextGlyph: one-glyph atlas draw on
the active text font stack for fixed-cell surfaces such as terminal grids.
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.