[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, Focus};
use crate::tui::component::{Action, Component, ComponentState, Focus, FocusState};
use log::{LevelFilter, trace};
use ratatui::buffer::Buffer;
use ratatui::crossterm::event::{Event, KeyCode, KeyEvent};
@@ -42,6 +42,7 @@ impl Widget for &Logger {
Self: Sized,
{
TuiLoggerSmartWidget::default()
.border_style(Style::default().fg(self.component_state.get_active_color()))
.style_error(Style::default().fg(Color::Red))
.style_debug(Style::default().fg(Color::Green))
.style_warn(Style::default().fg(Color::Yellow))