javauis/lcdui_akn/lcdui/src/CMIDChoiceGroupControl.cpp
branchRCL_3
changeset 23 e5618cc85d74
parent 19 71c436fe3ce0
child 24 6c158198356e
--- a/javauis/lcdui_akn/lcdui/src/CMIDChoiceGroupControl.cpp	Mon Jun 21 15:32:50 2010 +0300
+++ b/javauis/lcdui_akn/lcdui/src/CMIDChoiceGroupControl.cpp	Thu Jul 15 18:31:06 2010 +0300
@@ -1172,10 +1172,21 @@
     {
         // Get color from skin
         TRgb rgb = AKN_LAF_COLOR(215);
-        TInt textColor = IsFocused() ? EAknsCIQsnTextColorsCG8 : EAknsCIQsnTextColorsCG6;
+        TInt textColor;
+
+        // Set color for text according to item highlight
+        // (logical color constants are defined in lcdui.h)
+        if (iItem && iItem->IsHighlighted())
+        {
+            textColor = KHighlightedItemTextColor;
+        }
+        else
+        {
+            textColor = KNonHighlightedItemTextColor;
+        }
 
         AknsUtils::GetCachedColor(AknsUtils::SkinInstance(),
-                                  rgb,KAknsIIDQsnTextColors, textColor);
+                                  rgb, KAknsIIDQsnTextColors, textColor);
         iPopupTextLayout.DrawText(SystemGc(), aText, ETrue, rgb);
     }
 }