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
smartek
Posts: 281
Registered: ‎05-31-2012
My Device: Playbook
Accepted Solution

possible to set theme to Bright/Dark manually in qml?

is it possible to set the theme to Bright/Dark manually in qml?

Plase "+Like" my post if it was helpful.
Please use plain text.
Developer
peter9477
Posts: 6,473
Registered: ‎12-08-2010
My Device: PlayBook, Z10

Re: possible to set theme to Bright/Dark manually in qml?

I believe it's not currently possible, but note that they are considering ways to "theme" Cascades. The initial approach may be little more than some color customization, but I would sort of expect that once they have even that in place it will be possible to adjust it programmatically.

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!
Please use plain text.
Developer
Ebscer
Posts: 875
Registered: ‎08-31-2009
My Device: 9530, 9630, 9800, 8530, 9900, 9810, 9930, PlayBook, Dev Alpha

Re: possible to set theme to Bright/Dark manually in qml?

As far as I know this can only be set on an app-wide basis in the xml...


Read my thoughts on BlackBerry Development at news.ebscer.com
Please use plain text.
Developer
smartek
Posts: 281
Registered: ‎05-31-2012
My Device: Playbook

Re: possible to set theme to Bright/Dark manually in qml?


Ebscer wrote:

As far as I know this can only be set on an app-wide basis in the xml...


do you know how exactly?

Plase "+Like" my post if it was helpful.
Please use plain text.
Developer
peter9477
Posts: 6,473
Registered: ‎12-08-2010
My Device: PlayBook, Z10

Re: possible to set theme to Bright/Dark manually in qml?

I think he's just referring to doing this: http://supportforums.blackberry.com/t5/Cascades-Development/Are-the-components-appearance-customizab...

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!
Please use plain text.
Developer
peter9477
Posts: 6,473
Registered: ‎12-08-2010
My Device: PlayBook, Z10

Re: possible to set theme to Bright/Dark manually in qml?

I stumbled over a reference that confirms what I originally said, and gives us a place to "watch" for changes in the status of support for programmatic theme changes: https://developer.blackberry.com/cascades/reference/bb__cascades__themesupport.html

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!
Please use plain text.