TimePicker shows a time as 24-hour HH:MM, or a placeholder while no time
is chosen, and opens an hour and a minute column at the current value. A
tap, a finger drag or fling, or the mouse wheel picks and scrolls; Down
opens it, the arrow keys step a column and wrap within it, Left and Right
switch columns, and Enter or Escape closes it. Optional Now and Done
buttons set the current time and close the popup. The time changes as it
is picked, so closing never loses a choice, and the popup stays on screen,
opening above the field when there is no room below. The picker takes the
dropdown's look from every style, light or dark, and portable apps can draw
it through the widget host.
Dropdowns now follow Kryon's light and dark system palettes; a dark palette
left their field and menu light before.
`make -C examples time-picker` builds a window that shows the picker in
each of its states.
SDL_PollEvent stops at the marker its last pump left at the end of the
queue. When the host woke while another thread was still pushing input,
that marker landed between the pushes, so PollDesktop returned the key
and left the text and click for the next frame. CI's desktop wait test
failed this way. PollDesktop now pumps once and takes every queued event.
The test now covers a marker between two pushes, which fails without this
change.
The desktop examples link the libraries the desktop host now uses and
generate only what their main reaches, as projects do; they had stopped
linking.
Build instructions install the ziran command and use the toolchain locked
in ziran.lock instead of a ../ziran sibling checkout. Downstream apps pick up
Kryon changes through ziran.lock. Terminal owns OSC 52 and bracketed paste.
The website no longer calls the migration underway, and its status page
lists the Android host, Zib desktop apps and opt-in DOM CSS layout.
The obsolete files (shell.nix, .ini themes, old site images, the duplicate
API redirect) were removed in 827eae3d, which picked up these staged
deletions.
The desktop and libdraw hosts never chose a font, so Cairo drew text in the
system's default sans (Noto Sans here), while raylib and the browser hosts
used Kryon's Liberation Sans and the pixmap host bitmap glyphs. Text
differed in face, width, and line breaks from host to host.
- The Cairo hosts load assets/fonts/LiberationSans-Regular.ttf through
FreeType (KRYON_FONT_PATH, which `kryon run` sets, else the system's
copy, else fontconfig by name) and lay glyphs out at their unhinted widths
with gray anti-aliasing, as a browser does.
- The pixmap host rasterizes Liberation Sans outlines itself: contours with
implied on-curve points, quadratics flattened in 1/256 pixel, non-zero
winding coverage from five sub-scanlines with exact spans, all integer.
It places every glyph where Cairo does, and every Ziran target still
prints the same bytes. tools/outline_font.zi, run as Python, extracts the
outlines of 207 Latin glyphs (`make pixmap-font`); Terminus is gone.
libdraw finds plan9port without a fixed sibling path: the installed one
$PLAN9 names, or, when a project adds plan9port as a source package, one
Kryon builds once in its build directory; without either it says how to
add it. The kryon tool now builds its Ziran toolchain only when it is
missing, as ziran builds a pinned one, instead of remaking it on every run.
Move the ten Text* size macros and the twenty-six font calls into
runtime/text_props.kry — constants emit as the same #define macros and Font
arrives through kryon_compat, so the tracked ui_text_props.generated.h carries
the public ABI and include/ui_text.h is deleted. runtime/button.kry, the C
host, kryon.h, ui_text_layout.h, tests, and the font example include the props
header directly.
The handwritten go/kryon/runtime.go Text* constants are removed in favor of the
generated ones; table_host.go types its fallbackFont as int32 explicitly.
Gates: generated-runtime-parity-test, fast-test, k2c/k2cpp/k2go-syntax-test,
go-runtime-test, examples-syntax-test, and the refreshed public-API snapshot
pass.
Move app shell, frame, locale, node, screen routes, theme state, and window
policy ownership into src/ui/*.kry, delete the replaced src/core owners, and
make generated public ABI the type source for capability and retained-node
records.
- runtime/capability_props.kry and runtime/node_props.kry generate the public
capability and node type headers; handwritten headers keep only the C-only
declarations (function-pointer typedefs, unions, host functions).
- k2c/k2cpp: terminate a same-line case body and map fixed-width casts
(i32/i64/u8/f32/...) to their C types.
- locale.c matches the generated LocaleParseEntries argument order;
locale_policy.kry keeps its return type on the signature line.
- ui_window.c renames the X11 dlopen shim symbols off the downstream app prefix.
- Refresh the canonical surface doc, public API snapshot, and test gates.
Verified: runtime parity (C+Go), k2c/k2cpp/k2go syntax, go runtime,
public-api-names, canonical-surface, kryon-boundary, public-api-snapshot,
laws, fast-test, smart-test.
Widget, layout, interaction, style, and UI-tree logic is now authored in
the Kry (.kry) UI language and compiled into the native C and Go runtimes,
replacing the hand-written C widget implementation. The remaining C is
platform and raster backends (X11 window, font rasterization, paint command
execution, surface/image caches, test helpers).
- Clipboard OSC52/paste callbacks are host-provided write functions instead
of raw function-pointer typedefs, unblocking Go runtime generation.
- AccessibilityNode and Accelerator types are generated from .kry.
- Generated-runtime parity test passes for both C and Go.
Carries the staged tree cleanup (preview canvas/host/io/layers, kry_settings,
helper scripts, probe examples) plus RenderTextGlyph: one-glyph atlas draw on
the active text font stack for fixed-cell surfaces such as terminal grids.