4 Commits
Author SHA1 Message Date
waozi bfbbcf19dc Space a card's children; show the slot-free card in the HTML example
A Card set its default gap in the style's `gap`, but a Layout column
reads `row_gap`, so a card's children touched each other unless a theme
rule set row-gap. Card now takes its row gap from `row-gap`, then `gap`,
then the theme's Space2. widget-tree-test checks the gap and fails on the
old Card. The starter's light cards gain that space, so its light digest
is re-recorded; the dark theme already set the row gap.

docs/HTML_EXAMPLES.md still drew the searchable card at hand-computed
rects inside `card.content`. It is now a page column holding the Card
container, with a Row where the field takes the width the Apply button
leaves; no widget needs a key or a rectangle origin. The program builds
and renders against the starter's Kryon 02cc10e6 + CSS b0e83ac2 pins.
2026-11-23 02:02:53 -03:00
waozi 347202066b Make Card a container that sizes itself
Card painted a surface at given bounds and handed back a content rect, so
every app measured its content up front and drew it into a Layout.Stack
slot. Card.Draw now opens Layout.Box with the card's resolved face: a
padded column whose fill, border, radius and elevation paint at its final
size, growing to its content when it has no height. Draw the content while
`opened`, then End(session). A clickable card is one press target on that
column, with hover and pressed faces from the previous frame;
CardContentBounds is gone.

The starter's task cards and the cheat sheet's note cards drop their
measured heights and Stack slots, the card and style picker examples draw
in a Layout column, and the gallery site's and two gallery scenes' cards
close with End. The dashboard follows with its Kryon pin. Layout's
LayoutContentBounds stays while the gallery scenes still use it.

Shot digests, light theme, before -> after:
  card              670ccd2d21da -> 8cc61de0c49b
  stylepicker       c67487dfbb15 -> 08c9cae998f1
2026-11-22 23:57:10 -03:00
waozi 62d4da08c9 Make widget and painting docs compact and present tense
Reword the widget, painting, audio, persistence and scene docs to present tense, move props and call results into tables, and open each file with a one-line scope sentence.

Remove the stale make shader-web-test reference: no such target exists; the host and Android shader tests execute the image loader.

Relative links across tracked markdown resolve against the committed tree; make docs-check passes.
2026-11-22 15:25:43 -03:00
waozi b59623b410 Split the API reference into topic files
docs/API.md becomes a short index and its sections move verbatim into widget-package, control, motion, style, GTK theme, image, application, hosted-widget, host, game, audio, persistence, scene-rendering, painting and model references. The AVIF compression section joins BACKENDS.md and the renderer benchmark joins PERFORMANCE.md. The runnable HTML example leaves HTML_TO_KRYON.md for HTML_EXAMPLES.md, and cross links point at the new files. Every fact moves and nothing is dropped; the uncommitted Hosted widgets heading and SceneResizeOpaqueInto paragraph another lane left in API.md are kept. No stale claims were removed because every kept symbol still exists in the tree.
2026-11-22 14:56:25 -03:00