Tizen 2.1 base
[apps/core/preloaded/calendar.git] / data / edc / layout / inc.main.day.edc
1 /*
2   *
3   *  Copyright 2012  Samsung Electronics Co., Ltd
4   *
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
8   *
9   *       http://floralicense.org/license/
10   *
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.
16   */
17
18 // 480 x 920
19 //origin size 480x800
20 //HD size 720x1280
21 #define HD_SCALE 800/1280
22 #define WIDTH_OF_DAY_VIEW 480
23 #define HEIGHT_OF_DAY_VIEW 855*HD_SCALE
24 #define HEIGHT_OF_DAY_LIST 914
25 #define HEIGHT_OF_ONE_ALL_DAY_ITEM 80
26 #define LS_HEIGHT_OF_DAY_LIST 450
27 #define LS_HEIGHT_OF_ONE_ALL_DAY_ITEM 80
28
29 #define HEIGHT_OF_LIST_TITLE 80
30 #define WIDTH_OF_LIST_TITLE 720
31 #define HEIGHT_OF_LIST 133
32 #define LEFT_PADDING_TITLE_TEXT 22
33 #define RIGHT_PADDING_TITLE_TEXT 100
34 #define RIGHT_PADDING_EXPAND_BUTTON 16
35 #define WIDTH_OF_EXPAND_BUTTON 80
36 #define HEIGHT_OF_EXPAND_BUTTON 80
37 #define WIDTH_OF_EXPAND_BUTTON_ICON 80
38 #define HEIGHT_OF_EXPAND_BUTTON_ICON 80
39
40 group { name, "main/day";
41
42         parts {
43                 part { name, "base";
44                         type, RECT;
45                         description {
46                                 state, "default" 0.0;
47                                 color, 248 246 239 255;
48                         }
49                 }
50                 part { name, "list/title";
51                         type, RECT;
52                         scale, 1;
53                         description {
54                                 state, "default" 0.0;
55                                 rel1 {
56                                   relative: 0.0 0.0;
57                                   to_x: "base";
58                                   to_y: "base";
59                                 }
60                                 rel2 {
61                                   relative: 0.0 0.0;
62                                   to_x: "base";
63                                   to_y: "base";
64                                 }
65                                 align, 0.0 0.0;
66                                 visible, 0;
67                         }
68                         description {
69                                 state, "default" 0.1;
70                                 min, 0 HEIGHT_OF_LIST_TITLE;
71                                 fixed, 0 1;
72                                 align, 0 0;
73                                 rel1 {
74                                   relative: 0.0 0.0;
75                                   to_x: "base";
76                                   to_y: "base";
77                                 }
78                                 rel2 {
79                                   relative: 1.0 0.0;
80                                   to_x: "base";
81                                   to_y: "base";
82                                 }
83                                 color, 230 229 222 255;
84                         }
85                 }
86
87                 part { name, "list/title/bottom/line";
88                         type, RECT;
89                         scale, 1;
90                         description {
91                                 state, "default" 0.0;
92                                 rel1 {
93                                   relative: 0.0 0.0;
94                                   to_x: "base";
95                                   to_y: "base";
96                                 }
97                                 rel2 {
98                                   relative: 0.0 0.0;
99                                   to_x: "base";
100                                   to_y: "base";
101                                 }
102                                 align, 0.0 0.0;
103                                 visible, 0;
104                         }
105                         description {
106                                 state, "default" 0.1;
107                                 min, 0 1;
108                                 fixed, 0 1;
109                                 align, 0 0;
110                                 rel1 {
111                                   relative: 0.0 1.0;
112                                   to_x: "base";
113                                   to_y: "list/title";
114                                 }
115                                 rel2 {
116                                   relative: 1.0 1.0;
117                                   to_x: "base";
118                                   to_y: "list/title";
119                                 }
120                                 color, 169 169 69 255;
121                         }
122                 }
123
124                 part { name, "list/title/left_padding";
125                         type, RECT;
126                         scale, 1;
127                         description {
128                                 state, "default" 0.0;
129                                 rel1 {
130                                   relative: 0.0 0.0;
131                                   to_x: "base";
132                                   to_y: "base";
133                                 }
134                                 rel2 {
135                                   relative: 0.0 0.0;
136                                   to_x: "base";
137                                   to_y: "base";
138                                 }
139                                 align, 0.0 0.0;
140                                 visible, 0;
141                         }
142                         description {
143                                 state, "default" 0.1;
144                                 min, LEFT_PADDING_TITLE_TEXT 0;
145                                 fixed, 1 0;
146                                 align, 0 0;
147                                 rel1 {
148                                   relative: 0.0 0.0;
149                                   to_x: "list/title";
150                                   to_y: "list/title";
151                                 }
152                                 rel2 {
153                                   relative: 0.0 1.0;
154                                   to_x: "list/title";
155                                   to_y: "list/title";
156                                 }
157                                 color, 0 0 0 0;
158                         }
159                 }
160
161                 part { name, "list/title/right_padding";
162                         type, RECT;
163                         scale, 1;
164                         description {
165                                 state, "default" 0.0;
166                                 rel1 {
167                                   relative: 0.0 0.0;
168                                   to_x: "base";
169                                   to_y: "base";
170                                 }
171                                 rel2 {
172                                   relative: 0.0 0.0;
173                                   to_x: "base";
174                                   to_y: "base";
175                                 }
176                                 align, 0.0 0.0;
177                                 visible, 0;
178                         }
179                         description {
180                                 state, "default" 0.1;
181                                 min, RIGHT_PADDING_TITLE_TEXT 0;
182                                 fixed, 1 0;
183                                 align, 1 0;
184                                 rel1 {
185                                   relative: 1.0 0.0;
186                                   to_x: "list/title";
187                                   to_y: "list/title";
188                                 }
189                                 rel2 {
190                                   relative: 1.0 1.0;
191                                   to_x: "list/title";
192                                   to_y: "list/title";
193                                 }
194                                 color, 0 0 0 0;
195                         }
196                 }
197
198                 part { name, "list/expand/right_padding";
199                         type, RECT;
200                         scale, 1;
201                         description {
202                                 state, "default" 0.0;
203                                 rel1 {
204                                   relative: 0.0 0.0;
205                                   to_x: "base";
206                                   to_y: "base";
207                                 }
208                                 rel2 {
209                                   relative: 0.0 0.0;
210                                   to_x: "base";
211                                   to_y: "base";
212                                 }
213                                 align, 0.0 0.0;
214                                 visible, 0;
215                         }
216                         description {
217                                 state, "default" 0.1;
218                                 min, RIGHT_PADDING_EXPAND_BUTTON 0;
219                                 fixed, 1 0;
220                                 align, 1 0;
221                                 rel1 {
222                                   relative: 1.0 0.0;
223                                   to_x: "list/title";
224                                   to_y: "list/title";
225                                 }
226                                 rel2 {
227                                   relative: 1.0 1.0;
228                                   to_x: "list/title";
229                                   to_y: "list/title";
230                                 }
231                                 color, 0 0 0 0;
232                         }
233                 }
234
235                 part { name, "list/title/text";
236                         type, TEXT;
237                         scale, 1;
238                         description {
239                                 state, "default" 0.0;
240                                 rel1 {
241                                   relative: 0.0 0.0;
242                                   to_x: "base";
243                                   to_y: "base";
244                                 }
245                                 rel2 {
246                                   relative: 0.0 0.0;
247                                   to_x: "base";
248                                   to_y: "base";
249                                 }
250                                 text {
251                                         font, "SLP:style=Regular";
252                                         size, 34;
253                                         align, 0.0 0.5;
254                                 }
255                                 color, 0 0 0 255;
256                                 align, 0.0 0.0;
257                                 visible, 0;
258                         }
259                         description {
260                                 state, "default" 0.1;
261                                 rel1 {
262                                   relative: 1.0 0.0;
263                                   to_x: "list/title/left_padding";
264                                   to_y: "list/title";
265                                 }
266                                 rel2 {
267                                   relative: 0.0 1.0;
268                                   to_x: "list/title/right_padding";
269                                   to_y: "list/title";
270                                 }
271                                 text {
272                                         font, "SLP:style=Regular";
273                                         size, 34;
274                                         align, 0.0 0.5;
275                                 }
276                                 color, 0 0 0 255;
277                         }
278                 }
279
280                 part { name, "list/expand/bg";
281                         scale, 1;
282                         mouse_events, 1;
283                         type, RECT;
284                         description {
285                                 state, "default" 0.0;
286                                 rel1 {
287                                   relative: 0.0 0.0;
288                                   to_x: "base";
289                                   to_y: "base";
290                                 }
291                                 rel2 {
292                                   relative: 0.0 0.0;
293                                   to_x: "base";
294                                   to_y: "base";
295                                 }
296                                 align, 0.0 0.0;
297                                 visible, 0;
298                         }
299                         description {
300                                 state, "default" 0.1;
301                                 min: WIDTH_OF_EXPAND_BUTTON HEIGHT_OF_EXPAND_BUTTON;
302                                 max: WIDTH_OF_EXPAND_BUTTON HEIGHT_OF_EXPAND_BUTTON;
303                                 fixed: 1 1;
304                                 rel1 {
305                                   relative: 0.0 0.0;
306                                   to_x: "list/expand/right_padding";
307                                   to_y: "list/title";
308                                 }
309                                 rel2 {
310                                   relative: 0.0 0.0;
311                                   to_x: "list/expand/right_padding";
312                                   to_y: "list/title";
313                                 }
314                                 align: 1.0 0.0;
315                                 color: 0 0 0 0;
316                         }
317                         description {
318                                 state, "default" 0.2;
319                                 min: WIDTH_OF_EXPAND_BUTTON HEIGHT_OF_EXPAND_BUTTON;
320                                 max: WIDTH_OF_EXPAND_BUTTON HEIGHT_OF_EXPAND_BUTTON;
321                                 fixed: 1 1;
322                                 rel1 {
323                                   relative: 0.0 0.0;
324                                   to_x: "list/expand/right_padding";
325                                   to_y: "list/title";
326                                 }
327                                 rel2 {
328                                   relative: 0.0 0.0;
329                                   to_x: "list/expand/right_padding";
330                                   to_y: "list/title";
331                                 }
332                                 align: 1.0 0.0;
333                                 color: COLOR_OF_BUTTON_PRESS;
334                         }
335                 }
336
337                 part { name, "list/unexpand/bg";
338                         scale, 1;
339                         mouse_events, 1;
340                         type, RECT;
341                         description {
342                                 state, "default" 0.0;
343                                 rel1 {
344                                   relative: 0.0 0.0;
345                                   to_x: "base";
346                                   to_y: "base";
347                                 }
348                                 rel2 {
349                                   relative: 0.0 0.0;
350                                   to_x: "base";
351                                   to_y: "base";
352                                 }
353                                 align, 0.0 0.0;
354                                 visible, 0;
355                         }
356                         description {
357                                 state, "default" 0.1;
358                                 min: WIDTH_OF_EXPAND_BUTTON HEIGHT_OF_EXPAND_BUTTON;
359                                 max: WIDTH_OF_EXPAND_BUTTON HEIGHT_OF_EXPAND_BUTTON;
360                                 fixed: 1 1;
361                                 rel1 {
362                                   relative: 0.0 0.0;
363                                   to_x: "list/expand/right_padding";
364                                   to_y: "list/title";
365                                 }
366                                 rel2 {
367                                   relative: 0.0 0.0;
368                                   to_x: "list/expand/right_padding";
369                                   to_y: "list/title";
370                                 }
371                                 align: 1.0 0.0;
372                                 color: 0 0 0 0;
373                         }
374                         description {
375                                 state, "default" 0.2;
376                                 min: WIDTH_OF_EXPAND_BUTTON HEIGHT_OF_EXPAND_BUTTON;
377                                 max: WIDTH_OF_EXPAND_BUTTON HEIGHT_OF_EXPAND_BUTTON;
378                                 fixed: 1 1;
379                                 rel1 {
380                                   relative: 0.0 0.0;
381                                   to_x: "list/expand/right_padding";
382                                   to_y: "list/title";
383                                 }
384                                 rel2 {
385                                   relative: 0.0 0.0;
386                                   to_x: "list/expand/right_padding";
387                                   to_y: "list/title";
388                                 }
389                                 align: 1.0 0.0;
390                                 color: COLOR_OF_BUTTON_PRESS;
391                         }
392                 }
393
394                 part { name, "list/icon/expand";
395                         scale, 1;
396                         mouse_events, 0;
397                         description {
398                                 state, "default" 0.0;
399                                 rel1 {
400                                   relative: 0.0 0.0;
401                                   to_x: "base";
402                                   to_y: "base";
403                                 }
404                                 rel2 {
405                                   relative: 0.0 0.0;
406                                   to_x: "base";
407                                   to_y: "base";
408                                 }
409                                 align, 0.0 0.0;
410                                 visible, 0;
411                         }
412                         description {
413                                 state, "default" 0.1;
414                                 min: WIDTH_OF_EXPAND_BUTTON_ICON HEIGHT_OF_EXPAND_BUTTON_ICON;
415                                 max: WIDTH_OF_EXPAND_BUTTON_ICON HEIGHT_OF_EXPAND_BUTTON_ICON;
416                                 fixed: 1 1;
417                                 rel1{ relative, 0.5 0.5; to, "list/expand/bg"; }
418                                 rel2{ relative, 0.5 0.5; to, "list/expand/bg"; }
419                                 align: 0.5 0.5;
420                                 image {
421                                         border_scale, 1;
422                                         normal, CALENDAR_LIST_INDEX_OPEN;
423                                 }
424                         }
425                 }
426
427                 part { name, "list/icon/unexpand";
428                         scale, 1;
429                         mouse_events, 0;
430                         description {
431                                 state, "default" 0.0;
432                                 rel1 {
433                                   relative: 0.0 0.0;
434                                   to_x: "base";
435                                   to_y: "base";
436                                 }
437                                 rel2 {
438                                   relative: 0.0 0.0;
439                                   to_x: "base";
440                                   to_y: "base";
441                                 }
442                                 align, 0.0 0.0;
443                                 visible, 0;
444                         }
445                         description {
446                                 state, "default" 0.1;
447                                 min: WIDTH_OF_EXPAND_BUTTON_ICON HEIGHT_OF_EXPAND_BUTTON_ICON;
448                                 max: WIDTH_OF_EXPAND_BUTTON_ICON HEIGHT_OF_EXPAND_BUTTON_ICON;
449                                 fixed: 1 1;
450                                 rel1{ relative, 0.5 0.5; to, "list/unexpand/bg"; }
451                                 rel2{ relative, 0.5 0.5; to, "list/unexpand/bg"; }
452                                 align: 0.5 0.5;
453                                 image {
454                                         border_scale, 1;
455                                         normal, CALENDAR_LIST_INDEX_CLOSE;
456                                 }
457                         }
458                 }
459
460                 part { name, "list/sw";
461                         type, SWALLOW;
462                         scale, 1;
463                         description {
464                                 state, "default" 0.0;
465                                 rel1 {
466                                   relative: 0.0 1.0;
467                                   to_x: "base";
468                                   to_y: "list/title/bottom/line";
469                                 }
470                                 rel2 {
471                                   relative: 1.0 1.0;
472                                   to_x: "base";
473                                   to_y: "list/title/bottom/line";
474                                 }
475                                 align, 0.0 0.0;
476                                 visible, 0;
477                         }
478                         description {
479                                 state, "default" 0.1;
480                                 min, 0 HEIGHT_OF_LIST;
481                                 fixed, 0 1;
482                                 align, 0 0;
483                                 rel1 {
484                                   relative: 0.0 1.0;
485                                   to_x: "base";
486                                   to_y: "list/title/bottom/line";
487                                 }
488                                 rel2 {
489                                   relative: 1.0 1.0;
490                                   to_x: "base";
491                                   to_y: "list/title/bottom/line";
492                                 }
493                         }
494                 }
495
496                 part { name, "list/sw/bottom/line";
497                         type, RECT;
498                         scale, 1;
499                         description {
500                                 state, "default" 0.0;
501                                 rel1 {
502                                   relative: 0.0 1.0;
503                                   to_x: "base";
504                                   to_y: "list/sw";
505                                 }
506                                 rel2 {
507                                   relative: 1.0 1.0;
508                                   to_x: "base";
509                                   to_y: "list/sw";
510                                 }
511                                 align, 0.0 0.0;
512                                 visible, 0;
513                         }
514                         description {
515                                 state, "default" 0.1;
516                                 min, 0 1;
517                                 fixed, 0 1;
518                                 align, 0 0;
519                                 rel1 {
520                                   relative: 0.0 1.0;
521                                   to_x: "base";
522                                   to_y: "list/sw";
523                                 }
524                                 rel2 {
525                                   relative: 1.0 1.0;
526                                   to_x: "base";
527                                   to_y: "list/sw";
528                                 }
529                                 color, 169 169 69 255;
530                         }
531                 }
532
533                 part { name, "cont/sw";
534                         type, SWALLOW;
535                         scale, 1;
536                         description {
537                                 state, "default" 0.0;
538                                 rel1 { relative, 0.0 1.0; to_x, "base"; to_y, "list/sw"; }
539                                 rel2.to, "base";
540                                 align, 0.5 0.0;
541                         }
542                 }
543                 part { name, "line/top";
544                         type, RECT;
545                         description {
546                                 state, "default" 0.0;
547                                 min, 0 2;
548                                 fixed, 0 1;
549                                 rel1.to, "base";
550                                 rel2 { relative, 1.0 0.0; to, "base"; }
551                                 color, COLOR_OF_TOP_LINE_FOR_DAY;
552                                 align, 0.5 0.5;
553                         }
554                 }
555         }
556
557         programs {
558                 program { name, "list/none";
559                         signal, "list,hide";
560                         source, "prog";
561                         action, STATE_SET "default" 0.0;
562                         target, "list/title";
563                         target, "list/title/bottom/line";
564                         target, "list/title/left_padding";
565                         target, "list/title/right_padding";
566                         target, "list/expand/right_padding";
567                         target, "list/title/text";
568                         target, "list/expand/bg";
569                         target, "list/unexpand/bg";
570                         target, "list/icon/expand";
571                         target, "list/icon/unexpand";
572                         target, "list/sw";
573                         target, "list/sw/bottom/line";
574                 }
575
576                 program { name, "list/unexpanded";
577                         signal, "list,unexpanded";
578                         source, "prog";
579                         action, STATE_SET "default" 0.1;
580                         target, "list/title";
581                         target, "list/title/bottom/line";
582                         target, "list/title/left_padding";
583                         target, "list/title/right_padding";
584                         target, "list/expand/right_padding";
585                         target, "list/title/text";
586                         target, "list/expand/bg";
587                         target, "list/icon/expand";
588                 }
589
590                 program { name, "expand/down";
591                         signal, "mouse,down,1";
592                         source, "list/expand/bg";
593                         action, STATE_SET "default" 0.2;
594                         target, "list/expand/bg";
595                 }
596
597                 program { name, "expand/up";
598                         signal, "mouse,up,1";
599                         source, "list/expand/bg";
600                         action, STATE_SET "default" 0.1;
601                         target, "list/expand/bg";
602                 }
603
604                 program { name, "unexpand/down";
605                         signal, "mouse,down,1";
606                         source, "list/unexpand/bg";
607                         action, STATE_SET "default" 0.2;
608                         target, "list/unexpand/bg";
609                 }
610
611                 program { name, "unexpand/up";
612                         signal, "mouse,up,1";
613                         source, "list/unexpand/bg";
614                         action, STATE_SET "default" 0.1;
615                         target, "list/unexpand/bg";
616                 }
617
618                 program { name, "expand/clicked";
619                         signal, "mouse,clicked,1";
620                         source, "list/expand/bg";
621                         action, STATE_SET "default" 0.1;
622                         target, "list/title";
623                         target, "list/title/left_padding";
624                         target, "list/title/right_padding";
625                         target, "list/expand/right_padding";
626                         target, "list/title/text";
627                         target, "list/unexpand/bg";
628                         target, "list/icon/unexpand";
629                         target, "list/sw";
630                         target, "list/sw/bottom/line";
631                 }
632
633                 program { name, "expand/clicked/dump";
634                         signal, "mouse,clicked,1";
635                         source, "list/expand/bg";
636                         action, STATE_SET "default" 0.0;
637                         target, "list/expand/bg";
638                         target, "list/icon/expand";
639                 }
640
641                 program { name, "unexpand/clicked";
642                         signal, "mouse,clicked,1";
643                         source, "list/unexpand/bg";
644                         action, STATE_SET "default" 0.1;
645                         target, "list/title";
646                         target, "list/title/left_padding";
647                         target, "list/title/right_padding";
648                         target, "list/expand/right_padding";
649                         target, "list/title/text";
650                         target, "list/expand/bg";
651                         target, "list/icon/expand";
652                 }
653
654                 program { name, "unexpand/clicked/dump";
655                         signal, "mouse,clicked,1";
656                         source, "list/unexpand/bg";
657                         action, STATE_SET "default" 0.0;
658                         target, "list/unexpand/bg";
659                         target, "list/icon/unexpand";
660                         target, "list/sw";
661                         target, "list/sw/bottom/line";
662                 }
663
664         }
665 }