Thanks Jacob & Till for trying out Eclipse on macOS 10.14 beta.
Post by JacobI just give it a try with NSRequiresAquaSystemAppearance on Eclipse (the
Scala IDE) and it worked, it didnât crash for the few things I tried. Since
Eclipse uses quite a few custom controls, like the tab bar and toolbar very
few controls had the dark mode colors. I provided a screen shot in my other
email.
--
/Jacob Carlborg
Iâve tried some time ago with an earlier beta installed on an external hard drive.
As documented in
https://developer.apple.com/documentation/appkit/nsappearancecustomization/choosing_a_specific_appearance_for_your_app
you donât have to link against the 10.14 macOS SDK, but can also simply set
the NSRequiresAquaSystemAppearance property to false in the Info.plist
I did that and the window titles etc. were dark, but I got some crashes
in swt (I think NPEs) and the application was unusable.
I donât know if this was caused by bugs in that beta version or if the
behaviour of some APIs have changed in a documented way if this is set.
(I think when I tried, there was no API-update document available, maybe
it is by now - havenât checked since then)
Hi Jacob,
Thank you very much for the answer. So I understand that SWT (or any other
hard-linked application) can't support macOS 10.14 and macOS <10.14 at the
same time?
--
Best regards,
Thomas Singer
For native Cocoa applications they need to be linked against the 10.14 SDK
to enable dark mode. How that would work with Java and SWT I donât know,
perhaps link the native dynamic libraries with the new SDK. It is possible
to manually handle this if relinking with 10.14 SDK is not enough.
The reason for this is not default is to avoid breaking existing
applications. There are applications with hard coded colors which need to
be updated to look good with the dark mode. The SDK provides dynamic colors
which will change depending on the mode that is used. SWT might need to be
updated as well.
There are several good videos from this yearâs WWDC which covers dark mode
and how to enable that for applications.
https://developer.apple.com/videos/play/wwdc2018/210/
https://developer.apple.com/videos/play/wwdc2018/218/
â
/Jacob Carlborg
Hi all,
Does anybody already had a chance to try an SWT application on the macOS
Mojave preview, especially the dark mode? I've received screenshots from a
user of SmartGit and it shows light controls and even a light (system)
toolbar. Could it be that there are some changes required on the SWT/native
part to make use of the dark mode?
--
Best regards,
Thomas Singer
=============
syntevo GmbH
https://www.syntevo.com
https://www.syntevo.com/blog
_______________________________________________
platform-swt-dev mailing list
To change your delivery options, retrieve your password, or unsubscribe
from this list, visit
https://dev.eclipse.org/mailman/listinfo/platform-swt-dev
_______________________________________________
platform-swt-dev mailing list
To change your delivery options, retrieve your password, or unsubscribe
from this list, visit
https://dev.eclipse.org/mailman/listinfo/platform-swt-dev
_______________________________________________
platform-swt-dev mailing list
To change your delivery options, retrieve your password, or unsubscribe
from this list, visit
https://dev.eclipse.org/mailman/listinfo/platform-swt-dev
_______________________________________________
platform-swt-dev mailing list
To change your delivery options, retrieve your password, or unsubscribe
from this list, visit
https://dev.eclipse.org/mailman/listinfo/platform-swt-dev
_______________________________________________
platform-swt-dev mailing list
To change your delivery options, retrieve your password, or unsubscribe
from this list, visit
https://dev.eclipse.org/mailman/listinfo/platform-swt-dev