|
|
@@ -0,0 +1,25 @@
|
|
|
+use std::collections::HashMap;
|
|
|
+
|
|
|
+#[derive(Debug)]
|
|
|
+pub struct Colors {
|
|
|
+ pub map: HashMap<String, String>,
|
|
|
+}
|
|
|
+
|
|
|
+impl Default for Colors {
|
|
|
+ fn default() -> Self {
|
|
|
+ let def = vec![
|
|
|
+ ("dark_grey", "#333333"),
|
|
|
+ ("beige", "#fdf0d5"),
|
|
|
+ ("light_grey", "#eeeeee"),
|
|
|
+ ("dark_red", "#780000"),
|
|
|
+ ("red", "#c1121f"),
|
|
|
+ ("blue", "#669bbc"),
|
|
|
+ ("dark_blue", "#003049"),
|
|
|
+ ];
|
|
|
+ let map: HashMap<_, _> = def
|
|
|
+ .into_iter()
|
|
|
+ .map(|(k, v)| (k.to_string(), v.to_string()))
|
|
|
+ .collect();
|
|
|
+ Self { map }
|
|
|
+ }
|
|
|
+}
|