871 CWindowGc& gc = SystemGc(); |
871 CWindowGc& gc = SystemGc(); |
872 gc.SetClippingRect( aRect ); |
872 gc.SetClippingRect( aRect ); |
873 MAknsSkinInstance* skin = AknsUtils::SkinInstance(); |
873 MAknsSkinInstance* skin = AknsUtils::SkinInstance(); |
874 if ( iExtension->ExtensionFlags() & KAknTbExtensionDsaMode ) |
874 if ( iExtension->ExtensionFlags() & KAknTbExtensionDsaMode ) |
875 { |
875 { |
|
876 TSize cornerSize(20,20); |
876 gc.SetDrawMode( CGraphicsContext::EDrawModeWriteAlpha ); |
877 gc.SetDrawMode( CGraphicsContext::EDrawModeWriteAlpha ); |
877 gc.SetBrushColor( TRgb( KToolbarExtensionBgColor, KToolBarExtensionBgAlpha ) ); |
878 gc.SetBrushColor( TRgb( KToolbarExtensionBgColor, KToolBarExtensionBgAlpha ) ); |
878 gc.SetBrushStyle( CGraphicsContext::ESolidBrush ); |
879 gc.SetBrushStyle( CGraphicsContext::ESolidBrush ); |
879 gc.DrawRect( rect ); |
880 gc.DrawRoundRect( rect, cornerSize ); |
|
881 |
880 gc.SetDrawMode( CGraphicsContext::EDrawModePEN ); |
882 gc.SetDrawMode( CGraphicsContext::EDrawModePEN ); |
881 TSize penSize( 1, 1 ); |
883 TSize penSize( 1, 1 ); |
882 gc.SetPenSize( penSize ); |
884 gc.SetPenSize( penSize ); |
883 gc.SetPenStyle( CGraphicsContext::EDottedPen ); |
885 gc.SetPenStyle( CGraphicsContext::ESolidPen ); |
884 gc.SetPenColor( KRgbWhite ); |
886 gc.SetPenColor( KRgbDarkGray ); |
885 gc.SetBrushStyle( CGraphicsContext::ENullBrush ); |
887 gc.SetBrushStyle( CGraphicsContext::ENullBrush ); |
886 gc.DrawRect( rect ); |
888 gc.DrawRoundRect( rect, cornerSize ); |
887 } |
889 } |
888 else |
890 else |
889 { |
891 { |
890 AknsDrawUtils::Background( skin, iFrameContext, gc, rect ); |
892 AknsDrawUtils::Background( skin, iFrameContext, gc, rect ); |
891 } |
893 } |