qvacua / vimr

VimR — Neovim GUI for macOS in Swift
https://twitter.com/VimRefined
MIT License
6.61k stars 218 forks source link

Custom Tabs do not have enough contrast while using certain themes #1058

Open s-daveb opened 2 months ago

s-daveb commented 2 months ago

Hello!

Since making the switch to Neovim, I've been thoroughly enjoying VimR over MacVim!

One nagging issue I've had, however, is that the theme I enjoy (everforest) uses a very light color for visual select. Upon switching to VimR, I noticed the custom tabs were much lighter than the built-in neovim tabs.

Screenshot 2024-05-06 at 2 58 17 PM

After looking through issues I discovered that VimR is using selection text color to theme its tabs, rather than the colorscheme's TablineSel highlight group, which was what I expected as a long-time vimmer.

There's probably two ways to solve this:

As an experiment, and as someone who hasn't worked with a lot of Swift, I decided to try solution 2, not wanting to try to add code to predict good text contrast for every possible vim color scheme.

I will submit a PR in addition to this issue.