Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 553657

Summary: [GTK] Checkbox hard to see on active part
Product: [Eclipse Project] Platform Reporter: Lars Vogel <Lars.Vogel>
Component: SWTAssignee: Paul Pazderski <paul-eclipse>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: akurtakov, Lars.Vogel, paul-eclipse, sravankumarl
Version: 4.14   
Target Milestone: 4.15 M3   
Hardware: PC   
OS: Linux   
See Also: https://bugs.eclipse.org/bugs/show_bug.cgi?id=546552
https://git.eclipse.org/r/155614
https://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/?id=9ccf91807434740451f65dd6f4fe1ed15ecdcb72
Whiteboard:
Bug Depends on:    
Bug Blocks: 553537    
Attachments:
Description Flags
Screencast
none
Checkbox in composite with background inheritance before and after change. none

Description Lars Vogel CLA 2019-12-02 05:36:28 EST
Created attachment 280830 [details]
Screencast

See in the attached video. Tested with Ubuntu 19.10 and Eclipse SDK
Version: 2019-12 (4.14)
Build id: I20191127-1800
OS: Linux, v.5.3.0-23-generic, x86_64 / gtk 3.24.12
Java version: 12.0.1


To test: Install e4 spies and start model spy. Open a part and check the checkbox on it.
Comment 1 Alexander Kurtakov CLA 2020-01-10 09:36:26 EST
I see the issue on my machine too but in order to debug it I would need someone to provide a pure SWT snippet for debuggin purposes - there are just way too many layers there to lose time with this one. Especially considering checkboxes in all other places I've seen work just fine.
Comment 2 Paul Pazderski CLA 2020-01-10 11:17:03 EST
Created attachment 281446 [details]
Checkbox in composite with background inheritance before and after change.

I would guess writing a snippet is 90% of the fix and to prove myself I actually did it.

My result is that writing a snippet is even 120% of the work for me. I came faster to a possible fix than to the working snippet.

I attached the result before and after fix. Snippet is part my of proposed change.

I reported this issue a while back in another related bug (was not the same and is closed meanwhile) for Job Factory view and SWT Controls Example View. Both are fixed with this change.
The problem was that the checkbox inherited the light background from the parent composite.
Comment 3 Eclipse Genie CLA 2020-01-10 11:18:03 EST
New Gerrit change created: https://git.eclipse.org/r/155614
Comment 4 Alexander Kurtakov CLA 2020-01-10 11:22:17 EST
(In reply to Paul Pazderski from comment #2)
> Created attachment 281446 [details]
> Checkbox in composite with background inheritance before and after change.
> 
> I would guess writing a snippet is 90% of the fix and to prove myself I
> actually did it.
> 
> My result is that writing a snippet is even 120% of the work for me. I came
> faster to a possible fix than to the working snippet.

haha, I can imagine that. There is a reason why I hate all generated UIs going through tens of layeres :).

> 
> I attached the result before and after fix. Snippet is part my of proposed
> change.
> 
> I reported this issue a while back in another related bug (was not the same
> and is closed meanwhile) for Job Factory view and SWT Controls Example View.
> Both are fixed with this change.
> The problem was that the checkbox inherited the light background from the
> parent composite.

Thanks for working on it!
Comment 5 Paul Pazderski CLA 2020-01-10 11:26:42 EST
(In reply to Alexander Kurtakov from comment #4)
> (In reply to Paul Pazderski from comment #2)
> > Created attachment 281446 [details]
> > Checkbox in composite with background inheritance before and after change.
> > 
> > I would guess writing a snippet is 90% of the fix and to prove myself I
> > actually did it.
> > 
> > My result is that writing a snippet is even 120% of the work for me. I came
> > faster to a possible fix than to the working snippet.
> 
> There is a reason why I hate all generated UIs going through tens of layeres :).

Me too. Shortcuts/commands/handlers are my personal nightmare of too much layers. And of cause my comment was not meant mean (it is possible to read it this way). I had a hunch, tried it and was luckily right.
Comment 6 Lars Vogel CLA 2020-01-10 11:47:07 EST
Thanks Alex and Paul for looking into this issue.
Comment 8 Alexander Kurtakov CLA 2020-01-14 03:46:41 EST
Thanks Paul. Really appreciated !
Comment 9 Sravan Kumar Lakkimsetti CLA 2020-02-18 06:11:46 EST
verified in 
Eclipse SDK
Version: 2020-03 (4.15)
Build id: I20200217-1800
OS: Linux, v.4.12.14-lp151.28.36-default, x86_64 / gtk 3.22.30, WebKit 2.26.2
Java version: 1.8.0_232