[508 Accessibility] Support changing the spelling wavy underline color to accommodate color vision impairment
- Dominant language
- C#
- Stars
- 7.7k
- Forks
- 1.3k
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 61
Description
* .NET Core Version: (e.g. 3.0 Preview1, or daily build number, use `dotnet --info`)
* Windows version: (`winver`) Windows 10
* Does the bug reproduce also in WPF for .NET Framework 4.8?: Yes
* Is this bug related specifically to tooling in Visual Studio (e.g. XAML Designer, Code editing, etc...)? No
* Security issues and bugs should be reported privately, learn more via our [responsible disclosure guidelines](https://github.com/dotnet/wpf/blob/master/README.md#reporting-security-issues-and-security-bugs).
**Problem description:**
The current red underline color for misspelled words is not easily visible for some types of color blindness, so we need to support a way of changing the color. This can be especially bad in dark theme.
MS Office supports customization through a regkey (SpellingWavyUnderlineColor): https://support.microsoft.com/en-us/help/925597/how-to-customize-the-color-of-the-spelling-and-grammar-checker-underli
But it doesn't get respected by WPF.
Looking at the WPF source it looks like this is hard-coded to red:
https://github.com/dotnet/wpf/blob/d49f8ddb889b5717437d03caa04d7c56819c16aa/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/SpellerHighlightLayer.cs#L153
**Actual behavior:**

**Expected behavior:**
**Minimal repro:**
Contributor guide
Assessment
This issue has not been assessed yet.