Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 433276 - The Control.setBackground doesn't support gradients
Summary: The Control.setBackground doesn't support gradients
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 4.4   Edit
Hardware: PC Windows 7
: P2 enhancement (vote)
Target Milestone: 4.5 M6   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 260408 430872
  Show dependency tree
 
Reported: 2014-04-23 04:52 EDT by Daniel Rolka CLA
Modified: 2015-05-07 19:34 EDT (History)
6 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Rolka CLA 2014-04-23 04:52:22 EDT
Currently we are not able to set gradient as the background for the Controls. The gradients are supported by the CTabFolder class only.

Therefore we have to create complex workarounds in the code, i.e. support the gradients via images that is sometimes quite problematic.
Comment 1 Daniel Rolka CLA 2014-04-23 05:19:54 EDT
Another accepted fix for this bug is the support of the 'null' color values as the 'transparent' colors
Comment 2 Daniel Rolka CLA 2014-04-30 13:12:15 EDT
I set the 4.5 as a target for this bug in order to point that it is really important for the Platform UI component.

Having the patch for the issue in place we will be able to improve the performance of the rendering the UI items as well as to remove from the code several 'ugly' workarounds that we have now.

thanks a lot for your help,
Daniel
Comment 3 Daniel Rolka CLA 2014-05-21 08:01:59 EDT
(In reply to Daniel Rolka from comment #1)
> Another accepted fix for this bug is the support of the 'null' color values
> as the 'transparent' colors

I've opened the separate bug 435384 for the support of the transparent colors. It should be simpler to implement and it will allow us to replace our workarounds that we have to use now

Daniel
Comment 4 Niraj Modi CLA 2015-05-04 05:55:51 EDT
Resetting the target.. as this is an API change, if required we can consider this in 4.6
Comment 5 Leo Ufimtsev CLA 2015-05-04 10:34:44 EDT
I think gradients work quite well on Linux/Gtk3, but I don't know if they are supported on Win32/Cocoa.. I'd be great to hear feedback from Win32/Cocoa devs.
Comment 6 Lars Vogel CLA 2015-05-07 19:34:01 EDT
SWT has now transparent support, not sure which ugly hack Daniel is referring too. Unfortunately Daniel left the project so I mark this bug as fixed .