evidence · 1.3 KiB

README.md

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

Open raw source

Battery - Details charge graph: host renders

Evidence class: host render (Cairo/Pango via render::paint_home; no compositor, no board, no real sysfs). Date: 2026-10-15. Change: openspec/changes/battery-details-graphs-charge-over-time, task 2.1.

Command, from nix/rust-shell-client:

cargo run --example render_battery_history_evidence -- ../../docs/evidence/battery-details-widget/history

Source: examples/render_battery_history_evidence.rs. The gauge values are an invented discharging fixture: 71 percent, -412 mA, 3.89 V, charger offline. The history is built by the real history::History::record with no file:

Sizes: 568x1232 (portrait panel), 1232x568 (landscape panel), 1280x800 and 1920x1080 (HDMI). The graph takes the bottom 27 percent of the widget, and the other content lays out in the rest.

Limits: these renders show painting and layout from invented samples only. Recording on the board, the history file, and how the graph looks on the glass are covered by tasks 3.1 and 3.2.