[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openjdk-openjfx-dev
Subject:    RFR: 8185447: The special high-contrast mode of JavaFX Controls in Japanese environment do not work.
From:       Jose Pereda <jpereda () openjdk ! java ! net>
Date:       2021-05-26 20:50:50
Message-ID: 1olf0WwPCG_Oa4E6nVkGyNJuElqLdSC65mAt661TX_w=.a8a59aca-c092-47aa-9c4b-c448321e9aaf () github ! com
[Download RAW message or body]

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.

-------------

Commit messages:
 - Use resource bundles with High Contrast Scheme possible values to find correct \
stylesheet

Changes: https://git.openjdk.java.net/jfx/pull/520/files
 Webrev: https://webrevs.openjdk.java.net/?repo=jfx&pr=520&range=00
  Issue: https://bugs.openjdk.java.net/browse/JDK-8185447
  Stats: 99 lines in 16 files changed: 92 ins; 0 del; 7 mod
  Patch: https://git.openjdk.java.net/jfx/pull/520.diff
  Fetch: git fetch https://git.openjdk.java.net/jfx pull/520/head:pull/520

PR: https://git.openjdk.java.net/jfx/pull/520


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic