javauis/lcdui_akn/lcdui/src/CMIDControlItem.cpp
branchRCL_3
changeset 60 6c158198356e
parent 59 e5618cc85d74
equal deleted inserted replaced
59:e5618cc85d74 60:6c158198356e
   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)
       
   266     TInt labelColor = (iHighlighted
   264     TInt labelColor = (iHighlighted
   267                        && Type() != MMIDComponent::ECustomItem
   265                        && Type() != MMIDComponent::ECustomItem
   268                        && Type() != MMIDComponent::EImageItem)
   266                        && Type() != MMIDComponent::EImageItem)
   269                       ? KHighlightedItemTextColor : KNonHighlightedItemTextColor;
   267                       ? EAknsCIQsnTextColorsCG8 : EAknsCIQsnTextColorsCG6;
   270 
   268 
   271     // Get color from skin
   269     // Get color from skin
   272     if ((AknsUtils::GetCachedColor(AknsUtils::SkinInstance(), color,
   270     if ((AknsUtils::GetCachedColor(AknsUtils::SkinInstance(), color,
   273                                    KAknsIIDQsnTextColors, labelColor) == KErrNone) && iLabelControl)
   271                                    KAknsIIDQsnTextColors, labelColor) == KErrNone) && iLabelControl)
   274     {//data entry text color
   272     {//data entry text color