Skip to content
Myr

Adjust base16 (16) theme (#4501)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

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.

authored by Junegunn Choi · committed by GitHub · parent f5975cf · Browse files · 4 files+21 added−12 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

4 files+21 added−12 removed

  • other:+21 added−12 removed

4 files+21 added−12 removed

modified:man/man1/fzf.1+4 added-4 removed
244 unmodified lines
245color mappings. Each entry is separated by a comma and/or whitespaces.246247.RS248.B BASE SCHEME:249 (default: \fBdark\fR on 256-color terminal, otherwise \fB16\fR; If \fBNO_COLOR\fR is set, \fBbw\fR)249 (default: \fBdark\fR on 256-color terminal, otherwise \fBbase16\fR; If \fBNO_COLOR\fR is set, \fBbw\fR)250251 \fBdark \fRColor scheme for dark 256-color terminal252 \fBlight \fRColor scheme for light 256-color terminal253 \fB16 \fRColor scheme for 16-color terminal251 \fBdark \fRColor scheme for dark terminal252 \fBlight \fRColor scheme for light terminal253 \fBbase16 \fRColor scheme using base 16 colors (alias: \fB16\fR)254 \fBbw \fRNo colors (equivalent to \fB\-\-no\-color\fR)255256.B COLOR NAMES:257 \fBfg \fRText
1881 unmodified lines
modified:src/tui/tui.go+14 added-6 removed
301 unmodified lines
302 colBlue303 colMagenta304 colCyan305 colWhite306 colGrey307 colBrightRed308 colBrightGreen309 colBrightYellow310 colBrightBlue311 colBrightMagenta312 colBrightCyan313 colBrightWhite314)315316type FillReturn int317
612 unmodified lines
930 AltBg: ColorAttr{colUndefined, AttrUndefined},931 SelectedFg: ColorAttr{colUndefined, AttrUndefined},932 SelectedBg: ColorAttr{colUndefined, AttrUndefined},933 SelectedMatch: ColorAttr{colUndefined, AttrUndefined},926 DarkBg: ColorAttr{colBlack, AttrUndefined},934 DarkBg: ColorAttr{colGrey, AttrUndefined},935 Prompt: ColorAttr{colBlue, AttrUndefined},936 Match: ColorAttr{colGreen, AttrUndefined},929 Current: ColorAttr{colYellow, AttrUndefined},930 CurrentMatch: ColorAttr{colGreen, AttrUndefined},937 Current: ColorAttr{colBrightWhite, AttrUndefined},938 CurrentMatch: ColorAttr{colBrightGreen, AttrUndefined},939 Spinner: ColorAttr{colGreen, AttrUndefined},932 Info: ColorAttr{colWhite, AttrUndefined},940 Info: ColorAttr{colYellow, AttrUndefined},941 Cursor: ColorAttr{colRed, AttrUndefined},942 Marker: ColorAttr{colMagenta, AttrUndefined},943 Header: ColorAttr{colCyan, AttrUndefined},944 Footer: ColorAttr{colCyan, AttrUndefined},937 Border: ColorAttr{colBlack, AttrUndefined},938 BorderLabel: ColorAttr{colWhite, AttrUndefined},945 Border: ColorAttr{colDefault, Dim},946 BorderLabel: ColorAttr{colDefault, AttrUndefined},947 Ghost: ColorAttr{colUndefined, Dim},948 Disabled: ColorAttr{colUndefined, AttrUndefined},949 PreviewFg: ColorAttr{colUndefined, AttrUndefined},950 PreviewBg: ColorAttr{colUndefined, AttrUndefined},
268 unmodified lines
modified:src/options.go+2 added-2 removed
57 unmodified lines
58 --sync Synchronous search for multi-staged filtering5960 GLOBAL STYLE61 --style=PRESET Apply a style preset [default|minimal|full[:BORDER_STYLE]62 --color=COLSPEC Base scheme (dark|light|16|bw) and/or custom colors62 --color=COLSPEC Base scheme (dark|light|base16|bw) and/or custom colors63 --no-color Disable colors64 --no-bold Do not use bold text6566 DISPLAY MODE
1258 unmodified lines
1325 case "dark":1326 theme = dupeTheme(tui.Dark256)1327 case "light":1328 theme = dupeTheme(tui.Light256)1329 case "16":1329 case "base16", "16":1330 theme = dupeTheme(tui.Default16)1331 case "bw", "no":1332 theme = tui.NoColorTheme()1333 default:
2423 unmodified lines
modified:CHANGELOG.md+1 added
2 unmodified lines
340.66.05------6- Style changes7 - Updated `--color base16` (alias: `16`) theme so that it works better with both dark and light themes.8 - Narrowed the gutter column by using the left-half block character (`▌`).9 - Removed background colors from markers.10- Added `--gutter CHAR` option for customizing the gutter column. Some examples using [box-drawing characters](https://en.wikipedia.org/wiki/Box-drawing_characters):11 ```sh
2814 unmodified lines