-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.h
70 lines (56 loc) · 1.55 KB
/
config.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
#define REFRESH_TIME 30 // Refresh rate in seconds
#define STARTPOS_Y 12 // y coordinate of the top-left
// corner of the background window
#define STARTPOS_X 0 // x coordinate of the top-left
// corner of the background window
#define BOX_HEIGHT_RATE 0.9 // The box height and screen height ratio
#define GAP_SIZE 3 // The gap size between the boxes
/* The clock well be centered inside of the defined box.
The block bellow is for some slite modification.
*/
#define LEFT_OFFSET 0
#define TOP_OFFSET 12
#define RIGHT_OFFSET 0
#define BOTTOM_OFFSET 0
// +--------+---+-------------------
// + + + +
// + +---+ +
// + + + +
// +--------+---+ +
// + + +
// + + +
// + + +
// + + +
// +------------+------------------+
typedef struct _color {
float red;
float green;
float blue;
} color;
// TIME COLORS
color colors[4]={
//base
{
.red = 0.5,
.green = 0.5,
.blue = 0.5,
},
//minute
{
.red = 1.,
.green = 0.,
.blue = 0.
},
//hour
{
.red = 0.,
.green = 0.,
.blue = 1
},
//both
{
.red = 0.,
.green = 1.,
.blue = 0.
}
};