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
willrobertson
Posts: 51
Registered: ‎06-13-2011
My Device: Bold 9900, PlayBook 64GB, Dev Alpha
Accepted Solution

Dark or Light theme? (Or both?)

In the first release of Cascades everything was in a Dark Theme. With this latest update most things have been changed to a Light Theme. Two questions on this:

 

- Will there only be a single theme for all Cascades apps (Dark is being phased out?) or will we be able to decide whether our app uses Dark or Light theme?

 

- If there will be both, how do we set which theme our app uses? Apologies if I overlooked this in the documentation.

 

I ask because the app I am creating has a main screen that is a black background, and I would like to pop a Sheet up for a small task, but the Light theme causing a crappy experience with popping a sheet over a black background. Thanks for your help!

Developer
Pumano-
Posts: 215
Registered: ‎11-05-2011
My Device: Z10

Re: Dark or Light theme? (Or both?)

I think two themes will be good!

BlackBerry Development Advisor (Retired)
amarcon
Posts: 155
Registered: ‎07-16-2012
My Device: Dev Alpha

Re: Dark or Light theme? (Or both?)

Developer
willrobertson
Posts: 51
Registered: ‎06-13-2011
My Device: Bold 9900, PlayBook 64GB, Dev Alpha

Re: Dark or Light theme? (Or both?)

Thanks for the link amarcon - my mistake for not finding that when I did a search on the topic.

 

Looks like the best bet for my app is to design it in Light Theme now, and wait for the ability to swith themes in a future Cascades update.

New Contributor
JackRostron
Posts: 3
Registered: ‎07-25-2012
My Device: Playbook 2.0 & Dev Alpha

Re: Dark or Light theme? (Or both?)

https://developer.blackberry.com/cascades/download/roadmap/

 

Roadmap of BB10 development, I think it is the fifth item says that they are bringing the dark theme back and you can specify the theme you would like to use in the bar-file. Hope that helps!

New Developer
demon_xxi
Posts: 22
Registered: ‎08-09-2009
My Device: Not Specified

Re: Dark or Light theme? (Or both?)

OK, so now we have Beta 3 with official support of Light and Dark theme. But so far I see no documentation or tutorial on how to use it. Application class does not have any setters for that.

 

In general I would expect some metadata in bar-descriptor.xml as IDE shold reflect theme design for app preview as well.

 

Any ideas?

Developer
RileyGB
Posts: 284
Registered: ‎08-06-2010
My Device: Z10

Re: Dark or Light theme? (Or both?)

I'm wondering about this as well


Follow me on twitter @RileyGB - https://twitter.com/RileyGB
View my BB10 OpenSource projects - https://github.com/RileyGB/BlackBerry10-Samples
Developer
d3v3l0p3r
Posts: 168
Registered: ‎07-19-2012
My Device: Q5, Q10, Z10, Z30, PlayBook

Re: Dark or Light theme? (Or both?)

I found it! ;-)  (in the weatherguesser sample which was updated to Beta 3 code - actually appears all samples were updated to beta 3 and there is some new ones now)

 

To change the theme add

 

<cascadesTheme>dark</cascadesTheme>

to the bar-descriptor.xml file in your project.

---
If you find my post helpful please "like" it and "accept as a solution"
Developer
d3v3l0p3r
Posts: 168
Registered: ‎07-19-2012
My Device: Q5, Q10, Z10, Z30, PlayBook

Re: Dark or Light theme? (Or both?)

Honestly personally I prefer the light theme, I guess it depends on the application.

---
If you find my post helpful please "like" it and "accept as a solution"
Developer
RileyGB
Posts: 284
Registered: ‎08-06-2010
My Device: Z10

Re: Dark or Light theme? (Or both?)

Thanks!

I wonder if there's any way to change to the dark theme in the QML preview.


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