3 * Copyright 2012 Samsung Electronics Co., Ltd
5 * Licensed under the Flora License, Version 1.1 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
9 * http://floralicense.org/license/
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
22 #define R_X (480.0/720.0)
23 #define R_Y (800.0/1280.0)
29 #define H_WEEK (105.0*R_Y)
30 #define H_GAP (2.0*R_Y)
31 #define H_LINE (3.0*R_Y)
33 #define HEIGHT_OF_LIST_INDEX (48.0)
34 #define WIDTH_OF_LIST_INDEX (720.0)
35 #define WIDTH_OF_LIST_ICON (24.0)
36 #define HEIGHT_OF_LIST_ICON (24.0)
37 #define LIST_ICON_RIGHT_OFFSET (14.0)
38 #define HEIGHT_OF_CONTENT (915)
39 #define WIDTH_OF_LIST_INDEX_AREA (52)
41 #define HEIGHT_OF_LIST_EXPAND_AREA (69)
42 #define WIDTH_OF_LIST_EXPAND_AREA (93)
43 #define WIDTH_OF_LIST_EXPAND_ICON (74)
45 #define HEIGHT_OF_MONTH_VIEW (920.0*R_Y)
46 #define HEIGHT_OF_CALENDAR_SW (690.0*R_Y)
47 #define HEIGHT_OF_WEEK (105.0*R_Y)
49 group { name, "main/month/weekly";
51 image: CALENDAR_LIST_INDEX_OPEN COMP;
52 image: CALENDAR_LIST_INDEX_CLOSE COMP;
53 image: CALENDAR_LIST_INDEX_BG COMP;
54 image: CALENDAR_LIST_INDEX_BG_PRESS COMP;
62 color, 248 246 239 255;
65 part { name, "cal/sw";
70 rel1 { relative, 0.0 0.0; to, "base"; }
71 rel2 { relative, 1.0 1.0; to, "base"; }
75 rel1 { relative, 0.0 0.0; to, "base"; }
76 rel2 { relative, 1.0 (HEIGHT_OF_CALENDAR_SW/HEIGHT_OF_MONTH_VIEW); to, "base"; }
81 rel2 { relative, 1.0 ((HEIGHT_OF_CALENDAR_SW-HEIGHT_OF_WEEK-HEIGHT_OF_WEEK_LINE)/HEIGHT_OF_MONTH_VIEW); to, "base"; }
86 rel2 { relative, 1.0 ((HEIGHT_OF_CALENDAR_SW-2*HEIGHT_OF_WEEK-2*HEIGHT_OF_WEEK_LINE)/HEIGHT_OF_MONTH_VIEW); to, "base"; }
90 part { name, "cal/sw/left";
95 rel1 { relative, -1.0 0.0; to_x, "base"; to_y, "cal/sw"; }
96 rel2 { relative, 0.0 1.0; to_x, "base"; to_y, "cal/sw";}
100 part { name, "cal/sw/right";
104 state, "default" 0.0;
105 rel1 { relative, 1.0 0.0; to_x, "base"; to_y, "cal/sw"; }
106 rel2 { relative, 2.0 1.0; to_x, "base"; to_y, "cal/sw";}
110 part { name, "cal/clip";
113 state, "default" 0.0;
115 rel2 { relative, 1.0 1.0; offset, 0 0; to, "cal/sw"; }
118 state, "default" 1.0;
120 rel2 { relative, 1.0 ((H-H_WEEK-H_GAP)/H); offset: 0 0; to, "cal/sw"; }
123 state, "default" 0.5;
125 rel2 { relative, 1.0 ((H-2*H_WEEK-2*H_GAP)/H); offset: 0 0; to, "cal/sw"; }
128 part { name, "list/base";
131 state, "default" 0.0;
143 part { name, "list/sw";
146 state, "default" 0.0;
147 rel1{ relative, 0.0 0.0; to, "list/base";}
148 rel2.to, "list/base";
151 part { name, "list/line";
154 state, "default" 0.0;
155 rel1 { to, "list/base"; }
156 rel2 { relative, 1.0 0.0; offset, 0 HEIGHT_OF_BOTTOM_LINE; to, "list/base"; }
157 color, COLOR_OF_LIST_LINE_FOR_MONTH;
164 program { name, "cal/line5";
167 action, STATE_SET "default" 1.0;
170 program { name, "cal/line6";
173 action, STATE_SET "default" 0.0;
176 program { name, "cal/line4";
179 action, STATE_SET "default" 0.5;
185 group { name, "main/month/weekly/l";
191 state, "default" 0.0;
192 color, 248 246 239 255;
196 part { name, "cal/sw";
200 state, "default" 0.0;
201 rel1 { relative, 0.0 0.0; offset, 0 0; to, "base"; }
202 rel2 { relative, 1.0 1.0; offset, 0 0; to, "base"; }
206 part { name, "cal/sw/left";
210 state, "default" 0.0;
211 rel1 { relative, -1.0 0.0; to_x, "base"; to_y, "cal/sw"; }
212 rel2 { relative, 0.0 1.0; to_x, "base"; to_y, "cal/sw";}
216 part { name, "cal/sw/right";
220 state, "default" 0.0;
221 rel1 { relative, 1.0 0.0; to_x, "base"; to_y, "cal/sw"; }
222 rel2 { relative, 2.0 1.0; to_x, "base"; to_y, "cal/sw";}
226 part { name, "cal/clip";
229 state, "default" 0.0;
231 rel2 { relative, 1.0 1.0; offset, 0 0; to, "cal/sw"; }