Commit Graph
63 Commits
Author SHA1 Message Date
waozi c56b013815 Add app framework helpers 2026-08-27 19:45:18 -03:00
waozi 32469990a0 Adopt #ui hierarchy syntax 2026-08-23 22:47:03 -03:00
waozi a5f52a69d7 Make icons tree the shared source root 2026-08-23 17:57:09 -03:00
waozi de2c5b03db Rename navigation and profile API 2026-08-22 01:17:20 -03:00
waozi db8a395c42 Rename menu and accelerator API 2026-08-22 01:10:49 -03:00
waozi 79b70a6746 Rename geometry and canvas API 2026-08-22 01:03:18 -03:00
waozi d2414696bf Rename modal action API 2026-08-21 23:44:31 -03:00
waozi c9e8b28bcc Rename text size API 2026-08-21 23:34:06 -03:00
waozi bf88336b67 Rename button style API 2026-08-21 23:26:48 -03:00
waozi ba5f65e2d6 Rename public text helper APIs 2026-08-21 23:00:26 -03:00
waozi eeec8f7b53 Rename public text input APIs 2026-08-21 22:50:43 -03:00
waozi c677f75fc7 Rename public text layout API 2026-08-21 22:42:53 -03:00
waozi 4e6fdbf9c7 Clean legacy widget names from API docs 2026-08-21 22:07:44 -03:00
waozi eda96fe6a6 Clean picture fit API names 2026-08-21 15:54:18 -03:00
waozi 1ff7e5e53c Rename overlay hook to clean API 2026-08-21 14:38:11 -03:00
waozi faa7f8a62a Clean picture API styling 2026-08-21 14:30:14 -03:00
waozi 441b31a078 Remove Aero style 2026-08-19 22:14:53 -03:00
waozi 63042cfd9f Fix runtime downloads and text decoding
Fix astral UTF-8 encoding in KRB text input and surrogate-pair decoding in ksync JSON string lookup.

Move runtime asset download workers onto owned synchronized state with explicit poll/free lifecycle and add coverage for file-backed downloads.

Avoid unconditional retained UI layout/paint invalidation on stable frames, preserve computed layout bounds, and include the staged Windows notification support.
2026-08-19 21:17:35 -03:00
waozi 5da8134ad0 Consolidate Kry language documentation 2026-08-19 18:31:28 -03:00
waozi e0c588cd23 Add Linux desktop integration helpers 2026-08-19 15:47:56 -03:00
waozi eb9967ce29 theme: drop the dedicated Aero palette, keep the style palette-agnostic
The Aero widget style derives its glass tints from whichever palette is
active, so a 13th palette entry was redundant. Remove THEME_AERO (and
its ini mirrors, locale label and picker slot); the style now defaults
to Sky. Saved theme ids beyond the shrunken count normalize through the
existing out-of-range fallback.
2026-08-18 18:08:54 -03:00
waozi eac6c16ea4 docs: cover the Aero style with an example, tests and API notes
- examples/30_aero.kry: all-widget showcase pinned to Aero with live
  palette/mode switching; the theme example's style clamp now accepts
  THEME_STYLE_AERO
- examples/Makefile: the generic codegen rule ran k2b where it meant
  k2c (from the kc->k2c rename), so examples with calls outside the
  KRB vocabulary could not generate their C at all
- ui_tk_test: Aero round-trip, tokens, palette id/label and scheme
  derivation checks
- API.md: document the style, UIAeroScheme and the THEME_AERO id
2026-08-18 16:10:15 -03:00
waozi 66fb62de40 ui: keep font atlases immutable while typing 2026-08-17 21:35:43 -03:00
waozi f8f5cd4c71 ui: add retained declarative tree and typed events 2026-08-17 18:55:05 -03:00
waozi 525e7aa1cb ui: add fixed-subset font sources 2026-08-17 17:35:16 -03:00
waozi 99bd4a01a9 ui: finalize deferred overlays at frame end 2026-08-17 12:20:36 -03:00
waozi 3a06ea6004 mem: diagnostics; ui_text: single-tier font rasters; tray: lazy GTK
- KryonMemReport/KryonMemDebugEnabled (KRYON_MEM_DEBUG) print RSS and the
glibc arena breakdown; UIFontMemoryReport prints per-font raster stats.
- Source fonts rasterize once at the DPI-scaled base size plus one lazily
built large tier, replacing the 8-slot per-size cache. New codepoints
batch into at most one rebuild per frame per font, and atlas build churn
is returned via malloc_trim on glibc.
- KRYON_TRAY_GTK_DL: GTK_STATUS_ICON tray resolves GTK via dlopen (gtk_dl
shim) so tray-less processes never map the GTK chain.
2026-08-16 17:13:46 -03:00
waozi d84db61262 Document KIR compiler roadmap 2026-08-13 10:36:32 -03:00
waozi 5b15a1272b Expose kry_term and krb in kryon.h; document the cartridge API
Include kry_term.h, kry_backend.h, and krb.h from the kryon umbrella so
apps reach them through the public header. Document the .krb load/bind/draw
flow and KrbMount in docs/API.md, mention kc --emit-krb in the README, and
add an examples Makefile target that builds the 02_buttons cartridge host.
CHANGELOG entries for the kry_term and krb slices.
2026-08-12 19:03:36 -05:00
waozi 2bb8640279 Add retained scene tree foundation and rename UI Sprite to Picture
- include/kry_math.h: Vector2 math and KryTransform2D (compose/point/camera)
- include/scene_tree.h + src/scene/scene_tree.c: KryScene/KryNode retained
  node tree with array arena, parent/child links, world-transform update,
  lifecycle vtable (ready/process/physics_process/draw), KrySceneTick/
  PhysicsTick/Draw driver
- include/node2d_props.h: Camera2DProps, Sprite2DProps
- Rename UI Sprite widget to Picture (raylib owns Image as a struct):
  ui_sprite.h -> ui_picture.h, SpriteProps -> PictureProps,
  UISpriteFit -> UIPictureFit, UI_SPRITE_FIT_* -> UI_PICTURE_FIT_*,
  Sprite() -> Picture(); extract shared texture cache to
  src/ui/ui_picture_cache.c (KryLoadPictureTexture, KryPictureFitRect)
  shared by the Picture widget and the upcoming Sprite2D scene node
- Migrate example, docs, node registry to the Picture name
2026-08-11 03:11:34 -05:00
waozi 92ae0b4786 Allow custom value text on Slider widget
Add an optional value_text_override parameter to DrawUISlider, UISliderNode, and Slider. When non-NULL it is rendered instead of the default "%d + suffix" formatting, so callers can display values like "1.8x". Passing NULL preserves the existing behavior.
2026-08-11 02:46:04 -05:00
waozi c9b8e27e4c Canonicalize widget API 2026-08-09 19:52:01 -03:00
waozi 56cb7a8c15 document and enforce canonical app api 2026-08-09 12:53:52 -03:00
waozi 0d360a0160 clean kryon app api 2026-08-09 12:44:52 -03:00
waozi eb8c1d359a Add Material theme style widgets 2026-08-08 15:05:02 -03:00
waozi 8e34522b24 Document default Ksync transport APIs 2026-08-08 09:35:31 -03:00
waozi d07078d2b2 Move UI runtime to declarative nodes 2026-08-06 07:15:55 -03:00
waozi 7e8f316eb5 Rename Lyra sync APIs to Ksync 2026-07-27 08:52:02 -03:00
waozi de87294e41 Update Kryon site goals 2026-07-22 20:49:34 -03:00
waozi 137f6ac413 Rename Flint runtime to Kryon 2026-07-20 11:25:19 -03:00
waozi 2123449504 Add Kryon widget inspection lifecycle 2026-07-20 10:56:27 -03:00
waozi e6b58a78b9 Apply UI colors from themes 2026-07-19 09:35:45 -03:00
waozi 912f18638a Add pragmatic Tk-style UI toolkit 2026-07-19 00:46:20 -03:00
waozi a462581680 Add Clay and remove fontchop 2026-07-18 07:29:00 -03:00
waozi fd3adb5de4 Add real font asset loading 2026-07-16 21:43:27 -03:00
waozi d606232116 Use fontchop submodule for UI fonts 2026-07-15 23:36:23 -03:00
waozi 00e880fa55 Reset UI focus each Flint frame 2026-07-11 20:11:01 -03:00
waozi 8cf1aa7d0e Improve Flint UI examples and cursor behavior 2026-07-11 19:56:08 -03:00
waozi 88d4056d5d Add sidebar header content padding 2026-07-11 12:12:41 -03:00
waozi d8f3d81ed3 Add stable Lyra profile icon mappings 2026-07-11 10:54:07 -03:00