Files
kryon/docs/STYLE_PICKER.md
T
waozi 5dfe1c6717 Describe Kryon as fully on Ziran in its docs and site
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.
2026-10-11 10:12:56 -03:00

661 B

Style picker

StylePicker(props, packs) is an ordinary Ziran widget in src/ui/style_picker.zi. The caller owns a slice of StylePackOption values, including stable IDs, labels, and the active flag. The picker composes the checked Dropdown widget from at most 32 options. Its result includes the dropdown's open, highlight, and scroll state; the caller stores those values for the next frame. When selection changes, selected_id names the pack for the caller to apply. An empty pack ID is not reported as a change.

The picker does not keep a style-pack registry or change theme storage. The caller supplies the pack list and applies the returned ID.