mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-06 11:46:41 +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" =>
|
||||
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(),
|
||||
}
|
||||
})
|
||||
)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue