Commit Graph
136 Commits
Author SHA1 Message Date
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
waozi 5ee4f01879 release: prepare v0.1.46 2026-09-04 20:41:00 -03:00
waozi 8dfffb4b7d ui: modernize input and icon assets 2026-09-04 20:30:23 -03:00
waozi 22cd4f40bf kry_instance: own SIGTERM/SIGINT + robust lock stealing
SDL latches SIGTERM into an event that a busy frame loop may never
observe, leaving an unkillable process holding the single-instance
lock (every later launch then gets rejected with no window). The lock
owner now installs its own SIGTERM/SIGINT handler that drops the lock
(close+unlink are async-signal-safe) and exits immediately.

Also: widen the steal budget to 3.5 s, escalate once to SIGKILL
guarded by a /proc/<pid>/comm same-application check so a recycled
pid never takes the hit, and add KryonReleaseInstanceLock() for apps
whose shutdown path is slow — krait calls it right after its main
loop ends, before cleanup.
2026-09-03 18:47:10 -03:00
waozi 8448db3452 Verify k2cpp in the packaged tools bundle 2026-09-03 13:50:36 -03:00
waozi b24fde792f Add k2cpp backend with full k2c parity
.kry -> C++ compiler sharing the Kir frontend with k2c. Emits .cpp/.hpp
per module calling the C Kryon runtime through extern "C" declarations,
plus kryon_project.h/.c (still plain C) and the --plan9 and --include-dir
options ported from k2c. Inferred declarations emit 'auto' instead of
__auto_type so g++ accepts the output. Wired into the Makefile, tools
package, conformance matrix, feature matrix, and a k2cpp syntax test.
2026-09-03 13:39:37 -03:00
waozi 38eb5ab3a6 Rename k2g to k2go and k2ir to k2kir
The short k2g/k2ir names became confusing as the toolchain grew.
k2go and k2kir name their targets explicitly; k2c, k2js, and k2b
keep their existing names. Hard rename, no compatibility aliases.
2026-09-03 13:34:40 -03:00
waozi c5e84b8016 Fallback to fonttools module for subsets 2026-08-31 19:56:27 -03:00
waozi daa819858b Update showcase and Pages deployment 2026-08-31 16:48:31 -03:00
waozi 00c50a8d8b Improve Debian platform icon 2026-08-31 12:13:33 -03:00
waozi 0993e60bee Improve Kry language tooling 2026-08-31 10:44:13 -03:00
waozi 824f34f2a1 Cache bust showcase banner assets 2026-08-30 04:33:34 -03:00
waozi e9ec7ff715 Fix showcase project directory loading 2026-08-30 03:59:34 -03:00