kamiyaa / joshuto

ranger-like terminal file manager written in Rust
https://crates.io/crates/joshuto
GNU Lesser General Public License v3.0
3.34k stars 151 forks source link

Configure ratatui-image preview background/frame color. #521

Open benjajaja opened 3 months ago

benjajaja commented 3 months ago

https://github.com/benjajaja/ratatui-image/issues/21

image Due to ratatui's immediate-mode nature, the cells behind the image must be "skipped" so that nothing draws over the image. In other words, the cells behind the image still have whatever was drawn last time before they were marked skipped for the image. Thus, the image must always fill the cells/area, and the frame cannot be made transparent.

The background color should be configurable.