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

Bug 518555

Summary: Alpha on Shell and Composite
Product: [RT] RAP Reporter: John Gymer <jgymer>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: ivan
Version: 3.1   
Target Milestone: 3.5 M3   
Hardware: PC   
OS: Windows 7   
See Also: https://git.eclipse.org/r/122259
https://git.eclipse.org/c/rap/org.eclipse.rap.git/commit/?id=03e07741c3df72892016929417a8d6aa08d5a98a
Whiteboard:

Description John Gymer CLA 2017-06-21 05:16:43 EDT
Would it be possible to support Alpha for transparency on Shells, Composites and Scrolling/Scrolled Composites without cascading to children?
A specific use-case is where we have a Shell that we want partly transparent so we can see the items behind it, but the controls within that Shell need to be opaque. For example, a logon dialog box where we want to see a corporate image behind but the logon entry fields as opaque.

At present, if we set the Shell's alpha then all the controls within the Shell also become transparent to that level too.
Comment 1 Ivan Furnadjiev CLA 2017-06-26 03:57:12 EDT
Most of the controls including Composite supports "opacity" property set by the thememing. I'm not sure if this will solve your issue, but you could give it a try.
Comment 2 John Gymer CLA 2017-06-26 04:28:04 EDT
Thanks Ivan, but unfortunately this also causes opacity to be cascaded down to children.
What I'm looking for is the background of a Shell to be partly transparent, but the controls within it to be totally opaque.
Perhaps support for RGBa in Shells and Composites would resolve it?
Comment 3 Ivan Furnadjiev CLA 2017-06-26 04:54:19 EDT
(In reply to comment #2)
> Thanks Ivan, but unfortunately this also causes opacity to be cascaded down to
> children.
> What I'm looking for is the background of a Shell to be partly transparent, but
> the controls within it to be totally opaque.
> Perhaps support for RGBa in Shells and Composites would resolve it?

Probably... using RGBA as "background" instead of setting the "opacity"
Comment 4 Eclipse Genie CLA 2018-05-07 09:03:40 EDT
New Gerrit change created: https://git.eclipse.org/r/122259