Community
Participate
Working Groups
Created attachment 284380 [details] sample project This bug, I assume that's what it is, thought I'm not 100% sure. SWT widgets are bit hard to grok sometimes so it could be I'm somehow using them incorrectly. However, since Eclipse 4.17, a combo widget that is displayed inside one of our views became suddenly tranparant. This makes it hard to read (the text is there, but with other text underneath the text runs together and makes ugly and hard to read. I'll attach: - a screenshot of the problem so you can see what I mean - a sample Eclipse plugin that reproduces this issue To reproduce simple import that attached project as a 'existing project'. Then run it in a Eclipse runtime workbench and then open the 'Sample View'. When you click on the Combo you will see a pulldown menu that is transparant. This bug apparantly only affects Linux. My coleagues have tested this on Mac and Windows and reported no such problem. This also was not a problem on Eclipse 4.16 on Linux. As a workaround, I have explicitly added a call to 'setBackground' for the combo. But some care has to be taken with this workaround as it seems to cause other issues for Combo's that have editable text (text selection color gets messed up making the text in selected text invisible).
Created attachment 284381 [details] screenshot
Workaround we used in STS 4 in case it is interesting to anyone: https://github.com/spring-projects/sts4/commit/8b8155a99a81677870cced3bdb93c3acf39c4555
Please provide versions from both SWT / GTK used and check if the problem still appears with most recent SWT build.
I have tested it this on the latest I-build and can reproduce it. I haven't be been able to track down the change that caused this to happen though. I looked through my GTK4 port changes involving the Combo but didn't really see anything that would affect GTK3 implementations. Eclipse SDK Version: 2020-12 (4.18) Build id: I20201007-0600 OS: Linux, v.5.7.9-200.fc32.x86_64, x86_64 / gtk 3.24.20 Java version: 11.0.7
Reproduced, except combo pulldown background is black. Ubuntu 20.04.2 GTK 3.24.20 Eclipse 4.19 Java 15.0.2+7
Created attachment 286494 [details] repro on Ubuntu
Also, this does not reproduce with Classic Eclpise theme, or theming disabled.
so this is theming engine/theme bug in platform.ui rather than swt bug? Or you can reproduce in pure SWT snippet?
I have the issue (unreadable combo) in the Eclipse IDE on Ubuntu, but I can not reproduce it in a simple SWT application. So it seems to be a theming bug.
The bug (black background) still occurs with the new integration build for 2021-12 M2 Eclipse Platform Version: 2021-12 (4.22) Build id: I20211023-1800 OS: Linux, v.5.11.0-38-generic, x86_64 / gtk 3.24.20 Java vendor: Private Build Java runtime version: 17+35-Ubuntu-120.04 Java version: 17 and with default theme of the Eclipse IDE (Light).
Also happens on https://github.com/eclipse/chemclipse based on Eclipse 2022-03 using the default Ubuntu Yaru theme on both 20.04 and 22.04 for some dropdowns. This is not noticeable with the KDE Breeze theme.