RFR: 8185447: The special high-contrast mode of JavaFX Controls in Japanese environment do not work. [v2]
Johan Vos
jvos at openjdk.java.net
Fri Jul 2 13:08:59 UTC 2021
On Fri, 2 Jul 2021 12:28:28 GMT, Jose Pereda <jpereda at openjdk.org> wrote:
>> This PR adds several resource bundles with High Contrast Scheme possible values for several locales.
>>
>> These values have been found by installing the required language packages on Windows 10 Pro 20H2 (build 19042.985), enabling Settings->High Contrast and finding the high contrast scheme values in the Windows registry (and translating to unicode when needed). Other locales could be generated as well, but so far the list is the same as the locales supported by Controls.
>>
>> With these bundles, and assuming the application uses a locale that matches the system settings language, the theme name provided natively (only on Windows so far) can be matched with the high contrast scheme, and the proper stylesheet can be applied.
>>
>> This PR has been tested on the same Windows machine, selecting each possible language and setting the locale for the app accordingly.
>
> Jose Pereda has updated the pull request incrementally with one additional commit since the last revision:
>
> Add javadoc as per reviewer request
The failure in checks is due to the missing libc version on Linux, which has been fixed after this PR has been created, so not worried about that.
-------------
Marked as reviewed by jvos (Reviewer).
PR: https://git.openjdk.java.net/jfx/pull/520
More information about the openjfx-dev
mailing list