Skip to content

Conversation

mgarstenauer
Copy link
Contributor

This PR changes the text selection brush for the AvaloniaEdit TextEditor.

Problem

The text selection brush is the SystemAccentColor, which is a solid blue on Windows 11 by default. This can reduce the readability of the text when syntax highlighting is enabled.

Solution

I suggest to use a semi-transparent brush to improve the readability.

Before

image
image

After

image
image

@mgarstenauer
Copy link
Contributor Author

The current opacity for the selection brush is 50%. We could reduce the opacity even more.

@love-linger love-linger self-assigned this Dec 18, 2024
@love-linger love-linger added the enhancement New feature or request label Dec 18, 2024
@love-linger love-linger merged commit 39dff8a into sourcegit-scm:develop Dec 18, 2024
13 checks passed
@mgarstenauer mgarstenauer deleted the change-text-selection-brush branch December 18, 2024 08:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants