Bug 285026

Summary: [Widgets] Support per-pixel translucency on SWT shells
Product: [Eclipse Project] Platform Reporter: Kirill Grouchnikov <kirill.grouchnikov>
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: enhancement    
Priority: P3 CC: contact, ericwill, pamela_ltglobal, tom.schindl
Version: 3.5Keywords: triaged
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Kirill Grouchnikov CLA 2009-07-29 11:53:30 EDT
Build ID: I20090611-1540

Steps To Reproduce:
At the present moment SWT does not support per-pixel translucency on shells. There are two existing options:

1. Shell.setRegion that makes arbitrarily shaped windows, but each pixel is either full opaque or fully transparent
2. Shell.setAlpha that marks all the pixels of the window to have the same alpha

Ideally, it would be passed as a flag to the Shell constructor. Then, application code could add custom canvas to the shell, and have that canvas defined as NO_BACKGROUND. In the paint listener the canvas will use alpha < 255 and the end result will properly compose the translucent canvas / shell with the underlying desktop.



More information:
Comment 1 Eric Williams CLA 2017-07-28 10:10:22 EDT
This is interesting - having worked on transparency support in GTK (bug 477950) I'd be happy to review any patches for the GTK side of things.
Comment 2 Eric Williams CLA 2019-03-20 14:28:44 EDT
This should be handled in bug 530152.

*** This bug has been marked as a duplicate of bug 530152 ***