Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attempting to fix rulers/cursor highlighting #5568

Closed
wants to merge 1 commit into from

Conversation

luetage
Copy link
Contributor

@luetage luetage commented Jan 18, 2023

The issue: In #2060 a rulers options was added. This allows for both setting a traditional colorcolumn (background color) or highlighting the foreground at the column instead (text color). The two themes I’m using as example are the default Helix theme (colors foreground at ruler) and catppuccin_mocha (colors background at ruler). In the current state both versions work well, with the caveat/bug that the cursor at the colorcolumn has no visible background when setting the background color of the ruler. Following screenshots compare the current state and this draft:

original fix
default-original default-fix
mocha-original mocha-fix

The default theme has a working ruler in the original, the fix breaks the ruler (characters at the column are no longer themed).
Catppuccin_mocha has a visible ruler in the original, but the cursor background is the background of the ruler and the character is unreadable. The fix themes the cursor again.

All I want to do is point out that the current implementation has problems for a majority of the themes, because most themes set the background color of the virtual ruler, not the foreground color. The only thing I did was switching it up and rendering rulers first. Apparently the text highlights are then able to overrule the ruler theming—which in turn breaks themes which set the foreground color of the ruler (a minority). I wonder whether there is a way to get both working properly.

@the-mikedavis
Copy link
Member

Duplicate of #3599

@the-mikedavis the-mikedavis marked this as a duplicate of #3599 Jan 18, 2023
@luetage
Copy link
Contributor Author

luetage commented Jan 18, 2023

Ahh, I’m sorry. I searched for the issue but apparently failed :/ Closing.

@luetage luetage closed this Jan 18, 2023
@luetage luetage deleted the rulers branch January 18, 2023 14:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants