mirror of
https://github.com/starship/starship.git
synced 2026-06-23 02:05:51 +07:00
fix: bg:none overwrites foreground colour (#1903)
Changes the behaviour of a bg:none color string so that it causes the background to have no color instead of decoloring the entire string like it did before.
This commit is contained in:
@@ -99,7 +99,7 @@ Style strings are a list of words, separated by whitespace. The words are not ca
|
||||
|
||||
where `<color>` is a color specifier (discussed below). `fg:<color>` and `<color>` currently do the same thing , though this may change in the future. The order of words in the string does not matter.
|
||||
|
||||
The `none` token overrides all other tokens in a string, so that e.g. `fg:red none fg:blue` will still create a string with no styling. It may become an error to use `none` in conjunction with other tokens in the future.
|
||||
The `none` token overrides all other tokens in a string if it is not part of a `bg:` specifier, so that e.g. `fg:red none fg:blue` will still create a string with no styling. `bg:none` sets the background to the default color so `fg:red bg:none` is equivalent to `red` or `fg:red` and `bg:green fg:red bg:none` is also equivalent to `fg:red` or `red`. It may become an error to use `none` in conjunction with other tokens in the future.
|
||||
|
||||
A color specifier can be one of the following:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user