×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Apr 2008
    Posts
    53

    How to get the theme highlight color?

    i make the color of my control consistently with the theme highlight color, does somebody know how to get it?

  2. #2
    Registered User
    Join Date
    Oct 2008
    Location
    India
    Posts
    219

    Re: How to get the theme highlight color?

    u may check this:-

    TRgb textColor; // text color when not highlighted
    MAknsSkinInstance* skin = AknsUtils::SkinInstance();
    AknsUtils::GetCachedColor( skin, textColor, KAknsIIDQsnTextColors, EAknsCIQsnTextColorsCG9 );
    TRgb highlightColor; // text color when highlighted
    AknsUtils::GetCachedColor( skin, highlightColor, KAknsIIDQsnTextColors, EAknsCIQsnTextColorsCG11 );

  3. #3
    Registered User
    Join Date
    Apr 2008
    Posts
    53

    Re: How to get the theme highlight color?

    Thanks for reply, this is the text color.

    I just want to background color, like the background color of CBA

    Quote Originally Posted by sunil304047 View Post
    u may check this:-

    TRgb textColor; // text color when not highlighted
    MAknsSkinInstance* skin = AknsUtils::SkinInstance();
    AknsUtils::GetCachedColor( skin, textColor, KAknsIIDQsnTextColors, EAknsCIQsnTextColorsCG9 );
    TRgb highlightColor; // text color when highlighted
    AknsUtils::GetCachedColor( skin, highlightColor, KAknsIIDQsnTextColors, EAknsCIQsnTextColorsCG11 );

  4. #4
    Registered User
    Join Date
    Oct 2008
    Location
    India
    Posts
    219

    Re: How to get the theme highlight color?

    code is same, adjust with your need.. u may give KAknsIIDQsnOtherColors, EAknsMinorQsnOtherColorsthe 3rd and 4th argument of that function

  5. #5
    Registered User
    Join Date
    Apr 2008
    Posts
    53

    Re: How to get the theme highlight color?

    No extract item for CBA, maybe the method is not right

    Quote Originally Posted by sunil304047 View Post
    code is same, adjust with your need.. u may give KAknsIIDQsnOtherColors, EAknsMinorQsnOtherColorsthe 3rd and 4th argument of that function

Similar Threads

  1. How can I get the current font color of current theme ?
    By nadis in forum Symbian Media (Closed)
    Replies: 5
    Last Post: 2009-05-08, 23:36
  2. How to get the foreground color of the current theme ?
    By Derry_yu in forum Symbian User Interface
    Replies: 1
    Last Post: 2009-03-04, 02:36
  3. how to change the color of the Highlight item in the listbox
    By RaveendraB in forum Symbian User Interface
    Replies: 8
    Last Post: 2008-02-28, 17:49
  4. Replies: 0
    Last Post: 2005-10-31, 20:05
  5. Replies: 0
    Last Post: 2005-10-31, 20:04

Posting Permissions

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