equal
deleted
inserted
replaced
247 } |
247 } |
248 |
248 |
249 void CMIDControlItem::SetLabelColor(CMIDItemLabel* aLabelControl) |
249 void CMIDControlItem::SetLabelColor(CMIDItemLabel* aLabelControl) |
250 { |
250 { |
251 TRgb color; |
251 TRgb color; |
252 |
252 |
|
253 TInt labelColor = (IsFocused() && |
|
254 Type() != MMIDComponent::ECustomItem && |
|
255 Type() != MMIDComponent::EImageItem) ? EAknsCIQsnTextColorsCG8 : EAknsCIQsnTextColorsCG6; |
|
256 |
|
257 // Get color from skin |
253 if ((AknsUtils::GetCachedColor(AknsUtils::SkinInstance(), color, |
258 if ((AknsUtils::GetCachedColor(AknsUtils::SkinInstance(), color, |
254 KAknsIIDQsnTextColors, EAknsCIQsnTextColorsCG8) == KErrNone) && iLabelControl) |
259 KAknsIIDQsnTextColors, labelColor) == KErrNone) && iLabelControl) |
255 {//data entry text color |
260 {//data entry text color |
256 TRAP_IGNORE(aLabelControl->SetColorL(color)); |
261 TRAP_IGNORE(aLabelControl->SetColorL(color)); |
257 } |
262 } |
258 } |
263 } |
259 |
264 |