Repository navigation
Commit f051c72
feat(system): pixel-art sprite catalog for the monitor family
Introduces `src/fetcher/system/sprites.rs` housing five battery sprites
(horizontal cell + terminal + inner ratio bar, colour shifting red →
orange → yellow → lime → green) and five CPU sprites (chip silhouette
with four symmetric pins (cols 3, 6, 9, 12) above and below the
package, a 6×4 core that shifts blue → lime → yellow → orange → red
with load). A shared `bucket_index()` maps a 0..=1 ratio into five
20-percent buckets used by both `battery_sprite()` and `cpu_sprite()`.
The module registration is the only system/mod.rs change in this
commit; the battery and cpu fetchers gain their PixelArt branches in
the next two commits so the sprite library landing stays independently
reviewable and bisect-clean.
Refs #261.
Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>1 parent 9e48fa3 commit f051c72
2 files changed
Lines changed: 419 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
39 | 40 | | |
40 | 41 | | |
41 | 42 | | |
| |||
0 commit comments