2 * Copyright 2012 Samsung Electronics Co., Ltd
4 * Licensed under the Flora License, Version 1.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.tizenopensource.org/license
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 #define GENLIST_PART_BOTTOM_LINE_COLOR_VIDEO 169 169 169 255
18 #define GENLIST_PART_BG_SELECTED_COLOR_INC 42 137 194 255
19 #define GENLIST_PART_BG_UNSELECTED_COLOR_INC 249 249 249 255
20 #define GENLIST_PART_BOTTOM_LINE_INC 169 169 169 255
21 #define GENLIST_PART_DISCLIP_COLOR_INC 255 255 255 110 // alpha was 64
23 #define GENLIST_PART_BASE( param_item_height ) \
24 part { name: "base"; \
28 description { state: "default" 0.0; \
29 min: 0 param_item_height; \
34 #define GENLIST_PART_BG_IMAGE \
35 part { name: "bg_image"; \
39 description { state: "default" 0.0; \
40 color: GENLIST_PART_BG_UNSELECTED_COLOR_INC; \
42 description { state: "selected" 0.0; \
43 inherit: "default" 0.0; \
44 color: GENLIST_PART_BG_SELECTED_COLOR_INC; \
48 #define GENLIST_PART_PADDING_TOP( param_padding_size ) \
49 part { name: "elm.padding.top"; \
53 state: "default" 0.0; \
54 min: 0 param_padding_size; \
57 rel2.relative: 1.0 0.0; \
62 #define GENLIST_PART_PADDING_BOTTOM( param_padding_size ) \
63 part { name: "elm.padding.bottom"; \
67 state: "default" 0.0; \
68 min: 0 param_padding_size; \
71 rel1.relative: 0.0 1.0; \
76 #define GENLIST_PART_PADDING_LEFT( param_padding_size ) \
77 part { name: "elm.padding.left"; \
81 state: "default" 0.0; \
82 min: param_padding_size 0; \
85 rel2.relative: 0.0 1.0; \
90 #define GENLIST_PART_PADDING_RIGHT( param_padding_size ) \
91 part { name: "elm.padding.right"; \
94 description { state: "default" 0.0; \
95 min: param_padding_size 0; \
98 rel1.relative: 1.0 0.0; \
103 #define GENLIST_PART_DISCLIP \
104 part { name: "disclip"; \
106 description { state: "default" 0.0; \
108 description { state: "disabled" 0.0; \
109 inherit: "default" 0.0; \
110 color: GENLIST_PART_DISCLIP_COLOR_INC; \
114 #define GENLIST_PART_BOTTOM_LINE_VIDEO \
115 part { name: "bottom_line"; \
117 clip_to: "disclip"; \
119 description { state: "default" 0.0; \
123 color: GENLIST_PART_BOTTOM_LINE_COLOR_VIDEO; \
131 #define VIDEO_COLOR_GAP 190 189 189 255
132 #define VIDEO_COLOR_DURATION 124 124 124 255
133 #define VIDEO_COLOR_TITLE 0 0 0 255
134 #define VIDEO_FONT_TITLE 44
135 #define VIDEO_FONT_DURATION 32
137 #define VIDEO_SELECT_ALL_ITEM_H 150
138 #define VIDEO_ITEM_H 160
139 #define VIDEO_PAD_T 22
140 #define VIDEO_PAD_B 32
141 #define VIDEO_PAD_L 16
142 #define VIDEO_PAD_R 16
143 #define VIDEO_PAD_ICON_R 16
144 #define VIDEO_PAD_ICON_L 16
145 #define VIDEO_PAD_BOOKMARK_T 28
146 #define VIDEO_BG_H 128
147 #define VIDEO_BG_W 172
149 #define VIDEO_TITLE_H 64
150 #define VIDEO_DURATION_H 48
151 #define VIDEO_BOOKMARK_H 64
152 #define VIDEO_BOOKMARK_W 64
153 #define VIDEO_PROGRESSBAR_H 17
154 #define VIDEO_PROGRESSBAR_W 64
155 #define VIDEO_PLAY_H 38
156 #define VIDEO_PLAY_W 38
157 #define VIDEO_FAVOR_H 38
158 #define VIDEO_FAVOR_W 36
159 #define VIDEO_CHECKBOX_W 42
160 #define VIDEO_CHECKBOX_H 42
162 group { name: "elm/genlist/item/video_list/gallery/default";
163 alias: "elm/genlist/item_odd/video_list/gallery/default";
164 alias: "elm/genlist/item_compress/video_list/gallery/default";
165 alias: "elm/genlist/item_compress_odd/video_list/gallery/default";
167 data.item: "stacking" "above";
168 data.item: "selectraise" "on";
169 data.item: "texts" "elm.text.title elm.text.duration";
170 data.item: "contents" "elm.icon elm.videoicon elm.bookmarkicon elm.favourites.icon elm.progressbar.icon";
172 data.item: "treesize" "20";
174 GENLIST_PART_BASE( VIDEO_ITEM_H )
175 GENLIST_PART_BG_IMAGE
176 GENLIST_PART_BOTTOM_LINE_VIDEO
177 GENLIST_PART_PADDING_TOP( VIDEO_PAD_T )
178 GENLIST_PART_PADDING_BOTTOM( VIDEO_PAD_B )
179 GENLIST_PART_PADDING_LEFT( VIDEO_PAD_L )
180 GENLIST_PART_PADDING_RIGHT( VIDEO_PAD_R )
182 part { name: "elm.padding.icon.right";
185 description { state: "default" 0.0;
186 min: VIDEO_PAD_ICON_R 0;
201 part { name: "icon_bg";
205 description { state: "default" 0.0;
206 min: VIDEO_BG_W VIDEO_BG_H;
207 max: VIDEO_BG_W VIDEO_BG_H;
210 color: VIDEO_COLOR_GAP;
213 to_x: "elm.padding.left";
218 to_x: "elm.padding.left";
222 part { name: "elm.icon";
226 description { state: "default" 0.0;
230 relative: (VIDEO_GAP)/VIDEO_BG_W (VIDEO_GAP)/VIDEO_BG_H;
234 relative: (VIDEO_BG_W-VIDEO_GAP+1)/VIDEO_BG_W (VIDEO_BG_H-VIDEO_GAP+1)/VIDEO_BG_H;
240 name: "elm.videoicon";
244 state: "default" 0.0;
245 max: VIDEO_PLAY_W VIDEO_PLAY_H;
247 rel1 { relative: 0.0 0.0; to: "elm.icon"; }
248 rel2 { relative: 1.0 1.0; to: "elm.icon"; }
251 part { name: "elm.favourites.icon";
255 state: "default" 0.0;
256 max: VIDEO_FAVOR_W VIDEO_FAVOR_H;
259 rel1 { relative: 0.0 0.0; to: "elm.icon"; }
260 rel2 { relative: 1.0 1.0; to: "elm.icon"; }
263 part { name: "elm.padding.bookmark.top";
267 state: "default" 0.0;
268 min: 0 VIDEO_PAD_BOOKMARK_T;
271 rel2.relative: 1.0 0.0;
275 part { name: "elm.bookmarkicon";
279 description { state: "default" 0.0;
280 min: VIDEO_BOOKMARK_W VIDEO_BOOKMARK_H;
285 to_x: "elm.padding.right";
286 to_y: "elm.padding.bookmark.top";
290 to_x: "elm.padding.right";
294 part { name: "elm.progressbar.icon";
298 description { state: "default" 0.0;
299 min: VIDEO_PROGRESSBAR_W VIDEO_PROGRESSBAR_H;
304 to_x: "elm.bookmarkicon";
308 to_x: "elm.bookmarkicon";
309 to_y: "elm.padding.bottom";
313 part { name: "elm.text.title";
318 description { state: "default" 0.0;
319 min: 0 VIDEO_TITLE_H;
324 to_x: "elm.padding.icon.right";
325 to_y: "elm.padding.top";
330 to_x: "elm.bookmarkicon";
331 to_y: "elm.padding.top";
333 color: VIDEO_COLOR_TITLE;
335 font: "SLP:style=Roman";
336 text_class: "slp_roman";
337 size: VIDEO_FONT_TITLE;
343 part { name: "elm.text.duration";
348 description { state: "default" 0.0;
349 min: 0 VIDEO_DURATION_H;
354 to_x: "elm.padding.icon.right";
355 to_y: "elm.text.title";
360 to_x: "elm.padding.right";
361 to_y: "elm.text.title";
363 color: VIDEO_COLOR_DURATION;
365 font: "SLP:style=Medium";
366 text_class: "slp_medium";
367 size: VIDEO_FONT_DURATION;
377 program { name: "go_active";
378 signal: "elm,state,selected";
380 action: STATE_SET "selected" 0.0;
383 program { name: "go_passive";
384 signal: "elm,state,unselected";
386 action: STATE_SET "default" 0.0;
388 transition: LINEAR 0.1;
390 program { name: "go_disabled";
391 signal: "elm,state,disabled";
393 action: STATE_SET "disabled" 0.0;
396 program { name: "go_enabled";
397 signal: "elm,state,enabled";
399 action: STATE_SET "default" 0.0;
406 group { name: "elm/genlist/item/video_list_edit/gallery/default";
407 alias: "elm/genlist/item_odd/video_list_edit/gallery/default";
409 //data.item: "stacking" "above";
410 //data.item: "selectraise" "on";
411 data.item: "texts" "elm.text.title elm.text.duration";
412 data.item: "contents" "elm.swallow.checkbox elm.icon elm.videoicon elm.bookmarkicon elm.favourites.icon elm.progressbar.icon";
414 //data.item: "treesize" "20";
416 GENLIST_PART_BASE( VIDEO_ITEM_H )
417 GENLIST_PART_BG_IMAGE
418 GENLIST_PART_BOTTOM_LINE_VIDEO
419 GENLIST_PART_PADDING_TOP( VIDEO_PAD_T )
420 GENLIST_PART_PADDING_BOTTOM( VIDEO_PAD_B )
421 GENLIST_PART_PADDING_LEFT( VIDEO_PAD_L )
422 GENLIST_PART_PADDING_RIGHT( VIDEO_PAD_R )
425 part { name: "elm.swallow.checkbox";
429 description { state: "default" 0.0;
430 min: VIDEO_CHECKBOX_W VIDEO_CHECKBOX_H;
431 max: VIDEO_CHECKBOX_W VIDEO_CHECKBOX_H;
436 to_x: "elm.padding.left";
441 to_x: "elm.padding.left";
445 part { name: "elm.padding.icon.left";
448 description { state: "default" 0.0;
449 min: VIDEO_PAD_ICON_L 0;
453 to_x: "elm.swallow.checkbox";
458 to_x: "elm.swallow.checkbox";
464 part { name: "elm.padding.icon.right";
467 description { state: "default" 0.0;
468 min: VIDEO_PAD_ICON_R 0;
483 part { name: "icon_bg";
487 description { state: "default" 0.0;
488 min: VIDEO_BG_W VIDEO_BG_H;
489 max: VIDEO_BG_W VIDEO_BG_H;
492 color: VIDEO_COLOR_GAP;
495 to_x: "elm.padding.icon.left";
500 to_x: "elm.padding.icon.left";
504 part { name: "elm.icon";
508 description { state: "default" 0.0;
512 relative: (VIDEO_GAP)/VIDEO_BG_W (VIDEO_GAP)/VIDEO_BG_H;
516 relative: (VIDEO_BG_W-VIDEO_GAP+1)/VIDEO_BG_W (VIDEO_BG_H-VIDEO_GAP+1)/VIDEO_BG_H;
522 name: "elm.videoicon";
526 state: "default" 0.0;
527 max: VIDEO_PLAY_W VIDEO_PLAY_H;
530 rel1 { relative: 0.0 0.0; to: "elm.icon"; }
531 rel2 { relative: 1.0 1.0; to: "elm.icon"; }
534 part { name: "elm.favourites.icon";
538 state: "default" 0.0;
539 max: VIDEO_FAVOR_W VIDEO_FAVOR_H;
542 rel1 { relative: 0.0 0.0; to: "elm.icon"; }
543 rel2 { relative: 1.0 1.0; to: "elm.icon"; }
546 part { name: "elm.padding.bookmark.top";
550 state: "default" 0.0;
551 min: 0 VIDEO_PAD_BOOKMARK_T;
554 rel2.relative: 1.0 0.0;
558 part { name: "elm.bookmarkicon";
562 description { state: "default" 0.0;
563 min: VIDEO_BOOKMARK_W VIDEO_BOOKMARK_H;
568 to_x: "elm.padding.right";
569 to_y: "elm.padding.bookmark.top";
573 to_x: "elm.padding.right";
577 part { name: "elm.progressbar.icon";
581 description { state: "default" 0.0;
582 min: VIDEO_PROGRESSBAR_W VIDEO_PROGRESSBAR_H;
587 to_x: "elm.bookmarkicon";
591 to_x: "elm.bookmarkicon";
592 to_y: "elm.padding.bottom";
596 part { name: "elm.text.title";
601 description { state: "default" 0.0;
602 min: 0 VIDEO_TITLE_H;
607 to_x: "elm.padding.icon.right";
608 to_y: "elm.padding.top";
613 to_x: "elm.bookmarkicon";
614 to_y: "elm.padding.top";
616 color: VIDEO_COLOR_TITLE;
618 font: "SLP:style=Roman";
619 text_class: "slp_roman";
620 size: VIDEO_FONT_TITLE;
626 part { name: "elm.text.duration";
631 description { state: "default" 0.0;
632 min: 0 VIDEO_DURATION_H;
637 to_x: "elm.padding.icon.right";
638 to_y: "elm.text.title";
643 to_x: "elm.padding.right";
644 to_y: "elm.text.title";
646 color: VIDEO_COLOR_DURATION;
648 font: "SLP:style=Medium";
649 text_class: "slp_medium";
650 size: VIDEO_FONT_DURATION;
660 program { name: "go_active";
661 signal: "elm,state,selected";
663 action: STATE_SET "selected" 0.0;
666 program { name: "go_passive";
667 signal: "elm,state,unselected";
669 action: STATE_SET "default" 0.0;
671 transition: LINEAR 0.1;
673 program { name: "go_disabled";
674 signal: "elm,state,disabled";
676 action: STATE_SET "disabled" 0.0;
679 program { name: "go_enabled";
680 signal: "elm,state,enabled";
682 action: STATE_SET "default" 0.0;