Open lxy-iUnknown opened 1 month ago
Theme variant in behaves abnormally on non-English Windows when high contrast themes are enabled
Background of this app should be white
11.1.0
Windows
Root cause: the name of Windows.UI.ViewManagement.AccessibilitySettings.HighContrastScheme is localized See: high contrast - UWP HighContrastScheme check in localized environment - Stack Overflow
https://github.com/AvaloniaUI/Avalonia/blob/b5fd40e5046805c1fa072ae702a2a5ef87c3ee64/src/Windows/Avalonia.Win32/Win32PlatformSettings.cs#L59-L61
When in high contrast mode, the actual theme variant should be determined by the RGB values of accent color
https://github.com/AvaloniaUI/Avalonia/blob/b5fd40e5046805c1fa072ae702a2a5ef87c3ee64/src/Windows/Avalonia.Win32/Win32PlatformSettings.cs#L72-L74
Describe the bug
Theme variant in behaves abnormally on non-English Windows when high contrast themes are enabled
To Reproduce
Expected behavior
Background of this app should be white
Avalonia version
11.1.0
OS
Windows
Additional context
Root cause: the name of Windows.UI.ViewManagement.AccessibilitySettings.HighContrastScheme is localized See: high contrast - UWP HighContrastScheme check in localized environment - Stack Overflow
When in high contrast mode, the actual theme variant should be determined by the RGB values of accent color