forked from achimdoebler/UGUI
-
Notifications
You must be signed in to change notification settings - Fork 10
/
ugui_theme.h
167 lines (145 loc) · 7.42 KB
/
ugui_theme.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
#ifndef __UGUI_THEME_H
#define __UGUI_THEME_H
#include "ugui_colors.h"
#if defined(UGUI_USE_COLOR_RGB888)
#define C_DESKTOP_COLOR 0x5E8BEF
#define C_FORE_COLOR C_BLACK
#define C_BACK_COLOR 0xF0F0F0
#define C_TITLE_FORE_COLOR C_WHITE
#define C_TITLE_BACK_COLOR C_BLUE
#define C_INACTIVE_TITLE_FORE_COLOR C_WHITE
#define C_INACTIVE_TITLE_BACK_COLOR C_GRAY
#define C_PAL_WINDOW /* Frame 0 */ \
C_WHITE_39, \
C_WHITE_39, \
C_WHITE_39, \
C_WHITE_39, \
/* Frame 1 */ \
C_WHITE_89, \
C_WHITE_89, \
C_WHITE_41, \
C_WHITE_41, \
/* Frame 2 */ \
C_WHITE, \
C_WHITE, \
C_WHITE_63, \
C_WHITE_63
#define C_PAL_BUTTON_PRESSED /* Frame 0 */ \
C_WHITE_39, \
C_WHITE_39, \
C_WHITE_39, \
C_WHITE_39, \
/* Frame 1 */ \
C_WHITE_63, \
C_WHITE_63, \
C_WHITE_63, \
C_WHITE_63, \
/* Frame 2 */ \
C_WHITE_94, \
C_WHITE_94, \
C_WHITE_94, \
C_WHITE_94
#define C_PAL_BUTTON_RELEASED C_PAL_WINDOW
#define C_PAL_CHECKBOX_PRESSED C_PAL_BUTTON_PRESSED
#define C_PAL_CHECKBOX_RELEASED C_PAL_BUTTON_RELEASED
#define C_PAL_PROGRESS C_PAL_BUTTON_RELEASED
#elif defined(UGUI_USE_COLOR_RGB565)
#define C_DESKTOP_COLOR 0x5C5D
#define C_FORE_COLOR C_BLACK
#define C_BACK_COLOR C_WHITE_94
#define C_TITLE_FORE_COLOR C_WHITE
#define C_TITLE_BACK_COLOR C_BLUE
#define C_INACTIVE_TITLE_FORE_COLOR C_WHITE
#define C_INACTIVE_TITLE_BACK_COLOR C_GRAY
#define C_PAL_WINDOW /* Frame 0 */ \
C_WHITE_39, \
C_WHITE_39, \
C_WHITE_39, \
C_WHITE_39, \
/* Frame 1 */ \
C_WHITE, \
C_WHITE, \
C_WHITE_41, \
C_WHITE_41, \
/* Frame 2 */ \
C_WHITE_89, \
C_WHITE_89, \
C_WHITE_63, \
C_WHITE_63
#define C_PAL_BUTTON_PRESSED /* Frame 0 */ \
C_WHITE_39, \
C_WHITE_39, \
C_WHITE_39, \
C_WHITE_39, \
/* Frame 1 */ \
C_WHITE_63, \
C_WHITE_63, \
C_WHITE_63, \
C_WHITE_63, \
/* Frame 2 */ \
C_WHITE_94, \
C_WHITE_94, \
C_WHITE_94, \
C_WHITE_94
#define C_PAL_BUTTON_RELEASED C_PAL_WINDOW
#define C_PAL_CHECKBOX_PRESSED C_PAL_BUTTON_PRESSED
#define C_PAL_CHECKBOX_RELEASED C_PAL_BUTTON_RELEASED
#define C_PAL_PROGRESS C_PAL_BUTTON_RELEASED
#elif defined(UGUI_USE_COLOR_BW)
#define C_DESKTOP_COLOR C_BLACK
#define C_FORE_COLOR C_BLACK
#define C_BACK_COLOR C_WHITE
#define C_TITLE_FORE_COLOR C_BLACK
#define C_TITLE_BACK_COLOR C_WHITE
#define C_INACTIVE_TITLE_FORE_COLOR C_WHITE
#define C_INACTIVE_TITLE_BACK_COLOR C_BLACK
#define C_PAL_WINDOW /* Frame 0 */ \
C_BLACK, \
C_BLACK, \
C_BLACK, \
C_BLACK, \
/* Frame 1 */ \
C_WHITE, \
C_WHITE, \
C_BLACK, \
C_BLACK, \
/* Frame 2 */ \
C_WHITE, \
C_WHITE, \
C_BLACK, \
C_BLACK
#define C_PAL_BUTTON_PRESSED /* Frame 0 */ \
C_BLACK, \
C_BLACK, \
C_BLACK, \
C_BLACK, \
/* Frame 1 */ \
C_BLACK, \
C_BLACK, \
C_WHITE, \
C_WHITE, \
/* Frame 2 */ \
C_WHITE, \
C_WHITE, \
C_WHITE, \
C_WHITE
#define C_PAL_BUTTON_RELEASED /* Frame 0 */ \
C_BLACK, \
C_BLACK, \
C_BLACK, \
C_BLACK, \
/* Frame 1 */ \
C_WHITE, \
C_WHITE, \
C_BLACK, \
C_BLACK, \
/* Frame 2 */ \
C_WHITE, \
C_WHITE, \
C_WHITE, \
C_WHITE
#define C_PAL_CHECKBOX_PRESSED C_PAL_BUTTON_PRESSED
#define C_PAL_CHECKBOX_RELEASED C_PAL_BUTTON_RELEASED
#define C_PAL_PROGRESS C_PAL_BUTTON_RELEASED
#endif
#endif // __UGUI_THEME_H