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
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
Developer
Posts: 570
Registered: ‎10-17-2010
My Device: (BlackBerry Z10)-> Q10/Passport Dual Use

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:

Developer
Posts: 1,626
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
BlackBerry Platinum Enterprise Partner
International Development Mobile Apps BlackBerry 10 Cascades
Cascades - Workshops / Trainings / Bootcamps

blog: http://ekkes-corner.org videos: http://www.youtube.com/user/ekkescorner http://vimeo.com/ekkescorner/videos
bb10-development: http://appbus.org Twitter: @ekkescorner
Trusted Contributor
Posts: 238
Registered: ‎12-26-2010
My Device: BlackBerry Z10

Re: Changing Color of TitleBar

Cool. Thanks!!!!

www.jackdevora.com
New Developer
Posts: 18
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