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. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Cascades Development

Reply
New Contributor
hazemkhaled
Posts: 9
Registered: ‎04-01-2012
My Carrier: Mobinil

How can we change cascadesTheme from code

we can add this line into bar-descriptor.xml

<cascadesTheme>bright</cascadesTheme>

 or

<cascadesTheme>dark</cascadesTheme>

 

i need to allow user change this theme from application, so how can we change it from the code?

 

thanks

BBDev Cairo co-manager
Please use plain text.
Developer
peter9477
Posts: 5,631
Registered: ‎12-08-2010
My Carrier: none

Re: How can we change cascadesTheme from code

I don't believe there's any API to let us do this yet. Some time well after launch, most likely.

Peter Hansen -- (PlayBook and dev-related blog posts at http://peterhansen.ca.)
Author of White Noise and Battery Guru for BB10 and for PlayBook | Get more from your battery!
Please use plain text.
Developer
RileyGB
Posts: 256
Registered: ‎08-06-2010

Re: How can we change cascadesTheme from code

Take a look @ https://developer.blackberry.com/cascades/reference/bb__cascades__themesupport.html



Follow me on twitter @RileyGB - https://twitter.com/RileyGB
View my BB10 OpenSource projects - https://github.com/RileyGB/BlackBerry10-Samples
Please use plain text.