From 2a92c7d792b45112ab82eef0be2aa11038e6185d Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Wed, 17 Sep 2025 19:38:49 +0900 Subject: Adjust base16 (16) theme (#4501) Motivation: `--color base16` can be a better default than `dark` or `light`, since it uses the colors defined by the current theme. This usually blends in more naturally and works well in both light and dark modes. However, some elements were previously hard-coded with white or black foreground colors, which can cause rendering issues in certain terminal themes. --- src/tui/tui.go | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) (limited to 'src/tui') diff --git a/src/tui/tui.go b/src/tui/tui.go index 965be337..106d6c86 100644 --- a/src/tui/tui.go +++ b/src/tui/tui.go @@ -303,6 +303,14 @@ const ( colMagenta colCyan colWhite + colGrey + colBrightRed + colBrightGreen + colBrightYellow + colBrightBlue + colBrightMagenta + colBrightCyan + colBrightWhite ) type FillReturn int @@ -923,19 +931,19 @@ func init() { SelectedFg: ColorAttr{colUndefined, AttrUndefined}, SelectedBg: ColorAttr{colUndefined, AttrUndefined}, SelectedMatch: ColorAttr{colUndefined, AttrUndefined}, - DarkBg: ColorAttr{colBlack, AttrUndefined}, + DarkBg: ColorAttr{colGrey, AttrUndefined}, Prompt: ColorAttr{colBlue, AttrUndefined}, Match: ColorAttr{colGreen, AttrUndefined}, - Current: ColorAttr{colYellow, AttrUndefined}, - CurrentMatch: ColorAttr{colGreen, AttrUndefined}, + Current: ColorAttr{colBrightWhite, AttrUndefined}, + CurrentMatch: ColorAttr{colBrightGreen, AttrUndefined}, Spinner: ColorAttr{colGreen, AttrUndefined}, - Info: ColorAttr{colWhite, AttrUndefined}, + Info: ColorAttr{colYellow, AttrUndefined}, Cursor: ColorAttr{colRed, AttrUndefined}, Marker: ColorAttr{colMagenta, AttrUndefined}, Header: ColorAttr{colCyan, AttrUndefined}, Footer: ColorAttr{colCyan, AttrUndefined}, - Border: ColorAttr{colBlack, AttrUndefined}, - BorderLabel: ColorAttr{colWhite, AttrUndefined}, + Border: ColorAttr{colDefault, Dim}, + BorderLabel: ColorAttr{colDefault, AttrUndefined}, Ghost: ColorAttr{colUndefined, Dim}, Disabled: ColorAttr{colUndefined, AttrUndefined}, PreviewFg: ColorAttr{colUndefined, AttrUndefined}, -- cgit v1.2.3