src/ui/theme.rs (1265B)
1 use ratatui::style::{Color, Modifier, Style};
2
3 pub struct Theme {
4 pub fg: Color,
5 pub border_focused: Color,
6 pub border_unfocused: Color,
7 pub highlight_bg: Color,
8 pub highlight_fg: Color,
9 pub tab_inactive: Style,
10 pub progress_filled: Color,
11 pub progress_empty: Color,
12 pub dim_style: Style,
13 pub current_track_style: Style,
14 }
15
16 impl Default for Theme {
17 fn default() -> Self {
18 Self {
19 fg: Color::White,
20 // These were both Cyan, which made the focus indicator a no-op:
21 // every pane picked a border colour from `focused` and got the same
22 // answer, so there was no way to see where focus was.
23 border_focused: Color::Rgb(100, 220, 255),
24 border_unfocused: Color::Rgb(70, 80, 95),
25 highlight_bg: Color::Cyan,
26 highlight_fg: Color::Black,
27 tab_inactive: Style::default().fg(Color::DarkGray),
28 progress_filled: Color::Rgb(200, 80, 255),
29 progress_empty: Color::Indexed(236),
30 dim_style: Style::default().fg(Color::DarkGray),
31 current_track_style: Style::default()
32 .fg(Color::Rgb(100, 220, 255))
33 .add_modifier(Modifier::BOLD),
34 }
35 }
36 }