Community
Participate
Working Groups
Created attachment 277866 [details] Snippet to reproduce Please launch the attached snippet on Linux (I'm on CentOS 7.6, GTK 3.22.30, Adaita theme, SWT v4926r2). It will ignore the setForeground line and show black text on dark-gray background. But switching the order of the 2 setForeground/setBackground line makes it working.
I can reproduce the issue.
Looks like Text.getForeground() is returning an incorrect color, I'll invesitgate further.
New Gerrit change created: https://git.eclipse.org/r/138739
Gerrit change https://git.eclipse.org/r/138739 was merged to [master]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/?id=ecc666275b3b7b87d3be7da23a89327dd32efdc4
(In reply to Eclipse Genie from comment #4) > Gerrit change https://git.eclipse.org/r/138739 was merged to [master]. > Commit: > http://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/ > ?id=ecc666275b3b7b87d3be7da23a89327dd32efdc4 In master now.
(In reply to Eric Williams from comment #5) > (In reply to Eclipse Genie from comment #4) > > Gerrit change https://git.eclipse.org/r/138739 was merged to [master]. > > Commit: > > http://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/ > > ?id=ecc666275b3b7b87d3be7da23a89327dd32efdc4 > > In master now. Eric, this looks possible to become proper junit test. Would you please do so?
Thomas, you can do it too.
(In reply to Alexander Kurtakov from comment #6) > (In reply to Eric Williams from comment #5) > > (In reply to Eclipse Genie from comment #4) > > > Gerrit change https://git.eclipse.org/r/138739 was merged to [master]. > > > Commit: > > > http://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/ > > > ?id=ecc666275b3b7b87d3be7da23a89327dd32efdc4 > > > > In master now. > > Eric, this looks possible to become proper junit test. Would you please do > so? There is a JUnit test in the patch. :)
Ooops sorry, I saw the manual one and went to conclusion - a wrong one!
The new test fails on Mac at Line 1166. Opened Bug 546192 to track it.
Verified in I20190409-0600.