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.
18 #include "originals/tizen-hd-inc.edc"
19 #include "originals/genlist_macro.edc"
20 #include "originals/genlist_textblock_style.edc"
26 #define GENLIST_PART_INPUT_BG(NAME, INPUT_NAME)\
30 state, "default" 0.0;\
34 rel1 { relative, -0.1 -0.1; to, INPUT_NAME; }\
35 rel2 { relative, 1.1 1.1; to, INPUT_NAME; }\
37 normal, "01_dialoguegroup_edit_default.png";\
44 #define GENLIST_PART_ICON_FIXED_WIDTH_L(NAME, WIDTH, LEFT) \
45 GENLIST_PART_ICON(NAME, \
46 GENLIST_DESCRIPTION_L(LEFT, \
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";
59 image, "01_dialoguegroup_edit_default.png" COMP;
65 GENLIST_PART_BOTTOM_LINE
66 GENLIST_PART_PADDING_LEFT
67 GENLIST_PART_PADDING_RIGHT
69 GENLIST_PART_ICON_BIG_L("radio", "elm.padding.left")
70 GENLIST_PART_PADDING_L("radio.right.padding", "radio")
72 part { name, "input_area";
77 rel1 { relative, 1.0 0.0; to, "radio.right.padding"; }
78 rel2 { relative, 1.0 1.0; to, "radio.right.padding"; }
81 font: "SLP:style=Medium";
90 part { name, "input_bg";
97 rel1 { relative, -0.1 -0.1; to, "input_sw"; }
98 rel2 { relative, 1.1 1.1; to, "input_sw"; }
100 normal, "01_dialoguegroup_edit_default.png";
107 part { name, "input_sw";
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"; }
117 GENLIST_PART_PADDING_L("input_sw.padding.right", "input_sw")
119 GENLIST_PART_LISTITEM_LR("text", GENLIST_HEIGHT_1LINE,
120 "input_sw.padding.right", "elm.padding.right", )
124 GENLIST_PROGRAMS_NORMAL( target: "text"; target: "radio"; target: "input_sw"; )
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"; )
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";
139 image, "01_dialoguegroup_edit_default.png" COMP;
143 GENLIST_PART_BG_IMAGE
145 GENLIST_PART_BOTTOM_LINE
146 GENLIST_PART_PADDING_LEFT
147 GENLIST_PART_PADDING_RIGHT
149 GENLIST_PART_ICON_BIG_L("radio", "elm.padding.left")
150 GENLIST_PART_PADDING_L("radio.right.padding", "radio")
152 part { name, "input_area";
155 state: "default" 0.0;
157 rel1 { relative, 1.0 0.0; to, "radio.right.padding"; }
158 rel2 { relative, 1.0 1.0; to, "radio.right.padding"; }
161 font: "SLP:style=Medium";
170 part { name, "input_bg";
173 state, "default" 0.0;
177 rel1 { relative, -0.1 -0.1; to, "input_sw"; }
178 rel2 { relative, 1.1 1.1; to, "input_sw"; }
180 normal, "01_dialoguegroup_edit_default.png";
187 part { name, "input_sw";
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"; }
197 GENLIST_PART_PADDING_L("input_sw.padding.right", "input_sw")
199 GENLIST_PART_ICON_FIXED_WIDTH_L("button", 150, "input_sw.padding.right")
200 GENLIST_PART_PADDING_L("button.padding.right", "button")
202 GENLIST_PART_LISTITEM_LR("text", GENLIST_HEIGHT_1LINE,
203 "button.padding.right", "elm.padding.right", )
207 GENLIST_PROGRAMS_NORMAL( target: "text"; target: "radio"; )
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";
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";
222 GENLIST_DATA_ITEM_NORMAL
223 data.item: "texts" "elm.text";
224 data.item: "contents" "elm.icon elm.icon.edit";
226 GENLIST_IMAGES_DIALOGUE_BG_IMAGE
228 GENLIST_PART_BG_IMAGE_DIALOGUE
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)
235 GENLIST_PART_SUBITEM_("elm.text", 86,
236 "elm.padding.left", "elm.padding.right", "elm.padding.top", "elm.icon",
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;)
243 GENLIST_PROGRAMS_DIALOGUE( target: "elm.text"; target: "elm.icon"; )
246 #define OVERLAY(PART)\
249 relative: 0.0 0.0; to, PART;\
252 relative: 1.0 1.0; to, PART;\
256 #define TEXTBLOCK_OVERLAY(PART_NAME, TARGET_PART, STYLE_DEFAULT, STYLE_SELECTED)\
257 part { name: PART_NAME;\
261 description { state: "default" 0.0;\
262 min: GENLIST_SIZE_390_INC GENLIST_SIZE_48_INC;\
263 OVERLAY(TARGET_PART);\
265 style: STYLE_DEFAULT;\
271 description { state: "selected" 0.0;\
272 min: GENLIST_SIZE_390_INC GENLIST_SIZE_48_INC;\
273 OVERLAY(TARGET_PART);\
275 style: STYLE_SELECTED;\
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";
287 GENLIST_IMAGES_DIALOGUE_BG_IMAGE
289 GENLIST_PART_BG_IMAGE_DIALOGUE
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)
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;)
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;)
305 GENLIST_PROGRAMS_DIALOGUE(target: "elm.icon.1"; target: "elm.icon.2";)
308 #define GENLIST_GROUPINDEX_LIST_COLOR_TODAY 255 108 0 255
309 #define GENLIST_GROUPINDEX_LINE_COLOR_TODAY 255 108 0 255
312 #define GENLIST_PARAM_INDEX_LIST_TODAY \
313 color: GENLIST_GROUPINDEX_LIST_COLOR_TODAY; \
317 font: "SLP:style=Bold"; \
318 size: GENLIST_GROUPINDEX_LIST_SIZE; \
319 text_class: "list_item"; \
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; \
328 description { state: "selected" 0.0; \
329 inherit: "default" 0.0; \
330 color: GENLIST_GROUPINDEX_LINE_FOCUS_COLOR; \
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";
343 data.item: "stacking" "above";
344 data.item: "selectraise" "on";
345 data.item: "texts" "elm.text";
346 data.item: "treesize" "GENLIST_TREESIZE_DEFAULT";
348 GENLIST_IMAGE_GROUPINDEX
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
362 GENLIST_PART_INDEX_LINE_TODAY("elm.padding.left", "elm.padding.right", "elm.text", "elm.padding.bottom")
365 GENLIST_PROGRAM_DISABLED( target: "elm.text"; target: "index_line"; )
366 GENLIST_PROGRAM_SELECT( target: "elm.text"; target: "index_line"; )
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";
376 image: "00_list_bubble_bg.png" COMP;
379 style { name: "day_allday_text";
380 base: "font=SLP:style=Regular font_size=34 align=left color=#000000FF wrap=mixed ellipsis=1";
383 tag: "hilight" "+ color=#000000";
384 tag: "b" "+ font=SLP:style=Bold";
386 tag: "strike" "+ strikethrough=on strikethrough_color=#FF0000";
388 style { name: "day_allday_text_selected";
389 base: "font=SLP:style=Regular font_size=34 align=left color=#F9F9F9FF wrap=mixed ellipsis=1";
392 tag: "hilight" "+ color=#000000";
393 tag: "b" "+ font=SLP:style=Bold";
395 tag: "strike" "+ strikethrough=on strikethrough_color=#FF0000";
399 GENLIST_PART_BG_IMAGE
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
408 GENLIST_PART_PADDING_L("elm.padding.icon1.right", "elm.swallow.colorbar")
410 GENLIST_PART_LISTITEM_LR("elm.text", GENLIST_HEIGHT_2LINE_MAIN,
411 "elm.padding.icon1.right", "elm.padding.right",
414 TEXTBLOCK_OVERLAY("elm.textblock", "elm.text", day_allday_text, day_allday_text_selected)
416 GENLIST_PROGRAMS_NORMAL( target: "elm.textblock";
417 target: "elm.swallow.colorbar"; )
418 program { name: "go_active";
419 signal: "elm,state,selected";
421 action: STATE_SET "selected" 0.0;
423 target: "elm.textblock";
425 program { name: "go_passive";
426 signal: "elm,state,unselected";
428 action: STATE_SET "default" 0.0;
430 target: "elm.textblock";
431 transition: LINEAR 0.1;
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";
441 image: "00_list_bubble_bg.png" COMP;
444 style { name: "day_task_text";
445 base: "font=SLP:style=Regular font_size=34 align=left color=#000000FF wrap=mixed ellipsis=1";
448 tag: "hilight" "+ color=#000000";
449 tag: "b" "+ font=SLP:style=Bold";
451 tag: "strike" "+ strikethrough=on strikethrough_color=#FF0000";
453 style { name: "day_task_text_selected";
454 base: "font=SLP:style=Regular font_size=34 align=left color=#F9F9F9FF wrap=mixed ellipsis=1";
457 tag: "hilight" "+ color=#000000";
458 tag: "b" "+ font=SLP:style=Bold";
460 tag: "strike" "+ strikethrough=on strikethrough_color=#FF0000";
464 GENLIST_PART_BG_IMAGE
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
473 GENLIST_PART_ICON_BIG_L("elm.icon", "elm.padding.left")
474 GENLIST_PART_PADDING_L("elm.padding.icon1.right", "elm.icon")
476 GENLIST_PART_LISTITEM_LR_TB("elm.text", GENLIST_HEIGHT_2LINE_MAIN,
477 "elm.padding.icon1.right", "elm.padding.right",
481 TEXTBLOCK_OVERLAY("elm.textblock", "elm.text", day_task_text, day_task_text_selected)
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";
488 action: STATE_SET "selected" 0.0;
490 target: "elm.textblock";
492 program { name: "go_passive";
493 signal: "elm,state,unselected";
495 action: STATE_SET "default" 0.0;
497 target: "elm.textblock";
498 transition: LINEAR 0.1;