diff --git a/tui/src/state.rs b/tui/src/state.rs index f3e1c574..fa980a40 100644 --- a/tui/src/state.rs +++ b/tui/src/state.rs @@ -237,22 +237,16 @@ impl AppState { Style::new() }; + let title = format!( + "Linux Toolbox - {} {}", + env!("BUILD_DATE"), + self.multi_select.then(|| "[Multi-Select]").unwrap_or("") + ); + // Create the list widget with items let list = List::new(items) - .highlight_style(if let Focus::List = self.focus { - Style::default().reversed() - } else { - Style::new() - }) - .block(Block::default().borders(Borders::ALL).title(format!( - "Linux Toolbox - {} {}", - env!("BUILD_DATE"), - if self.multi_select { - "[Multi-Select]" - } else { - "" - } - ))) + .highlight_style(style) + .block(Block::default().borders(Borders::ALL).title(title)) .scroll_padding(1); frame.render_stateful_widget(list, chunks[1], &mut self.selection);