| Summary: | [Theming] Support horizontal gradients | ||
|---|---|---|---|
| Product: | [RT] RAP | Reporter: | Rüdiger Herrmann <ruediger.herrmann> |
| Component: | RWT | Assignee: | Project Inbox <rap-inbox> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | enhancement | ||
| Priority: | P3 | CC: | tbuschto |
| Version: | unspecified | ||
| Target Milestone: | 1.4 M3 | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
| Bug Depends on: | |||
| Bug Blocks: | 314763 | ||
We will need that for the new ScrollBar. It would also be great for vertical Sliders, were we should apply it to the thumb and buttons.
As its very easy to also enable diagonal gradients in the process, we should do that. Not because diagonal gradients are very useful (i don't think they are), but because we can then allow any combination of gradient-origin/destination using position-keywords (e.g. bottom right, left top). I think that would be less confusing to the user than some seemingly random restrictions like we have right now.
Btw, the definition given by Rüdiger above is not correct as the origing/destination has to be "x y, x y". It should be:
background-image: gradient(
linear, left top, right top,
from( red ),
to( white )
);
Fixed in CVS HEAD. Also updated tests and Slider to use the horizontal gradient if VERTICAL style is used. Thanks to Ivan for the server side implementation. Diagonal gradients are not supported due to time. |
It would be useful to have also horizontal gradients: background-image: gradient( linear, left, right from( red ), to( white ) );