Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User Julischeng's Avatar
    Join Date
    Apr 2008
    Posts
    53
    i make the color of my control consistently with the theme highlight color, does somebody know how to get it?

  2. #2
    Registered User sunil304047's Avatar
    Join Date
    Oct 2008
    Location
    India
    Posts
    219
    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 Julischeng's Avatar
    Join Date
    Apr 2008
    Posts
    53
    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 sunil304047's Avatar
    Join Date
    Oct 2008
    Location
    India
    Posts
    219
    code is same, adjust with your need.. u may give KAknsIIDQsnOtherColors, EAknsMinorQsnOtherColorsthe 3rd and 4th argument of that function

  5. #5
    Registered User Julischeng's Avatar
    Join Date
    Apr 2008
    Posts
    53
    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
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved