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

Fix: Column ruler behind current line highlight #343

Conversation

mgarstenauer
Copy link
Contributor

Problem:
The vertical column ruler is rendered behind the current line highlight.

Fix:
I suggest changing CurrentLineHighlightRenderer.Layer to KnownLayer.Background. This way, the vertical column ruler and other highlights (such as search result markers) can be rendered on top.

In TextView the ColumnRulerRenderer needs to be registered after the CurrentLineHighlightRenderer.

Also fixed a typo in the existing code.

@mgarstenauer mgarstenauer force-pushed the fix-columnruler-behind-currentlinehighlight branch from 9479472 to 3f42e80 Compare June 9, 2023 11:26
@mgarstenauer mgarstenauer force-pushed the fix-columnruler-behind-currentlinehighlight branch from 3f42e80 to f1c800c Compare June 9, 2023 11:28
Copy link
Collaborator

@danipen danipen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@danipen danipen enabled auto-merge July 9, 2023 10:18
@danipen danipen merged commit 5317b49 into AvaloniaUI:master Jul 9, 2023
@mgarstenauer mgarstenauer deleted the fix-columnruler-behind-currentlinehighlight branch July 9, 2023 10:27
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.

3 participants