modal: add border

This commit is contained in:
🪞👃🪞 2025-04-26 18:10:52 +03:00
parent 5d72a1f90e
commit f2cecb29b3

View file

@ -10,8 +10,7 @@ view!(TuiOut: |self: Tek| {
":modal" =>
When::new(self.modal.is_some(), Bsp::b(
Fill::xy(Tui::fg_bg(Color::Rgb(64,64,64), Color::Rgb(32,32,32), "")),
Fixed::xy(30, 15, Tui::fg_bg(Color::Rgb(255,255,255), Color::Rgb(16,16,16),
Outer(true, Style::default().fg(Tui::g(96))).enclose(self.modal)))
Fixed::xy(30, 15, Tui::fg_bg(Color::Rgb(255,255,255), Color::Rgb(16,16,16), self.modal))
)).boxed(),
":transport" =>
self.view_transport().boxed(),
@ -872,10 +871,10 @@ impl Content<TuiOut> for Modal {
fn content (&self) -> impl Render<TuiOut> {
Bsp::b(
Repeat(" "),
match self {
Outer(true, Style::default().fg(Tui::g(96))).enclose(match self {
Self::Menu => self.view_menu().boxed(),
Self::Help => self.view_help().boxed(),
}
})
)
}
}