equal
deleted
inserted
replaced
1170 { |
1170 { |
1171 if (aText.Length()) |
1171 if (aText.Length()) |
1172 { |
1172 { |
1173 // Get color from skin |
1173 // Get color from skin |
1174 TRgb rgb = AKN_LAF_COLOR(215); |
1174 TRgb rgb = AKN_LAF_COLOR(215); |
1175 TInt textColor = IsFocused() ? EAknsCIQsnTextColorsCG8 : EAknsCIQsnTextColorsCG6; |
1175 TInt textColor; |
|
1176 |
|
1177 // Set color for text according to item highlight |
|
1178 // (logical color constants are defined in lcdui.h) |
|
1179 if (iItem && iItem->IsHighlighted()) |
|
1180 { |
|
1181 textColor = KHighlightedItemTextColor; |
|
1182 } |
|
1183 else |
|
1184 { |
|
1185 textColor = KNonHighlightedItemTextColor; |
|
1186 } |
1176 |
1187 |
1177 AknsUtils::GetCachedColor(AknsUtils::SkinInstance(), |
1188 AknsUtils::GetCachedColor(AknsUtils::SkinInstance(), |
1178 rgb,KAknsIIDQsnTextColors, textColor); |
1189 rgb, KAknsIIDQsnTextColors, textColor); |
1179 iPopupTextLayout.DrawText(SystemGc(), aText, ETrue, rgb); |
1190 iPopupTextLayout.DrawText(SystemGc(), aText, ETrue, rgb); |
1180 } |
1191 } |
1181 } |
1192 } |
1182 |
1193 |
1183 |
1194 |