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
Highlighted
Developer
Posts: 53
Registered: ‎09-19-2012
My Device: 9700
My Carrier: China mobile

How to change font size/color of control component in UI?

How to change font size/color of control component in UI? Such as slider, check box.

 They don't have property that I can change directly? Do I have to customize each control?

Developer
Posts: 51
Registered: ‎11-23-2012
My Device: BB10 Dev Alpha
My Carrier: GiffGaff

Re: How to change font size/color of control component in UI?

Have you tried using a TextStyle?

https://developer.blackberry.com/cascades/reference/bb__cascades__textstyle.html

 

You should be able to set one for all of the text controls.

Developer
Posts: 53
Registered: ‎09-19-2012
My Device: 9700
My Carrier: China mobile

Re: How to change font size/color of control component in UI?

So, I have to use C++?

Is this TestStyle also available in QML?

Developer
Posts: 51
Registered: ‎11-23-2012
My Device: BB10 Dev Alpha
My Carrier: GiffGaff

Re: How to change font size/color of control component in UI?

Yes, was going to explain but someone just pointed me to this doc, which is much better:

https://developer.blackberry.com/cascades/documentation/ui/text/styles.html