×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Aug 2005
    Posts
    35

    set label color according to the theme

    Hi,

    I have a couple of questions:

    1) How can I set the color of the label text according to selected theme? The label color is always black, even though I change the phone theme.

    2) I am using CEikSecretEditor in my app, and its working fine with control border visible. But when I make my application skin aware, the editor border is not showing up even though I set the border using:
    iEditor->SetBorder(TGulBorder::ESingleBlack);

    any help would be greatly appreciated.


    Thanks

  2. #2
    Super Contributor
    Join Date
    Nov 2004
    Location
    Wiltshire, UK
    Posts
    3,644

    Re: set label color according to the theme

    Use AknsUtils::GetCachedColor, search google for examples on how to use it

    e.g.
    http://www.forum.nokia.com/document/...kins_API4.html

  3. #3
    Registered User
    Join Date
    Aug 2005
    Posts
    35

    Re: set label color according to the theme

    Thanks Paul, It works fine!

    For those of you who are stuck with the same problem, here is the solution..

    MAknsSkinInstance* skin = AknsUtils::SkinInstance();
    TRgb color;
    AknsUtils::GetCachedColor(skin,color,KAknsIIDQsnTextColors,EAknsCIQsnTextColorsCG6 );
    iLabel->OverrideColorL( EColorLabelText, color );


    can anyone help me with the border setting?


    Thanks

Similar Threads

  1. Download Series 40 Theme Studio Themes to Phone
    By dclary in forum General Development Questions
    Replies: 30
    Last Post: 2011-02-19, 16:26
  2. N70 Theme Creation - Certificates???
    By EdenN70 in forum Streaming and Video
    Replies: 3
    Last Post: 2007-04-24, 11:46
  3. Series 60 Theme Studio - unable to create a New Theme
    By yukimi in forum Symbian Tools & SDKs
    Replies: 6
    Last Post: 2007-03-19, 18:47
  4. Theme Template for Nokia E61?
    By czoth in forum Streaming and Video
    Replies: 22
    Last Post: 2007-03-01, 13:22
  5. Theme Studio 3.0 themes for 3rd edition
    By captain phuture in forum Streaming and Video
    Replies: 0
    Last Post: 2006-05-22, 11:54

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×