Skip to content

Commit

Permalink
Add light color (#136)
Browse files Browse the repository at this point in the history
* update toml

* add solarized light to close #135

* clean up a little
  • Loading branch information
alexhallam committed Jul 9, 2022
1 parent 624cf3e commit cc549c8
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,12 @@ struct Cli {
short = "c",
long = "color",
default_value = "0",
help = "There are 5 preconfigured color palettes:
help = "There are 5 preconfigured color palettes (Defaults to nord):
(1)nord
(2)one_dark
(3)gruvbox
(4)dracula
(5)uncolor (Coming Soon)\nAn input of (5)uncolor will remove color properties. Note that colors will make it difficult to pipe output to other utilities.The default value of (0) is reserved to make config/option coloring logic easier."
(5)solarized light"
)]
color: usize,
#[structopt(
Expand Down Expand Up @@ -234,6 +234,12 @@ fn main() {
let dracula_std_color: [u8; 3] = [248, 248, 242];
let dracula_na_color: [u8; 3] = [255, 121, 198];
let dracula_neg_num_color: [u8; 3] = [188, 63, 60];
//// solarized light
let solarized_meta_color: [u8; 3] = [108, 113, 193];
let solarized_header_color: [u8; 3] = [88, 110, 117];
let solarized_std_color: [u8; 3] = [131, 148, 150];
let solarized_na_color: [u8; 3] = [220, 50, 47];
let solarized_neg_num_color: [u8; 3] = [42, 161, 152];

// user args
let lower_column_width_defined = !(opt.lower_column_width == 2);
Expand Down Expand Up @@ -290,6 +296,13 @@ fn main() {
dracula_na_color,
dracula_neg_num_color,
),
5 => (
solarized_meta_color,
solarized_header_color,
solarized_std_color,
solarized_na_color,
solarized_neg_num_color,
),
_ => (
nord_meta_color,
nord_header_color,
Expand Down

0 comments on commit cc549c8

Please sign in to comment.