mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-07 12:16:42 +01:00
modal: add border
This commit is contained in:
parent
5d72a1f90e
commit
f2cecb29b3
1 changed files with 3 additions and 4 deletions
|
|
@ -10,8 +10,7 @@ view!(TuiOut: |self: Tek| {
|
||||||
":modal" =>
|
":modal" =>
|
||||||
When::new(self.modal.is_some(), Bsp::b(
|
When::new(self.modal.is_some(), Bsp::b(
|
||||||
Fill::xy(Tui::fg_bg(Color::Rgb(64,64,64), Color::Rgb(32,32,32), "")),
|
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),
|
Fixed::xy(30, 15, Tui::fg_bg(Color::Rgb(255,255,255), Color::Rgb(16,16,16), self.modal))
|
||||||
Outer(true, Style::default().fg(Tui::g(96))).enclose(self.modal)))
|
|
||||||
)).boxed(),
|
)).boxed(),
|
||||||
":transport" =>
|
":transport" =>
|
||||||
self.view_transport().boxed(),
|
self.view_transport().boxed(),
|
||||||
|
|
@ -872,10 +871,10 @@ impl Content<TuiOut> for Modal {
|
||||||
fn content (&self) -> impl Render<TuiOut> {
|
fn content (&self) -> impl Render<TuiOut> {
|
||||||
Bsp::b(
|
Bsp::b(
|
||||||
Repeat(" "),
|
Repeat(" "),
|
||||||
match self {
|
Outer(true, Style::default().fg(Tui::g(96))).enclose(match self {
|
||||||
Self::Menu => self.view_menu().boxed(),
|
Self::Menu => self.view_menu().boxed(),
|
||||||
Self::Help => self.view_help().boxed(),
|
Self::Help => self.view_help().boxed(),
|
||||||
}
|
})
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue