From bb7e6e462e0e1cbfe609c0833fb7fe8319a9dd0c Mon Sep 17 00:00:00 2001 From: Teoh Han Hui Date: Sat, 30 Nov 2024 07:50:19 +0800 Subject: [PATCH] Add a higher-contrast version of pangender flag (port of f4d6b75) --- crates/hyfetch/src/presets.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/crates/hyfetch/src/presets.rs b/crates/hyfetch/src/presets.rs index f994c6d8..db6b429f 100644 --- a/crates/hyfetch/src/presets.rs +++ b/crates/hyfetch/src/presets.rs @@ -119,6 +119,11 @@ pub enum Preset { Pangender, + /// High-contrast version of pangender flag + #[serde(rename = "pangender.contrast")] + #[strum(serialize = "pangender.contrast")] + PangenderContrast, + #[serde(rename = "gendernonconforming1")] #[strum(serialize = "gendernonconforming1")] GenderNonconforming1, @@ -440,6 +445,11 @@ impl Preset { "#FFF798", "#FEDDCD", "#FFEBFB", "#FFFFFF", "#FFEBFB", "#FEDDCD", "#FFF798", ]), + // high-contrast version of pangender flag + Self::PangenderContrast => ColorProfile::from_hex_colors(vec![ + "#ffe87f", "#fcbaa6", "#fbc9f3", "#FFFFFF", "#fbc9f3", "#fcbaa6", "#ffe87f", + ]), + Self::GenderNonconforming1 => ColorProfile::from_hex_colors(vec![ "#50284d", "#96467b", "#5c96f7", "#ffe6f7", "#5c96f7", "#96467b", "#50284d", ])