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
Contributor
Posts: 10
Registered: ‎04-01-2012
My Device: BlackBerry Z10 LE
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

Web / Mobile Developer, @BlackBerryEG co-manager, co-founder @eshtery, @TiCairo Manager, #Appcelerator Titan/TCAD/TCMD
Developer
Posts: 6,473
Registered: ‎12-08-2010
My Device: PlayBook, Z10
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 -- (BB10 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!
Highlighted
Developer
Posts: 285
Registered: ‎08-06-2010
My Device: Z10

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