use ratatui::style::{Color, Style};
#[derive(Debug, Clone)]
pub struct Theme {
pub selected_fg: Color,
pub selected_bg: Color,
pub unselected_fg: Color,
pub unselected_bg: Color,
pub list_highlight_symbol: &'static str,
pub dir_icon: &'static str,
pub dir_style: Style,
pub file_icon: &'static str,
pub file_style: Style,
pub search_box_normal: Style,
pub search_box_active: Style,
pub search_box_results: Style,
pub search_match_style: Style,
pub history_freq_style: Style,
pub history_path_style: Style,
pub preview_placeholder_style: Style,
pub preview_info_style: Style,
pub preview_error_style: Style,
pub preview_text_style: Style,
pub preview_line_number_style: Style,
pub preview_border_style: Style,
}
impl Default for Theme {
fn default() -> Self {
Self {
selected_fg: Color::Rgb(255, 255, 255), selected_bg: Color::Cyan, unselected_fg: Color::Reset, unselected_bg: Color::Reset,
list_highlight_symbol: "",
dir_icon: "📁",
dir_style: Style::default().fg(Color::Cyan),
file_icon: "📄",
file_style: Style::default(),
search_box_normal: Style::default().fg(Color::Cyan),
search_box_active: Style::default().fg(Color::Black).bg(Color::Yellow),
search_box_results: Style::default().fg(Color::Black).bg(Color::Green),
search_match_style: Style::default().fg(Color::Yellow).bg(Color::DarkGray),
history_freq_style: Style::default().fg(Color::Yellow),
history_path_style: Style::default().fg(Color::DarkGray),
preview_placeholder_style: Style::default().fg(Color::Yellow),
preview_info_style: Style::default().fg(Color::Gray),
preview_error_style: Style::default().fg(Color::Red),
preview_text_style: Style::default(),
preview_line_number_style: Style::default().fg(Color::DarkGray),
preview_border_style: Style::default(),
}
}
}