aboutsummaryrefslogtreecommitdiff
path: root/src/config.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/config.rs')
-rw-r--r--src/config.rs19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/config.rs b/src/config.rs
index 68be2a6d..4295c2ce 100644
--- a/src/config.rs
+++ b/src/config.rs
@@ -969,24 +969,6 @@ pub struct PrimaryColors {
pub background: Rgb,
#[serde(deserialize_with = "rgb_from_hex")]
pub foreground: Rgb,
- #[serde(default, deserialize_with = "deserialize_bright_foreground")]
- pub bright_foreground: Option<Rgb>,
-}
-
-fn deserialize_bright_foreground<'a, D>(deserializer: D) -> ::std::result::Result<Option<Rgb>, D::Error>
- where D: de::Deserializer<'a>
-{
- match Option::deserialize(deserializer) {
- Ok(Some(color)) => {
- let color: serde_yaml::Value = color;
- Ok(Some(rgb_from_hex(color).unwrap()))
- },
- Ok(None) => Ok(None),
- Err(err) => {
- eprintln!("problem with config: {}; Using standard foreground color", err);
- Ok(None)
- },
- }
}
impl Default for PrimaryColors {
@@ -994,7 +976,6 @@ impl Default for PrimaryColors {
PrimaryColors {
background: Rgb { r: 0, g: 0, b: 0 },
foreground: Rgb { r: 0xea, g: 0xea, b: 0xea },
- bright_foreground: None,
}
}
}