Community
Participate
Working Groups
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; }
In a first iteration the following widgets should have an opacity property: * Shell * Menu, MenuItem * ToolTip * Composite * Label * CLabel * ToolBar, ToolItem * ProgressBar-Indicator
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.
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).
Applied patch with minor adjustments to CVS HEAD