JDK-8231438 : [macOS] Dark mode for the desktop is not supported
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 8,11,13,14
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: os_x
  • CPU: generic
  • Submitted: 2019-09-25
  • Updated: 2024-02-14
  • Resolved: 2019-12-09
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 11 JDK 13 JDK 14 JDK 8 Other
11.0.8-oracleFixed 13.0.4Fixed 14 b27Fixed 8u251Fixed openjdk8u322Fixed
Related Reports
CSR :  
Duplicate :  
Relates :  
Relates :  
Relates :  
Relates :  
Description
We have a number of bugs reported against dark mode on macOS, which cannot be fixed in the OpenJDK but requires a fix in the JavaRuntimeSupport framework (JRS) supported by macOS.

FB6798883: The JavaRuntimeSupport.framework does not work properly in the dark mode 
was reported to Apple on Aug 6 2019

See JDK-8231386 and JDK-8228555 for examples of bugs caused by the macOS bug.

Until these bugs are fixed dark mode should be considered as unsupported.

Comments
Fix Request (8u). Review approval: https://mail.openjdk.java.net/pipermail/jdk8u-dev/2021-August/014258.html Needed for parity with Oracle 8u.
08-09-2021

Fix Request (8u) If jdk8u will starts using macOS SDK 10.14, then it automatically opts-in to support of dark mode, but the Swing Aqua L&F does not work properly if dark mode is enabled on the macOS desktop. It will cause various regressions due to mix of both modes light/dark. Until the bugs related to the dark mode are not fixed we should opt-out it. Code review: https://mail.openjdk.java.net/pipermail/jdk8u-dev/2021-August/014193.html
26-08-2021

Fix request (13u) Requesting backport to 13u for parity with 11u, applies cleanly.
27-05-2020

jdk11 backport request I would like to have the patch in open jdk11 as well, to have parity to Oracle JDK 11.0.8. The patch applies cleanly as long as the test from https://bugs.openjdk.java.net/browse/JDK-8211301 is downported.
09-04-2020

URL: https://hg.openjdk.java.net/jdk/jdk/rev/dae610645225 User: psadhukhan Date: 2019-12-11 06:34:35 +0000
11-12-2019

URL: https://hg.openjdk.java.net/jdk/client/rev/dae610645225 User: serb Date: 2019-12-09 05:00:51 +0000
09-12-2019