fix(segment): ignore empty colors

This commit is contained in:
Jan De Dobbeleer 2024-11-04 19:51:39 +01:00 committed by Jan De Dobbeleer
parent c457f23734
commit 225f6c6b76

View file

@ -46,10 +46,10 @@ type Segment struct {
LeadingDiamond string `json:"leading_diamond,omitempty" toml:"leading_diamond,omitempty"` LeadingDiamond string `json:"leading_diamond,omitempty" toml:"leading_diamond,omitempty"`
TrailingDiamond string `json:"trailing_diamond,omitempty" toml:"trailing_diamond,omitempty"` TrailingDiamond string `json:"trailing_diamond,omitempty" toml:"trailing_diamond,omitempty"`
Template string `json:"template,omitempty" toml:"template,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"` TemplatesLogic template.Logic `json:"templates_logic,omitempty" toml:"templates_logic,omitempty"`
PowerlineSymbol string `json:"powerline_symbol,omitempty" toml:"powerline_symbol,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"` Filler string `json:"filler,omitempty" toml:"filler,omitempty"`
Type SegmentType `json:"type,omitempty" toml:"type,omitempty"` Type SegmentType `json:"type,omitempty" toml:"type,omitempty"`
Alias string `json:"alias,omitempty" toml:"alias,omitempty"` Alias string `json:"alias,omitempty" toml:"alias,omitempty"`