From 0a261430b7c8e4ac7e68f4e0352240f02b4c0daa Mon Sep 17 00:00:00 2001 From: Azalea <22280294+hykilpikonna@users.noreply.github.com> Date: Fri, 21 Nov 2025 19:12:41 +0800 Subject: [PATCH] Revert "Properly added femme to the list in build.rs" This reverts commit be7f0748ac042bb824a074a664d9978e835a3a58. --- crates/hyfetch/build.rs | 14 +------------- hyfetch/data/presets.json | 2 +- 2 files changed, 2 insertions(+), 14 deletions(-) diff --git a/crates/hyfetch/build.rs b/crates/hyfetch/build.rs index c7d8b820..4bcc6965 100644 --- a/crates/hyfetch/build.rs +++ b/crates/hyfetch/build.rs @@ -267,21 +267,9 @@ type PresetMap = IndexMap; fn preset_codegen(json_path: &Path, out_path: &Path) -> Result<()> { // 1. Read and parse the JSON file let json_str = fs::read_to_string(json_path)?; - let mut map: PresetMap = serde_json::from_str(&json_str)?; + let map: PresetMap = serde_json::from_str(&json_str)?; let mut f = BufWriter::new(fs::File::create(&out_path)?); - map.entry("femme".to_string()).or_insert(PresetEntry::Complex { - - colors: vec![ - "#FF1A87".to_string(), - "#FF6AB1".to_string(), - "#FFFFFF".to_string(), - "#9A0731".to_string(), - "#51091D".to_string(), - ], - weights: None, - }); - // 2. Build the code string let mut code_decl = String::new(); let mut code_match = String::new(); diff --git a/hyfetch/data/presets.json b/hyfetch/data/presets.json index ae3127af..24d5706e 100644 --- a/hyfetch/data/presets.json +++ b/hyfetch/data/presets.json @@ -148,7 +148,7 @@ "comment": "colorpicked from https://commons.wikimedia.org/wiki/File:Butch_Flag.png" }, "femme" : { - "colors": ["#FF1A87", "#FF6AB1", "#FFFFFF", "#9A0731", "#51091D"], + "colors": ["#FF1A87", "#FF6AB1", "#FFFFFF", "#9A0731", "51091D"], "comment": "colorpicked from https://lgbtqia.wiki/wiki/Femme" }, "leather": {