equal
deleted
inserted
replaced
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 |