Please review a change to allow users to enable or disable underlining of links in the theme settings panel.
The current situation is that the dark theme [requires underlined links](https://bugs.openjdk.org/browse/JDK-8373679) in text in dark theme to satisfy WCAG 2 requirements while the light theme does not. However, experiments with a color blindness simulator show that links in the light theme [may actually be more challenging to recognize](https://cr.openjdk.org/~hannesw/8373679/color-sim/) for color blind people. The upcoming WCAG 3 standard will introduce an [improved color contrast model](https://www.accessibilitychecker.org/blog/apca-advanced-perceptual-contrast-algorithm/) which may change compliance requirements. With the possibility to adjust the appearance of links we offer the most flexibility for users and are prepared for future changes. Sample documentation with the new theme switcher [are available here](https://cr.openjdk.org/~hannesw/8376208/api.01/java.base/java/lang/package-summary.html). --------- - [x] I confirm that I make this contribution in accordance with the [OpenJDK Interim AI Policy](https://openjdk.org/legal/ai). ------------- Commit messages: - Postpone invocation of theme initializer - Fix system theme listener - Add test - Simplify script - Merge branch 'master' into JDK-8376208 - Clean up UI - 8376208: Provide browser setting for underlined links Changes: https://git.openjdk.org/jdk/pull/32859/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=32859&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8376208 Stats: 136 lines in 8 files changed: 101 ins; 15 del; 20 mod Patch: https://git.openjdk.org/jdk/pull/32859.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/32859/head:pull/32859 PR: https://git.openjdk.org/jdk/pull/32859
