[8u] RFR 8231438 [macos] The dark mode is not supported yet
Volker Simonis
volker.simonis at gmail.com
Wed Aug 25 14:28:55 UTC 2021
Hi Sergey,
the change looks good but the initial issue (i.e. JDK-8231438)
introduced a new property (i.e. "apple.awt.application.appearance")
and thus required a CSR
(https://bugs.openjdk.java.net/browse/JDK-8235363). For the downport
you need to create a CSR as well and get it approved before the change
can be pushed. As far as I can see this has already been downported to
Oracle 8u251 so maybe such a downport CSR already exists and just
couldn't find it?
Thank you and best regards,
Volker
On Tue, Aug 17, 2021 at 6:38 AM Sergey Bylokhov <bylokhov at amazon.com> wrote:
>
> Hello,
>
> Please review the backport of JDK-8231438 to 8u.
>
> JBS: https://bugs.openjdk.java.net/browse/JDK-8231438
> jdk8u patch: http://cr.openjdk.java.net/~serb/8231438/jdk8u-dev/webrev.00/
> jdk14 patch: http://hg.openjdk.java.net/jdk/jdk14/rev/dae610645225
> jdk14 review: https://mail.openjdk.java.net/pipermail/awt-dev/2019-September/015420.html
>
> If anybody started to use SDK 10.14+ to build JDK, this automatically opt-in support of dark mode:
> --------------
> "The system assumes that apps linked against the macOS 10.14 or later SDK support both light and
> dark appearances"
> https://developer.apple.com/documentation/appkit/nsappearancecustomization/choosing_a_specific_appearance_for_your_macos_app?language=objc
> --------------
>
> Unfortunately the dark mode still unsupported by the AWT/Swing, for a few reasons, example:
> https://bugs.openjdk.java.net/browse/JDK-8228555
> Until the bugs related to the dark mode are not fixed we should opt-out it.
>
> See the link above to review request for the jdk14 for an additional information.
>
> The patch does not apply clean, I had to ifdef it only for the sdk 10.14+, so the change will not
> break the build using old xcode(before sdk 10.9), note that I cannot test the old xcode myself, can
> somebody verify it?
>
> --
> Best regards, Sergey.
More information about the jdk8u-dev
mailing list