278 // --------------------------------------------------------------------------- |
278 // --------------------------------------------------------------------------- |
279 // |
279 // |
280 void CCCAppStatusControl::SetVariableLayouts( TInt aOption ) |
280 void CCCAppStatusControl::SetVariableLayouts( TInt aOption ) |
281 { |
281 { |
282 const TRect rect(Rect()); |
282 const TRect rect(Rect()); |
283 // set background graphics layout |
283 |
284 const TAknWindowComponentLayout innerLayout( |
284 // Set background and border graphics layout |
285 AknLayoutScalable_Apps::bg_button_pane_cp033( aOption ) ); |
285 // |
286 |
286 // Avkon LAF needs to be used because phob2_cc_button_pane does not have |
|
287 // definition for inner rect (to make border visible) and LAF change to |
|
288 // phob2_cc_button_pane was not accepted. If the border layout at some |
|
289 // point gets broken, then custom LAF for the border is needed. |
287 TAknLayoutRect innerLayoutRect; |
290 TAknLayoutRect innerLayoutRect; |
288 innerLayoutRect.LayoutRect( rect, innerLayout.LayoutLine() ); |
291 innerLayoutRect.LayoutRect( rect, |
289 const TRect innerRect( innerLayoutRect.Rect() ); |
292 AknLayoutScalable_Avkon::bg_button_pane_g1() ); |
290 iBgContext->SetFrameRects( rect, innerRect ); |
293 iBgContext->SetFrameRects( rect, innerLayoutRect.Rect() ); |
291 |
294 |
292 // status icon |
295 // status icon |
293 const TAknWindowComponentLayout statusIconLayout( |
296 const TAknWindowComponentLayout statusIconLayout( |
294 AknLayoutScalable_Apps::phob2_cc_button_pane_g1( aOption ) ); |
297 AknLayoutScalable_Apps::phob2_cc_button_pane_g1( aOption ) ); |
295 |
298 |