uifw/AvKon/src/aknchoicelist.cpp
branchRCL_3
changeset 38 c52421ed5f07
parent 23 3d340a0166ff
child 51 fcdfafb36fe7
equal deleted inserted replaced
29:a8834a2e9a96 38:c52421ed5f07
   117     {
   117     {
   118         TRgb color( KRgbBlack );  // sane default for nonskinned case
   118         TRgb color( KRgbBlack );  // sane default for nonskinned case
   119         if ( AknsUtils::AvkonSkinEnabled() )
   119         if ( AknsUtils::AvkonSkinEnabled() )
   120             {
   120             {
   121             AknsUtils::GetCachedColor( AknsUtils::SkinInstance(),
   121             AknsUtils::GetCachedColor( AknsUtils::SkinInstance(),
   122                                    color, KAknsIIDQsnTextColors, EAknsCIQsnTextColorsCG8 );
   122                                    color, KAknsIIDQsnTextColors, EAknsCIQsnTextColorsCG19 );
   123             }
   123             }
   124 
   124 
   125         ItemDrawer()->SetTextColor( color );
   125         ItemDrawer()->SetTextColor( color );
   126         ItemDrawer()->SetBackColor( AKN_LAF_COLOR( 0 ) );
   126         ItemDrawer()->SetBackColor( AKN_LAF_COLOR( 0 ) );
   127 
   127 
   128         if ( AknsUtils::AvkonSkinEnabled() )
   128         if ( AknsUtils::AvkonSkinEnabled() )
   129             {
   129             {
   130             AknsUtils::GetCachedColor( AknsUtils::SkinInstance(),
   130             AknsUtils::GetCachedColor( AknsUtils::SkinInstance(),
   131                                    color, KAknsIIDQsnTextColors, EAknsCIQsnTextColorsCG8 );
   131                                    color, KAknsIIDQsnTextColors, EAknsCIQsnTextColorsCG19 );
   132             }
   132             }
   133 
   133 
   134         ItemDrawer()->SetHighlightedTextColor( color );
   134         ItemDrawer()->SetHighlightedTextColor( color );
   135         ItemDrawer()->SetHighlightedBackColor( AKN_LAF_COLOR( 0 ) );    
   135         ItemDrawer()->SetHighlightedBackColor( AKN_LAF_COLOR( 0 ) );    
   136     }
   136     }
   796         if ( AknsUtils::AvkonSkinEnabled() )
   796         if ( AknsUtils::AvkonSkinEnabled() )
   797             {
   797             {
   798            TRgb textColor;
   798            TRgb textColor;
   799 
   799 
   800             if ( AknsUtils::GetCachedColor( AknsUtils::SkinInstance(), textColor, 
   800             if ( AknsUtils::GetCachedColor( AknsUtils::SkinInstance(), textColor, 
   801                 KAknsIIDQsnTextColors, EAknsCIQsnTextColorsCG8) == KErrNone )
   801                 KAknsIIDQsnTextColors, EAknsCIQsnTextColorsCG6) == KErrNone )
   802                 {
   802                 {
   803                 TRAP_IGNORE( AknLayoutUtils::OverrideControlColorL( 
   803                 TRAP_IGNORE( AknLayoutUtils::OverrideControlColorL( 
   804                     *iLabel, EColorLabelText, textColor) );
   804                     *iLabel, EColorLabelText, textColor) );
   805                 }
   805                 }
   806             }
   806             }
  1078         if ( AknsUtils::AvkonSkinEnabled() && iLabel )
  1078         if ( AknsUtils::AvkonSkinEnabled() && iLabel )
  1079             {
  1079             {
  1080            TRgb textColor;
  1080            TRgb textColor;
  1081 
  1081 
  1082             if ( AknsUtils::GetCachedColor( AknsUtils::SkinInstance(), textColor, 
  1082             if ( AknsUtils::GetCachedColor( AknsUtils::SkinInstance(), textColor, 
  1083                 KAknsIIDQsnTextColors, EAknsCIQsnTextColorsCG8) == KErrNone )
  1083                 KAknsIIDQsnTextColors, EAknsCIQsnTextColorsCG6) == KErrNone )
  1084                 {
  1084                 {
  1085                 TRAP_IGNORE( 
  1085                 TRAP_IGNORE( 
  1086                     AknLayoutUtils::OverrideControlColorL( 
  1086                     AknLayoutUtils::OverrideControlColorL( 
  1087                         *iLabel, EColorLabelText, textColor) );
  1087                         *iLabel, EColorLabelText, textColor) );
  1088                 }
  1088                 }
  1513         if ( AknsUtils::AvkonSkinEnabled() )
  1513         if ( AknsUtils::AvkonSkinEnabled() )
  1514             {
  1514             {
  1515            TRgb textColor;
  1515            TRgb textColor;
  1516 
  1516 
  1517             if ( AknsUtils::GetCachedColor( AknsUtils::SkinInstance(), textColor, 
  1517             if ( AknsUtils::GetCachedColor( AknsUtils::SkinInstance(), textColor, 
  1518                 KAknsIIDQsnTextColors, EAknsCIQsnTextColorsCG8) == KErrNone )
  1518                 KAknsIIDQsnTextColors, EAknsCIQsnTextColorsCG6) == KErrNone )
  1519                 {
  1519                 {
  1520                 TRAP_IGNORE( AknLayoutUtils::OverrideControlColorL( 
  1520                 TRAP_IGNORE( AknLayoutUtils::OverrideControlColorL( 
  1521                     *iLabel, EColorLabelText, textColor) );
  1521                     *iLabel, EColorLabelText, textColor) );
  1522                 }
  1522                 }
  1523             }
  1523             }