[tui] Highlight border of active widget.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
use crate::tui::component::{Action, Component, ComponentState};
|
||||
use crate::tui::component::{Action, Component, ComponentState, FocusState};
|
||||
use crate::tui::menu_bar::MenuBarItemOption::{
|
||||
About, Exit, Reload, Save, ShowHideExplorer, ShowHideLogger,
|
||||
};
|
||||
@@ -108,7 +108,11 @@ impl MenuBar {
|
||||
};
|
||||
Tabs::new(titles)
|
||||
.style(tabs_style)
|
||||
.block(Block::default().borders(Borders::ALL))
|
||||
.block(
|
||||
Block::default()
|
||||
.borders(Borders::ALL)
|
||||
.border_style(Style::default().fg(self.component_state.get_active_color())),
|
||||
)
|
||||
.highlight_style(highlight_style)
|
||||
.select(self.selected as usize)
|
||||
.render(area, buf);
|
||||
|
||||
Reference in New Issue
Block a user