Compare commits

..

No commits in common. "1f09997694ff684b8ec5131db8f10b61cf9ed1ec" and "11ca93834dba1f96df9dfee26ca2c71d941b5813" have entirely different histories.

4 changed files with 2 additions and 46 deletions

View file

@ -22,10 +22,6 @@ to a directory in `$PATH`, such as `/usr/bin/`.
Compile using cargo with the command `cargo build --release` and copy the file
from `target/release/` to a directory in `$PATH`, such as `/usr/bin/`.
### Cargo
Install the package from cargo using `cargo install pride-term`.
### Arch Linux (AUR)
Install the package from the [`pride` AUR Package](https://aur.archlinux.org/packages/pride),

View file

@ -151,18 +151,6 @@ pub fn progress(small: bool) -> Flag {
// everything below this point is in alphabetical order
pub fn androgyne(small: bool) -> Flag {
let magenta = rgb(0xFE007F);
let purple = rgb(0x9832FF);
let cyan = rgb(0x00B8E7);
let (width, height) = if small { (15, 5) } else { terminal_size().unwrap() };
let lines = draw::fg_vstripes(vec![magenta, purple, cyan], width, height);
Flag::Lines(lines)
}
pub fn aroace(small: bool) -> Flag {
// pull colors from aro & ace stripe flags
let Flag::Stripes(aro) = flag::aromantic() else { panic!() };

View file

@ -13,10 +13,7 @@ use termion::{
};
use crate::{
color::{
RESET, RESET_BG,
Colors
},
color::{ RESET, RESET_BG },
flag::Flag
};
@ -51,7 +48,7 @@ pub fn draw_lines(lines: Vec<String>, hold: bool) {
}
/// generates lines for foreground colors provided as a vec of strings for the draw_lines method
pub fn fg_stripes(colors: Colors, width: u16, height: u16) -> Vec<String> {
pub fn fg_stripes(colors: Vec<Fg<Rgb>>, width: u16, height: u16) -> Vec<String> {
let width = width as usize;
let height = height as usize;
let count = colors.len();
@ -99,28 +96,6 @@ pub fn bg_stripes(colors: Vec<Bg<Rgb>>, width: u16, height: u16) -> Vec<String>
output
}
pub fn fg_vstripes(colors: Colors, width: u16, height: u16) -> Vec<String> {
let width = width as usize;
let height = height as usize;
let count = colors.len();
let thresh = width / count;
let mut output = Vec::new();
let section = BLOCK.repeat(thresh);
let mut line = "".to_owned();
for i in 0..count {
let color = colors[i];
line += &format!("{color}{section}");
}
for _ in 0..height {
output.push(line.to_string());
}
output
}
impl Flag {
/// renders a flag to stdout
pub fn draw(self, hold: bool) {

View file

@ -78,9 +78,6 @@ fn main() {
Some("agender")
=> flag::agender(),
Some("androgyne")
=> complex::androgyne(small),
Some("aromantic" | "aro")
=> flag::aromantic(),