99c5f2ebbf106bdd777af521a66a8afa20aa19b4
[apps/core/preloaded/calendar.git] / data / edc / theme2 / genlist.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 #include "originals/tizen-hd-inc.edc"
19 #include "originals/genlist_macro.edc"
20 #include "originals/genlist_textblock_style.edc"
21
22 /*
23  * vim:ts=3
24 */
25
26 #define GENLIST_PART_INPUT_BG(NAME, INPUT_NAME)\
27                 part { name, NAME;\
28                         scale, 1;\
29                        description {\
30                                 state, "default" 0.0;\
31                                 min, 0 80;\
32                                 fixed, 0 1;\
33                                 align, 0.0 0.5;\
34                                 rel1 { relative, -0.1 -0.1; to, INPUT_NAME; }\
35                                 rel2 { relative, 1.1 1.1; to, INPUT_NAME; }\
36                                 image {\
37                                         normal, "01_dialoguegroup_edit_default.png";\
38                                         border, 13 13 9 14;\
39                                         border_scale, 1;\
40                                 }\
41                         }\
42                 }
43
44 #define GENLIST_PART_ICON_FIXED_WIDTH_L(NAME, WIDTH, LEFT) \
45    GENLIST_PART_ICON(NAME, \
46       GENLIST_DESCRIPTION_L(LEFT, \
47          fixed: 1 1; \
48          min: WIDTH 0; \
49          max: WIDTH 0; \
50       ) \
51    )
52
53    group { name: "elm/genlist/item/2icon.1text.custom/default";
54       GENLIST_DATA_ITEM_NORMAL
55       data.item: "texts" "text";
56       data.item: "contents" "radio input_sw";
57
58       images {
59          image, "01_dialoguegroup_edit_default.png" COMP;
60       }
61
62       parts {
63          GENLIST_PART_BG_IMAGE
64          GENLIST_PART_BASE
65          GENLIST_PART_BOTTOM_LINE
66          GENLIST_PART_PADDING_LEFT
67          GENLIST_PART_PADDING_RIGHT
68
69          GENLIST_PART_ICON_BIG_L("radio", "elm.padding.left")
70          GENLIST_PART_PADDING_L("radio.right.padding", "radio")
71
72          part { name, "input_area";
73                 type: TEXT;
74                 description {
75                         state: "default" 0.0;
76                         fixed: 1 0;
77                         rel1 { relative, 1.0 0.0; to, "radio.right.padding"; }
78                         rel2 { relative, 1.0 1.0; to, "radio.right.padding"; }
79                         align, 0.0 0.5;
80                         text {
81                                 font: "SLP:style=Medium";
82                                 size: 64;
83                                 min: 0 1;
84                                 text: "00";
85                                 text_class: "entry";
86                         }
87                 }
88          }
89
90          part { name, "input_bg";
91                  scale, 1;
92                  description {
93                          state, "default" 0.0;
94                          min, 0 80;
95                          fixed, 0 1;
96                          align, 0.0 0.5;
97                          rel1 { relative, -0.1 -0.1; to, "input_sw"; }
98                          rel2 { relative, 1.1 1.1; to, "input_sw"; }
99                          image {
100                                  normal, "01_dialoguegroup_edit_default.png";
101                                  border, 13 13 9 14;
102                                  border_scale, 1;
103                          }
104                  }
105          }
106
107          part { name, "input_sw";
108                  type, SWALLOW;
109                  description {
110                          state, "default" 0.0;
111                          rel1 { relative, 0.0 0.0; to, "input_area"; }
112                          rel2 { relative, 1.0 1.0; to, "input_area"; }
113                          align, 0.0 0.5;
114                  }
115          }
116
117          GENLIST_PART_PADDING_L("input_sw.padding.right", "input_sw")
118
119          GENLIST_PART_LISTITEM_LR("text", GENLIST_HEIGHT_1LINE,
120             "input_sw.padding.right", "elm.padding.right", )
121
122          GENLIST_PART_FLIP
123       }
124       GENLIST_PROGRAMS_NORMAL( target: "text"; target: "radio"; target: "input_sw"; )
125    }
126
127    group { name: "elm/genlist/item/dialogue/2icon.1text.custom/default";
128       inherit: "elm/genlist/item/2icon.1text.custom/default";
129       GENLIST_DIALOGUE_INHERIT_BODY( ; )
130       GENLIST_PROGRAMS_DIALOGUE( target: "text"; target: "radio"; )
131    }
132
133    group { name: "elm/genlist/item/3icon.1text.custom/default";
134       GENLIST_DATA_ITEM_NORMAL
135       data.item: "texts" "text";
136       data.item: "contents" "radio input_sw button";
137
138       images {
139          image, "01_dialoguegroup_edit_default.png" COMP;
140       }
141
142       parts {
143          GENLIST_PART_BG_IMAGE
144          GENLIST_PART_BASE
145          GENLIST_PART_BOTTOM_LINE
146          GENLIST_PART_PADDING_LEFT
147          GENLIST_PART_PADDING_RIGHT
148
149          GENLIST_PART_ICON_BIG_L("radio", "elm.padding.left")
150          GENLIST_PART_PADDING_L("radio.right.padding", "radio")
151
152          part { name, "input_area";
153                 type: TEXT;
154                 description {
155                         state: "default" 0.0;
156                         fixed: 1 0;
157                         rel1 { relative, 1.0 0.0; to, "radio.right.padding"; }
158                         rel2 { relative, 1.0 1.0; to, "radio.right.padding"; }
159                         align, 0.0 0.5;
160                         text {
161                                 font: "SLP:style=Medium";
162                                 size: 64;
163                                 min: 1 1;
164                                 text: "00";
165                                 text_class: "entry";
166                         }
167                 }
168          }
169
170          part { name, "input_bg";
171                  scale, 1;
172                  description {
173                          state, "default" 0.0;
174                          min, 0 80;
175                          fixed, 0 1;
176                          align, 0.0 0.5;
177                          rel1 { relative, -0.1 -0.1; to, "input_sw"; }
178                          rel2 { relative, 1.1 1.1; to, "input_sw"; }
179                          image {
180                                  normal, "01_dialoguegroup_edit_default.png";
181                                  border, 13 13 9 14;
182                                  border_scale, 1;
183                          }
184                  }
185          }
186
187          part { name, "input_sw";
188                  type, SWALLOW;
189                  description {
190                          state, "default" 0.0;
191                          rel1 { relative, 0.0 0.0; to, "input_area"; }
192                          rel2 { relative, 1.0 1.0; to, "input_area"; }
193                          align, 0.0 0.5;
194                  }
195          }
196
197          GENLIST_PART_PADDING_L("input_sw.padding.right", "input_sw")
198
199          GENLIST_PART_ICON_FIXED_WIDTH_L("button", 150, "input_sw.padding.right")
200          GENLIST_PART_PADDING_L("button.padding.right", "button")
201
202          GENLIST_PART_LISTITEM_LR("text", GENLIST_HEIGHT_1LINE,
203             "button.padding.right", "elm.padding.right", )
204
205          GENLIST_PART_FLIP
206       }
207       GENLIST_PROGRAMS_NORMAL( target: "text"; target: "radio"; )
208    }
209
210    group { name: "elm/genlist/item/dialogue/3icon.1text.custom/default";
211       inherit: "elm/genlist/item/3icon.1text.custom/default";
212       GENLIST_DIALOGUE_INHERIT_BODY( ; )
213       GENLIST_PROGRAMS_DIALOGUE( target: "text"; target: "radio"; target: "input_sw";
214          target: "button"; )
215    }
216
217    group { name: "elm/genlist/item/dialogue/1text.1icon.5.grid/default";
218       alias: "elm/genlist/item_odd/dialogue/1text.1icon.5.grid/default";
219       alias: "elm/genlist/item_compress/dialogue/1text.1icon.5.grid/default";
220       alias: "elm/genlist/item_compress_odd/dialogue/1text.1icon.5.grid/default";
221
222       GENLIST_DATA_ITEM_NORMAL
223       data.item: "texts" "elm.text";
224       data.item: "contents" "elm.icon elm.icon.edit";
225
226       GENLIST_IMAGES_DIALOGUE_BG_IMAGE
227       parts {
228          GENLIST_PART_BG_IMAGE_DIALOGUE
229          GENLIST_PART_BASE
230          GENLIST_PART_PADDING_LEFT_SIZE( DIALOGUE_PADDING_SIZE_LEFT )
231          GENLIST_PART_PADDING_RIGHT_SIZE_EDIT( DIALOGUE_PADDING_SIZE_RIGHT )
232          GENLIST_PART_PADDING_TOP_SIZE(0)
233          GENLIST_PART_PADDING_BOTTOM_SIZE(0)
234
235          GENLIST_PART_SUBITEM_("elm.text", 86,
236             "elm.padding.left", "elm.padding.right", "elm.padding.top", "elm.icon",
237          )
238          GENLIST_PART_ICON("elm.icon",
239             GENLIST_DESCRIPTION_LRB("elm.padding.left", "elm.padding.right", "elm.padding.bottom", min: 0 205; fixed: 0 1;)
240          )
241          GENLIST_PART_FLIP
242       }
243       GENLIST_PROGRAMS_DIALOGUE( target: "elm.text"; target: "elm.icon"; )
244    }
245
246 #define OVERLAY(PART)\
247                fixed: 0 1;\
248                rel1 {\
249                    relative: 0.0 0.0; to, PART;\
250                }\
251                rel2 {\
252                    relative: 1.0 1.0; to, PART;\
253                }\
254                align: 0.0 0.5;\
255
256 #define TEXTBLOCK_OVERLAY(PART_NAME, TARGET_PART, STYLE_DEFAULT, STYLE_SELECTED)\
257          part { name: PART_NAME;\
258             type: TEXTBLOCK;\
259             mouse_events: 0;\
260             scale: 1;\
261             description { state: "default" 0.0;\
262                 min: GENLIST_SIZE_390_INC GENLIST_SIZE_48_INC;\
263                 OVERLAY(TARGET_PART);\
264                 text {\
265                style: STYLE_DEFAULT;\
266                min: 0 1;\
267                   text_class: "slp";\
268             }\
269                align: 0.0 0.5;\
270             }\
271              description { state: "selected" 0.0;\
272                 min: GENLIST_SIZE_390_INC GENLIST_SIZE_48_INC;\
273                 OVERLAY(TARGET_PART);\
274                 text {\
275                style: STYLE_SELECTED;\
276                min: 0 1;\
277                   text_class: "slp";\
278             }\
279                align: 0.0 0.5;\
280             }\
281          }
282
283         group { name: "elm/genlist/item/dialogue/2icon.calendar/default";
284       GENLIST_DATA_ITEM_NORMAL
285       data.item: "contents" "elm.icon.1 elm.icon.2";
286
287       GENLIST_IMAGES_DIALOGUE_BG_IMAGE
288       parts {
289          GENLIST_PART_BG_IMAGE_DIALOGUE
290          GENLIST_PART_BASE
291          GENLIST_PART_PADDING_LEFT_SIZE( DIALOGUE_PADDING_SIZE_LEFT )
292          GENLIST_PART_PADDING_RIGHT_SIZE_EDIT( DIALOGUE_PADDING_SIZE_RIGHT )
293          GENLIST_PART_PADDING_TOP_SIZE(10)
294          GENLIST_PART_PADDING_BOTTOM_SIZE(10)
295
296          GENLIST_PART_ICON("elm.icon.1",
297             GENLIST_DESCRIPTION_LTB("elm.padding.left", "elm.padding.top", "elm.padding.bottom", min: 80 80; max: 80 80; fixed: 1 1;)
298          )
299          GENLIST_PART_PADDING_L("elm.padding.icon1.right", "elm.icon.1")
300          GENLIST_PART_ICON("elm.icon.2",
301             GENLIST_DESCRIPTION("elm.padding.icon1.right", "elm.padding.right","elm.padding.top", "elm.padding.bottom", min:100 80;)
302          )
303          GENLIST_PART_FLIP
304       }
305       GENLIST_PROGRAMS_DIALOGUE(target: "elm.icon.1"; target: "elm.icon.2";)
306    }
307
308 #define GENLIST_GROUPINDEX_LIST_COLOR_TODAY 255 108 0 255
309 #define GENLIST_GROUPINDEX_LINE_COLOR_TODAY 255 108 0 255
310
311 // Group Title
312 #define GENLIST_PARAM_INDEX_LIST_TODAY \
313    color: GENLIST_GROUPINDEX_LIST_COLOR_TODAY; \
314    text { \
315       align: 0 0.5; \
316       min: 0 1; \
317       font: "SLP:style=Bold"; \
318       size: GENLIST_GROUPINDEX_LIST_SIZE; \
319       text_class: "list_item"; \
320    }
321
322 #define GENLIST_PART_INDEX_LINE_TODAY(LEFT, RIGHT, TOP, BOTTOM) \
323          GENLIST_PART_RECT("index_line", \
324             GENLIST_DESCRIPTION(LEFT, RIGHT, TOP, BOTTOM, \
325                color: GENLIST_GROUPINDEX_LINE_COLOR_TODAY; \
326                min: 0 4; \
327                max: -1 4;) \
328             description { state: "selected" 0.0; \
329                inherit: "default" 0.0; \
330                color: GENLIST_GROUPINDEX_LINE_FOCUS_COLOR; \
331             } \
332          )
333
334    group { name: "elm/genlist/item/today_grouptitle/default";
335       alias: "elm/genlist/item_odd/groupindex/default";
336       alias: "elm/genlist/item_compress/groupindex/default";
337       alias: "elm/genlist/item_compress_odd/groupindex/default";
338            alias: "elm/genlist/item/grouptitle/default";
339       alias: "elm/genlist/item_odd/grouptitle/default";
340       alias: "elm/genlist/item_compress/grouptitle/default";
341       alias: "elm/genlist/item_compress_odd/grouptitle/default";
342
343       data.item: "stacking" "above";
344       data.item: "selectraise" "on";
345       data.item: "texts" "elm.text";
346       data.item: "treesize" "GENLIST_TREESIZE_DEFAULT";
347
348       GENLIST_IMAGE_GROUPINDEX
349       parts {
350          GENLIST_PART_BASE
351          GENLIST_PART_INDEX_BG_IMAGE
352          GENLIST_PART_PADDING_LEFT_SIZE(24)
353          GENLIST_PART_PADDING_RIGHT_SIZE(24)
354          GENLIST_PART_PADDING_TOP_SIZE(20)
355          GENLIST_PART_PADDING_BOTTOM_SIZE(14)
356          GENLIST_PART_TEXT("elm.text",
357             GENLIST_DESCRIPTION_LRT("elm.padding.left", "elm.padding.right", "elm.padding.top",
358                GENLIST_PARAM_INDEX_LIST_TODAY
359                min: 0 38; fixed: 1 1;)
360             GENLIST_DESCRIPTION_INDEX_LIST
361          )
362          GENLIST_PART_INDEX_LINE_TODAY("elm.padding.left", "elm.padding.right", "elm.text", "elm.padding.bottom")
363       }
364       programs {
365          GENLIST_PROGRAM_DISABLED( target: "elm.text"; target: "index_line"; )
366          GENLIST_PROGRAM_SELECT( target: "elm.text"; target: "index_line"; )
367       }
368    }
369
370   group { name: "elm/genlist/item/1text.1icon.9.allday/default";
371       GENLIST_DATA_ITEM_NORMAL
372       data.item: "texts" "elm.textblock";
373       data.item: "contents" "elm.swallow.colorbar";
374
375       images {
376          image: "00_list_bubble_bg.png" COMP;
377       }
378         styles{
379                 style { name: "day_allday_text";
380                         base: "font=SLP:style=Regular  font_size=34 align=left color=#000000FF wrap=mixed ellipsis=1";
381                         tag:  "br" "\n";
382                         tag,  "ps" "ps";
383                         tag:  "hilight" "+ color=#000000";
384                         tag:  "b" "+ font=SLP:style=Bold";
385                         tag:  "tab" "\t";
386                         tag:  "strike" "+ strikethrough=on strikethrough_color=#FF0000";
387                 }
388                 style { name: "day_allday_text_selected";
389                         base: "font=SLP:style=Regular  font_size=34 align=left color=#F9F9F9FF wrap=mixed ellipsis=1";
390                         tag:  "br" "\n";
391                         tag,  "ps" "ps";
392                         tag:  "hilight" "+ color=#000000";
393                         tag:  "b" "+ font=SLP:style=Bold";
394                         tag:  "tab" "\t";
395                         tag:  "strike" "+ strikethrough=on strikethrough_color=#FF0000";
396                 }
397         }
398         parts {
399          GENLIST_PART_BG_IMAGE
400          GENLIST_PART_BASE
401          GENLIST_PART_BOTTOM_LINE
402          GENLIST_PART_PADDING_TOP_2LINE
403          GENLIST_PART_PADDING_BOTTOM_2LINE
404          GENLIST_PART_PADDING_LEFT
405          GENLIST_PART_PADDING_RIGHT
406          GENLIST_PART_COLORBAR
407
408           GENLIST_PART_PADDING_L("elm.padding.icon1.right", "elm.swallow.colorbar")
409
410          GENLIST_PART_LISTITEM_LR("elm.text", GENLIST_HEIGHT_2LINE_MAIN,
411             "elm.padding.icon1.right", "elm.padding.right",
412          )
413          GENLIST_PART_FLIP
414          TEXTBLOCK_OVERLAY("elm.textblock", "elm.text", day_allday_text, day_allday_text_selected)
415       }
416       GENLIST_PROGRAMS_NORMAL( target: "elm.textblock";
417          target: "elm.swallow.colorbar"; )
418          program { name: "go_active";
419             signal: "elm,state,selected";
420             source: "elm";
421             action: STATE_SET "selected" 0.0;
422             target: "bg_image";
423             target: "elm.textblock";
424          }
425          program { name: "go_passive";
426             signal: "elm,state,unselected";
427             source: "elm";
428             action: STATE_SET "default" 0.0;
429             target: "bg_image";
430             target: "elm.textblock";
431             transition: LINEAR 0.1;
432          }
433    }
434
435   group { name: "elm/genlist/item/1text.1icon.9.task/default";
436       GENLIST_DATA_ITEM_NORMAL
437       data.item: "texts" "elm.textblock";
438       data.item: "contents" "elm.swallow.colorbar elm.icon";
439
440       images {
441          image: "00_list_bubble_bg.png" COMP;
442       }
443         styles{
444                 style { name: "day_task_text";
445                         base: "font=SLP:style=Regular  font_size=34 align=left color=#000000FF wrap=mixed ellipsis=1";
446                         tag:  "br" "\n";
447                         tag,  "ps" "ps";
448                         tag:  "hilight" "+ color=#000000";
449                         tag:  "b" "+ font=SLP:style=Bold";
450                         tag:  "tab" "\t";
451                         tag:  "strike" "+ strikethrough=on strikethrough_color=#FF0000";
452                 }
453                 style { name: "day_task_text_selected";
454                         base: "font=SLP:style=Regular  font_size=34 align=left color=#F9F9F9FF wrap=mixed ellipsis=1";
455                         tag:  "br" "\n";
456                         tag,  "ps" "ps";
457                         tag:  "hilight" "+ color=#000000";
458                         tag:  "b" "+ font=SLP:style=Bold";
459                         tag:  "tab" "\t";
460                         tag:  "strike" "+ strikethrough=on strikethrough_color=#FF0000";
461                 }
462         }
463         parts {
464          GENLIST_PART_BG_IMAGE
465          GENLIST_PART_BASE
466          GENLIST_PART_BOTTOM_LINE
467          GENLIST_PART_PADDING_TOP_2LINE
468          GENLIST_PART_PADDING_BOTTOM_2LINE
469          GENLIST_PART_PADDING_LEFT
470          GENLIST_PART_PADDING_RIGHT
471          GENLIST_PART_COLORBAR
472
473          GENLIST_PART_ICON_BIG_L("elm.icon", "elm.padding.left")
474          GENLIST_PART_PADDING_L("elm.padding.icon1.right", "elm.icon")
475
476          GENLIST_PART_LISTITEM_LR_TB("elm.text", GENLIST_HEIGHT_2LINE_MAIN,
477             "elm.padding.icon1.right", "elm.padding.right",
478          )
479          GENLIST_PART_FLIP
480
481                  TEXTBLOCK_OVERLAY("elm.textblock", "elm.text", day_task_text, day_task_text_selected)
482       }
483       GENLIST_PROGRAMS_NORMAL( target: "elm.textblock";
484          target: "elm.swallow.colorbar"; target: "elm.icon"; )
485          program { name: "go_active";
486             signal: "elm,state,selected";
487             source: "elm";
488             action: STATE_SET "selected" 0.0;
489             target: "bg_image";
490             target: "elm.textblock";
491          }
492          program { name: "go_passive";
493             signal: "elm,state,unselected";
494             source: "elm";
495             action: STATE_SET "default" 0.0;
496             target: "bg_image";
497             target: "elm.textblock";
498             transition: LINEAR 0.1;
499          }
500    }