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
Trusted Contributor
itcraps
Posts: 238
Registered: ‎12-26-2010
My Device: BlackBerry Z10
Accepted Solution

Changing Color of TitleBar

Hi, is there any way to change the TitleBar color via QML? I want to achive gradient color titlebar, pretty much like Twitter or Foursquare..

 

Thanks a bunchhhhhhhhhhhhhhhhhhhh

www.jackdevora.com
Please use plain text.
Developer
greenback
Posts: 528
Registered: ‎10-17-2010
My Device: BlackBerry Z10, DAC

Re: Changing Color of TitleBar

[ Edited ]

EIther FourSquare/Facebook is using a newer version of the SDK which enables visual control of the TitleBar Cascades component (since current implementation does not allow for customizations beyond properties specified in the docs) or, the most likely scenario, they are making their own custom "TitleBar" using a combination of the following components.

 

Container{}

ImageVIew{}

ImageButton{}

ImagePaint{}

Label{}



And let's say you have a custom spinner or animation you want to play when your user interacts in someway with your custom TitleBar. You would use animations[] handler attached to an ImageView{} component

RotateTransition{}
https://developer.blackberry.com/cascades/reference/bb__cascades__rotatetransition.html


That is how you basically would make the custom view. 
This would be a great post for The Cascades Blog™

:Rockon:

Please use plain text.
Developer
ekke
Posts: 1,520
Registered: ‎04-08-2010
My Device: Z10 (red Limited Edition), Q10, Z30
My Carrier: Telekom.de, O2, Vodafone

Re: Changing Color of TitleBar

there's already an Issue reported by me, please vote for BBTEN-207

-------------------------------------------------------------------------------
ekke (independent software architect, rosenheim, germany)

BlackBerry Elite Developer
International Development Mobile Apps BlackBerry 10 Cascades
Cascades - Workshops / Trainings / Bootcamps

Open Source Enthusiast
blog: http://ekkes-corner.org videos: http://www.youtube.com/user/ekkescorner
bb10-development: http://appbus.org Twitter: @ekkescorner
Please use plain text.
Trusted Contributor
itcraps
Posts: 238
Registered: ‎12-26-2010
My Device: BlackBerry Z10

Re: Changing Color of TitleBar

Cool. Thanks!!!!

www.jackdevora.com
Please use plain text.
New Developer
bunny1985
Posts: 14
Registered: ‎11-13-2012
My Device: Z10, q10

Re: Changing Color of TitleBar

i'm guesing that they are not uing cascades.

Changing titlebar is easy task in bbui and thats how its look like for me 

Please use plain text.