3 * Copyright 2012 Samsung Electronics Co., Ltd
5 * Licensed under the Flora License, Version 1.0 (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.
19 #define HEIGHT_OF_MONTH_VIEW (920.0*R_Y)
20 #define HEIGHT_OF_CALENDAR_SW (690.0*R_Y)
21 #define HEIGHT_OF_WEEK_LINE (2.0*R_Y)
22 #define HEIGHT_OF_WEEK (105.0*R_Y)
23 #define HEIGHT_OF_WEEK_LITTLE (15.0*R_Y)
24 #define HEIGHT_OF_WEEK_5 (125.0*R_Y)
25 #define HEIGHT_OF_WEEK_4 (135.0*R_Y)
26 #define HEIGHT_OF_VIEW (690.0*R_Y)
27 #define HEIGHT_OF_BOTTOM_LINE (3.0*R_Y)
29 #define HEIGHT_OF_LIST_INDEX (48.0)
30 #define WIDTH_OF_LIST_INDEX (720.0)
31 #define WIDTH_OF_LIST_ICON (24.0)
32 #define HEIGHT_OF_LIST_ICON (24.0)
33 #define LIST_ICON_RIGHT_OFFSET (14.0)
34 #define WIDTH_OF_LIST_INDEX_AREA (52)
36 #define HEIGHT_OF_LIST_EXPAND_AREA (60)
37 #define WIDTH_OF_LIST_EXPAND_AREA (93)
38 #define WIDTH_OF_LIST_EXPAND_ICON (74)
40 #define EXPAND_BUTTON_BOTTOM_OFFSET -14
41 group { name, "main/month";
43 image: CALENDAR_CIRCLE_BUTTON COMP;
44 image: CALENDAR_CIRCLE_BUTTON_PRESS COMP;
45 image: CALENDAR_LIST_INDEX_OPEN COMP;
46 image: CALENDAR_LIST_INDEX_CLOSE COMP;
47 image: CALENDAR_LIST_INDEX_BG COMP;
48 image: CALENDAR_LIST_INDEX_BG_PRESS COMP;
56 color, 248 246 239 255;
57 rel1 { relative, 0.0 0.0; }
58 rel2 { relative, 1.0 1.0; }
62 part { name, "cal/sw";
67 rel1 { relative, 0.0 0.0; to, "base"; }
68 rel2 { relative, 1.0 (HEIGHT_OF_CALENDAR_SW/HEIGHT_OF_MONTH_VIEW); to, "base"; }
72 rel1 { relative, 0.0 0.0; to, "base"; }
73 rel2 { relative, 1.0 1.0; to, "base"; }
79 rel2 { relative, 1.0 ((HEIGHT_OF_VIEW+HEIGHT_OF_WEEK_5+HEIGHT_OF_WEEK_LINE)/HEIGHT_OF_VIEW); to, "base"; }
84 rel2 { relative, 1.0 ((HEIGHT_OF_VIEW+2*HEIGHT_OF_WEEK_4+2*HEIGHT_OF_WEEK_LINE)/HEIGHT_OF_VIEW); to, "base"; }
88 part { name, "cal/sw/left";
93 rel1 { relative, -1.0 0.0; to_x, "base"; to_y, "cal/sw"; }
94 rel2 { relative, 0.0 1.0; to_x, "base"; to_y, "cal/sw";}
98 part { name, "cal/sw/right";
102 state, "default" 0.0;
103 rel1 { relative, 1.0 0.0; to_x, "base"; to_y, "cal/sw"; }
104 rel2 { relative, 2.0 1.0; to_x, "base"; to_y, "cal/sw";}
108 part { name, "cal/clip";
111 state, "default" 0.0;
113 rel2 { relative, 1.0 1.0; offset, 0 -2.0; to, "cal/sw"; }
116 state, "default" 1.0;
118 rel2 { relative, 1.0 ((HEIGHT_OF_VIEW-HEIGHT_OF_WEEK)/HEIGHT_OF_VIEW); offset, 0 -3.0; to, "cal/sw"; }
121 state, "default" 0.5;
123 rel2 { relative, 1.0 ((HEIGHT_OF_VIEW-2*HEIGHT_OF_WEEK-2*HEIGHT_OF_WEEK_LINE)/HEIGHT_OF_CALENDAR_SW); offset, 0 -2.0; to, "cal/sw"; }
127 part { name, "list/base";
131 state, "default" 0.0;
133 relative, 0.0 1.0; offset, 0 30;
134 to_x, "base"; to_y, "cal/clip";
140 state, "default" 0.1;
142 relative, 0.0 ((HEIGHT_OF_VIEW-4*HEIGHT_OF_WEEK-HEIGHT_OF_WEEK_LITTLE)/HEIGHT_OF_CALENDAR_SW);offset, 0 40;
143 to_x, "base"; to_y, "cal/sw";
150 part { name, "list/sw";
153 state, "default" 0.0;
154 rel1{ relative, 0.0 0.0; to, "list/base";}
155 rel2.to, "list/base";
159 part { name, "list/line";
162 state, "default" 0.0;
163 rel1 { to, "list/base"; }
164 rel2 { relative, 1.0 0.0; offset, 0 HEIGHT_OF_BOTTOM_LINE; to, "list/base"; }
165 color, COLOR_OF_LIST_LINE_FOR_MONTH;
172 program { name, "cal/line5";
175 action, STATE_SET "default" 1.0;
178 program { name, "cal/line6";
181 action, STATE_SET "default" 0.0;
184 program { name, "cal/line4";
187 action, STATE_SET "default" 0.5;