mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 12:15:42 +02:00
Enable theming the Welcome Banner (#15095)
The banner will now use three new `$env.config.color_config` settings: - `banner_foreground`: The primary color of the banner text - `banner_highlight1`: Used for the first set of highlights, e.g., `Nushell`, `nu`, `GitHub`, et. al - `banner_highlight2`: Used for the second set of highlights, e.g. `Discord`, `Documentation`, et. al. If the settings above are not defined, `banner` continues to use the default green/purple/foreground. However, two more lines use the purple/highlight2 in order to give more separation and consistency to the colorization.
This commit is contained in:
@ -785,6 +785,13 @@ $env.config.color_config.empty
|
||||
# Use { attr: n } to disable.
|
||||
$env.config.color_config.leading_trailing_space_bg = { bg: 'red' }
|
||||
|
||||
# banner_foreground: The default text style for the Welcome Banner displayed at startup
|
||||
$env.config.color_config.banner_foreground = "attr_normal"
|
||||
|
||||
# banner_highlight1 and banner_highlight2: Colors for highlighted text in the Welcome Banner
|
||||
$env.config.color_config.banner_highlight1 = "green"
|
||||
$env.config.color_config.banner_highlight2 = "purple"
|
||||
|
||||
# ------------------------
|
||||
# `explore` command colors
|
||||
# ------------------------
|
||||
|
Reference in New Issue
Block a user