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
Contributor
Posts: 19
Registered: ‎03-05-2013
My Device: 9700
My Carrier: BlackBerry
Accepted Solution

How to change default label text color

Hello Friend,

 

I have one issue , Z10 simulator has the default white background theme & Q10 has black background theme, If I set white background of page, & default label txt color is black on Z10 that is fine , but same page on Q10 simulator has issue that here default label text color is light (white gray), that is not visible.

 

Is there is a way to set default text color of all labels in a application.

 

Thanks in advance

 

Developer
Posts: 180
Registered: ‎12-09-2011
My Device: 9360, BB10
My Carrier: Aircel

Re: How to change default label text color

I think the best way is use the same theme in both the model Z10 and Q10 either bright theme or dark theme.

 

for this add

 

<env var="CASCADES_THEME" value="bright"/>        //// for bright theme

or

<env var="CASCADES_THEME" value="dark"/>         //// for dark theme

 

in your bar-descriptor file.

Contributor
Posts: 19
Registered: ‎03-05-2013
My Device: 9700
My Carrier: BlackBerry

Re: How to change default label text color

Thanks Hemant it works fine for me :smileyhappy: