On Wed, 26 May 2021 17:07:39 GMT, Michael Strauß <mstra...@openjdk.org> wrote:
>> modules/javafx.graphics/src/main/native-glass/win/ThemeSupport.cpp line 44: >> >>> 42: } >>> 43: >>> 44: void ThemeSupport::queryHighContrastScheme(jobject properties) >> >> @mstr2 Do you think it is possible to use here >> `Windows.UI.ViewManagement.AccessibleSettings` instead, same as you do in >> `queryWindows10ThemeColors` with `Windows.UI.ViewManagement.UISettings`? >> >> I believe `Windows.UI.ViewManagement.AccessibleSettings.HighContrastScheme` >> contains a not localised string for the high contrast scheme, and that would >> allow solving https://bugs.openjdk.java.net/browse/JDK-8185447. > > I just checked on Windows 10 v20H2 (build 19042.985), and unfortunately the > `Windows.UI.ViewManagement.AccessibleSettings.HighContrastScheme` contains a > localized name for the high contrast scheme. Oh, too bad, but thanks for testing anyway. Do you know if there is such API that returns a non-localized string? I read it somewhere... ------------- PR: https://git.openjdk.org/jfx/pull/511