Community
Participate
Working Groups
Created attachment 287214 [details] 3 screenshots combined Eclipse 4.21 Windows 10 Light Theme 1. Open Package Explorer and resize it as per image 1 in the attached screenshot 2. Note grey background of toolbar 3. Resize the Package Explorer as per image 2 in the attached screenshot 4. Note white background of toolbar 5. Resize the Package Explorer as per image 3 in the attached screenshot 6. Note white background of toolbar when it should be grey, as in stage (1)
Same behavior is seen on MAC. This looks like UI issue, moving to UI for further investigation.
There are multiple styling issues in the toolbar styling and these are super annoying. IIRC multiple people already tried to identify the root cause (including me) but were not successfully. Help wanted!
This case is a regression from Bug 575553. The optimization in Bug 575553 does not detect that the toolbar is unwrapped, and the background gradient should be re-applied. The problem can be re-produced using modified Snippet339, see below Note that the tab-color is a gradient (from the same color to the same color) in the Eclipse themes. public static void main(String[] args) { Display display = new Display(); Shell shell = new Shell(display); FillLayout fillLayout = new FillLayout (); fillLayout.marginWidth = 20; fillLayout.marginHeight = 20; shell.setLayout(fillLayout); CTabFolder folder = new CTabFolder(shell, SWT.BORDER); folder.setBackground(new Color[]{display.getSystemColor(SWT.COLOR_YELLOW), display.getSystemColor(SWT.COLOR_RED)}, new int[]{100}, true); for (int i = 0; i < 6; i++) { CTabItem item = new CTabItem(folder, SWT.CLOSE); item.setText("Item "+i); Text text = new Text(folder, SWT.MULTI); text.setText("Content for Item "+i +"\n\n\n\n"); item.setControl(text); } Label label = new Label(folder, SWT.NONE); label.setText("buutt"); folder.setTopRight(label, SWT.RIGHT | SWT.WRAP); shell.open(); while (!shell.isDisposed()) { if (!display.readAndDispatch()) display.sleep(); } }
New Gerrit change created: https://git.eclipse.org/r/c/platform/eclipse.platform.swt/+/189216
(In reply to Eclipse Genie from comment #4) > New Gerrit change created: > https://git.eclipse.org/r/c/platform/eclipse.platform.swt/+/189216 please test if that solves you problem
(In reply to Jörg Kubitz from comment #5) > (In reply to Eclipse Genie from comment #4) > > New Gerrit change created: > > https://git.eclipse.org/r/c/platform/eclipse.platform.swt/+/189216 > > please test if that solves you problem Yes, this fixes the issues described in the original report. Thanks!
Gerrit change https://git.eclipse.org/r/c/platform/eclipse.platform.swt/+/189216 was merged to [master]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/?id=5277dbf5870e328fc6450534d2d6a453636d20dd