Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(645)

Side by Side Diff: xfa/include/fwl/theme/utils.h

Issue 1692413002: One less PI, one less Bezier. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: One less bezier, too. Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « fpdfsdk/src/pdfwindow/PWL_Utils.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
10 #include "core/include/fxcrt/fx_system.h"
11
9 #define THEME_XPSimilar 12 #define THEME_XPSimilar
10 enum FWLTHEME_EDGE { 13 enum FWLTHEME_EDGE {
11 FWLTHEME_EDGE_Flat = 0, 14 FWLTHEME_EDGE_Flat = 0,
12 FWLTHEME_EDGE_Raised, 15 FWLTHEME_EDGE_Raised,
13 FWLTHEME_EDGE_Sunken 16 FWLTHEME_EDGE_Sunken
14 }; 17 };
15 enum FWLTHEME_STATE { 18 enum FWLTHEME_STATE {
16 FWLTHEME_STATE_Normal = 1, 19 FWLTHEME_STATE_Normal = 1,
17 FWLTHEME_STATE_Hover, 20 FWLTHEME_STATE_Hover,
18 FWLTHEME_STATE_Pressed, 21 FWLTHEME_STATE_Pressed,
(...skipping 17 matching lines...) Expand all
36 }; 39 };
37 40
38 _FWLCOLOR() { color = 0; } 41 _FWLCOLOR() { color = 0; }
39 _FWLCOLOR(FX_DWORD c) { color = c; } 42 _FWLCOLOR(FX_DWORD c) { color = c; }
40 _FWLCOLOR(const _FWLCOLOR& c) { color = c.color; } 43 _FWLCOLOR(const _FWLCOLOR& c) { color = c.color; }
41 44
42 bool operator==(const _FWLCOLOR& frColor) { return color == frColor.color; } 45 bool operator==(const _FWLCOLOR& frColor) { return color == frColor.color; }
43 46
44 operator FX_DWORD() { return color; } 47 operator FX_DWORD() { return color; }
45 } FWLCOLOR; 48 } FWLCOLOR;
46 #define FWLTHEME_BEZIER 0.5522847498308f 49 #define FWLTHEME_BEZIER FX_BEZIER
47 #define FWLTHEME_PI 3.141592f 50 #define FWLTHEME_PI FX_PI
48 #define FWLTHEME_PI_2_1 1.570796f 51 #define FWLTHEME_PI_2_1 (FX_PI / 2.0f)
49 #define FWLTHEME_PI_2_3 4.712388f 52 #define FWLTHEME_PI_2_3 (3.0f * FX_PI / 2.0f)
50 #define FWLTHEME_COLOR_EDGELT1 (ArgbEncode(255, 172, 168, 153)) 53 #define FWLTHEME_COLOR_EDGELT1 (ArgbEncode(255, 172, 168, 153))
51 #define FWLTHEME_COLOR_EDGELT2 (ArgbEncode(255, 113, 111, 100)) 54 #define FWLTHEME_COLOR_EDGELT2 (ArgbEncode(255, 113, 111, 100))
52 #define FWLTHEME_COLOR_EDGERB1 (ArgbEncode(255, 241, 239, 226)) 55 #define FWLTHEME_COLOR_EDGERB1 (ArgbEncode(255, 241, 239, 226))
53 #define FWLTHEME_COLOR_EDGERB2 (ArgbEncode(255, 255, 255, 255)) 56 #define FWLTHEME_COLOR_EDGERB2 (ArgbEncode(255, 255, 255, 255))
54 #define FWLTHEME_COLOR_Background (ArgbEncode(255, 236, 233, 216)) 57 #define FWLTHEME_COLOR_Background (ArgbEncode(255, 236, 233, 216))
55 #define FWLTHEME_COLOR_BKSelected (ArgbEncode(255, 153, 193, 218)) 58 #define FWLTHEME_COLOR_BKSelected (ArgbEncode(255, 153, 193, 218))
56 #define FWLTHEME_COLOR_Green_BKSelected (ArgbEncode(255, 147, 160, 112)) 59 #define FWLTHEME_COLOR_Green_BKSelected (ArgbEncode(255, 147, 160, 112))
57 #ifdef THEME_XPSimilar 60 #ifdef THEME_XPSimilar
58 #define FWLTHEME_CAPACITY_EdgeFlat 2.0f 61 #define FWLTHEME_CAPACITY_EdgeFlat 2.0f
59 #else 62 #else
60 #define FWLTHEME_CAPACITY_EdgeFlat 0.0f 63 #define FWLTHEME_CAPACITY_EdgeFlat 0.0f
61 #endif 64 #endif
62 #define FWLTHEME_CAPACITY_EdgeRaised 2.0f 65 #define FWLTHEME_CAPACITY_EdgeRaised 2.0f
63 #define FWLTHEME_CAPACITY_EdgeSunken 2.0f 66 #define FWLTHEME_CAPACITY_EdgeSunken 2.0f
64 #define FWLTHEME_CAPACITY_FontSize 12.0f 67 #define FWLTHEME_CAPACITY_FontSize 12.0f
65 #define FWLTHEME_CAPACITY_LineHeight 12.0f 68 #define FWLTHEME_CAPACITY_LineHeight 12.0f
66 #define FWLTHEME_CAPACITY_TextColor (ArgbEncode(255, 0, 0, 0)) 69 #define FWLTHEME_CAPACITY_TextColor (ArgbEncode(255, 0, 0, 0))
67 #define FWLTHEME_CAPACITY_TextSelColor (ArgbEncode(255, 153, 193, 218)) 70 #define FWLTHEME_CAPACITY_TextSelColor (ArgbEncode(255, 153, 193, 218))
68 #define FWLTHEME_CAPACITY_TextDisColor (ArgbEncode(255, 172, 168, 153)) 71 #define FWLTHEME_CAPACITY_TextDisColor (ArgbEncode(255, 172, 168, 153))
69 #define FWLTHEME_CAPACITY_ScrollBarWidth 17.0f 72 #define FWLTHEME_CAPACITY_ScrollBarWidth 17.0f
70 #define FWLTHEME_CAPACITY_CXBorder 1.0f 73 #define FWLTHEME_CAPACITY_CXBorder 1.0f
71 #define FWLTHEME_CAPACITY_CYBorder 1.0f 74 #define FWLTHEME_CAPACITY_CYBorder 1.0f
72 #endif 75 #endif
OLDNEW
« no previous file with comments | « fpdfsdk/src/pdfwindow/PWL_Utils.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698