Bug 553657 - [GTK] Checkbox hard to see on active part
Summary: [GTK] Checkbox hard to see on active part
Status: VERIFIED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 4.14   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 4.15 M3   Edit
Assignee: Paul Pazderski CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 553537
  Show dependency tree
 
Reported: 2019-12-02 05:36 EST by Lars Vogel CLA
Modified: 2020-02-18 06:11 EST (History)
4 users (show)

See Also:


Attachments
Screencast (422.23 KB, image/gif)
2019-12-02 05:36 EST, Lars Vogel CLA
no flags Details
Checkbox in composite with background inheritance before and after change. (27.80 KB, image/png)
2020-01-10 11:17 EST, Paul Pazderski CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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