You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pivot.apache.org by Sandro Martini <sa...@gmail.com> on 2009/10/06 15:38:52 UTC
Gradients, Transparent backgrounds, etc
Hi to all,
looking at some great GUI I was wondering if the same effect is
feasible with Pivot, this is a little description:
- a Gradient as Background of a Container ... simple, or maybe multi-stop
-- this could be the Background for the main window of the application
-- I've seen that this is missing in media.drawing, what do you think ?
- have a Container (for a Form, or other) transparent (in a % chosen
by me), with inside some elements (for example some labels)
What do you think ?
This is a little real sample:
http://images.apple.com/ipodnano/features/images/fitness_run_go200909.png
and the full page is here
http://www.apple.com/ipodnano/features/fitness.html
Thanks,
Sandro
Re: Gradients, Transparent backgrounds, etc
Posted by Sandro Martini <sa...@gmail.com>.
Ok, even better :-)
Bye,
Sandro
Re: Gradients, Transparent backgrounds, etc
Posted by Greg Brown <gk...@mac.com>.
>> -- I've seen that this is missing in media.drawing, what do you think ?
>I was asking if you think could be useful to implement there a
>Gradient class, and maybe a more generic MultiStepGradient ... i could
>try to see at it ... but for the 1.5.
The LinearGradient class included in Java 6 supports multi-step gradients. Pivot includes a JSON-based encoding for specifying this type of gradient in WTKX.
Re: Gradients, Transparent backgrounds, etc
Posted by Sandro Martini <sa...@gmail.com>.
Wow ... thanks for a so fast implementation !!
I'll try this feature in next weeks (no time before, sorry), and I'll
post for review ...
One quick note:
> -- I've seen that this is missing in media.drawing, what do you think ?
I was asking if you think could be useful to implement there a
Gradient class, and maybe a more generic MultiStepGradient ... i could
try to see at it ... but for the 1.5.
In next days if all goes right I should restart to see some my tickets
already scheduled for the 1.4 ...
Thanks again,
Sandro
Re: Gradients, Transparent backgrounds, etc
Posted by Greg Brown <gk...@mac.com>.
>looking at this
>http://images.apple.com/ipodnano/features/images/fitness_run_go200909.png
>you can see a background of the main window with a (little, vertical)
>gradient, and over a container (with some labels inside) that is only
>partially transparent so I'll have a merge between two backgrounds (my
>container, and the application container under) depending on the % of
>transparency chosen.
>
>Are we able to do something like this ?
OK, thanks for clarifying. Yes, you can do this with gradient paints, though (until a few minutes ago) it was not possible to declare a gradient paint in WTKX this way. I just checked in an update that allows you to define a gradient that includes a color with an alpha value.
Re: Gradients, Transparent backgrounds, etc
Posted by Sandro Martini <sa...@gmail.com>.
Hi Greg,
thanks for the info.
>>- have a Container (for a Form, or other) transparent (in a % chosen
>>by me), with inside some elements (for example some labels)
>
> I'm not sure what you mean by this.
I'll try to explain better:
looking at this
http://images.apple.com/ipodnano/features/images/fitness_run_go200909.png
you can see a background of the main window with a (little, vertical)
gradient, and over a container (with some labels inside) that is only
partially transparent so I'll have a merge between two backgrounds (my
container, and the application container under) depending on the % of
transparency chosen.
Are we able to do something like this ?
Tell me if it's not clear.
Bye,
Sandro
Re: Gradients, Transparent backgrounds, etc
Posted by Greg Brown <gk...@mac.com>.
>looking at some great GUI I was wondering if the same effect is
>feasible with Pivot, this is a little description:
>
>- a Gradient as Background of a Container ... simple, or maybe multi-stop
> -- this could be the Background for the main window of the application
ContainerSkin supports a "backgroundPaint" style that you can use for this purpose.
> -- I've seen that this is missing in media.drawing, what do you think ?
Drawing shapes support a "fill" property that is also a Paint.
>- have a Container (for a Form, or other) transparent (in a % chosen
>by me), with inside some elements (for example some labels)
I'm not sure what you mean by this.