Commit Graph
148 Commits
Author SHA1 Message Date
waozi 56b095ca0e Add KSS host service ledger 2026-09-19 01:15:50 -03:00
waozi 7a8d14a339 Add style bridge ledger gate 2026-09-19 00:42:58 -03:00
waozi 5af50d6915 Rename classic style pack 2026-09-18 23:58:58 -03:00
waozi 58f06d67d3 Pause JavaScript web target 2026-09-18 23:09:02 -03:00
waozi 2da31db19e Generate browser policy modules during builds instead of tracking output 2026-09-18 16:33:54 -03:00
waozi f6a8177f60 Classify the remaining style-gate allowlist entries
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.
2026-09-15 22:58:23 -03:00
waozi e20ac9a273 Add cat turtle and moon avatars with stable icon catalog IDs 2026-09-15 18:20:49 -03:00
waozi 8467e21555 Remove Vanilla styling and keep Material as the default 2026-09-15 12:20:25 -03:00
waozi 1e6b28acb4 Keep only unfinished work in the style plan 2026-09-15 10:09:18 -03:00
waozi 0a79e330dd Add style separation scanner gates 2026-09-14 16:21:44 -03:00
waozi a603fc44cf Fold glow into lightfield catalog 2026-09-14 10:46:15 -03:00
waozi 9a0db7f455 Rename UI icon sheet to core 2026-09-14 03:25:54 -03:00
waozi 3c8dceb8d5 Use prefixless built-in style pack names 2026-09-12 22:01:38 -03:00
waozi 540e9b47d1 Rename bottom nav internals to NavigationBar 2026-09-12 18:56:15 -03:00
waozi e2d85c6b53 Clean up canonical widget surface 2026-09-12 18:43:05 -03:00
waozi 00ad3075d8 Clean widget coverage and web metadata surface 2026-09-12 12:35:43 -03:00
waozi 8b6d506826 Clean icon helper names 2026-09-12 00:18:49 -03:00
waozi 968e19a176 Clean icon type names 2026-09-12 00:16:41 -03:00
waozi 7302c513ba Clean scroll helper names 2026-09-11 23:58:19 -03:00
waozi 18e8dca7f2 Rename LabelFrame to Fieldset 2026-09-11 23:45:52 -03:00
waozi 066d569b84 Remove legacy Combo surface 2026-09-11 23:34:27 -03:00
waozi d863d812de Canonicalize Kryon widget surface 2026-09-11 23:20:54 -03:00
waozi 4dd65aa233 Add generated navigation icons 2026-09-11 09:43:30 -03:00
waozi c9c7695bfe Fix canvas TextFormat buffer rotation and stale theme gap entry
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.
2026-09-10 21:29:43 -03:00
waozi ccd89bed34 Repair blank generated-C screens and route-table overreach
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.
2026-09-10 17:59:50 -03:00
waozi cccdc39201 Update generated-C visual gap lists from both matrices
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.
2026-09-10 15:27:16 -03:00
waozi c87c962539 Fix canvas and dom emcc test builds after .kry widget conversion
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.
2026-09-10 14:37:43 -03:00
waozi f4c725ba8e Generate control styles and constants from shared declarations 2026-09-09 21:23:53 -03:00
waozi 5c5a04643d Read native props contracts from embedded Kry declarations 2026-09-09 21:06:26 -03:00
waozi ab3bca6b59 Generate retained widget state bindings across native and web hosts 2026-09-09 20:45:13 -03:00
waozi a0852111e2 Define shared Kryon widget styling and Magnetic Lightfield defaults 2026-09-09 18:14:42 -03:00
waozi 0366b0dd85 Trim generated icon sources and add archive API 2026-09-08 10:22:11 -03:00
waozi 25b75816bf Use single transparent profile picture atlas 2026-09-07 15:37:43 -03:00
waozi 0f4d54fd60 Modernize profile picture icons 2026-09-07 13:25:08 -03:00
waozi 89020372ce Add composed native tab scopes 2026-09-07 11:58:08 -03:00
waozi e292d5cafa Preserve outlined icons and live Text layering 2026-09-06 20:04:59 -03:00
waozi e539942432 Refine Material guides and warning artwork 2026-09-06 20:04:59 -03:00
waozi 9888d85cc9 Add canonical MingCute warning icon 2026-09-06 19:47:22 -03:00
waozi b6a41789bd Enforce canonical TextProps usage 2026-09-06 18:26:36 -03:00
waozi c2717be489 Merge branch 'inbe-ui-widgets'
# Conflicts:
#	docs/site/conformance-matrix.json
#	src/ui/ui_tk.c
#	src/ui/ui_tree.c
#	tests/generated_runtime_parity_test.sh
2026-09-06 16:22:24 -03:00
waozi e28170b826 Rename optional sync module to Daochi 2026-09-06 16:13:35 -03:00
waozi 528ad8aee3 Merge master and finalize canonical UI layout fixes 2026-09-06 12:25:17 -03:00
waozi 0970d8f783 Unify native text and composed popup widgets 2026-09-06 11:36:36 -03:00
waozi b9fe25cbbf Scale semantic font tokens with UI density 2026-09-06 09:28:26 -03:00
waozi 365cdd7c22 Complete native widget catalog and runtime interaction parity 2026-09-05 19:08:02 -03:00
waozi db93873f49 Isolate Windows header names in SDL renderer builds 2026-09-05 11:16:20 -03:00
waozi 79b57569c9 Emit portable scalar operations from shared KIR and remove cgo 2026-09-05 10:33:14 -03:00
waozi f871a2ee3f Build shared expression checking and lexical cleanup foundation 2026-09-05 09:50:06 -03:00
waozi 5e9c5034a1 ci: repair sanitizer coverage 2026-09-05 08:16:33 -03:00
waozi dcdac079cb ui: add immediate-mode widget slice with plots and sliders
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.
2026-09-05 02:00:07 -03:00