420 AknsDrawUtils::Background( skin, cc, iParentControl, gc, Rect() ); |
420 AknsDrawUtils::Background( skin, cc, iParentControl, gc, Rect() ); |
421 } |
421 } |
422 else |
422 else |
423 { |
423 { |
424 gc.SetDrawMode( CGraphicsContext::EDrawModeWriteAlpha ); |
424 gc.SetDrawMode( CGraphicsContext::EDrawModeWriteAlpha ); |
|
425 gc.SetPenSize( TSize (1,1) ); |
|
426 gc.SetPenStyle( CGraphicsContext::ENullPen ); |
|
427 gc.SetPenColor( TRgb( 0x00ffffff, KToolBarExtensionBgAlpha ) ); |
425 gc.SetBrushColor( TRgb( KToolbarExtensionBgColor, KToolBarExtensionBgAlpha ) ); |
428 gc.SetBrushColor( TRgb( KToolbarExtensionBgColor, KToolBarExtensionBgAlpha ) ); |
426 gc.SetBrushStyle( CGraphicsContext::ESolidBrush ); |
429 gc.SetBrushStyle( CGraphicsContext::ESolidBrush ); |
427 gc.DrawRect( Rect() ); |
430 gc.DrawRect( Rect() ); |
428 // Reset the brush after use (otherwise anything drawn |
|
429 // after the viewfinder will also show viewfinder frames) |
|
430 gc.SetDrawMode( CGraphicsContext::EDrawModePEN ); |
|
431 TSize penSize( 1, 1 ); |
|
432 gc.SetPenSize( penSize ); |
|
433 gc.SetPenStyle( CGraphicsContext::EDottedPen ); |
|
434 gc.SetPenColor( KRgbWhite ); |
|
435 gc.SetBrushStyle( CGraphicsContext::ENullBrush ); |
|
436 gc.DrawRect( Rect() ); |
|
437 } |
431 } |
438 |
432 |
439 // STEP 1: Draw the legend text |
433 // STEP 1: Draw the legend text |
440 TInt count = iLegendArray.Count(); |
434 TInt count = iLegendArray.Count(); |
441 TInt i = 0; |
435 TInt i = 0; |