1use densa_core::Color;
2
3#[derive(Debug, Clone, Copy, PartialEq)]
5#[non_exhaustive]
6pub struct Palette {
7 pub background: Color,
9 pub header_background: Color,
11 pub header_text: Color,
13 pub stripe: Color,
15 pub text: Color,
17 pub dim_text: Color,
19 pub positive: Color,
21 pub negative: Color,
23}
24
25impl Palette {
26 pub fn new() -> Self {
28 Self {
29 background: Color::srgb(0x0D1117),
30 header_background: Color::srgb(0x161B22),
31 header_text: Color::srgb(0x8B949E),
32 stripe: Color::srgb(0x131922),
33 text: Color::srgb(0xC9D1D9),
34 dim_text: Color::srgb(0x6E7681),
35 positive: Color::srgb(0x3FB950),
36 negative: Color::srgb(0xF85149),
37 }
38 }
39}
40
41impl Default for Palette {
42 fn default() -> Self {
43 Self::new()
44 }
45}