version bump and formatting

This commit is contained in:
Valerie Wolfe 2023-12-06 11:00:44 -05:00
parent a792b057cc
commit f300979b3a
3 changed files with 13 additions and 1 deletions

View file

@ -1,6 +1,6 @@
[package] [package]
name = "pride" name = "pride"
version = "0.2.2" version = "0.2.3"
edition = "2021" edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

View file

@ -181,6 +181,7 @@ pub fn aroace(small: bool) -> Flag {
Flag::Lines(lines) Flag::Lines(lines)
} }
fn demi_orientation_render(middle: Bg<Rgb>, bottom: Bg<Rgb>, width: u16, height: u16) -> Vec<String> { fn demi_orientation_render(middle: Bg<Rgb>, bottom: Bg<Rgb>, width: u16, height: u16) -> Vec<String> {
let white = bg(0xFFFFFF); let white = bg(0xFFFFFF);
@ -238,6 +239,7 @@ pub fn demisexual(small: bool) -> Flag {
Flag::Lines(lines) Flag::Lines(lines)
} }
pub fn disability() { pub fn disability() {
let gray = bg(0x575757); let gray = bg(0x575757);
@ -253,6 +255,7 @@ pub fn disability() {
} }
pub fn intersex() -> Flag { pub fn intersex() -> Flag {
let yellow = bg(0xFFDA00); let yellow = bg(0xFFDA00);
let purple = rgb(0x7A00AC); let purple = rgb(0x7A00AC);
@ -270,6 +273,7 @@ pub fn intersex() -> Flag {
Flag::Lines(lines) Flag::Lines(lines)
} }
pub fn polyamory(small: bool) -> Flag { pub fn polyamory(small: bool) -> Flag {
let blue = rgb(0x019FE3); let blue = rgb(0x019FE3);
let magenta = rgb(0xE50051); let magenta = rgb(0xE50051);

View file

@ -53,6 +53,7 @@ pub fn aroace() -> Flag {
Flag::Stripes(vec![orange, yellow, WHITE, blue, navy]) Flag::Stripes(vec![orange, yellow, WHITE, blue, navy])
} }
pub fn bigender() -> Flag { pub fn bigender() -> Flag {
let pink = rgb(0xE676A6); let pink = rgb(0xE676A6);
let yellow = rgb(0xF9F04C); let yellow = rgb(0xF9F04C);
@ -70,6 +71,7 @@ pub fn bisexual() -> Flag {
Flag::Stripes(vec![magenta, magenta, purple, blue, blue]) Flag::Stripes(vec![magenta, magenta, purple, blue, blue])
} }
fn demigender_base(color: Color) -> Vec<Color> { fn demigender_base(color: Color) -> Vec<Color> {
let grey = rgb(0x7F7F7F); let grey = rgb(0x7F7F7F);
let gray = rgb(0xC3C3C3); let gray = rgb(0xC3C3C3);
@ -93,6 +95,7 @@ pub fn demigirl() -> Flag {
Flag::Stripes(demigender_base(pink)) Flag::Stripes(demigender_base(pink))
} }
pub fn gay() -> Flag { pub fn gay() -> Flag {
let green1 = rgb(0x00906D); let green1 = rgb(0x00906D);
let green2 = rgb(0x00D1A7); let green2 = rgb(0x00D1A7);
@ -134,6 +137,7 @@ pub fn gendervoid() -> Flag {
Flag::Stripes(vec![navy, gray, BLACK, gray, navy]) Flag::Stripes(vec![navy, gray, BLACK, gray, navy])
} }
pub fn lesbian() -> Flag { pub fn lesbian() -> Flag {
let red = rgb(0xD62800); let red = rgb(0xD62800);
let orange = rgb(0xFF9B56); let orange = rgb(0xFF9B56);
@ -143,6 +147,7 @@ pub fn lesbian() -> Flag {
Flag::Stripes(vec![red, orange, WHITE, pink, magenta]) Flag::Stripes(vec![red, orange, WHITE, pink, magenta])
} }
pub fn multigender() -> Flag { pub fn multigender() -> Flag {
let blue = rgb(0x3F47CC); let blue = rgb(0x3F47CC);
let ltblue = rgb(0x01A4E9); let ltblue = rgb(0x01A4E9);
@ -159,6 +164,7 @@ pub fn multisexual() -> Flag {
Flag::Stripes(vec![purple, WHITE, blue, pink]) Flag::Stripes(vec![purple, WHITE, blue, pink])
} }
pub fn nonbinary() -> Flag { pub fn nonbinary() -> Flag {
let yellow = rgb(0xFFF433); let yellow = rgb(0xFFF433);
let purple = rgb(0x9B59D0); let purple = rgb(0x9B59D0);
@ -166,6 +172,7 @@ pub fn nonbinary() -> Flag {
Flag::Stripes(vec![yellow, WHITE, purple, BLACK]) Flag::Stripes(vec![yellow, WHITE, purple, BLACK])
} }
pub fn pansexual() -> Flag { pub fn pansexual() -> Flag {
let magenta = rgb(0xFF1B8D); let magenta = rgb(0xFF1B8D);
let yellow = rgb(0xFFDA00); let yellow = rgb(0xFFDA00);
@ -182,6 +189,7 @@ pub fn polysexual() -> Flag {
Flag::Stripes(vec![pink, green, blue]) Flag::Stripes(vec![pink, green, blue])
} }
pub fn transgender() -> Flag { pub fn transgender() -> Flag {
let pink = rgb(0x7ACBF5); let pink = rgb(0x7ACBF5);
let blue = rgb(0xEAACB8); let blue = rgb(0xEAACB8);