textinput/peninputcommonctrls/src/peninputselectionlist/peninputcommonchoicelist.cpp
branchRCL_3
changeset 9 e6a39382bb9c
parent 3 f5a1e66df979
equal deleted inserted replaced
8:4eb1ae11334f 9:e6a39382bb9c
   190 	    CFbsBitGc* gc = static_cast<CFbsBitGc*>(BitGc());
   190 	    CFbsBitGc* gc = static_cast<CFbsBitGc*>(BitGc());
   191 	    
   191 	    
   192 	    gc->Activate( BitmapDevice() ); 
   192 	    gc->Activate( BitmapDevice() ); 
   193 	    gc->SetBrushColor( KRgbWhite );
   193 	    gc->SetBrushColor( KRgbWhite );
   194 	    gc->Clear( Rect() ); 
   194 	    gc->Clear( Rect() ); 
   195 		AknsDrawUtils::DrawFrame( AknsUtils::SkinInstance(), 
   195 		AknsDrawUtils::DrawFrame( UiLayout()->SkinInstance(), 
   196 	                     *gc, 
   196 	                     *gc, 
   197 	                     Rect(), 
   197 	                     Rect(), 
   198 	                     rtInnerRect,
   198 	                     rtInnerRect,
   199 	                     iBackgroundSkinID,
   199 	                     iBackgroundSkinID,
   200 	                     KAknsIIDDefault );       
   200 	                     KAknsIIDDefault );       
   215        	if( iItemSkinID.iMajor != EAknsMajorNone && 
   215        	if( iItemSkinID.iMajor != EAknsMajorNone && 
   216        	    iItemSkinID.iMinor != EAknsMinorNone)
   216        	    iItemSkinID.iMinor != EAknsMinorNone)
   217        		{
   217        		{
   218        		CFbsBitGc* gc = static_cast<CFbsBitGc*>(BitGc());
   218        		CFbsBitGc* gc = static_cast<CFbsBitGc*>(BitGc());
   219        		gc->Activate( BitmapDevice() ); 
   219        		gc->Activate( BitmapDevice() ); 
   220 			AknsDrawUtils::DrawFrame( AknsUtils::SkinInstance(), 
   220 			AknsDrawUtils::DrawFrame( UiLayout()->SkinInstance(), 
   221                          *gc, 
   221                          *gc, 
   222                          rtFocusRect, 
   222                          rtFocusRect, 
   223                          rtInnerRect,
   223                          rtInnerRect,
   224                          iItemSkinID,
   224                          iItemSkinID,
   225                          KAknsIIDDefault );       	
   225                          KAknsIIDDefault );       	
   234     TAknsQsnTextColorsIndex clrIndex;
   234     TAknsQsnTextColorsIndex clrIndex;
   235     clrIndex = aIsFocus ? EAknsCIQsnTextColorsCG10 : EAknsCIQsnTextColorsCG20;
   235     clrIndex = aIsFocus ? EAknsCIQsnTextColorsCG10 : EAknsCIQsnTextColorsCG20;
   236 
   236 
   237     if ( AknsUtils::AvkonSkinEnabled() )
   237     if ( AknsUtils::AvkonSkinEnabled() )
   238         {
   238         {
   239         AknsUtils::GetCachedColor( AknsUtils::SkinInstance(),
   239         AknsUtils::GetCachedColor( UiLayout()->SkinInstance(),
   240                                color, KAknsIIDQsnTextColors, clrIndex );
   240                                color, KAknsIIDQsnTextColors, clrIndex );
   241         }
   241         }
   242 
   242 
   243     textLayout.DrawText(*BitGc(), ItemByIndex(aIndex)->iText, ETrue, color);
   243     textLayout.DrawText(*BitGc(), ItemByIndex(aIndex)->iText, ETrue, color);
   244 	}
   244 	}