#[derive(Debug, Clone)]
pub struct Theme {
pub name: &'static str,
pub background: &'static str,
pub foreground: &'static str,
pub cursor: &'static str,
pub ansi: [&'static str; 16],
pub chrome_bg: &'static str,
pub chrome_buttons: [&'static str; 3],
}
pub static DRACULA: Theme = Theme {
name: "dracula",
background: "#282a36",
foreground: "#f8f8f2",
cursor: "#f8f8f2",
ansi: [
"#21222c", "#ff5555", "#50fa7b", "#f1fa8c", "#bd93f9", "#ff79c6", "#8be9fd", "#f8f8f2", "#6272a4", "#ff6e6e", "#69ff94", "#ffffa5", "#d6acff", "#ff92df", "#a4ffff", "#ffffff", ],
chrome_bg: "#1e1f29",
chrome_buttons: ["#ff5555", "#f1fa8c", "#50fa7b"],
};
pub static MONOKAI: Theme = Theme {
name: "monokai",
background: "#272822",
foreground: "#f8f8f2",
cursor: "#f8f8f2",
ansi: [
"#272822", "#f92672", "#a6e22e", "#f4bf75", "#66d9ef", "#ae81ff", "#a1efe4", "#f8f8f2", "#75715e", "#f92672", "#a6e22e", "#f4bf75", "#66d9ef", "#ae81ff", "#a1efe4", "#f9f8f5", ],
chrome_bg: "#1e1f1c",
chrome_buttons: ["#f92672", "#f4bf75", "#a6e22e"],
};
pub fn get_theme(name: &str) -> &'static Theme {
match name.to_lowercase().as_str() {
"monokai" => &MONOKAI,
_ => &DRACULA,
}
}