evidence · 1.8 KiB

README.md

Committed at docs/evidence/battery-details-widget/host/README.md. This is what grounds the requirements that cite it.

Open raw source

Battery - Details widget: host renders

Evidence class: host render (Cairo/Pango via render::paint_home, no compositor, no board, no real sysfs). Date: 2026-10-15 (UTC). Change: openspec/changes/home-offers-a-battery-details-widget, task 2.1.

Command, from nix/rust-shell-client:

cargo run --example render_battery_details_evidence -- ../../docs/evidence/battery-details-widget/host

Source: examples/render_battery_details_evidence.rs, which builds each state by running the real home_widgets::battery::read_details over a temporary power_supply tree of fixture uevent files:

Sizes: 568x1232 (portrait panel), 1232x568 (landscape panel), 1280x800 and 1920x1080 (landscape HDMI). The wallpaper is a flat dark colour with four sample apps and a dock; the default theme (no Omarchy theme) is used.

Limits: these prove paint and layout of fixture values only. They do not show the board’s glass, real sysfs values on the running shell, the 10 s poll, or touch placement. The picker’s preview thumbnail is a small square crop, like the existing 4x2 clock rows. Board task 3.1 (operator places the widget and compares against /sys/class/power_supply) remains open. Current is rounded to 10 mA and power to 0.1 W in the display, so -412 mA shows as -410 mA.