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
Posts: 121
Registered: ‎02-08-2013
My Device: 9900
My Carrier: verizon
Accepted Solution

Maps application button style

Hi,

 

In the native maps app there are some normal cascades buttons but with a black shade rather than a grey shade - anyone know how I could do something similar?

Developer
Posts: 229
Registered: ‎01-12-2013
My Device: z30
My Carrier: Mobile Vikings

Re: Maps application button style

So you want to achieve the same style as that button?

 

I guess you can use an ImageButton for that and use nine-slicing.

https://developer.blackberry.com/cascades/documentation/ui/image_resources/nine_slicing.html

 

Don't know if it's possible to use a nine-sliced image with a ImageButton control, you should just try it.

 

Hopefully this posted helped you a little :smileywink:.

______________________________________________________
BB10-OAuth: GitHub
Developer
Posts: 121
Registered: ‎02-08-2013
My Device: 9900
My Carrier: verizon

Re: Maps application button style

so it's not possible to just specify black as color of button?

Developer
Posts: 229
Registered: ‎01-12-2013
My Device: z30
My Carrier: Mobile Vikings

Re: Maps application button style

I looked at the API (https://developer.blackberry.com/cascades/reference/bb__cascades__button.html) and it doesn't seem that it's possible. I don't actually know what kind of button you mean. Do you mean that the button instead of white is black? Because a black button indicates that it is the standard dark theme of cascades.

 

The Q10 for instance is by default set to the dark theme, the Z10 is by default set the light theme. So maybe have a look at that and maybe you can change the theme for your application.

______________________________________________________
BB10-OAuth: GitHub
Developer
Posts: 121
Registered: ‎02-08-2013
My Device: 9900
My Carrier: verizon

Re: Maps application button style

Thanks, that give me the kind of buttons I require but it changes the color of titlebar as well which i could put up with but when i show filepicker it has the blue titlebar which looks odd - anyway to override theme on titlebar?

Developer
Posts: 229
Registered: ‎01-12-2013
My Device: z30
My Carrier: Mobile Vikings

Re: Maps application button style

No not really. I did a quicksearch through the filepicker api (https://developer.blackberry.com/cascades/reference/bb__cascades__pickers__filepicker.html) but couldn't find anything to set that control to the dark theme. Maybe you can find it in the url provided...

______________________________________________________
BB10-OAuth: GitHub