uifw/AvKon/src/AknAdaptiveSearchGrid.cpp
branchRCL_3
changeset 25 941195f2d488
parent 23 3d340a0166ff
child 51 fcdfafb36fe7
equal deleted inserted replaced
23:3d340a0166ff 25:941195f2d488
   532 //    
   532 //    
   533 void CAknAdaptiveSearchGrid::Draw( CWindowGc& aGc, const CCoeControl& /*aControl*/, 
   533 void CAknAdaptiveSearchGrid::Draw( CWindowGc& aGc, const CCoeControl& /*aControl*/, 
   534          const TRect& aRect ) const 
   534          const TRect& aRect ) const 
   535     {
   535     {
   536     MAknsSkinInstance* skin = AknsUtils::SkinInstance();
   536     MAknsSkinInstance* skin = AknsUtils::SkinInstance();
   537     MAknsControlContext* cc = AknsDrawUtils::ControlContext( this ); 
   537 
   538     aGc.SetBrushColor( KRgbWhite );
   538     TRgb color;
   539     aGc.SetPenColor( KRgbBlack );
   539     TInt error = AknsUtils::GetCachedColor(skin, color, KAknsIIDFsTextColors, 
       
   540         		   EAknsCIFsTextColorsCG3 );
       
   541     if( error == KErrNone )
       
   542         {
       
   543         aGc.SetBrushColor( color );
       
   544         aGc.SetPenColor( color );
       
   545         }
       
   546     else
       
   547         {
       
   548         aGc.SetBrushColor( KRgbWhite );
       
   549         aGc.SetPenColor( KRgbBlack );
       
   550         }
   540     aGc.SetBrushStyle( CGraphicsContext::ESolidBrush );
   551     aGc.SetBrushStyle( CGraphicsContext::ESolidBrush );
   541     aGc.DrawRect( aRect );   
   552     aGc.DrawRect( aRect );   
   542     }
   553     }
   543 
   554 
   544 // -----------------------------------------------------------------------------
   555 // -----------------------------------------------------------------------------