Community
Participate
Working Groups
Created attachment 285496 [details] When the Light Mode was changed to the Dark Mode Steps to reproduce: 1. Set Light Mode in macOS preferences 2. Run SWT app with widgets containing the text (I tested Label, Text and Button) 3. Set Dark Mode in macOS preferences Result: The text color has been changed. The background has not been changed for most of widgets. The text is unreadable. Expected: The text color has been changed. The background has been changed for all widgets. The text is readable. Alternate scenario (the results are a little bit different): 1. Set Dark Mode in macOS preferences 2. Run SWT app 3. Set Light Mode in macOS preferences Sample code: import org.eclipse.swt.SWT; import org.eclipse.swt.layout.FillLayout; import org.eclipse.swt.widgets.*; public class Main { public static void main(String[] args) { Display display = new Display(); Shell shell = new Shell(display); shell.setLayout(new FillLayout()); Label label = new Label(shell, SWT.NONE); label.setText("Sample label widget"); Button button = new Button(shell, SWT.PUSH); button.setText("Sample button widget"); Text text = new Text(shell, SWT.NONE); text.setText("Sample text widget"); shell.setSize(600, 480); shell.open(); while (!shell.isDisposed()) { if (!display.readAndDispatch()) { display.sleep(); } } display.dispose(); } }
Created attachment 285497 [details] When the Dark Mode was changed to the Light Mode
Dynamic switching of Light/Dark modes in SWT is not yet supported. *** This bug has been marked as a duplicate of bug 547316 ***