Bug 285026 - [Widgets] Support per-pixel translucency on SWT shells
Summary: [Widgets] Support per-pixel translucency on SWT shells
Status: CLOSED DUPLICATE of bug 530152
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.5   Edit
Hardware: All All
: P3 enhancement with 3 votes (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2009-07-29 11:53 EDT by Kirill Grouchnikov CLA
Modified: 2019-03-20 14:28 EDT (History)
4 users (show)

See Also:


Attachments

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