|
1 /* |
|
2 * Copyright (c) Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: This file implements class CFsTextViewerSkinData. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #include "emailtrace.h" |
|
20 #include <AknsUtils.h> |
|
21 |
|
22 #include "fstextviewerskindata.h" |
|
23 |
|
24 // --------------------------------------------------------------------------- |
|
25 // NewL |
|
26 // --------------------------------------------------------------------------- |
|
27 CFsTextViewerSkinData* CFsTextViewerSkinData::NewL() |
|
28 { |
|
29 FUNC_LOG; |
|
30 CFsTextViewerSkinData* self = new ( ELeave ) CFsTextViewerSkinData(); |
|
31 CleanupStack::PushL( self ); |
|
32 self->ConstructL(); |
|
33 CleanupStack::Pop( self ); |
|
34 return self; |
|
35 } |
|
36 |
|
37 // --------------------------------------------------------------------------- |
|
38 // ~CFsTextViewerSkinData |
|
39 // --------------------------------------------------------------------------- |
|
40 CFsTextViewerSkinData::~CFsTextViewerSkinData() |
|
41 { |
|
42 FUNC_LOG; |
|
43 } |
|
44 |
|
45 // --------------------------------------------------------------------------- |
|
46 // CFsTextViewerSkinData |
|
47 // --------------------------------------------------------------------------- |
|
48 CFsTextViewerSkinData::CFsTextViewerSkinData() |
|
49 { |
|
50 FUNC_LOG; |
|
51 } |
|
52 |
|
53 // --------------------------------------------------------------------------- |
|
54 // ConstructL |
|
55 // --------------------------------------------------------------------------- |
|
56 void CFsTextViewerSkinData::ConstructL() |
|
57 { |
|
58 FUNC_LOG; |
|
59 MAknsSkinInstance* skin = AknsUtils::SkinInstance(); |
|
60 |
|
61 AknsUtils::GetCachedColor( skin, |
|
62 iCursorColor, |
|
63 KAknsIIDQsnHighlightColors, |
|
64 EAknsCIQsnHighlightColorsCG2 ); |
|
65 |
|
66 AknsUtils::GetCachedColor( skin, |
|
67 iMarkedTextColor, |
|
68 KAknsIIDQsnHighlightColors, |
|
69 EAknsCIQsnHighlightColorsCG2 ); |
|
70 |
|
71 AknsUtils::GetCachedColor( skin, |
|
72 iHotspotSelectedColor, |
|
73 KAknsIIDQsnHighlightColors, |
|
74 //EAknsCIFsTextColorsCG9 |
|
75 EAknsCIQsnTextColorsCG9 ); |
|
76 |
|
77 AknsUtils::GetCachedColor( skin, |
|
78 iHotspotDimmedColor, |
|
79 KAknsIIDQsnHighlightColors, |
|
80 //EAknsCIFsHighlightColorsCG3 |
|
81 EAknsCIQsnHighlightColorsCG3 ); |
|
82 } |
|
83 |