javauis/lcdui_akn/lcdui/src/CMIDChoiceGroupControl.cpp
branchRCL_3
changeset 23 e5618cc85d74
parent 19 71c436fe3ce0
child 24 6c158198356e
equal deleted inserted replaced
21:4376525cdefb 23:e5618cc85d74
  1170 {
  1170 {
  1171     if (aText.Length())
  1171     if (aText.Length())
  1172     {
  1172     {
  1173         // Get color from skin
  1173         // Get color from skin
  1174         TRgb rgb = AKN_LAF_COLOR(215);
  1174         TRgb rgb = AKN_LAF_COLOR(215);
  1175         TInt textColor = IsFocused() ? EAknsCIQsnTextColorsCG8 : EAknsCIQsnTextColorsCG6;
  1175         TInt textColor;
       
  1176 
       
  1177         // Set color for text according to item highlight
       
  1178         // (logical color constants are defined in lcdui.h)
       
  1179         if (iItem && iItem->IsHighlighted())
       
  1180         {
       
  1181             textColor = KHighlightedItemTextColor;
       
  1182         }
       
  1183         else
       
  1184         {
       
  1185             textColor = KNonHighlightedItemTextColor;
       
  1186         }
  1176 
  1187 
  1177         AknsUtils::GetCachedColor(AknsUtils::SkinInstance(),
  1188         AknsUtils::GetCachedColor(AknsUtils::SkinInstance(),
  1178                                   rgb,KAknsIIDQsnTextColors, textColor);
  1189                                   rgb, KAknsIIDQsnTextColors, textColor);
  1179         iPopupTextLayout.DrawText(SystemGc(), aText, ETrue, rgb);
  1190         iPopupTextLayout.DrawText(SystemGc(), aText, ETrue, rgb);
  1180     }
  1191     }
  1181 }
  1192 }
  1182 
  1193 
  1183 
  1194