diff --git a/tui/src/filter.rs b/tui/src/filter.rs index e6ff2cc2..091b8f0e 100644 --- a/tui/src/filter.rs +++ b/tui/src/filter.rs @@ -95,7 +95,7 @@ impl Filter { //Create the search bar widget let search_bar = Paragraph::new(display_text) - .block(Block::default().borders(Borders::ALL).title("Search")) + .block(Block::default().borders(Borders::ALL).title(" Search ")) .style(Style::default().fg(search_color)); //Render the search bar (First chunk of the screen) diff --git a/tui/src/running_command.rs b/tui/src/running_command.rs index 366a3dc3..d76a36e3 100644 --- a/tui/src/running_command.rs +++ b/tui/src/running_command.rs @@ -73,7 +73,7 @@ impl FloatContent for RunningCommand { title_line.push_span( Span::default() - .content(" press to close this window ") + .content(" Press to close this window ") .style(Style::default()), ); diff --git a/tui/src/state.rs b/tui/src/state.rs index 3448a3af..9e12b788 100644 --- a/tui/src/state.rs +++ b/tui/src/state.rs @@ -21,7 +21,7 @@ use ratatui::{ const MIN_WIDTH: u16 = 77; const MIN_HEIGHT: u16 = 19; -const TITLE: &str = concat!("Linux Toolbox - ", env!("BUILD_DATE")); +const TITLE: &str = concat!(" Linux Toolbox - ", env!("BUILD_DATE"), " "); const ACTIONS_GUIDE: &str = "List of important tasks performed by commands' names: D - disk modifications (ex. partitioning) (privileged) @@ -357,7 +357,7 @@ impl AppState { }; let title = if self.multi_select { - &format!("{} [Multi-Select]", TITLE) + &format!("{}[Multi-Select] ", TITLE) } else { TITLE }; @@ -367,7 +367,7 @@ impl AppState { #[cfg(not(feature = "tips"))] let bottom_title = ""; - let task_list_title = Line::from("Important Actions ").right_aligned(); + let task_list_title = Line::from(" Important Actions ").right_aligned(); // Create the list widget with items let list = List::new(items) @@ -694,5 +694,5 @@ fn get_random_tip() -> &'static str { let mut rng = rand::thread_rng(); let random_index = rng.gen_range(0..tips.len()); - tips[random_index] + Box::leak(format!(" {} ", tips[random_index]).into_boxed_str()) }