Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add light color #136

Merged
merged 4 commits into from
Jul 9, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add solarized light to close #135
  • Loading branch information
alexhallam committed Jul 9, 2022
commit ca0de6097bd69fd5c986b13d9245958fcf27ccab
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
Binary file added tidy-viewer--x86_64-apple-darwin.tar.gz
Binary file not shown.
Binary file added tidy-viewer-1.4.5.x86_64.rpm
Binary file not shown.
Binary file added tv-1.4.3.tar.gz
Binary file not shown.
Binary file added tv-1.4.5.tar.gz
Binary file not shown.