phonebookui/Phonebook2/remotecontactlookup/engine/src/cpbkxrclbasedlg.cpp
branchRCL_3
changeset 23 5586b4d2ec3e
parent 0 e686773b3f54
child 64 c1e8ba0c2b16
--- a/phonebookui/Phonebook2/remotecontactlookup/engine/src/cpbkxrclbasedlg.cpp	Wed Mar 31 21:13:53 2010 +0300
+++ b/phonebookui/Phonebook2/remotecontactlookup/engine/src/cpbkxrclbasedlg.cpp	Wed Apr 14 15:45:35 2010 +0300
@@ -85,11 +85,6 @@
     if ( aType == KAknsMessageSkinChange ) 
         {
         UpdateGraphics();
-        UpdateColors();
-        }
-    else if ( aType == KEikMessageColorSchemeChange )
-        {
-        UpdateColors();
         }
     else if ( aType == KEikDynamicLayoutVariantSwitch )
         {
@@ -99,7 +94,6 @@
         if ( !iColumnListBox )
             {
             UpdateGraphics();
-            UpdateColors();
             }
         }
     }
@@ -241,96 +235,3 @@
 
     }
 
-// ---------------------------------------------------------------------------
-// CPbkxRclBaseDlg::UpdateColors
-// ---------------------------------------------------------------------------
-//
-void CPbkxRclBaseDlg::UpdateColors()
-    {
-	FUNC_LOG;
-    
-    MAknsSkinInstance* skin = AknsUtils::SkinInstance();
-    
-    CPbkxRclResultInfoItemDrawer* fItemDrawer = NULL;
-    CPbkxRclSearchResultItemDrawer* cItemDrawer = NULL;
-    
-    if ( iColumnListBox )
-        {
-        CEikColumnListBox* listBox = 
-            static_cast<CEikColumnListBox*>( ListBox() );
-        cItemDrawer = static_cast<CPbkxRclSearchResultItemDrawer*>( 
-            listBox->ItemDrawer() );
-        }
-    else
-        {
-        CEikFormattedCellListBox* listBox = 
-            static_cast<CEikFormattedCellListBox*>( ListBox() );
-        fItemDrawer = static_cast<CPbkxRclResultInfoItemDrawer*>(
-            listBox->ItemDrawer() );
-        }
-
-    TRgb newColor;
-
-    // highlight text color
-    TInt error = AknsUtils::GetCachedColor(
-        skin,
-        newColor,
-        iHighlightTextColorId,
-        EAknsCIFsHighlightColorsCG1 );
-
-
-    if ( error == KErrNone )
-        {
-        if ( iColumnListBox )
-            {
-            cItemDrawer->SetHighlightColor( newColor );
-            }
-        else
-            {
-            fItemDrawer->SetHighlightColor( newColor );
-            }
-        }
-    else
-        {
-        if ( iColumnListBox )
-            {
-            cItemDrawer->ResetColors( ETrue );
-            }
-        else
-            {
-            fItemDrawer->ResetColors( ETrue );
-            }
-        }
-    
-    // text color
-    error = AknsUtils::GetCachedColor(
-        skin,
-        newColor,
-        iTextColorId,
-        EAknsCIFsTextColorsCG7 );
-
-
-    if ( error == KErrNone )
-        {
-        if ( iColumnListBox )
-            {
-            cItemDrawer->SetColor( newColor );
-            }
-        else
-            {
-            fItemDrawer->SetColor( newColor );
-            }
-        }
-    else
-        {
-        if ( iColumnListBox )
-            {
-            cItemDrawer->ResetColors();
-            }
-        else
-            {
-            fItemDrawer->ResetColors();
-            }
-        }
-    }
-