claude-code-status-line 1.2.9

A configurable status line for Claude Code with powerline arrows, context tracking, and quota monitoring
Documentation
use serde::{Deserialize, Serialize};

/// Color scheme for a single section (background, foreground, details)
#[derive(Clone, Copy, Debug, Serialize, Deserialize)]
pub struct SectionColors {
    pub background: Option<(u8, u8, u8)>,
    pub foreground: (u8, u8, u8),
    pub details: (u8, u8, u8),
}

const ORANGE: (u8, u8, u8) = (217, 119, 87);
const DARK: (u8, u8, u8) = (38, 38, 36);
const MUTED_DARK: (u8, u8, u8) = (65, 65, 62);
const MUTED_LIGHT: (u8, u8, u8) = (130, 129, 122);

const fn dark_on_orange() -> SectionColors {
    SectionColors {
        background: Some(ORANGE),
        foreground: DARK,
        details: MUTED_DARK,
    }
}

const fn orange_on_dark() -> SectionColors {
    SectionColors {
        background: Some(DARK),
        foreground: ORANGE,
        details: MUTED_LIGHT,
    }
}

pub const CWD_COLORS: SectionColors = dark_on_orange();
pub const GIT_COLORS: SectionColors = orange_on_dark();
pub const MODEL_COLORS: SectionColors = dark_on_orange();
pub const CONTEXT_COLORS: SectionColors = orange_on_dark();
pub const QUOTA_5H_COLORS: SectionColors = dark_on_orange();
pub const QUOTA_7D_COLORS: SectionColors = orange_on_dark();
pub const COST_COLORS: SectionColors = dark_on_orange();