Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Developer
Posts: 181
Registered: ‎07-19-2012
My Device: Q5, Q10, Z10, Z30, PlayBook
My Carrier: Carrier

Spicing things up

How in Cascades (QML) I could do the following:

 

1) Fill a container with a gradient color, make it semi-transparent

2) Add a drop shadow around this container.

 

The container contains bunch of labels, buttons and input boxes.

 

Coming from AIR SDK -- in AIR this is all built-in, just apply right filters and set the properties.

 

Not sure how to do this in QML

---
If you find my post helpful please "like" it and "accept as a solution"
Developer
Posts: 80
Registered: ‎09-03-2012
My Device: 9810
My Carrier: Vodafone

Re: Spicing things up

You can try them as following :

 

1. While filling container with a color use Color.create(r, g, b, a) , alter value of alpha component

 

2. Make your container to be child of another container(parent) of the same dimensions as your container. Just set padding in layout properties of your container. Use any color in the background of the parent container.

 

Hope it helps.

Always Success
Retired
Posts: 138
Registered: ‎05-11-2012
My Device: Developer
My Carrier: Developer

Re: Spicing things up