206 DrawOpaqueMaskBackground(); |
206 DrawOpaqueMaskBackground(); |
207 CFbsBitGc* gc = static_cast<CFbsBitGc*>(BitGc()); |
207 CFbsBitGc* gc = static_cast<CFbsBitGc*>(BitGc()); |
208 gc->Activate( BitmapDevice() ); |
208 gc->Activate( BitmapDevice() ); |
209 |
209 |
210 const TRect& r = Rect(); |
210 const TRect& r = Rect(); |
211 MAknsSkinInstance* skin = AknsUtils::SkinInstance(); |
211 MAknsSkinInstance* skin = UiLayout()->SkinInstance(); |
212 TRAP_IGNORE(CWindowGc& sysgc = *(RootControl()->GetRWindowGcL())); |
212 TRAP_IGNORE(CWindowGc& sysgc = *(RootControl()->GetRWindowGcL())); |
213 //if ( !AknsDrawUtils::Background( skin, iBgContext, sysgc, r ) ) |
213 //if ( !AknsDrawUtils::Background( skin, iBgContext, sysgc, r ) ) |
214 { |
214 { |
215 gc->Clear( Rect()); |
215 gc->Clear( Rect()); |
216 } |
216 } |
275 void CFepLayoutAknChoiceList::UpdateTextColors() |
275 void CFepLayoutAknChoiceList::UpdateTextColors() |
276 { |
276 { |
277 TRgb color( KRgbBlack ); // sane default for nonskinned case |
277 TRgb color( KRgbBlack ); // sane default for nonskinned case |
278 if ( AknsUtils::AvkonSkinEnabled() ) |
278 if ( AknsUtils::AvkonSkinEnabled() ) |
279 { |
279 { |
280 AknsUtils::GetCachedColor( AknsUtils::SkinInstance(), |
280 AknsUtils::GetCachedColor( UiLayout()->SkinInstance(), |
281 color, KAknsIIDQsnTextColors, EAknsCIQsnTextColorsCG8 ); |
281 color, KAknsIIDQsnTextColors, EAknsCIQsnTextColorsCG8 ); |
282 } |
282 } |
283 |
283 |
284 iListBox->ItemDrawer()->SetTextColor( color ); |
284 iListBox->ItemDrawer()->SetTextColor( color ); |
285 iListBox->ItemDrawer()->SetBackColor( AKN_LAF_COLOR( 0 ) ); |
285 iListBox->ItemDrawer()->SetBackColor( AKN_LAF_COLOR( 0 ) ); |
286 |
286 |
287 if ( AknsUtils::AvkonSkinEnabled() ) |
287 if ( AknsUtils::AvkonSkinEnabled() ) |
288 { |
288 { |
289 AknsUtils::GetCachedColor( AknsUtils::SkinInstance(), |
289 AknsUtils::GetCachedColor( UiLayout()->SkinInstance(), |
290 color, KAknsIIDQsnTextColors, EAknsCIQsnTextColorsCG8 ); |
290 color, KAknsIIDQsnTextColors, EAknsCIQsnTextColorsCG8 ); |
291 } |
291 } |
292 |
292 |
293 CFormattedCellListBoxData* d = iListBox->ItemDrawer()->FormattedCellData(); |
293 CFormattedCellListBoxData* d = iListBox->ItemDrawer()->FormattedCellData(); |
294 |
294 |