4 #define R_X (480.0/720.0)
5 #define R_Y (800.0/1280.0)
11 #define H_WEEK (105.0*R_Y)
12 #define H_GAP (2.0*R_Y)
13 #define H_LINE (3.0*R_Y)
15 group { name, "main/month/weekly";
26 part { name, "cal/sw";
31 rel1 { relative, 0.0 0.0; offset, 0 0; to, "base"; }
32 rel2 { relative, 1.0 0.0; offset, 0 H; to, "base"; }
36 part { name, "cal/sw/left";
41 rel1 { relative, -1.0 0.0; to_x, "base"; to_y, "cal/sw"; }
42 rel2 { relative, 0.0 1.0; to_x, "base"; to_y, "cal/sw";}
46 part { name, "cal/sw/right";
51 rel1 { relative, 1.0 0.0; to_x, "base"; to_y, "cal/sw"; }
52 rel2 { relative, 2.0 1.0; to_x, "base"; to_y, "cal/sw";}
56 part { name, "cal/clip";
61 rel2 { relative, 1.0 1.0; offset, 0 0; to, "cal/sw"; }
66 rel2 { relative, 1.0 ((H-H_WEEK-H_GAP)/H); offset: 0 0; to, "cal/sw"; }
71 rel2 { relative, 1.0 ((H-2*H_WEEK-2*H_GAP)/H); offset: 0 0; to, "cal/sw"; }
74 part { name, "list/line";
78 rel1 { relative, 0.0 1.0; offset, 0 0; to, "cal/clip"; }
79 rel2 { relative, 1.0 1.0; offset, 0 H_LINE; to, "cal/clip"; }
80 color, COLOR_OF_LIST_LINE_FOR_MONTH;
86 program { name, "cal/line5";
89 action, STATE_SET "default" 1.0;
91 transition, SINUSOIDAL 0.0;
93 program { name, "cal/line6";
96 action, STATE_SET "default" 0.0;
98 transition, SINUSOIDAL 0.0;
100 program { name, "cal/line4";
103 action, STATE_SET "default" 0.5;
105 transition, SINUSOIDAL 0.0;