javauis/lcdui_akn/lcdui/src/CMIDChoiceGroupControl.cpp
branchRCL_3
changeset 19 71c436fe3ce0
parent 18 9ac0a0a7da70
child 23 e5618cc85d74
equal deleted inserted replaced
18:9ac0a0a7da70 19:71c436fe3ce0
  1168 /** Draws the selected item text in the popup control */
  1168 /** Draws the selected item text in the popup control */
  1169 void CMIDChoiceGroupControl::DrawText(const TDesC& aText) const
  1169 void CMIDChoiceGroupControl::DrawText(const TDesC& aText) const
  1170 {
  1170 {
  1171     if (aText.Length())
  1171     if (aText.Length())
  1172     {
  1172     {
       
  1173         // Get color from skin
  1173         TRgb rgb = AKN_LAF_COLOR(215);
  1174         TRgb rgb = AKN_LAF_COLOR(215);
       
  1175         TInt textColor = IsFocused() ? EAknsCIQsnTextColorsCG8 : EAknsCIQsnTextColorsCG6;
       
  1176 
  1174         AknsUtils::GetCachedColor(AknsUtils::SkinInstance(),
  1177         AknsUtils::GetCachedColor(AknsUtils::SkinInstance(),
  1175                                   rgb,KAknsIIDQsnTextColors, EAknsCIQsnTextColorsCG8);
  1178                                   rgb,KAknsIIDQsnTextColors, textColor);
  1176         iPopupTextLayout.DrawText(SystemGc(), aText, ETrue, rgb);
  1179         iPopupTextLayout.DrawText(SystemGc(), aText, ETrue, rgb);
  1177     }
  1180     }
  1178 }
  1181 }
  1179 
  1182 
  1180 
  1183