ContainerSkin and BorderSkin have backgroundPaint properties, but
LabelSkin only has a background color property.
A BXML example would look like this:
<BoxPane styles="{backgroundPaint:{paintType:'gradient',
color:'#ff0000',
startX:0, startY:0, startColor:'#ffffff',
endX:400, endY:400, endColor:'#000000'}}"
xmlns:bxml="http://pivot.apache.org/bxml"
xmlns="org.apache.pivot.wtk"/>
It should be straightforward to convert LabelSkin from having a
backgroundColor property to having a backgroundPaint property.
Feel like doing the work?
On Sat, May 12, 2012 at 10:08 AM, Piotr Kołaczkowski <[email protected]> wrote:
> Hi,
>
> I know ComponentSkin supports setting backgroundPaint of a component.
> But I can't find in the docs an example, how to actually set it.
> I'd like to set a gradient background of a component, e.g. a Border,
> Label or TextPane.
> What is the easiest way to achieve this?
>
> Thanks,
> Piotr