From 2802f6dd42711ad3450c2e9fa640221d6a056ac8 Mon Sep 17 00:00:00 2001 From: Valerie Date: Mon, 3 Jul 2023 23:07:37 -0400 Subject: [PATCH] groundwork for progress flag --- src/complex.rs | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/src/complex.rs b/src/complex.rs index c3ae1bd..e21e1b4 100644 --- a/src/complex.rs +++ b/src/complex.rs @@ -35,13 +35,26 @@ pub fn progress(small: bool) -> Colors { // we need these colors in both fg & bg; just hold the integers for now let black: u32 = 0; let brown: u32 = 0x784F17; + let ltblue: u32 = 0xEAACB8; let pink: u32 = 0xEAACB8; let white: u32 = 0xFFFFFF; - let (width, height) = if small { (6, 18) } else { terminal_size().unwrap() }; + let (height, width) = if small { (6, 18) } else { terminal_size().unwrap() }; - let stripes = vec![red, orange, yellow, green, blue, purple]; - let mut lines = draw::bg_stripes(stripes, width, height); + let stripes = [red, orange, yellow, green, blue, purple]; + let chevrons = [white, pink, ltblue, brown, black]; + let mut lines: Vec = Vec::new(); + //let mut lines = draw::bg_stripes(stripes, width, height); + + /* i think i'm stuck having to write stripes here too. it'll + * be easier to just generate the stripes on alongside the + * chevrons than to figure out where to move the ansi bg code + */ + + let stripe_index = 0; + let chevron_index = 5; // chevrons are funky :) + + draw::lines(lines, !small); exit(0);