dotnet / wpf

WPF is a .NET Core UI framework for building Windows desktop applications.
MIT License
7.07k stars 1.16k forks source link

[508 Accessibility] Support changing the spelling wavy underline color to accommodate color vision impairment #4075

Open mtodkari opened 3 years ago

mtodkari commented 3 years ago

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: image

Expected behavior:

Minimal repro:

elyoh commented 3 years ago

Duplicate of #1519.