Macchina-CLI / macchina

A system information frontend with an emphasis on performance.
https://crates.io/crates/macchina
MIT License
1.48k stars 51 forks source link

Implement palette.spacing feature #308

Closed feefs closed 6 months ago

feefs commented 7 months ago

See #307, this implements a new palette.spacing feature.

I'd like some extra help with review since I'm fairly new to Rust, and I'd like to adhere to the "emphasis on performance" tenet.

grtcdr commented 6 months ago

Looks good to me.

Not only does this make spacing much nicer to work with, but you've made it so the width of the palette is taken into consideration when the box is finally rendered, this fixes cases where the box can collide with the palette. Wonderful.