Skip to content

Commit

Permalink
fix(segment): ignore empty colors
Browse files Browse the repository at this point in the history
  • Loading branch information
JanDeDobbeleer committed Nov 4, 2024
1 parent c457f23 commit 225f6c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/config/segment.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down

0 comments on commit 225f6c6

Please sign in to comment.