Skip to content

Commit

Permalink
Add queer subculture flags (port of hykilpikonna#302)
Browse files Browse the repository at this point in the history
  • Loading branch information
teohhanhui committed Nov 29, 2024
1 parent bb26089 commit b2286ef
Showing 1 changed file with 37 additions and 3 deletions.
40 changes: 37 additions & 3 deletions crates/hyfetch/src/presets.rs
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,16 @@ pub enum Preset {

Fraysexual,

Bear,

Butch,

Leather,

Otter,

Twink,

Kenochoric,

Veldian,
Expand Down Expand Up @@ -194,7 +204,7 @@ pub enum Preset {
/// Meme flag
ThroatLozenges,

/// Colors from Gilbert Baker's original 1978 flag design
/// Colors from Gilbert Baker"s original 1978 flag design
Baker,
}

Expand Down Expand Up @@ -484,6 +494,30 @@ impl Preset {
ColorProfile::from_hex_colors(vec!["#226CB5", "#94E7DD", "#FFFFFF", "#636363"])
},

// sourced from https://commons.wikimedia.org/wiki/File:Bear_Brotherhood_flag.svg
Self::Bear => ColorProfile::from_hex_colors(vec![
"#623804", "#D56300", "#FEDD63", "#FEE6B8", "#FFFFFF", "#555555",
]),

// colorpicked from https://commons.wikimedia.org/wiki/File:Butch_Flag.png
Self::Butch => ColorProfile::from_hex_colors(vec![
"#D72800", "#F17623", "#FF9C56", "#FFFDF6", "#FFCE89", "#FEAF02", "#A37000",
]),

// colorpicked from https://commons.wikimedia.org/wiki/File:Leather,_Latex,_and_BDSM_pride_-_Light.svg
Self::Leather => ColorProfile::from_hex_colors(vec![
"#000000", "#252580", "#000000", "#252580", "#FFFFFF", "#252580", "#000000",
"#252580", "#000000",
]),

// colorpicked from https://commons.wikimedia.org/wiki/File:Official_Otter_Pride_Flag_by_Bearbackgear.jpg
Self::Otter => ColorProfile::from_hex_colors(vec![
"#263881", "#5C9DC9", "#FFFFFF", "#3A291D", "#5C9DC9", "#263881",
]),

// colorpicked from https://commons.wikimedia.org/wiki/File:Twink_Pride_Flag_(proposed).svg
Self::Twink => ColorProfile::from_hex_colors(vec!["#FFB2FF", "#FFFFFF", "#FFFF81"]),

Self::Kenochoric => {
ColorProfile::from_hex_colors(vec!["#000000", "#2E1569", "#824DB7", "#C7A1D6"])
},
Expand Down Expand Up @@ -570,7 +604,7 @@ impl Preset {
]),

Self::ThroatLozenges => ColorProfile::from_hex_colors(vec![
"#2759DA", "#03940D", "#F5F100", "#F59B00", "#B71212"
"#2759DA", "#03940D", "#F5F100", "#F59B00", "#B71212",
]),

// used https://gilbertbaker.com/rainbow-flag-color-meanings/ as source and colorpicked
Expand Down Expand Up @@ -650,7 +684,7 @@ impl ColorProfile {
extras = extras.checked_sub(1).unwrap();
}

// Add weight to border until there's no space left (extras must be even at this
// Add weight to border until there"s no space left (extras must be even at this
// point)
let weights_len = weights.len();
for border_i in 0..usize::from(extras / 2) {
Expand Down

0 comments on commit b2286ef

Please sign in to comment.