@@ -5,6 +5,7 @@ use std::{
55};
66
77use anyhow::Context;
8+use helix_core::hashmap;
89use log::warn;
910use once_cell::sync::Lazy;
1011use serde::{Deserialize, Deserializer};
@@ -142,7 +143,24 @@ struct ThemePalette {
142143
143144impl Default for ThemePalette {
144145 fn default() -> Self {
145− Self::new(HashMap::new())
146+ Self::new(hashmap! {
147+ "black".to_string() => Color::Black,
148+ "red".to_string() => Color::Red,
149+ "green".to_string() => Color::Green,
150+ "yellow".to_string() => Color::Yellow,
151+ "blue".to_string() => Color::Blue,
152+ "magenta".to_string() => Color::Magenta,
153+ "cyan".to_string() => Color::Cyan,
154+ "gray".to_string() => Color::Gray,
155+ "light-red".to_string() => Color::LightRed,
156+ "light-green".to_string() => Color::LightGreen,
157+ "light-yellow".to_string() => Color::LightYellow,
158+ "light-blue".to_string() => Color::LightBlue,
159+ "light-magenta".to_string() => Color::LightMagenta,
160+ "light-cyan".to_string() => Color::LightCyan,
161+ "light-gray".to_string() => Color::LightGray,
162+ "white".to_string() => Color::White,
163+ })
146164 }
147165}
148166