217 void CAknDiscreetPopupDrawer::Draw( CWindowGc& aGc, |
217 void CAknDiscreetPopupDrawer::Draw( CWindowGc& aGc, |
218 const TRect& aRect ) const |
218 const TRect& aRect ) const |
219 { |
219 { |
220 // draw background of the popup |
220 // draw background of the popup |
221 MAknsSkinInstance* skin = AknsUtils::SkinInstance(); |
221 MAknsSkinInstance* skin = AknsUtils::SkinInstance(); |
222 AknsDrawUtils::DrawFrame( skin, aGc, aRect, aRect, |
222 TAknLayoutRect innerLayout; |
|
223 // Use bg_popup_preview_window_pane_g1() for getting innerRect, |
|
224 // no need to create a new layout id for discreet popup. |
|
225 innerLayout.LayoutRect( aRect, |
|
226 AknLayoutScalable_Avkon::bg_popup_preview_window_pane_g1() ); |
|
227 TRect innerRect = innerLayout.Rect(); |
|
228 |
|
229 AknsDrawUtils::DrawFrame( skin, aGc, aRect, innerRect, |
223 KAknsIIDQsnFrPopupPreview, KAknsIIDDefault ); |
230 KAknsIIDQsnFrPopupPreview, KAknsIIDDefault ); |
224 |
231 |
225 // Draw the texts |
232 // Draw the texts |
226 TRgb textColor( EikonEnv()->ControlColor( EColorControlText, *iControl ) ); |
233 TRgb textColor( EikonEnv()->ControlColor( EColorControlText, *iControl ) ); |
227 |
234 |