phoneuis/easydialing/src/easydialinglistboxitemdrawer.cpp
branchRCL_3
changeset 5 2a26698d78ba
parent 3 8871b09be73b
child 6 38529f706030
equal deleted inserted replaced
4:24062c24fe38 5:2a26698d78ba
    24 #include "easydialinglistboxview.h"
    24 #include "easydialinglistboxview.h"
    25 
    25 
    26 #include <aknlistloadertfx.h>
    26 #include <aknlistloadertfx.h>
    27 #include <aknlistboxtfxinternal.h>
    27 #include <aknlistboxtfxinternal.h>
    28 #include <aknlistboxtfx.h>
    28 #include <aknlistboxtfx.h>
    29 
       
    30 #include <akntransitionutils.h>
    29 #include <akntransitionutils.h>
       
    30 #include <aknutils.h>
    31 
    31 
    32 // EXTERNAL DATA STRUCTURES
    32 // EXTERNAL DATA STRUCTURES
    33 
    33 
    34 // EXTERNAL FUNCTION PROTOTYPES  
    34 // EXTERNAL FUNCTION PROTOTYPES  
    35 
    35 
   153             &temp,
   153             &temp,
   154             aItemTextRect,
   154             aItemTextRect,
   155             aItemIsCurrent && highlightShown,
   155             aItemIsCurrent && highlightShown,
   156             colors );
   156             colors );
   157     
   157     
   158     //currently few themes doesnt support IsListSeperatorLines method therefore it is commented out
   158     if ( aItemTextRect.iBr.iY < iViewRect.iBr.iY && aItemIndex < iModel->NumberOfItems() - 1 )
   159     // for the time being in the below if loop
       
   160     
       
   161     if ( /*AknsDrawUtils::IsListSeperatorLines( AknsUtils::SkinInstance() ) &&*/ aItemTextRect.iTl.iY > iViewRect.iTl.iY )
       
   162         {
   159         {
   163         if ( transApi )
   160         if ( transApi )
   164             {
   161             {
   165             transApi->StartDrawing( MAknListBoxTfxInternal::EListItem );
   162             transApi->StartDrawing( MAknListBoxTfxInternal::EListItem );
   166             }
   163             }
   167 
   164         
   168         TRgb lineColor;
   165         AknListUtils::DrawSeparator( *iGc, aItemTextRect, iTextColor );
   169         TInt retVal = AknsUtils::GetCachedColor( AknsUtils::SkinInstance(), lineColor, KAknsIIDFsLineColors, 
   166 
   170                 EAknsCIFsLineColorsCG1);
       
   171         // we are fetching lineColor from the skin.Incase, if there isn't any lineColor then we are using
       
   172         //iMatchingBack as a backup line Color
       
   173         if( retVal == KErrNone)
       
   174             {
       
   175             iGc->SetPenColor(lineColor);
       
   176             }
       
   177         else
       
   178             {
       
   179             iGc->SetPenColor(iMatchingBack);
       
   180             }
       
   181         iGc->SetPenStyle(CGraphicsContext::ESolidPen);
       
   182         iGc->DrawLine( aItemTextRect.iTl, TPoint( aItemTextRect.iBr.iX, aItemTextRect.iTl.iY) );
       
   183         
       
   184         if ( transApi )
   167         if ( transApi )
   185             {
   168             {
   186             transApi->StopDrawing();
   169             transApi->StopDrawing();
   187             }
   170             }
   188         }
   171         }