| 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 _FWL_THEME_UTILS_H | 7 #ifndef _FWL_THEME_UTILS_H |
| 8 #define _FWL_THEME_UTILS_H | 8 #define _FWL_THEME_UTILS_H |
| 9 #define THEME_XPSimilar | 9 #define THEME_XPSimilar |
| 10 enum FWLTHEME_EDGE { | 10 enum FWLTHEME_EDGE { |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 enum FWLTHEME_DIRECTION { | 21 enum FWLTHEME_DIRECTION { |
| 22 FWLTHEME_DIRECTION_Up = 0, | 22 FWLTHEME_DIRECTION_Up = 0, |
| 23 FWLTHEME_DIRECTION_Down, | 23 FWLTHEME_DIRECTION_Down, |
| 24 FWLTHEME_DIRECTION_Left, | 24 FWLTHEME_DIRECTION_Left, |
| 25 FWLTHEME_DIRECTION_Right | 25 FWLTHEME_DIRECTION_Right |
| 26 }; | 26 }; |
| 27 typedef struct _FWLCOLOR { | 27 typedef struct _FWLCOLOR { |
| 28 union { | 28 union { |
| 29 FX_DWORD color; | 29 FX_DWORD color; |
| 30 struct { | 30 struct { |
| 31 FX_BYTE b; | 31 uint8_t b; |
| 32 FX_BYTE g; | 32 uint8_t g; |
| 33 FX_BYTE r; | 33 uint8_t r; |
| 34 FX_BYTE a; | 34 uint8_t a; |
| 35 }; | 35 }; |
| 36 }; | 36 }; |
| 37 | 37 |
| 38 _FWLCOLOR() | 38 _FWLCOLOR() |
| 39 { | 39 { |
| 40 color = 0; | 40 color = 0; |
| 41 } | 41 } |
| 42 _FWLCOLOR(FX_DWORD c) | 42 _FWLCOLOR(FX_DWORD c) |
| 43 { | 43 { |
| 44 color = c; | 44 color = c; |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 #define FWLTHEME_CAPACITY_EdgeSunken 2.0f | 78 #define FWLTHEME_CAPACITY_EdgeSunken 2.0f |
| 79 #define FWLTHEME_CAPACITY_FontSize 12.0f | 79 #define FWLTHEME_CAPACITY_FontSize 12.0f |
| 80 #define FWLTHEME_CAPACITY_LineHeight 12.0f | 80 #define FWLTHEME_CAPACITY_LineHeight 12.0f |
| 81 #define FWLTHEME_CAPACITY_TextColor (ArgbEncode(255, 0, 0, 0)) | 81 #define FWLTHEME_CAPACITY_TextColor (ArgbEncode(255, 0, 0, 0)) |
| 82 #define FWLTHEME_CAPACITY_TextSelColor (ArgbEncode(255, 153, 193, 218)) | 82 #define FWLTHEME_CAPACITY_TextSelColor (ArgbEncode(255, 153, 193, 218)) |
| 83 #define FWLTHEME_CAPACITY_TextDisColor (ArgbEncode(255, 172, 168, 153)) | 83 #define FWLTHEME_CAPACITY_TextDisColor (ArgbEncode(255, 172, 168, 153)) |
| 84 #define FWLTHEME_CAPACITY_ScrollBarWidth 17.0f | 84 #define FWLTHEME_CAPACITY_ScrollBarWidth 17.0f |
| 85 #define FWLTHEME_CAPACITY_CXBorder 1.0f | 85 #define FWLTHEME_CAPACITY_CXBorder 1.0f |
| 86 #define FWLTHEME_CAPACITY_CYBorder 1.0f | 86 #define FWLTHEME_CAPACITY_CYBorder 1.0f |
| 87 #endif | 87 #endif |
| OLD | NEW |