use densa_core::Color;
#[derive(Debug, Clone, Copy, PartialEq)]
#[non_exhaustive]
pub struct ChartPalette {
pub background: Color,
pub grid: Color,
pub axis: Color,
pub label: Color,
pub line: Color,
pub up: Color,
pub down: Color,
pub crosshair: Color,
pub marker: Color,
pub marker_text: Color,
}
impl ChartPalette {
pub fn new() -> Self {
Self {
background: Color::srgb(0x0D1117),
grid: Color::srgb(0x161B22),
axis: Color::srgb(0x30363D),
label: Color::srgb(0x8B949E),
line: Color::srgb(0x58A6FF),
up: Color::srgb(0x3FB950),
down: Color::srgb(0xF85149),
crosshair: Color::srgb(0x8B949E).with_alpha(0.6),
marker: Color::srgb(0x484F58),
marker_text: Color::srgb(0xF0F6FC),
}
}
}
impl Default for ChartPalette {
fn default() -> Self {
Self::new()
}
}