Add spacing

This commit is contained in:
JEEVITHA KANNAN K S 2024-09-30 22:33:51 +05:30
parent a9a678fc11
commit 6c2aaf339f
No known key found for this signature in database
GPG Key ID: 5904C34A2F7CE333
3 changed files with 6 additions and 6 deletions

View File

@ -95,7 +95,7 @@ impl Filter {
//Create the search bar widget //Create the search bar widget
let search_bar = Paragraph::new(display_text) 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)); .style(Style::default().fg(search_color));
//Render the search bar (First chunk of the screen) //Render the search bar (First chunk of the screen)

View File

@ -73,7 +73,7 @@ impl FloatContent for RunningCommand {
title_line.push_span( title_line.push_span(
Span::default() Span::default()
.content(" press <ENTER> to close this window ") .content(" Press <ENTER> to close this window ")
.style(Style::default()), .style(Style::default()),
); );

View File

@ -21,7 +21,7 @@ use ratatui::{
const MIN_WIDTH: u16 = 77; const MIN_WIDTH: u16 = 77;
const MIN_HEIGHT: u16 = 19; 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: const ACTIONS_GUIDE: &str = "List of important tasks performed by commands' names:
D - disk modifications (ex. partitioning) (privileged) D - disk modifications (ex. partitioning) (privileged)
@ -357,7 +357,7 @@ impl AppState {
}; };
let title = if self.multi_select { let title = if self.multi_select {
&format!("{} [Multi-Select]", TITLE) &format!("{}[Multi-Select] ", TITLE)
} else { } else {
TITLE TITLE
}; };
@ -367,7 +367,7 @@ impl AppState {
#[cfg(not(feature = "tips"))] #[cfg(not(feature = "tips"))]
let bottom_title = ""; 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 // Create the list widget with items
let list = List::new(items) let list = List::new(items)
@ -694,5 +694,5 @@ fn get_random_tip() -> &'static str {
let mut rng = rand::thread_rng(); let mut rng = rand::thread_rng();
let random_index = rng.gen_range(0..tips.len()); let random_index = rng.gen_range(0..tips.len());
tips[random_index] Box::leak(format!(" {} ", tips[random_index]).into_boxed_str())
} }