Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 290242 - [Theming] Provide opacity for widgets
Summary: [Theming] Provide opacity for widgets
Status: RESOLVED FIXED
Alias: None
Product: RAP
Classification: RT
Component: RWT (show other bugs)
Version: 1.3   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: 1.3 M7   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 302711 302713 303603
Blocks:
  Show dependency tree
 
Reported: 2009-09-23 07:24 EDT by Benjamin Muskalla CLA
Modified: 2010-03-30 05:37 EDT (History)
1 user (show)

See Also:


Attachments
fix (67.81 KB, patch)
2010-02-25 05:14 EST, Tim Buschtoens CLA
ruediger.herrmann: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Benjamin Muskalla CLA 2009-09-23 07:24:34 EDT
In order to give theme designers even more flexibility, we should try to come up with a solution to set the opacity for widgets. This should be applicable per widget trough CSS styling and should align to the CSS3 draft.

Example:

Button {
  opacity: 0.2;
}
Comment 1 Rüdiger Herrmann CLA 2010-02-15 07:56:14 EST
In a first iteration the following widgets should have an opacity property:
* Shell
* Menu, MenuItem
* ToolTip
* Composite
* Label
* CLabel
* ToolBar, ToolItem
* ProgressBar-Indicator
Comment 2 Tim Buschtoens CLA 2010-02-24 12:06:42 EST
We could also support something like "background-opacity". There is no css-standard like that, but i mention it because a) in many cases this might be what you actually want: The background-color/image/gradient to be semi-transparent, but not the actual content. And b) it should not be to hard to implement for all widgets that already support gradients. SVG and VML both have a "fill-opacity" attribute, which is something like that. However, its not completely trouble-free: There would be glitches in IE using this with background-images (see Bug 303603), but the designer could simply use semi-transparent PNGs instead for that case. Also, this+rounded border+gradient could be problematic in IE. This leaves solid colors, so perhaps allow RGBA-values for "background-color" instead? (See "http://www.css3.info/preview/rgba/".) Anyway, just a thought.
Comment 3 Tim Buschtoens CLA 2010-02-25 05:14:20 EST
Created attachment 160170 [details]
fix

This enables opacity for the requested widgets. Bug 302713 and Bug 303603 are ignored for now, as they would be very expensive to fix (see comments there).
Comment 4 Rüdiger Herrmann CLA 2010-03-30 05:35:14 EDT
Applied patch with minor adjustments to CVS HEAD