claude_code_status_line/
colors.rs

1use serde::{Deserialize, Serialize};
2
3/// Color scheme for a single section (background, foreground, details)
4#[derive(Clone, Copy, Debug, Serialize, Deserialize)]
5pub struct SectionColors {
6    pub background: Option<(u8, u8, u8)>,
7    pub foreground: (u8, u8, u8),
8    pub details: (u8, u8, u8),
9}
10
11// Per-section defaults
12pub const CWD_COLORS: SectionColors = SectionColors {
13    background: Some((217, 119, 87)),
14    foreground: (38, 38, 36),
15    details: (65, 65, 62),
16};
17
18pub const GIT_COLORS: SectionColors = SectionColors {
19    background: Some((38, 38, 36)),
20    foreground: (217, 119, 87),
21    details: (130, 129, 122),
22};
23
24pub const MODEL_COLORS: SectionColors = SectionColors {
25    background: Some((217, 119, 87)),
26    foreground: (38, 38, 36),
27    details: (65, 65, 62),
28};
29
30pub const CONTEXT_COLORS: SectionColors = SectionColors {
31    background: Some((38, 38, 36)),
32    foreground: (217, 119, 87),
33    details: (130, 129, 122),
34};
35
36pub const QUOTA_5H_COLORS: SectionColors = SectionColors {
37    background: Some((217, 119, 87)),
38    foreground: (38, 38, 36),
39    details: (65, 65, 62),
40};
41
42pub const QUOTA_7D_COLORS: SectionColors = SectionColors {
43    background: Some((38, 38, 36)),
44    foreground: (217, 119, 87),
45    details: (130, 129, 122),
46};
47
48pub const COST_COLORS: SectionColors = SectionColors {
49    background: Some((217, 119, 87)),
50    foreground: (38, 38, 36),
51    details: (65, 65, 62),
52};