uifw/AvKon/src/AknAdaptiveSearchGrid.cpp
branchRCL_3
changeset 12 941195f2d488
parent 10 3d340a0166ff
child 18 fcdfafb36fe7
--- a/uifw/AvKon/src/AknAdaptiveSearchGrid.cpp	Tue May 11 16:27:42 2010 +0300
+++ b/uifw/AvKon/src/AknAdaptiveSearchGrid.cpp	Tue May 25 12:58:19 2010 +0300
@@ -534,9 +534,20 @@
          const TRect& aRect ) const 
     {
     MAknsSkinInstance* skin = AknsUtils::SkinInstance();
-    MAknsControlContext* cc = AknsDrawUtils::ControlContext( this ); 
-    aGc.SetBrushColor( KRgbWhite );
-    aGc.SetPenColor( KRgbBlack );
+
+    TRgb color;
+    TInt error = AknsUtils::GetCachedColor(skin, color, KAknsIIDFsTextColors, 
+        		   EAknsCIFsTextColorsCG3 );
+    if( error == KErrNone )
+        {
+        aGc.SetBrushColor( color );
+        aGc.SetPenColor( color );
+        }
+    else
+        {
+        aGc.SetBrushColor( KRgbWhite );
+        aGc.SetPenColor( KRgbBlack );
+        }
     aGc.SetBrushStyle( CGraphicsContext::ESolidBrush );
     aGc.DrawRect( aRect );   
     }