Files
kryon/runtime
waozi d40967fc05 Add StyleTokenColor: read registered color tokens at runtime
The missing piece for migrating legacy theme getters: apps register named
color tokens through RegisterStylePackVariant, but nothing could read one back
outside the widget cascade. style_pack_source.kry now retains each pack's
token table (a flat 32x64 global; .kry has no nested fixed arrays) and exposes
StyleTokenColor(name) and StyleTokenColorOr(name, fallback) — declared in
style_pack_props — which read the active pack's table and unpack the u32
in-raylib byte order locally (no GetColor dependency, so the style suites link
without a backend).

Downstream, GetThemeBackground()/GetThemeText() calls become
StyleTokenColor("canvas")/StyleTokenColor("text") against the token names the
app already registers — the mechanical path B-001's deletion needs.

Two debugging notes recorded for the plan: an apostrophe in a top-level .kry
comment silently truncates parsing (the tokenizer swallows the rest of the
file as an unterminated char literal — keep prose out of top-level comments),
and nested fixed arrays are a hard parse error.

Gates: generated-runtime-parity-test, fast-test, style-pack-source/registry/
picker/release-startup suites, kss-host-ledger-check, kryon-boundary-check,
refreshed snapshots, plus a functional register/activate/read/fallback test.
2026-09-21 10:24:39 -03:00
..
2026-09-12 10:38:55 -03:00
2026-09-13 05:58:39 -03:00
2026-09-13 05:58:39 -03:00
2026-09-14 08:11:06 -03:00
2026-09-13 02:12:16 -03:00
2026-09-13 12:11:19 -03:00
2026-09-10 13:49:46 -03:00
2026-09-13 23:27:25 -03:00
2026-09-13 06:08:14 -03:00
2026-09-14 10:42:52 -03:00
2026-09-11 23:20:54 -03:00
2026-09-13 12:15:09 -03:00
2026-09-14 08:07:19 -03:00
2026-09-14 10:56:22 -03:00
2026-09-14 05:31:11 -03:00
2026-09-14 00:54:56 -03:00
2026-09-14 10:50:11 -03:00
2026-09-19 10:39:42 -03:00
2026-09-13 04:54:02 -03:00