mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-06 19:56:42 +01:00
fix some more of the highlightings
This commit is contained in:
parent
77809ca289
commit
7dc435754a
2 changed files with 55 additions and 66 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue