television_screen/
colors.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
use ratatui::style::Color;

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

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

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

#[derive(Debug, Clone)]
pub struct ResultsColorscheme {
    pub result_name_fg: Color,
    pub result_preview_fg: Color,
    pub result_line_number_fg: Color,
    pub result_selected_bg: Color,
    pub result_selected_fg: Color,
    pub match_foreground_color: Color,
}

#[derive(Debug, Clone, Copy)]
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)]
pub struct InputColorscheme {
    pub input_fg: Color,
    pub results_count_fg: Color,
}

#[derive(Debug, Clone)]
pub struct ModeColorscheme {
    pub channel: Color,
    pub remote_control: Color,
    pub send_to_channel: Color,
}