RFR: 8267546: Add CSS themes as a first-class concept

Michael Strauß mstrauss at openjdk.org
Wed Nov 9 22:30:45 UTC 2022


On Wed, 26 May 2021 17:40:19 GMT, Jose Pereda <jpereda at openjdk.org> wrote:

>> I don't know of such an API. Even when I change the locale of the current thread to English, the API returns the localized (non-English) name of the scheme.
>
> Yes, I know, I've got a possible fix for JDK-8185447 based precisely in using the localized high contrast scheme names (limited to the same languages supported in Controls).

Just for reference: I've proposed [this enhancement](https://bugs.openjdk.java.net/browse/JDK-8267554) to load dynamic stylesheets that could be injected with the actual scheme colors. If added, this might be a better fix than matching color scheme names.

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

PR: https://git.openjdk.org/jfx/pull/511


More information about the openjfx-dev mailing list