Skip to content
This repository has been archived by the owner on Jan 3, 2024. It is now read-only.

Add new flags #13

Merged
merged 4 commits into from
Mar 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "prideflag"
version = "1.1.0"
version = "1.2.0"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand Down
4 changes: 4 additions & 0 deletions src/colors.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
pub mod color {
pub type RGBColor = (u8, u8, u8);

pub const ACE_GREY: RGBColor = (163, 163, 163);
pub const ENBY_BLACK: RGBColor = (44, 44, 44);
pub const PRIDE_RED: RGBColor = (228, 3, 3);
pub const LESBIAN_SINOPIA: RGBColor = (214, 41, 0);
pub const PRIDE_ORANGE: RGBColor = (255, 140, 0);
pub const LESBIAN_ATOMIC_TANGERINE: RGBColor = (255, 155, 85);
pub const PRIDE_YELLOW: RGBColor = (255, 237, 0);
pub const ENBY_YELLOW: RGBColor = (252, 244, 52);
pub const PRIDE_GREEN: RGBColor = (0, 128, 38);
pub const GAY_MINT: RGBColor = (152, 232, 193);
pub const GAY_TURQUOISE: RGBColor = (38, 206, 170);
Expand All @@ -16,6 +19,7 @@ pub mod color {
pub const BISEXUAL_BLUE: RGBColor = (0, 56, 168);
pub const PRIDE_INDIGO: RGBColor = (36, 64, 142);
pub const GAY_PURPLE: RGBColor = (61, 26, 120);
pub const ENBY_MAUVE: RGBColor = (156, 89, 209);
pub const BISEXUAL_MAUVE: RGBColor = (155, 79, 150);
pub const TRANS_AMARANTH_PINK: RGBColor = (247, 168, 184);
pub const LESBIAN_SUPER_PINK: RGBColor = (212, 97, 166);
Expand Down
15 changes: 15 additions & 0 deletions src/flags.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,19 @@ pub mod flag {
color::TRANS_MAYA_BLUE,
],
);
h.insert(
"non-binary",
vec![
color::ENBY_YELLOW,
color::WHITE,
color::ENBY_MAUVE,
color::ENBY_BLACK,
],
);
h.insert(
"asexual",
vec![color::BLACK, color::ACE_GREY, color::WHITE, color::PURPLE],
);
h
};
pub static ref NAME_ALIASES: HashMap<Vec<&'static str>, &'static str> = {
Expand All @@ -70,6 +83,8 @@ pub mod flag {
h.insert(vec!["g"], "gay");
h.insert(vec!["b", "bi"], "bisexual");
h.insert(vec!["t", "trans"], "transgender");
h.insert(vec!["nb", "enby", "nonbinary"], "non-binary");
h.insert(vec!["a", "ace"], "asexual");
h
};
}
Expand Down