javauis/lcdui_akn/lcdui/src/CMIDControlItem.cpp
branchRCL_3
changeset 77 7cee158cb8cd
parent 66 2455ef1f5bbc
equal deleted inserted replaced
71:d5e927d5853b 77:7cee158cb8cd
   259 
   259 
   260 void CMIDControlItem::SetLabelColor(CMIDItemLabel* aLabelControl)
   260 void CMIDControlItem::SetLabelColor(CMIDItemLabel* aLabelControl)
   261 {
   261 {
   262     TRgb color;
   262     TRgb color;
   263 
   263 
       
   264     // Set color for label text according to item highlight
       
   265     // (logical color constants are defined in lcdui.h)
   264     TInt labelColor = (iHighlighted
   266     TInt labelColor = (iHighlighted
   265                        && Type() != MMIDComponent::ECustomItem
   267                        && Type() != MMIDComponent::ECustomItem
   266                        && Type() != MMIDComponent::EImageItem)
   268                        && Type() != MMIDComponent::EImageItem)
   267                       ? EAknsCIQsnTextColorsCG8 : EAknsCIQsnTextColorsCG6;
   269                       ? KHighlightedItemTextColor : KNonHighlightedItemTextColor;
   268 
   270 
   269     // Get color from skin
   271     // Get color from skin
   270     if ((AknsUtils::GetCachedColor(AknsUtils::SkinInstance(), color,
   272     if ((AknsUtils::GetCachedColor(AknsUtils::SkinInstance(), color,
   271                                    KAknsIIDQsnTextColors, labelColor) == KErrNone) && iLabelControl)
   273                                    KAknsIIDQsnTextColors, labelColor) == KErrNone) && iLabelControl)
   272     {//data entry text color
   274     {//data entry text color