xref: /aosp_15_r20/external/pdfium/xfa/fwl/theme/cfwl_utils.h (revision 3ac0a46f773bac49fa9476ec2b1cf3f8da5ec3a4)
1 // Copyright 2014 The PDFium Authors
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6 
7 #ifndef XFA_FWL_THEME_CFWL_UTILS_H_
8 #define XFA_FWL_THEME_CFWL_UTILS_H_
9 
10 #include <stdint.h>
11 
12 #include "core/fxge/dib/fx_dib.h"
13 
14 // Values matter, used for indexing.
15 enum class FWLTHEME_STATE : uint8_t { kNormal = 1, kHover, kPressed, kDisable };
16 
17 enum class FWLTHEME_DIRECTION : uint8_t { kUp = 0, kDown, kLeft, kRight };
18 
19 #define FWLTHEME_COLOR_EDGERB1 (ArgbEncode(255, 241, 239, 226))
20 #define FWLTHEME_COLOR_Background (ArgbEncode(255, 236, 233, 216))
21 #define FWLTHEME_COLOR_BKSelected (ArgbEncode(255, 153, 193, 218))
22 
23 #define FWLTHEME_CAPACITY_FontSize 12.0f
24 #define FWLTHEME_CAPACITY_TextColor (ArgbEncode(255, 0, 0, 0))
25 #define FWLTHEME_CAPACITY_TextDisColor (ArgbEncode(255, 172, 168, 153))
26 
27 #endif  // XFA_FWL_THEME_CFWL_UTILS_H_
28