dynasty 1.4.1

Dynasty Reader's CLI downloader
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use std::time::Duration;

use console::Style;
use once_cell::sync::Lazy;

// ref https://www.ditig.com/256-colors-cheat-sheet
pub static SPINNER_COLOR: Lazy<Style> = Lazy::new(|| Style::new().magenta());
pub static PREFIX_COLOR: Lazy<Style> = Lazy::new(|| Style::new().color256(217).bold());
pub static ALT_PREFIX_COLOR: Lazy<Style> = Lazy::new(|| Style::new().color256(225));
pub static MESSAGE_COLOR: Lazy<Style> = Lazy::new(|| Style::new().color256(225).bold());
pub static PROGRESS_COLOR: Lazy<Style> = Lazy::new(|| Style::new().color256(218));
pub static BYTES_PROGRESS_COLOR: Lazy<Style> = Lazy::new(|| Style::new().color256(217));
pub static DOWNLOAD_BAR_COLOR: Lazy<Style> = Lazy::new(|| Style::new().magenta().dim());

pub static DOTS_SPINNER_CHARS: &str = "⢄⢂⢁⡁⡈⡐⡠";
pub static DOTS_SPINNER_INTERVAL: Duration = Duration::from_millis(50);