[tui] Highlight border of active widget.

This commit is contained in:
2026-01-25 10:13:25 -05:00
parent a3d850acd9
commit 6c2f3f9005
7 changed files with 57 additions and 20 deletions

View File

@@ -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);