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 82 82 82 255
18 #define GENLIST_PART_BG_SELECTED_COLOR_INC 50 65 74 255
19 #define GENLIST_PART_BG_UNSELECTED_COLOR_INC 0 0 0 0
20 #define GENLIST_PART_BOTTOM_LINE_INC 65 65 65 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 239 239 239 127
132 #define VIDEO_COLOR_DURATION 204 204 204 255
133 #define VIDEO_COLOR_TITLE 255 255 255 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_CHECKBOX_W 42
158 #define VIDEO_CHECKBOX_H 42
160 group { name: "elm/genlist/item/video_list/gallery/default";
161 alias: "elm/genlist/item_odd/video_list/gallery/default";
162 alias: "elm/genlist/item_compress/video_list/gallery/default";
163 alias: "elm/genlist/item_compress_odd/video_list/gallery/default";
165 //data.item: "stacking" "above";
166 //data.item: "selectraise" "on";
167 data.item: "texts" "elm.text.title elm.text.duration";
168 data.item: "contents" "elm.icon elm.videoicon elm.bookmarkicon elm.progressbar_icon";
170 //data.item: "treesize" "20";
172 GENLIST_PART_BASE( VIDEO_ITEM_H )
173 GENLIST_PART_BG_IMAGE
174 GENLIST_PART_BOTTOM_LINE_VIDEO
175 GENLIST_PART_PADDING_TOP( VIDEO_PAD_T )
176 GENLIST_PART_PADDING_BOTTOM( VIDEO_PAD_B )
177 GENLIST_PART_PADDING_LEFT( VIDEO_PAD_L )
178 GENLIST_PART_PADDING_RIGHT( VIDEO_PAD_R )
180 part { name: "elm.padding.icon.right";
183 description { state: "default" 0.0;
184 min: VIDEO_PAD_ICON_R 0;
199 part { name: "icon_bg";
203 description { state: "default" 0.0;
204 min: VIDEO_BG_W VIDEO_BG_H;
205 max: VIDEO_BG_W VIDEO_BG_H;
208 color: VIDEO_COLOR_GAP;
211 to_x: "elm.padding.left";
216 to_x: "elm.padding.left";
220 part { name: "elm.icon";
224 description { state: "default" 0.0;
228 relative: (VIDEO_GAP)/VIDEO_BG_W (VIDEO_GAP)/VIDEO_BG_H;
232 relative: (VIDEO_BG_W-VIDEO_GAP+1)/VIDEO_BG_W (VIDEO_BG_H-VIDEO_GAP+1)/VIDEO_BG_H;
238 name: "elm.videoicon";
242 state: "default" 0.0;
243 max: VIDEO_PLAY_W VIDEO_PLAY_H;
245 rel1 { relative: 0.0 0.0; to: "elm.icon"; }
246 rel2 { relative: 1.0 1.0; to: "elm.icon"; }
249 part { name: "elm.padding.bookmark.top";
253 state: "default" 0.0;
254 min: 0 VIDEO_PAD_BOOKMARK_T;
257 rel2.relative: 1.0 0.0;
261 part { name: "elm.bookmarkicon";
265 description { state: "default" 0.0;
266 min: VIDEO_BOOKMARK_W VIDEO_BOOKMARK_H;
271 to_x: "elm.padding.right";
272 to_y: "elm.padding.bookmark.top";
276 to_x: "elm.padding.right";
280 part { name: "elm.progressbar.icon";
284 description { state: "default" 0.0;
285 min: VIDEO_PROGRESSBAR_W VIDEO_PROGRESSBAR_H;
290 to_x: "elm.bookmarkicon";
294 to_x: "elm.bookmarkicon";
295 to_y: "elm.padding.bottom";
299 part { name: "elm.text.title";
304 description { state: "default" 0.0;
305 min: 0 VIDEO_TITLE_H;
310 to_x: "elm.padding.icon.right";
311 to_y: "elm.padding.top";
316 to_x: "elm.bookmarkicon";
317 to_y: "elm.padding.top";
319 color: VIDEO_COLOR_TITLE;
321 font: "Helvetica Neue:style=Roman";
322 size: VIDEO_FONT_TITLE;
328 part { name: "elm.text.duration";
333 description { state: "default" 0.0;
334 min: 0 VIDEO_DURATION_H;
339 to_x: "elm.padding.icon.right";
340 to_y: "elm.text.title";
345 to_x: "elm.padding.right";
346 to_y: "elm.text.title";
348 color: VIDEO_COLOR_DURATION;
350 font: "Helvetica Neue:style=Medium";
351 size: VIDEO_FONT_DURATION;
361 program { name: "go_active";
362 signal: "elm,state,selected";
364 action: STATE_SET "selected" 0.0;
367 program { name: "go_passive";
368 signal: "elm,state,unselected";
370 action: STATE_SET "default" 0.0;
372 transition: LINEAR 0.1;
374 program { name: "go_disabled";
375 signal: "elm,state,disabled";
377 action: STATE_SET "disabled" 0.0;
380 program { name: "go_enabled";
381 signal: "elm,state,enabled";
383 action: STATE_SET "default" 0.0;
390 group { name: "elm/genlist/item/video_list_edit/gallery/default";
391 alias: "elm/genlist/item_odd/video_list_edit/gallery/default";
393 //data.item: "stacking" "above";
394 //data.item: "selectraise" "on";
395 data.item: "texts" "elm.text.title elm.text.duration";
396 data.item: "contents" "elm.swallow.checkbox elm.icon elm.videoicon elm.bookmarkicon elm.progressbar_icon";
398 //data.item: "treesize" "20";
400 GENLIST_PART_BASE( VIDEO_ITEM_H )
401 GENLIST_PART_BG_IMAGE
402 GENLIST_PART_BOTTOM_LINE_VIDEO
403 GENLIST_PART_PADDING_TOP( VIDEO_PAD_T )
404 GENLIST_PART_PADDING_BOTTOM( VIDEO_PAD_B )
405 GENLIST_PART_PADDING_LEFT( VIDEO_PAD_L )
406 GENLIST_PART_PADDING_RIGHT( VIDEO_PAD_R )
409 part { name: "elm.swallow.checkbox";
413 description { state: "default" 0.0;
414 min: VIDEO_CHECKBOX_W VIDEO_CHECKBOX_H;
415 max: VIDEO_CHECKBOX_W VIDEO_CHECKBOX_H;
420 to_x: "elm.padding.left";
425 to_x: "elm.padding.left";
429 part { name: "elm.padding.icon.left";
432 description { state: "default" 0.0;
433 min: VIDEO_PAD_ICON_L 0;
437 to_x: "elm.swallow.checkbox";
442 to_x: "elm.swallow.checkbox";
448 part { name: "elm.padding.icon.right";
451 description { state: "default" 0.0;
452 min: VIDEO_PAD_ICON_R 0;
467 part { name: "icon_bg";
471 description { state: "default" 0.0;
472 min: VIDEO_BG_W VIDEO_BG_H;
473 max: VIDEO_BG_W VIDEO_BG_H;
476 color: VIDEO_COLOR_GAP;
479 to_x: "elm.padding.icon.left";
484 to_x: "elm.padding.icon.left";
488 part { name: "elm.icon";
492 description { state: "default" 0.0;
496 relative: (VIDEO_GAP)/VIDEO_BG_W (VIDEO_GAP)/VIDEO_BG_H;
500 relative: (VIDEO_BG_W-VIDEO_GAP+1)/VIDEO_BG_W (VIDEO_BG_H-VIDEO_GAP+1)/VIDEO_BG_H;
506 name: "elm.videoicon";
510 state: "default" 0.0;
511 max: VIDEO_PLAY_W VIDEO_PLAY_H;
514 rel1 { relative: 0.0 0.0; to: "elm.icon"; }
515 rel2 { relative: 1.0 1.0; to: "elm.icon"; }
518 part { name: "elm.padding.bookmark.top";
522 state: "default" 0.0;
523 min: 0 VIDEO_PAD_BOOKMARK_T;
526 rel2.relative: 1.0 0.0;
530 part { name: "elm.bookmarkicon";
534 description { state: "default" 0.0;
535 min: VIDEO_BOOKMARK_W VIDEO_BOOKMARK_H;
540 to_x: "elm.padding.right";
541 to_y: "elm.padding.bookmark.top";
545 to_x: "elm.padding.right";
549 part { name: "elm.progressbar.icon";
553 description { state: "default" 0.0;
554 min: VIDEO_PROGRESSBAR_W VIDEO_PROGRESSBAR_H;
559 to_x: "elm.bookmarkicon";
563 to_x: "elm.bookmarkicon";
564 to_y: "elm.padding.bottom";
568 part { name: "elm.text.title";
573 description { state: "default" 0.0;
574 min: 0 VIDEO_TITLE_H;
579 to_x: "elm.padding.icon.right";
580 to_y: "elm.padding.top";
585 to_x: "elm.bookmarkicon";
586 to_y: "elm.padding.top";
588 color: VIDEO_COLOR_TITLE;
590 font: "Helvetica Neue:style=Roman";
591 size: VIDEO_FONT_TITLE;
597 part { name: "elm.text.duration";
602 description { state: "default" 0.0;
603 min: 0 VIDEO_DURATION_H;
608 to_x: "elm.padding.icon.right";
609 to_y: "elm.text.title";
614 to_x: "elm.padding.right";
615 to_y: "elm.text.title";
617 color: VIDEO_COLOR_DURATION;
619 font: "Helvetica Neue:style=Medium";
620 size: VIDEO_FONT_DURATION;
630 program { name: "go_active";
631 signal: "elm,state,selected";
633 action: STATE_SET "selected" 0.0;
636 program { name: "go_passive";
637 signal: "elm,state,unselected";
639 action: STATE_SET "default" 0.0;
641 transition: LINEAR 0.1;
643 program { name: "go_disabled";
644 signal: "elm,state,disabled";
646 action: STATE_SET "disabled" 0.0;
649 program { name: "go_enabled";
650 signal: "elm,state,enabled";
652 action: STATE_SET "default" 0.0;