mirror of
https://github.com/ClementTsang/bottom.git
synced 2025-07-01 10:54:39 +02:00
Re-added Red to default cpu pool... this does mean that there is a conflict with avg and cpu core 10, but eh... whatever I guess.
This commit is contained in:
parent
a756c44c66
commit
cefa227060
@ -40,17 +40,18 @@ pub fn gen_n_styles(num_to_gen: i32) -> Vec<Style> {
|
|||||||
let mut colour_vec: Vec<Style> = vec![
|
let mut colour_vec: Vec<Style> = vec![
|
||||||
Style::default().fg(STANDARD_FIRST_COLOUR),
|
Style::default().fg(STANDARD_FIRST_COLOUR),
|
||||||
Style::default().fg(STANDARD_SECOND_COLOUR),
|
Style::default().fg(STANDARD_SECOND_COLOUR),
|
||||||
Style::default().fg(Color::LightRed),
|
|
||||||
Style::default().fg(Color::LightCyan),
|
Style::default().fg(Color::LightCyan),
|
||||||
Style::default().fg(Color::LightGreen),
|
Style::default().fg(Color::LightGreen),
|
||||||
Style::default().fg(Color::LightBlue),
|
Style::default().fg(Color::LightBlue),
|
||||||
|
Style::default().fg(Color::LightRed),
|
||||||
Style::default().fg(Color::Cyan),
|
Style::default().fg(Color::Cyan),
|
||||||
Style::default().fg(Color::Green),
|
Style::default().fg(Color::Green),
|
||||||
Style::default().fg(Color::Blue),
|
Style::default().fg(Color::Blue),
|
||||||
|
Style::default().fg(Color::Red),
|
||||||
];
|
];
|
||||||
|
|
||||||
let mut h: f32 = 0.4; // We don't need random colours... right?
|
let mut h: f32 = 0.4; // We don't need random colours... right?
|
||||||
for _i in 0..(num_to_gen - 9) {
|
for _i in 0..(num_to_gen - 10) {
|
||||||
h = gen_hsv(h);
|
h = gen_hsv(h);
|
||||||
let result = hsv_to_rgb(h, 0.5, 0.95);
|
let result = hsv_to_rgb(h, 0.5, 0.95);
|
||||||
colour_vec.push(Style::default().fg(Color::Rgb(result.0, result.1, result.2)));
|
colour_vec.push(Style::default().fg(Color::Rgb(result.0, result.1, result.2)));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user