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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

REFACTOR: make the indentation in the themes more consistent #498

Merged
merged 2 commits into from
May 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
40 changes: 20 additions & 20 deletions themes/make.nu
Original file line number Diff line number Diff line change
Expand Up @@ -26,29 +26,29 @@ def make-theme [name: string] {
bool: {|| if $in { "($colors.color14)" } else { "light_gray" } }
int: "($colors.color7)"
filesize: {|e|
if $e == 0b {
"($colors.color7)"
} else if $e < 1mb {
"($colors.color6)"
} else {{ fg: "($colors.color4)" }}
if $e == 0b {
"($colors.color7)"
} else if $e < 1mb {
"($colors.color6)"
} else {{ fg: "($colors.color4)" }}
}
duration: "($colors.color7)"
date: {|| (char lparen)date now(char rparen) - $in |
if $in < 1hr {
{ fg: "($colors.color1)" attr: "b" }
} else if $in < 6hr {
"($colors.color1)"
} else if $in < 1day {
"($colors.color3)"
} else if $in < 3day {
"($colors.color2)"
} else if $in < 1wk {
{ fg: "($colors.color2)" attr: "b" }
} else if $in < 6wk {
"($colors.color6)"
} else if $in < 52wk {
"($colors.color4)"
} else { "dark_gray" }
if $in < 1hr {
{ fg: "($colors.color1)" attr: "b" }
} else if $in < 6hr {
"($colors.color1)"
} else if $in < 1day {
"($colors.color3)"
} else if $in < 3day {
"($colors.color2)"
} else if $in < 1wk {
{ fg: "($colors.color2)" attr: "b" }
} else if $in < 6wk {
"($colors.color6)"
} else if $in < 52wk {
"($colors.color4)"
} else { "dark_gray" }
}
range: "($colors.color7)"
float: "($colors.color7)"
Expand Down
40 changes: 20 additions & 20 deletions themes/themes/3024-day.nu
Original file line number Diff line number Diff line change
Expand Up @@ -6,29 +6,29 @@ export def main [] { return {
bool: {|| if $in { "#cdab53" } else { "light_gray" } }
int: "#a5a2a2"
filesize: {|e|
if $e == 0b {
"#a5a2a2"
} else if $e < 1mb {
"#b5e4f4"
} else {{ fg: "#01a0e4" }}
if $e == 0b {
"#a5a2a2"
} else if $e < 1mb {
"#b5e4f4"
} else {{ fg: "#01a0e4" }}
}
duration: "#a5a2a2"
date: {|| (date now) - $in |
if $in < 1hr {
{ fg: "#db2d20" attr: "b" }
} else if $in < 6hr {
"#db2d20"
} else if $in < 1day {
"#fded02"
} else if $in < 3day {
"#01a252"
} else if $in < 1wk {
{ fg: "#01a252" attr: "b" }
} else if $in < 6wk {
"#b5e4f4"
} else if $in < 52wk {
"#01a0e4"
} else { "dark_gray" }
if $in < 1hr {
{ fg: "#db2d20" attr: "b" }
} else if $in < 6hr {
"#db2d20"
} else if $in < 1day {
"#fded02"
} else if $in < 3day {
"#01a252"
} else if $in < 1wk {
{ fg: "#01a252" attr: "b" }
} else if $in < 6wk {
"#b5e4f4"
} else if $in < 52wk {
"#01a0e4"
} else { "dark_gray" }
}
range: "#a5a2a2"
float: "#a5a2a2"
Expand Down
40 changes: 20 additions & 20 deletions themes/themes/3024-night.nu
Original file line number Diff line number Diff line change
Expand Up @@ -6,29 +6,29 @@ export def main [] { return {
bool: {|| if $in { "#cdab53" } else { "light_gray" } }
int: "#a5a2a2"
filesize: {|e|
if $e == 0b {
"#a5a2a2"
} else if $e < 1mb {
"#b5e4f4"
} else {{ fg: "#01a0e4" }}
if $e == 0b {
"#a5a2a2"
} else if $e < 1mb {
"#b5e4f4"
} else {{ fg: "#01a0e4" }}
}
duration: "#a5a2a2"
date: {|| (date now) - $in |
if $in < 1hr {
{ fg: "#db2d20" attr: "b" }
} else if $in < 6hr {
"#db2d20"
} else if $in < 1day {
"#fded02"
} else if $in < 3day {
"#01a252"
} else if $in < 1wk {
{ fg: "#01a252" attr: "b" }
} else if $in < 6wk {
"#b5e4f4"
} else if $in < 52wk {
"#01a0e4"
} else { "dark_gray" }
if $in < 1hr {
{ fg: "#db2d20" attr: "b" }
} else if $in < 6hr {
"#db2d20"
} else if $in < 1day {
"#fded02"
} else if $in < 3day {
"#01a252"
} else if $in < 1wk {
{ fg: "#01a252" attr: "b" }
} else if $in < 6wk {
"#b5e4f4"
} else if $in < 52wk {
"#01a0e4"
} else { "dark_gray" }
}
range: "#a5a2a2"
float: "#a5a2a2"
Expand Down
40 changes: 20 additions & 20 deletions themes/themes/3024.nu
Original file line number Diff line number Diff line change
Expand Up @@ -6,29 +6,29 @@ export def main [] { return {
bool: {|| if $in { "#b5e4f4" } else { "light_gray" } }
int: "#a5a2a2"
filesize: {|e|
if $e == 0b {
"#a5a2a2"
} else if $e < 1mb {
"#b5e4f4"
} else {{ fg: "#01a0e4" }}
if $e == 0b {
"#a5a2a2"
} else if $e < 1mb {
"#b5e4f4"
} else {{ fg: "#01a0e4" }}
}
duration: "#a5a2a2"
date: {|| (date now) - $in |
if $in < 1hr {
{ fg: "#db2d20" attr: "b" }
} else if $in < 6hr {
"#db2d20"
} else if $in < 1day {
"#fded02"
} else if $in < 3day {
"#01a252"
} else if $in < 1wk {
{ fg: "#01a252" attr: "b" }
} else if $in < 6wk {
"#b5e4f4"
} else if $in < 52wk {
"#01a0e4"
} else { "dark_gray" }
if $in < 1hr {
{ fg: "#db2d20" attr: "b" }
} else if $in < 6hr {
"#db2d20"
} else if $in < 1day {
"#fded02"
} else if $in < 3day {
"#01a252"
} else if $in < 1wk {
{ fg: "#01a252" attr: "b" }
} else if $in < 6wk {
"#b5e4f4"
} else if $in < 52wk {
"#01a0e4"
} else { "dark_gray" }
}
range: "#a5a2a2"
float: "#a5a2a2"
Expand Down
40 changes: 20 additions & 20 deletions themes/themes/abyss.nu
Original file line number Diff line number Diff line change
Expand Up @@ -6,29 +6,29 @@ export def main [] { return {
bool: {|| if $in { "#2592d3" } else { "light_gray" } }
int: "#a0cce2"
filesize: {|e|
if $e == 0b {
"#a0cce2"
} else if $e < 1mb {
"#2592d3"
} else {{ fg: "#277bb1" }}
if $e == 0b {
"#a0cce2"
} else if $e < 1mb {
"#2592d3"
} else {{ fg: "#277bb1" }}
}
duration: "#a0cce2"
date: {|| (date now) - $in |
if $in < 1hr {
{ fg: "#48697e" attr: "b" }
} else if $in < 6hr {
"#48697e"
} else if $in < 1day {
"#1f6ca1"
} else if $in < 3day {
"#10598b"
} else if $in < 1wk {
{ fg: "#10598b" attr: "b" }
} else if $in < 6wk {
"#2592d3"
} else if $in < 52wk {
"#277bb1"
} else { "dark_gray" }
if $in < 1hr {
{ fg: "#48697e" attr: "b" }
} else if $in < 6hr {
"#48697e"
} else if $in < 1day {
"#1f6ca1"
} else if $in < 3day {
"#10598b"
} else if $in < 1wk {
{ fg: "#10598b" attr: "b" }
} else if $in < 6wk {
"#2592d3"
} else if $in < 52wk {
"#277bb1"
} else { "dark_gray" }
}
range: "#a0cce2"
float: "#a0cce2"
Expand Down
40 changes: 20 additions & 20 deletions themes/themes/aci.nu
Original file line number Diff line number Diff line change
Expand Up @@ -6,29 +6,29 @@ export def main [] { return {
bool: {|| if $in { "#1eff8e" } else { "light_gray" } }
int: "#b6b6b6"
filesize: {|e|
if $e == 0b {
"#b6b6b6"
} else if $e < 1mb {
"#08ff83"
} else {{ fg: "#0883ff" }}
if $e == 0b {
"#b6b6b6"
} else if $e < 1mb {
"#08ff83"
} else {{ fg: "#0883ff" }}
}
duration: "#b6b6b6"
date: {|| (date now) - $in |
if $in < 1hr {
{ fg: "#ff0883" attr: "b" }
} else if $in < 6hr {
"#ff0883"
} else if $in < 1day {
"#ff8308"
} else if $in < 3day {
"#83ff08"
} else if $in < 1wk {
{ fg: "#83ff08" attr: "b" }
} else if $in < 6wk {
"#08ff83"
} else if $in < 52wk {
"#0883ff"
} else { "dark_gray" }
if $in < 1hr {
{ fg: "#ff0883" attr: "b" }
} else if $in < 6hr {
"#ff0883"
} else if $in < 1day {
"#ff8308"
} else if $in < 3day {
"#83ff08"
} else if $in < 1wk {
{ fg: "#83ff08" attr: "b" }
} else if $in < 6wk {
"#08ff83"
} else if $in < 52wk {
"#0883ff"
} else { "dark_gray" }
}
range: "#b6b6b6"
float: "#b6b6b6"
Expand Down
40 changes: 20 additions & 20 deletions themes/themes/aco.nu
Original file line number Diff line number Diff line change
Expand Up @@ -6,29 +6,29 @@ export def main [] { return {
bool: {|| if $in { "#1eff8e" } else { "light_gray" } }
int: "#bebebe"
filesize: {|e|
if $e == 0b {
"#bebebe"
} else if $e < 1mb {
"#08ff83"
} else {{ fg: "#0883ff" }}
if $e == 0b {
"#bebebe"
} else if $e < 1mb {
"#08ff83"
} else {{ fg: "#0883ff" }}
}
duration: "#bebebe"
date: {|| (date now) - $in |
if $in < 1hr {
{ fg: "#ff0883" attr: "b" }
} else if $in < 6hr {
"#ff0883"
} else if $in < 1day {
"#ff8308"
} else if $in < 3day {
"#83ff08"
} else if $in < 1wk {
{ fg: "#83ff08" attr: "b" }
} else if $in < 6wk {
"#08ff83"
} else if $in < 52wk {
"#0883ff"
} else { "dark_gray" }
if $in < 1hr {
{ fg: "#ff0883" attr: "b" }
} else if $in < 6hr {
"#ff0883"
} else if $in < 1day {
"#ff8308"
} else if $in < 3day {
"#83ff08"
} else if $in < 1wk {
{ fg: "#83ff08" attr: "b" }
} else if $in < 6wk {
"#08ff83"
} else if $in < 52wk {
"#0883ff"
} else { "dark_gray" }
}
range: "#bebebe"
float: "#bebebe"
Expand Down
40 changes: 20 additions & 20 deletions themes/themes/adventuretime.nu
Original file line number Diff line number Diff line change
Expand Up @@ -6,29 +6,29 @@ export def main [] { return {
bool: {|| if $in { "#c8faf4" } else { "light_gray" } }
int: "#f8dcc0"
filesize: {|e|
if $e == 0b {
"#f8dcc0"
} else if $e < 1mb {
"#70a598"
} else {{ fg: "#0f4ac6" }}
if $e == 0b {
"#f8dcc0"
} else if $e < 1mb {
"#70a598"
} else {{ fg: "#0f4ac6" }}
}
duration: "#f8dcc0"
date: {|| (date now) - $in |
if $in < 1hr {
{ fg: "#bd0013" attr: "b" }
} else if $in < 6hr {
"#bd0013"
} else if $in < 1day {
"#e7741e"
} else if $in < 3day {
"#4ab118"
} else if $in < 1wk {
{ fg: "#4ab118" attr: "b" }
} else if $in < 6wk {
"#70a598"
} else if $in < 52wk {
"#0f4ac6"
} else { "dark_gray" }
if $in < 1hr {
{ fg: "#bd0013" attr: "b" }
} else if $in < 6hr {
"#bd0013"
} else if $in < 1day {
"#e7741e"
} else if $in < 3day {
"#4ab118"
} else if $in < 1wk {
{ fg: "#4ab118" attr: "b" }
} else if $in < 6wk {
"#70a598"
} else if $in < 52wk {
"#0f4ac6"
} else { "dark_gray" }
}
range: "#f8dcc0"
float: "#f8dcc0"
Expand Down
Loading