Portable native Text and Button components for Yami-kumo
Dependencies
moon add f4ah6o/yami_kumo_native| Host | Text measurement and display | Native UI proof |
|---|---|---|
| macOS | CoreText measurement and Metal scene presentation | Previously passed local E2E: a test-only synthetic NSEvent goes through the owned NSWindow's normal sendEvent: route; frame readback confirms the count update, and the lifecycle marker confirms window destruction. |
| Linux | Pango system-sans measurement and the GPUI Wayland host | Passed hosted E2E: XTest input is delivered through Xvfb and Weston's X11 backend, with completed-frame readback. The runner pins both generic sans aliases to the same DejaVu Sans file for matching measurement and rendering. |
| Windows | DirectWrite Segoe UI measurement and the GPUI Windows host | Passed hosted E2E: Win32 SendInput targets the uniquely titled visible HWND, with completed-frame readback. |
| Role / source token | Light RGBA | Dark RGBA |
|---|---|---|
| Base canvas: white / kumo-neutral-925 at 17% | (255,255,255,255) | (15,15,15,255) |
| Elevated surface: kumo-neutral-75 at 98% / kumo-neutral-975 at 12% | (248,248,248,255) | (6,6,6,255) |
| Default text: neutral-900 at 20.5% / neutral-100 at 97% | (23,23,23,255) | (245,245,245,255) |
| Subtle text: neutral-500 / neutral-400 | (115,115,115,255) | (161,161,161,255) |
| Link and generated TextVariant::Success mapping: blue-800 / blue-400 | (25,60,184,255) | (81,162,255,255) |
| Error and SecondaryDestructive text: red-700 / red-400 | (193,0,7,255) | (255,100,103,255) |
| Destructive control fill: red-500 / red-600 | (251,44,54,255) | (231,0,11,255) |
| Brand fill: kumo-brand | (5,109,255,255) | (0,90,235,255) |
| Hairline: kumo-neutral-150 / neutral-800 | (233,233,233,255) | (38,38,38,255) |
| Control line: black at 10% / kumo-neutral-750 | (10,10,10,26) | (51,51,51,255) |
YAMI_SOURCE=$PWD
GPUI_SOURCE=/path/to/gpui.mbt sh "$YAMI_SOURCE/scripts/native_ui_workspace.sh" \
sh "$YAMI_SOURCE/scripts/native_ui_tests.sh"
GPUI_SOURCE=/path/to/gpui.mbt sh "$YAMI_SOURCE/scripts/native_ui_macos.sh"
GPUI_SOURCE=/path/to/gpui.mbt sh "$YAMI_SOURCE/scripts/native_ui_linux.sh"GPUI_SOURCE=/path/to/gpui.mbt sh "$YAMI_SOURCE/scripts/native_ui_macos.sh" --build-and-testInstall
Download zipPortable native Text and Button components for Yami-kumo
Dependencies