mirror of
https://github.com/nushell/nushell.git
synced 2024-11-24 17:34:00 +01:00
FEATURE: do not use theme-independant colors in the default configs (#8855)
# Description i was playing with my theme a bit and i was thinking about the following - the default themes should not use precise colors - the default themes should let the terminal set the exact colors for instance, the `filesize` field of the `$env.config.color_config` looks good but not with terminal themes like dracula or tokyonight 😮 in this PR, i just use "built-in" colors, like `red` or `yellow_bold` or `{fg: green attr: n}` to let the terminal theme set the colors 😋 # User-Facing Changes i tried to stay as close as the previous default themes, so there should be the least amount of differences 😌 # Tests + Formatting ``` $nothing ``` # After Submitting ``` $nothing ```
This commit is contained in:
parent
99c0a2575f
commit
36036d9308
@ -26,21 +26,21 @@ let dark_theme = {
|
|||||||
duration: white
|
duration: white
|
||||||
date: {|| (date now) - $in |
|
date: {|| (date now) - $in |
|
||||||
if $in < 1hr {
|
if $in < 1hr {
|
||||||
'red3b'
|
'purple'
|
||||||
} else if $in < 6hr {
|
} else if $in < 6hr {
|
||||||
'orange3'
|
'red'
|
||||||
} else if $in < 1day {
|
} else if $in < 1day {
|
||||||
'yellow3b'
|
'yellow'
|
||||||
} else if $in < 3day {
|
} else if $in < 3day {
|
||||||
'chartreuse2b'
|
'green'
|
||||||
} else if $in < 1wk {
|
} else if $in < 1wk {
|
||||||
'green3b'
|
'light_green'
|
||||||
} else if $in < 6wk {
|
} else if $in < 6wk {
|
||||||
'darkturquoise'
|
'cyan'
|
||||||
} else if $in < 52wk {
|
} else if $in < 52wk {
|
||||||
'deepskyblue3b'
|
'blue'
|
||||||
} else { 'dark_gray' }
|
} else { 'dark_gray' }
|
||||||
}
|
}
|
||||||
range: white
|
range: white
|
||||||
float: white
|
float: white
|
||||||
string: white
|
string: white
|
||||||
@ -67,7 +67,7 @@ let dark_theme = {
|
|||||||
shape_flag: blue_bold
|
shape_flag: blue_bold
|
||||||
shape_float: purple_bold
|
shape_float: purple_bold
|
||||||
# shapes are used to change the cli syntax highlighting
|
# shapes are used to change the cli syntax highlighting
|
||||||
shape_garbage: { fg: "#FFFFFF" bg: "#FF0000" attr: b}
|
shape_garbage: { fg: white bg: red attr: b}
|
||||||
shape_globpattern: cyan_bold
|
shape_globpattern: cyan_bold
|
||||||
shape_int: purple_bold
|
shape_int: purple_bold
|
||||||
shape_internalcall: cyan_bold
|
shape_internalcall: cyan_bold
|
||||||
@ -110,19 +110,19 @@ let light_theme = {
|
|||||||
duration: dark_gray
|
duration: dark_gray
|
||||||
date: {|| (date now) - $in |
|
date: {|| (date now) - $in |
|
||||||
if $in < 1hr {
|
if $in < 1hr {
|
||||||
'red3b'
|
'purple'
|
||||||
} else if $in < 6hr {
|
} else if $in < 6hr {
|
||||||
'orange3'
|
'red'
|
||||||
} else if $in < 1day {
|
} else if $in < 1day {
|
||||||
'yellow3b'
|
'yellow'
|
||||||
} else if $in < 3day {
|
} else if $in < 3day {
|
||||||
'chartreuse2b'
|
'green'
|
||||||
} else if $in < 1wk {
|
} else if $in < 1wk {
|
||||||
'green3b'
|
'light_green'
|
||||||
} else if $in < 6wk {
|
} else if $in < 6wk {
|
||||||
'darkturquoise'
|
'cyan'
|
||||||
} else if $in < 52wk {
|
} else if $in < 52wk {
|
||||||
'deepskyblue3b'
|
'blue'
|
||||||
} else { 'dark_gray' }
|
} else { 'dark_gray' }
|
||||||
}
|
}
|
||||||
range: dark_gray
|
range: dark_gray
|
||||||
@ -151,7 +151,7 @@ let light_theme = {
|
|||||||
shape_flag: blue_bold
|
shape_flag: blue_bold
|
||||||
shape_float: purple_bold
|
shape_float: purple_bold
|
||||||
# shapes are used to change the cli syntax highlighting
|
# shapes are used to change the cli syntax highlighting
|
||||||
shape_garbage: { fg: "#FFFFFF" bg: "#FF0000" attr: b}
|
shape_garbage: { fg: white bg: red attr: b}
|
||||||
shape_globpattern: cyan_bold
|
shape_globpattern: cyan_bold
|
||||||
shape_int: purple_bold
|
shape_int: purple_bold
|
||||||
shape_internalcall: cyan_bold
|
shape_internalcall: cyan_bold
|
||||||
|
Loading…
Reference in New Issue
Block a user