RFR: 8355012: JavaFX modena.css -fx-highlight-text-fill bug

Ziad El Midaoui zelmidaoui at openjdk.org
Fri May 2 23:29:51 UTC 2025


On Thu, 1 May 2025 22:08:46 GMT, Ziad El Midaoui <zelmidaoui at openjdk.org> wrote:

> The issue was happening because `-fx-highlight-text-fill` was set to white , so when the background color is bright (>60% brightness ) the text is not visible , the solution is to change the value to be dynamically set depending on the level of brightness of the background this is done by `-fx-focused-text-base-color` .

I can put the test in the `StylesheetTest` class, which might be more appropriate for this case. what do you think ?

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

PR Comment: https://git.openjdk.org/jfx/pull/1801#issuecomment-2848271230


More information about the openjfx-dev mailing list