Community
Participate
Working Groups
Please run the attached snippet. It set's the shell colors to gray/yellow and all other controls inherit that. But the Label shows the wrong (initial) colors.
Created attachment 287767 [details] Snippet to reproduce
Created attachment 287768 [details] Screenshot on Windows 10 The logged order of the SWT.Skin events is class org.eclipse.swt.widgets.Shell class org.eclipse.swt.widgets.Composite class org.eclipse.swt.widgets.Label class org.eclipse.swt.widgets.Composite The events are sent simply in the order in which the widgets were created. Invoking newParent.reskin(SWT.ALL); after setting the new parent does not change it.
New Gerrit change created: https://git.eclipse.org/r/c/platform/eclipse.platform.swt/+/189232
I'm not sure whether display.asyncExec(() -> newParent.reskin(SWT.ALL)); is the right choice to fix it, or the sent patch (it's only for Windows and meant for discussing base).