emailuis/emailui/src/FreestyleEmailUiTextureManager.cpp
branchRCL_3
changeset 26 968773a0b6ef
parent 25 3533d4323edc
equal deleted inserted replaced
25:3533d4323edc 26:968773a0b6ef
     1 /*
     1 /*
     2 * Copyright (c) 2007 Nokia Corporation and/or its subsidiary(-ies).
     2 * Copyright (c) 2007 - 2010 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     4 * This component and the accompanying materials are made available
     5 * under the terms of "Eclipse Public License v1.0"
     5 * under the terms of "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
  1887 		    }
  1887 		    }
  1888 		    break;
  1888 		    break;
  1889         case EMarkingModeBackgroundIcon:
  1889         case EMarkingModeBackgroundIcon:
  1890             {
  1890             {
  1891             TRect mailListRect(iAppUi->LayoutHandler()->GetListRect());
  1891             TRect mailListRect(iAppUi->LayoutHandler()->GetListRect());
       
  1892             TRect appRect;
       
  1893             AknLayoutUtils::LayoutMetricsRect(AknLayoutUtils::EApplicationWindow, appRect);            
  1892             if ( mailListRect.Width() > mailListRect.Height() )
  1894             if ( mailListRect.Width() > mailListRect.Height() )
  1893                 {
  1895                 {
  1894                 iconSize.SetSize( mailListRect.Width(), mailListRect.Width() );            
  1896                 iconSize.SetSize( appRect.Width(), appRect.Width() );            
  1895                 }
  1897                 }
  1896             else
  1898             else
  1897                 {
  1899                 {
  1898                 iconSize.SetSize( mailListRect.Height(), mailListRect.Height() );            
  1900                 iconSize.SetSize( appRect.Height(), appRect.Height() );            
  1899                 }                
  1901                 }
  1900             AknIconUtils::CreateIconL( bitmap, mask, iconFileName,
  1902             AknIconUtils::CreateIconL( bitmap, mask, iconFileName,
  1901                                  EMbmFreestyleemailuiCmail_marking_mode_bg,
  1903                                  EMbmFreestyleemailuiCmail_marking_mode_bg,
  1902                                  EMbmFreestyleemailuiCmail_marking_mode_bg);
  1904                                  EMbmFreestyleemailuiCmail_marking_mode_bg);
  1903             }
  1905             }            
  1904             break;
  1906             break;
  1905 		case EGridAboutTexture:
  1907 		case EGridAboutTexture:
  1906 		default:
  1908 		default:
  1907 			// Branded mailbox icon
  1909 			// Branded mailbox icon
  1908 			if ( aId >= EBrandedIconStart && aId <= EBrandedIconEnd )
  1910 			if ( aId >= EBrandedIconStart && aId <= EBrandedIconEnd )