calendarui/regionalplugins/Thai/src/CalenThaiPlugin.cpp
branchRCL_3
changeset 12 38571fd2a704
parent 0 f979ecb2b13e
child 65 12af337248b1
equal deleted inserted replaced
5:42814f902fe6 12:38571fd2a704
    23 #include <bautils.h>
    23 #include <bautils.h>
    24 #include <AknBidiTextUtils.h>
    24 #include <AknBidiTextUtils.h>
    25 #include <AknUtils.h>
    25 #include <AknUtils.h>
    26 #include <avkon.hrh>
    26 #include <avkon.hrh>
    27 
    27 
       
    28 #include <AknsSkinInstance.h>
       
    29 #include <AknsUtils.h>
       
    30 #include <gulcolor.h>
       
    31 
       
    32 
    28 #include "CalenThaiPlugin.h"
    33 #include "CalenThaiPlugin.h"
    29 
    34 
    30 
    35 
    31 // ============================ MEMBER FUNCTIONS ==============================
    36 // ============================ MEMBER FUNCTIONS ==============================
    32 
    37 
   128     const CFont*  labelFont = NULL;
   133     const CFont*  labelFont = NULL;
   129     labelFont = AknLayoutUtils::FontFromId(EAknLogicalFontPrimarySmallFont,NULL);
   134     labelFont = AknLayoutUtils::FontFromId(EAknLogicalFontPrimarySmallFont,NULL);
   130     aLabel.SetFont( labelFont );
   135     aLabel.SetFont( labelFont );
   131     aLabel.SetLabelAlignment(ELayoutAlignCenter);
   136     aLabel.SetLabelAlignment(ELayoutAlignCenter);
   132     aLabel.SetTextL( iThaiYearText );
   137     aLabel.SetTextL( iThaiYearText );
       
   138     MAknsSkinInstance* skin = AknsUtils::SkinInstance();
       
   139     TRgb color;
       
   140     TInt error = AknsUtils::GetCachedColor(skin, color,
       
   141             KAknsIIDQsnTextColors, EAknsCIQsnTextColorsCG6);
       
   142     if (error == KErrNone)
       
   143         {
       
   144         aLabel.OverrideColorL(EColorLabelText, color);
       
   145         }
   133     TRACE_EXIT_POINT;
   146     TRACE_EXIT_POINT;
   134     }
   147     }
   135 
   148 
   136 // ----------------------------------------------------------------------------
   149 // ----------------------------------------------------------------------------
   137 // CCalenThaiPlugin::UpdateCommonInfoL
   150 // CCalenThaiPlugin::UpdateCommonInfoL