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. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Cascades Development

Reply
Contributor
xhotkey
Posts: 44
Registered: ‎09-19-2012
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?

Please use plain text.
Developer
markwilcox
Posts: 51
Registered: ‎11-23-2012
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.

Please use plain text.
Contributor
xhotkey
Posts: 44
Registered: ‎09-19-2012
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?

Please use plain text.
Developer
markwilcox
Posts: 51
Registered: ‎11-23-2012
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

 

Please use plain text.