Bug 567652 - [GTK] Pulldown menu of Combo used in a view became transparant
Summary: [GTK] Pulldown menu of Combo used in a view became transparant
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 4.17   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-10-06 17:18 EDT by Kris De Volder CLA
Modified: 2022-06-10 09:44 EDT (History)
6 users (show)

See Also:


Attachments
sample project (14.82 KB, application/zip)
2020-10-06 17:18 EDT, Kris De Volder CLA
no flags Details
screenshot (14.33 KB, image/png)
2020-10-06 17:20 EDT, Kris De Volder CLA
no flags Details
repro on Ubuntu (10.05 KB, image/png)
2021-06-01 09:10 EDT, Alexander Levsha CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kris De Volder CLA 2020-10-06 17:18:00 EDT
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).
Comment 1 Kris De Volder CLA 2020-10-06 17:20:57 EDT
Created attachment 284381 [details]
screenshot
Comment 2 Kris De Volder CLA 2020-10-06 17:23:50 EDT
Workaround we used in STS 4 in case it is interesting to anyone: https://github.com/spring-projects/sts4/commit/8b8155a99a81677870cced3bdb93c3acf39c4555
Comment 3 Andrey Loskutov CLA 2020-10-07 00:22:02 EDT
Please provide versions from both SWT / GTK used and check if the problem still appears with most recent SWT build.
Comment 4 Soraphol (Paul) Damrongpiriyapong CLA 2020-10-07 10:53:23 EDT
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
Comment 5 Alexander Levsha CLA 2021-06-01 09:08:56 EDT
Reproduced, except combo pulldown background is black.

Ubuntu 20.04.2
GTK 3.24.20
Eclipse 4.19
Java 15.0.2+7
Comment 6 Alexander Levsha CLA 2021-06-01 09:10:08 EDT
Created attachment 286494 [details]
repro on Ubuntu
Comment 7 Alexander Levsha CLA 2021-06-01 09:12:44 EDT
Also, this does not reproduce with Classic Eclpise theme, or theming disabled.
Comment 8 Alexander Kurtakov CLA 2021-10-13 07:40:56 EDT
so this is theming engine/theme bug in platform.ui rather than swt bug? Or you can reproduce in pure SWT snippet?
Comment 9 Stephan Wahlbrink CLA 2021-10-17 04:20:11 EDT
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.
Comment 10 Stephan Wahlbrink CLA 2021-10-26 07:22:04 EDT
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).
Comment 11 Matthias Mailänder CLA 2022-06-10 09:44:23 EDT
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.