Repository: junegunn/fzf
File: src/tui/tui.go (Go)

Code before:
		HeaderBorder:     ColorAttr{colDefault, AttrUndefined},
		HeaderLabel:      ColorAttr{colDefault, AttrUndefined},
		FooterBg:         ColorAttr{colDefault, AttrUndefined},
		FooterBorder:     ColorAttr{colDefault, AttrUndefined},
		FooterLabel:      ColorAttr{colDefault, AttrUndefined},
		GapLine:          ColorAttr{colDefault, AttrUndefined},
		Nth:              ColorAttr{colUndefined, AttrUndefined},
	}
}

func init() {
	Default16 = &ColorTheme{
		Colored:          true,
		Input:            ColorAttr{colDefault, AttrUndefined},
		Fg:               ColorAttr{colDefault, AttrUndefined},
		Bg:               ColorAttr{colDefault, AttrUndefined},
		ListFg:           ColorAttr{colUndefined, AttrUndefined},
		ListBg:           ColorAttr{colUndefined, AttrUndefined},
		AltBg:            ColorAttr{colUndefined, AttrUndefined},
		SelectedFg:       ColorAttr{colUndefined, AttrUndefined},
		SelectedBg:       ColorAttr{colUndefined, AttrUndefined},
		SelectedMatch:    ColorAttr{colUndefined, AttrUndefined},
		DarkBg:           ColorAttr{colBlack, AttrUndefined},
		Prompt:           ColorAttr{colBlue, AttrUndefined},
		Match:            ColorAttr{colGreen, AttrUndefined},
		Current:          ColorAttr{colDefault, AttrUndefined},
		CurrentMatch:     ColorAttr{colGreen, AttrUndefined},
		Spinner:          ColorAttr{colGreen, AttrUndefined},
		Info:             ColorAttr{colYellow, AttrUndefined},
		Cursor:           ColorAttr{colRed, AttrUndefined},
		Marker:           ColorAttr{colMagenta, AttrUndefined},
		Header:           ColorAttr{colCyan, AttrUndefined},
		Footer:           ColorAttr{colCyan, AttrUndefined},
		Border:           ColorAttr{colDefault, Dim},
		BorderLabel:      ColorAttr{colDefault, AttrUndefined},
		Ghost:            ColorAttr{colUndefined, Dim},
		Disabled:         ColorAttr{colUndefined, AttrUndefined},
		PreviewFg:        ColorAttr{colUndefined, AttrUndefined},
		PreviewBg:        ColorAttr{colUndefined, AttrUndefined},
		Gutter:           ColorAttr{colUndefined, AttrUndefined},
		PreviewBorder:    ColorAttr{colUndefined, AttrUndefined},
		PreviewScrollbar: ColorAttr{colUndefined, AttrUndefined},
		PreviewLabel:     ColorAttr{colUndefined, AttrUndefined},
		ListLabel:        ColorAttr{colUndefined, AttrUndefined},
		ListBorder:       ColorAttr{colUndefined, AttrUndefined},
		Separator:        ColorAttr{colUndefined, AttrUndefined},
		Scrollbar:        ColorAttr{colUndefined, AttrUndefined},
		InputBg:          ColorAttr{colUndefined, AttrUndefined},
		InputBorder:      ColorAttr{colUndefined, AttrUndefined},
		InputLabel:       ColorAttr{colUndefined, AttrUndefined},
		HeaderBg:         ColorAttr{colUndefined, AttrUndefined},

Review comment (suggestion):
This doesn't work well on light terminals, due to `colBlack` used for `DarkBg`.

Code after:
		PreviewLabel:     ColorAttr{colDefault, AttrUndefined},
		ListLabel:        ColorAttr{colDefault, AttrUndefined},
		ListBorder:       ColorAttr{colDefault, AttrUndefined},
		Separator:        ColorAttr{colDefault, AttrUndefined},
		Scrollbar:        ColorAttr{colDefault, AttrUndefined},
		InputBg:          ColorAttr{colDefault, AttrUndefined},
		InputBorder:      ColorAttr{colDefault, AttrUndefined},
		InputLabel:       ColorAttr{colDefault, AttrUndefined},
		HeaderBg:         ColorAttr{colDefault, AttrUndefined},
		HeaderBorder:     ColorAttr{colDefault, AttrUndefined},
		HeaderLabel:      ColorAttr{colDefault, AttrUndefined},
		FooterBg:         ColorAttr{colDefault, AttrUndefined},
		FooterBorder:     ColorAttr{colDefault, AttrUndefined},
		FooterLabel:      ColorAttr{colDefault, AttrUndefined},
		GapLine:          ColorAttr{colDefault, AttrUndefined},
		Nth:              ColorAttr{colUndefined, AttrUndefined},
	}
}

func init() {
	Default16 = &ColorTheme{
		Colored:          true,
		Input:            ColorAttr{colDefault, AttrUndefined},
		Fg:               ColorAttr{colDefault, AttrUndefined},
		Bg:               ColorAttr{colDefault, AttrUndefined},
		ListFg:           ColorAttr{colUndefined, AttrUndefined},
		ListBg:           ColorAttr{colUndefined, AttrUndefined},
		AltBg:            ColorAttr{colUndefined, AttrUndefined},
		SelectedFg:       ColorAttr{colUndefined, AttrUndefined},
		SelectedBg:       ColorAttr{colUndefined, AttrUndefined},
		SelectedMatch:    ColorAttr{colUndefined, AttrUndefined},
		DarkBg:           ColorAttr{colGrey, AttrUndefined},
		Prompt:           ColorAttr{colBlue, AttrUndefined},
		Match:            ColorAttr{colGreen, AttrUndefined},
		Current:          ColorAttr{colBrightWhite, AttrUndefined},
		CurrentMatch:     ColorAttr{colBrightGreen, AttrUndefined},
		Spinner:          ColorAttr{colGreen, AttrUndefined},
		Info:             ColorAttr{colYellow, AttrUndefined},
		Cursor:           ColorAttr{colRed, AttrUndefined},
		Marker:           ColorAttr{colMagenta, AttrUndefined},
		Header:           ColorAttr{colCyan, AttrUndefined},
		Footer:           ColorAttr{colCyan, AttrUndefined},
		Border:           ColorAttr{colDefault, Dim},
		BorderLabel:      ColorAttr{colDefault, AttrUndefined},
		Ghost:            ColorAttr{colUndefined, Dim},
		Disabled:         ColorAttr{colUndefined, AttrUndefined},
		PreviewFg:        ColorAttr{colUndefined, AttrUndefined},
		PreviewBg:        ColorAttr{colUndefined, AttrUndefined},
		Gutter:           ColorAttr{colUndefined, AttrUndefined},
		PreviewBorder:    ColorAttr{colUndefined, AttrUndefined},
		PreviewScrollbar: ColorAttr{colUndefined, AttrUndefined},