use ratatui::style::Color;

#[derive(Debug, Clone, PartialEq, Eq, Hash)]
pub struct Colorscheme {
    pub general: GeneralColorscheme,
    pub help: HelpColorscheme,
    pub results: ResultsColorscheme,
    pub preview: PreviewColorscheme,
    pub input: InputColorscheme,
    pub mode: ModeColorscheme,
}

#[derive(Debug, Clone, PartialEq, Eq, Hash)]
pub struct GeneralColorscheme {
    pub border_fg: Color,
    pub background: Option<Color>,
}

#[derive(Debug, Clone, PartialEq, Eq, Hash)]
pub struct HelpColorscheme {
    pub metadata_field_name_fg: Color,
    pub metadata_field_value_fg: Color,
}

#[derive(Debug, Clone, PartialEq, Eq, Hash, Default)]
pub struct ResultsColorscheme {
    pub result_fg: Color,
    pub result_selected_bg: Color,
    pub result_selected_fg: Color,
    pub match_foreground_color: Color,
}

#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
pub struct PreviewColorscheme {
    pub title_fg: Color,
    pub highlight_bg: Color,
    pub content_fg: Color,
    pub gutter_fg: Color,
    pub gutter_selected_fg: Color,
}

#[derive(Debug, Clone, PartialEq, Eq, Hash)]
pub struct InputColorscheme {
    pub input_fg: Color,
    pub results_count_fg: Color,
}

#[derive(Debug, Clone, PartialEq, Eq, Hash)]
pub struct ModeColorscheme {
    pub channel: Color,
    pub channel_fg: Color,
    pub remote_control: Color,
    pub remote_control_fg: Color,
    pub action_picker: Color,
    pub action_picker_fg: Color,
}
