-
-
Notifications
You must be signed in to change notification settings - Fork 796
/
Colors.java
376 lines (304 loc) · 7.46 KB
/
Colors.java
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
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
package com.github.lazylibrary.util; /**
* Copyright 2014 Zhenguo Jin (jinzhenguo1990@gmail.com)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* 颜色工具类 包括常用的色值
*
* @author jingle1267@163.com
*/
public final class Colors {
/**
* Don't let anyone instantiate this class.
*/
private Colors() {
throw new Error("Do not need instantiate!");
}
/**
* 白色
*/
public static final int WHITE = 0xffffffff;
/**
* 白色 - 半透明
*/
public static final int WHITE_TRANSLUCENT = 0x80ffffff;
/**
* 黑色
*/
public static final int BLACK = 0xff000000;
/**
* 黑色 - 半透明
*/
public static final int BLACK_TRANSLUCENT = 0x80000000;
/**
* 透明
*/
public static final int TRANSPARENT = 0x00000000;
/**
* 红色
*/
public static final int RED = 0xffff0000;
/**
* 红色 - 半透明
*/
public static final int RED_TRANSLUCENT = 0x80ff0000;
/**
* 红色 - 深的
*/
public static final int RED_DARK = 0xff8b0000;
/**
* 红色 - 深的 - 半透明
*/
public static final int RED_DARK_TRANSLUCENT = 0x808b0000;
/**
* 绿色
*/
public static final int GREEN = 0xff00ff00;
/**
* 绿色 - 半透明
*/
public static final int GREEN_TRANSLUCENT = 0x8000ff00;
/**
* 绿色 - 深的
*/
public static final int GREEN_DARK = 0xff003300;
/**
* 绿色 - 深的 - 半透明
*/
public static final int GREEN_DARK_TRANSLUCENT = 0x80003300;
/**
* 绿色 - 浅的
*/
public static final int GREEN_LIGHT = 0xffccffcc;
/**
* 绿色 - 浅的 - 半透明
*/
public static final int GREEN_LIGHT_TRANSLUCENT = 0x80ccffcc;
/**
* 蓝色
*/
public static final int BLUE = 0xff0000ff;
/**
* 蓝色 - 半透明
*/
public static final int BLUE_TRANSLUCENT = 0x800000ff;
/**
* 蓝色 - 深的
*/
public static final int BLUE_DARK = 0xff00008b;
/**
* 蓝色 - 深的 - 半透明
*/
public static final int BLUE_DARK_TRANSLUCENT = 0x8000008b;
/**
* 蓝色 - 浅的
*/
public static final int BLUE_LIGHT = 0xff36a5E3;
/**
* 蓝色 - 浅的 - 半透明
*/
public static final int BLUE_LIGHT_TRANSLUCENT = 0x8036a5E3;
/**
* 天蓝
*/
public static final int SKYBLUE = 0xff87ceeb;
/**
* 天蓝 - 半透明
*/
public static final int SKYBLUE_TRANSLUCENT = 0x8087ceeb;
/**
* 天蓝 - 深的
*/
public static final int SKYBLUE_DARK = 0xff00bfff;
/**
* 天蓝 - 深的 - 半透明
*/
public static final int SKYBLUE_DARK_TRANSLUCENT = 0x8000bfff;
/**
* 天蓝 - 浅的
*/
public static final int SKYBLUE_LIGHT = 0xff87cefa;
/**
* 天蓝 - 浅的 - 半透明
*/
public static final int SKYBLUE_LIGHT_TRANSLUCENT = 0x8087cefa;
/**
* 灰色
*/
public static final int GRAY = 0xff969696;
/**
* 灰色 - 半透明
*/
public static final int GRAY_TRANSLUCENT = 0x80969696;
/**
* 灰色 - 深的
*/
public static final int GRAY_DARK = 0xffa9a9a9;
/**
* 灰色 - 深的 - 半透明
*/
public static final int GRAY_DARK_TRANSLUCENT = 0x80a9a9a9;
/**
* 灰色 - 暗的
*/
public static final int GRAY_DIM = 0xff696969;
/**
* 灰色 - 暗的 - 半透明
*/
public static final int GRAY_DIM_TRANSLUCENT = 0x80696969;
/**
* 灰色 - 浅的
*/
public static final int GRAY_LIGHT = 0xffd3d3d3;
/**
* 灰色 - 浅的 - 半透明
*/
public static final int GRAY_LIGHT_TRANSLUCENT = 0x80d3d3d3;
/**
* 橙色
*/
public static final int ORANGE = 0xffffa500;
/**
* 橙色 - 半透明
*/
public static final int ORANGE_TRANSLUCENT = 0x80ffa500;
/**
* 橙色 - 深的
*/
public static final int ORANGE_DARK = 0xffff8800;
/**
* 橙色 - 深的 - 半透明
*/
public static final int ORANGE_DARK_TRANSLUCENT = 0x80ff8800;
/**
* 橙色 - 浅的
*/
public static final int ORANGE_LIGHT = 0xffffbb33;
/**
* 橙色 - 浅的 - 半透明
*/
public static final int ORANGE_LIGHT_TRANSLUCENT = 0x80ffbb33;
/**
* 金色
*/
public static final int GOLD = 0xffffd700;
/**
* 金色 - 半透明
*/
public static final int GOLD_TRANSLUCENT = 0x80ffd700;
/**
* 粉色
*/
public static final int PINK = 0xffffc0cb;
/**
* 粉色 - 半透明
*/
public static final int PINK_TRANSLUCENT = 0x80ffc0cb;
/**
* 紫红色
*/
public static final int FUCHSIA = 0xffff00ff;
/**
* 紫红色 - 半透明
*/
public static final int FUCHSIA_TRANSLUCENT = 0x80ff00ff;
/**
* 灰白色
*/
public static final int GRAYWHITE = 0xfff2f2f2;
/**
* 灰白色 - 半透明
*/
public static final int GRAYWHITE_TRANSLUCENT = 0x80f2f2f2;
/**
* 紫色
*/
public static final int PURPLE = 0xff800080;
/**
* 紫色 - 半透明
*/
public static final int PURPLE_TRANSLUCENT = 0x80800080;
/**
* 青色
*/
public static final int CYAN = 0xff00ffff;
/**
* 青色 - 半透明
*/
public static final int CYAN_TRANSLUCENT = 0x8000ffff;
/**
* 青色 - 深的
*/
public static final int CYAN_DARK = 0xff008b8b;
/**
* 青色 - 深的 - 半透明
*/
public static final int CYAN_DARK_TRANSLUCENT = 0x80008b8b;
/**
* 黄色
*/
public static final int YELLOW = 0xffffff00;
/**
* 黄色 - 半透明
*/
public static final int YELLOW_TRANSLUCENT = 0x80ffff00;
/**
* 黄色 - 浅的
*/
public static final int YELLOW_LIGHT = 0xffffffe0;
/**
* 黄色 - 浅的 - 半透明
*/
public static final int YELLOW_LIGHT_TRANSLUCENT = 0x80ffffe0;
/**
* 巧克力色
*/
public static final int CHOCOLATE = 0xffd2691e;
/**
* 巧克力色 - 半透明
*/
public static final int CHOCOLATE_TRANSLUCENT = 0x80d2691e;
/**
* 番茄色
*/
public static final int TOMATO = 0xffff6347;
/**
* 番茄色 - 半透明
*/
public static final int TOMATO_TRANSLUCENT = 0x80ff6347;
/**
* 橙红色
*/
public static final int ORANGERED = 0xffff4500;
/**
* 橙红色 - 半透明
*/
public static final int ORANGERED_TRANSLUCENT = 0x80ff4500;
/**
* 银白色
*/
public static final int SILVER = 0xffc0c0c0;
/**
* 银白色 - 半透明
*/
public static final int SILVER_TRANSLUCENT = 0x80c0c0c0;
/**
* 高光
*/
public static final int HIGHLIGHT = 0x33ffffff;
/**
* 低光
*/
public static final int LOWLIGHT = 0x33000000;
}