Commit Graph
9 Commits
Author SHA1 Message Date
waozi fc563eeaa4 Complete TSX authoring fixtures and preserve GPU image semantics 2026-11-28 13:23:20 -03:00
waozi 11c81e620e Drop a previous run's lock in tests that regenerate their probe project
zx-test, cursor-api-test, zx-canvas-test and window-focus-test write their
probe project afresh each run but kept the ziran.lock an earlier run left.
Once the toolchain moved, that lock's checked packages belonged to another
toolchain and `ziran lock` refused it ("saved checked package requires a
different toolchain or profile"), failing all four. Each now removes the
old lock before locking. The refusal of an explicit `ziran lock` over a
stale lock is reported to Ziran.
2026-11-23 03:11:29 -03:00
waozi 05ab114885 Lock every test fixture against the canonical Gitea identities
Twenty-five Python test fixtures wrote manifests that followed GitHub
Ziran master and overrode ziran with the live checkout, so ziran lock
refused Kryon's checked package metadata (cursor-api-test stopped the
full suite this way). tests/toolchain.py now owns one fixture identity:
the exact Gitea Ziran the starter templates pin and this checkout's
Kryon revision. pinned() rewrites a fixture manifest's [toolchain] and
[dependencies.kryon] onto it, kryon_only() keeps a local toolchain
override out of ziran.local.toml, and kryon_test_project uses both
(package_overrides stays for packages under test). cursor-api-test and
desktop-codec-artifact-test pass with them.
2026-11-22 16:13:49 -03:00
waozi 1be70904a3 Remove the semantic DOM backend
No project used the dom profile, and it added a second browser host to
maintain beside Canvas. This removes dom_host, dom_tree, dom_paint, dom_run
and dom_app_run, the dom profile in the project tool, docs/dom.md, and the
DOM tests and their three make targets.

The shared browser code loses its DOM branches: page_events no longer tells
a DOM host about presses, blur and document layout, page_core and
page_texture drop the native DOM flag and the img decode kept for it, and
CanvasAppMainLoop takes no argument. The web template builds a Canvas2D
page. The cursor and rotated text tests cover the Canvas profile only.
2026-11-14 06:04:15 -03:00
waozi 681fd26ddf Checkpoint desktop painter and context menu work
Committed at the owner's request while the work continues.

- Detect unchanged GTK painter surfaces by exact byte comparison, clear
  and copy them in bulk, and reuse resolved GTK style metrics and CSS
  layers within a style generation.
- Present desktop frames before publishing accessibility changes.
- Context menu widget, keyboard and canvas input updates with tests.
2026-11-12 20:12:14 -03:00
waozi e8c6aa25c1 Integrate components and the public UI surface 2026-11-10 15:37:48 +00:00
waozi 8f2291577c Show an application pointing cursor only over clickable targets
CursorSetPointing sets the cursor shown where a click does something:
clickable widgets and painted targets an app hit-tests itself and marks
with CursorHover while it builds the frame. The mark commits with the
tree, so retained or cancelled frames keep it and the cursor changes only
when the hovered target does. PressProps.cursor lets a press the app
refines with its own hit test name the arrow off its painted shape, on
desktop, Canvas and DOM, without changing presses, touch or keys.
2026-11-03 22:11:47 -03:00
waozi 4f1e8d4610 Show custom cursors in Canvas and DOM pages
Cursor CSS was built from WebText views of Wasm memory, which have no
JavaScript handle, so web pages kept the default arrow. PageTextHandle
makes a real string handle for the cursor override, the image-set text
and the hidden cursor.

The cursor test now also builds the probe for Canvas and DOM and checks
every request in a private headless Chromium: the 2x image set with its
hotspot, the application cursor, hidden, refused sizes, and no style
rewrite while a request repeats.
2026-11-03 18:02:58 -03:00
waozi cbc605bd13 Keep custom cursors stable with an application-wide default
Cursor requests now persist until the next deliberate change instead of
lasting one frame, and CursorSetDefault gives every session an
application cursor that replaces the default, clickable and disabled
shapes. Desktop caches decoded cursors, sets the system cursor only when
the resolved cursor changes, keeps it across focus and leave, and gives
X11 premultiplied pixels so soft edges show no light fringe. Canvas and
DOM build one density-aware CSS cursor and apply it only on change.
2026-11-03 17:30:55 -03:00