Skip to content

Commit f051c72

Browse files
unhappychoiceclaude
andcommitted
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

File tree

‎src/fetcher/system/mod.rs‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ mod monitor_load;
3636
mod monitor_memory;
3737
mod monitor_processes;
3838
mod monitor_uptime;
39+
pub(crate) mod sprites;
3940

4041
pub use info_bios::SystemInfoBios;
4142
pub use info_board::SystemInfoBoard;

0 commit comments

Comments
 (0)