mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-12-26 03:24:04 -08:00
fix(segment): ignore empty colors
This commit is contained in:
parent
c457f23734
commit
225f6c6b76
|
@ -46,10 +46,10 @@ type Segment struct {
|
|||
LeadingDiamond string `json:"leading_diamond,omitempty" toml:"leading_diamond,omitempty"`
|
||||
TrailingDiamond string `json:"trailing_diamond,omitempty" toml:"trailing_diamond,omitempty"`
|
||||
Template string `json:"template,omitempty" toml:"template,omitempty"`
|
||||
Foreground color.Ansi `json:"foreground" toml:"foreground"`
|
||||
Foreground color.Ansi `json:"foreground,omitempty" toml:"foreground,omitempty"`
|
||||
TemplatesLogic template.Logic `json:"templates_logic,omitempty" toml:"templates_logic,omitempty"`
|
||||
PowerlineSymbol string `json:"powerline_symbol,omitempty" toml:"powerline_symbol,omitempty"`
|
||||
Background color.Ansi `json:"background" toml:"background"`
|
||||
Background color.Ansi `json:"background,omitempty" toml:"background,omitempty"`
|
||||
Filler string `json:"filler,omitempty" toml:"filler,omitempty"`
|
||||
Type SegmentType `json:"type,omitempty" toml:"type,omitempty"`
|
||||
Alias string `json:"alias,omitempty" toml:"alias,omitempty"`
|
||||
|
|
Loading…
Reference in a new issue