diff -r b3431bff8c19 -r 5586b4d2ec3e phonebookui/Phonebook2/remotecontactlookup/engine/src/cpbkxrclbasedlg.cpp --- 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( ListBox() ); - cItemDrawer = static_cast( - listBox->ItemDrawer() ); - } - else - { - CEikFormattedCellListBox* listBox = - static_cast( ListBox() ); - fItemDrawer = static_cast( - 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(); - } - } - } -