fix some more of the highlightings

This commit is contained in:
🪞👃🪞 2025-01-24 23:56:39 +01:00
parent 77809ca289
commit 7dc435754a
2 changed files with 55 additions and 66 deletions

View file

@ -132,8 +132,8 @@ impl<T> Phat<T> {
}
impl<T: Content<TuiOut>> Content<TuiOut> for Phat<T> {
fn content (&self) -> impl Render<TuiOut> {
let top = self.top.map(|top|Self::lo(self.mid, top));
let low = self.low.map(|low|Self::hi(self.mid, low));
let top = Fixed::y(1, self.top.map(|top|Self::lo(self.mid, top)));
let low = Fixed::y(1, self.low.map(|low|Self::hi(self.mid, low)));
let content = Tui::fg_bg(self.fg, self.mid, &self.content);
let phat = Bsp::s(top, Bsp::n(low, Fill::xy(content)));
Min::xy(self.width, self.height, phat)