OLD | NEW |
1 // Copyright 2014 PDFium Authors. All rights reserved. | 1 // Copyright 2014 PDFium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
6 | 6 |
7 #ifndef XFA_FWL_THEME_CFWL_UTILS_H_ | 7 #ifndef XFA_FWL_THEME_CFWL_UTILS_H_ |
8 #define XFA_FWL_THEME_CFWL_UTILS_H_ | 8 #define XFA_FWL_THEME_CFWL_UTILS_H_ |
9 | 9 |
10 #include "core/fxcrt/fx_system.h" | 10 #include "core/fxcrt/fx_system.h" |
11 | 11 |
12 enum FWLTHEME_EDGE { | 12 enum FWLTHEME_EDGE { |
13 FWLTHEME_EDGE_Flat = 0, | 13 FWLTHEME_EDGE_Flat = 0, |
14 FWLTHEME_EDGE_Raised, | 14 FWLTHEME_EDGE_Raised, |
15 FWLTHEME_EDGE_Sunken | 15 FWLTHEME_EDGE_Sunken |
16 }; | 16 }; |
17 | 17 |
18 enum FWLTHEME_STATE { | 18 enum FWLTHEME_STATE { |
19 FWLTHEME_STATE_Normal = 1, | 19 FWLTHEME_STATE_Normal = 1, |
20 FWLTHEME_STATE_Hover, | 20 FWLTHEME_STATE_Hover, |
21 FWLTHEME_STATE_Pressed, | 21 FWLTHEME_STATE_Pressed, |
22 FWLTHEME_STATE_Disabale | 22 FWLTHEME_STATE_Disable |
23 }; | 23 }; |
24 | 24 |
25 enum FWLTHEME_DIRECTION { | 25 enum FWLTHEME_DIRECTION { |
26 FWLTHEME_DIRECTION_Up = 0, | 26 FWLTHEME_DIRECTION_Up = 0, |
27 FWLTHEME_DIRECTION_Down, | 27 FWLTHEME_DIRECTION_Down, |
28 FWLTHEME_DIRECTION_Left, | 28 FWLTHEME_DIRECTION_Left, |
29 FWLTHEME_DIRECTION_Right | 29 FWLTHEME_DIRECTION_Right |
30 }; | 30 }; |
31 | 31 |
32 #define FWLTHEME_COLOR_EDGERB1 (ArgbEncode(255, 241, 239, 226)) | 32 #define FWLTHEME_COLOR_EDGERB1 (ArgbEncode(255, 241, 239, 226)) |
33 #define FWLTHEME_COLOR_Background (ArgbEncode(255, 236, 233, 216)) | 33 #define FWLTHEME_COLOR_Background (ArgbEncode(255, 236, 233, 216)) |
34 #define FWLTHEME_COLOR_BKSelected (ArgbEncode(255, 153, 193, 218)) | 34 #define FWLTHEME_COLOR_BKSelected (ArgbEncode(255, 153, 193, 218)) |
35 #define FWLTHEME_COLOR_Green_BKSelected (ArgbEncode(255, 147, 160, 112)) | 35 #define FWLTHEME_COLOR_Green_BKSelected (ArgbEncode(255, 147, 160, 112)) |
36 | 36 |
37 #define FWLTHEME_CAPACITY_FontSize 12.0f | 37 #define FWLTHEME_CAPACITY_FontSize 12.0f |
38 #define FWLTHEME_CAPACITY_TextColor (ArgbEncode(255, 0, 0, 0)) | 38 #define FWLTHEME_CAPACITY_TextColor (ArgbEncode(255, 0, 0, 0)) |
39 #define FWLTHEME_CAPACITY_TextDisColor (ArgbEncode(255, 172, 168, 153)) | 39 #define FWLTHEME_CAPACITY_TextDisColor (ArgbEncode(255, 172, 168, 153)) |
40 | 40 |
41 #endif // XFA_FWL_THEME_CFWL_UTILS_H_ | 41 #endif // XFA_FWL_THEME_CFWL_UTILS_H_ |
OLD | NEW |