Integrated: 8357004: Windows platform color changes are not picked up in some cases
Michael Strauß
mstrauss at openjdk.org
Thu May 15 16:43:57 UTC 2025
On Wed, 14 May 2025 23:00:29 GMT, Michael Strauß <mstrauss at openjdk.org> wrote:
> The platform preferences API does not pick up the correct `UIColor` values when changing from a high-contrast Windows theme to another high-contrast theme.
>
> The reason is that the implementation incorrectly assumes that changing the high-contrast theme does not affect the `UIColor` values. The fix is simple: when we query the `SysColor` values, we also need to query the `UIColor` values.
>
> To reproduce: open platform preferences monitor in MonkeyTester (Tools -> Platform Preferences Monitor). Then switch between different high-contrast themes in Windows Settings and observe the `Windows.UIColor.*` values.
>
> This fix can only be tested manually, since it requires interacting with the Windows OS in non-automatable ways.
This pull request has now been integrated.
Changeset: 10141bb7
Author: Michael Strauß <mstrauss at openjdk.org>
URL: https://git.openjdk.org/jfx/commit/10141bb7fa99ec10e2b96e8748d73d15e6271ad5
Stats: 5 lines in 2 files changed: 4 ins; 0 del; 1 mod
8357004: Windows platform color changes are not picked up in some cases
Reviewed-by: lkostyra, mmack
-------------
PR: https://git.openjdk.org/jfx/pull/1806
More information about the openjfx-dev
mailing list