mirror of
https://github.com/macvim-dev/macvim.git
synced 2026-02-05 11:33:15 +01:00
When using Vim colorscheme mode, fix the fill foreground colors (used for add tab and scroll buttons) to use the colorscheme's TabLineFill's guifg colors. Previously they were automatically calculated based on the other foreground colors which worked for automatic colors but not when we are using a colorscheme where it may not match. Just use the one specified in color scheme. Colorschemes like everforest and koehler should have visible buttons now. Also, fix the previous broken logic for parsing the colorscheme colors. It was not accounting for transparent colors where missing colors or cleared highlight groups should fall through to default bg/fg colors (e.g. delek and catppuccin do this for TabLineSel). It also wasn't respecting the `gui=reverse` flag (which means bg/fg colors should be flipped) that some colorschemes (e.g. Solarized) uses. Also, include a fix to builtin colorscheme 'retrobox' where the TabLineFill group isn't set correctly. This is fixed upstream but including it here to save some round trip time. See vim/colorschemes#273.