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 THUMBNAILS_BG_COLOR 190 189 189 255
19 /* Grid item background size W: 14+158+6; H: 24+158 */
23 /* Gap between bg and icon */
28 /* Gap between icon and shadow */
34 /* Shadow image size */
35 #define SHADOW_W (W-GAP_BG_L-GAP_BG_R+GAP_ICON_L+GAP_ICON_R)
36 #define SHADOW_H (H-GAP_BG_T+GAP_ICON_B)
38 /* Gap between bg and shadow */
39 #define GAP_SHADOW_L (GAP_BG_L-GAP_ICON_L)
40 #define GAP_SHADOW_R (GAP_BG_R-GAP_ICON_R)
41 #define GAP_SHADOW_T (GAP_BG_T-GAP_ICON_T)
42 #define GAP_SHADOW_B (0+GAP_ICON_B)
44 /* Thumbnail boundary size */
47 /* Bookmark icon boundary size */
48 #define BOOKMARK_ICON_W 30
49 #define BOOKMARK_ICON_H 38
51 /* Backgroud size for setting play icon position */
52 #define PLAY_BG_W (47+64+47)
53 #define PLAY_BG_H (27+64+28)
60 name: "elm/gengrid/item/thumbnail_view/gallery_efl/default";
62 data.item: "contents" "elm.swallow.icon elm.swallow.end";
71 rel1 { relative: 0.0 0.0; offset: 0 0;}
72 rel2 { relative: 1.0 1.0; offset: 0 0;}
85 rel1 { relative: 0.0 0.0;to:"bg"; }
86 rel2 { relative: 1.0 1.0;to:"bg"; }
92 name: "elm.swallow.icon";
98 rel1 { relative: 0.0 0.0; to: "icon_bg"; }
99 rel2 { relative: 1.0 1.0; to: "icon_bg"; }
103 name: "elm.swallow.end";
106 state: "default" 0.0;
107 rel1 { relative: 0.0 0.0; to: "elm.swallow.icon"; }
108 rel2 { relative: 1.0 1.0; to: "elm.swallow.icon"; }
116 signal: "movedown,bg,show";
118 action: STATE_SET "move_down" 0.0;
129 name: "elm/gengrid/photoframe/default_layout";
132 image: GE_EDC_IMAGE_THUMB_BG COMP;
140 state: "default" 0.0;
141 rel1 { relative: 0.0 0.0;}
142 rel2 { relative: 1.0 1.0;}
147 rel1 { relative: 0.03 0.03;}
148 rel2 { relative: 0.97 0.97;}
153 part { name: "icon_bg_img";
158 state: "default" 0.0;
160 normal : GE_EDC_IMAGE_THUMB_BG;
162 rel1 { relative: GAP_SHADOW_L/W GAP_SHADOW_T/H; to: "bg"; }
163 rel2 { relative: (W-GAP_SHADOW_R-1)/W (H+GAP_SHADOW_B-1)/H; to: "bg"; }
170 state: "default" 0.0;
171 color: THUMBNAILS_BG_COLOR;
172 rel1 { relative: GAP_ICON_L/SHADOW_W GAP_ICON_T/SHADOW_H; to: "icon_bg_img"; }
173 rel2 { relative: (SHADOW_W-GAP_ICON_R+2)/SHADOW_W (SHADOW_H-GAP_ICON_B+1)/SHADOW_H; to: "icon_bg_img"; }
178 name: "elm.swallow.icon";
181 state: "default" 0.0;
182 rel1 { relative: (GAP_ICON_L+INNER+0.5)/SHADOW_W (GAP_ICON_T+INNER+1)/SHADOW_H; to: "icon_bg_img"; }
183 rel2 { relative: (SHADOW_W-GAP_ICON_R-INNER+1)/SHADOW_W (SHADOW_H-GAP_ICON_B-INNER+1)/SHADOW_H; to: "icon_bg_img"; }
190 name: "mouse_down_shrink";
191 signal: "mouse,down,shrink";
193 action: STATE_SET "shrink" 0.0;
196 transition: LINEAR 0.1;
199 name: "mouse_up_expand";
200 signal: "mouse,up,expand";
202 action: STATE_SET "default" 0.0;
204 transition: LINEAR 0.05;
205 after: "shrink,expand,done,icon";
212 action: STATE_SET "shrink" 0.0;
215 transition: LINEAR 0.1;
219 action: STATE_SET "default" 0.0;
221 transition: LINEAR 0.05;
222 after: "shrink,expand,done,icon";
225 name: "shrink,expand,done,icon";
226 action: SIGNAL_EMIT "shrink,expand,done" "bg";
233 name: "elm/gengrid/photoframe/default_layout_video";
235 image: GE_EDC_IMAGE_BUTTON_PLAY COMP;
236 image: GE_EDC_IMAGE_THUMB_BG COMP;
245 state: "default" 0.0;
246 rel1 { relative: 0.0 0.0;}
247 rel2 { relative: 1.0 1.0;}
252 rel1 { relative: 0.03 0.03;}
253 rel2 { relative: 0.97 0.97;}
257 part { name: "icon_bg_img";
262 state: "default" 0.0;
264 normal : GE_EDC_IMAGE_THUMB_BG;
266 rel1 { relative: GAP_SHADOW_L/W GAP_SHADOW_T/H; to: "bg"; }
267 rel2 { relative: (W-GAP_SHADOW_R-1)/W (H+GAP_SHADOW_B-1)/H; to: "bg"; }
274 state: "default" 0.0;
275 color: THUMBNAILS_BG_COLOR;
276 rel1 { relative: GAP_ICON_L/SHADOW_W GAP_ICON_T/SHADOW_H; to: "icon_bg_img"; }
277 rel2 { relative: (SHADOW_W-GAP_ICON_R+2)/SHADOW_W (SHADOW_H-GAP_ICON_B+1)/SHADOW_H; to: "icon_bg_img"; }
282 name: "elm.swallow.icon";
285 state: "default" 0.0;
286 rel1 { relative: (GAP_ICON_L+INNER+0.5)/SHADOW_W (GAP_ICON_T+INNER+1)/SHADOW_H; to: "icon_bg_img"; }
287 rel2 { relative: (SHADOW_W-GAP_ICON_R-INNER+1)/SHADOW_W (SHADOW_H-GAP_ICON_B-INNER+1)/SHADOW_H; to: "icon_bg_img"; }
296 state: "default" 0.0;
301 rel1 { relative: (GAP_ICON_L+INNER+0.5)/SHADOW_W (SHADOW_H-GAP_ICON_B-INNER-BOOKMARK_ICON_H+1)/SHADOW_H; to: "icon_bg_img"; }
302 rel2 { relative: (SHADOW_W-GAP_ICON_R-INNER+1)/SHADOW_W (SHADOW_H-GAP_ICON_B-INNER+1+0.5)/SHADOW_H; to: "icon_bg_img"; }
306 name: "elm.videoicon_bg";
312 state: "default" 0.0;
316 rel1 { relative: 0.0 0.0; to: "elm.swallow.icon";}
317 rel2 { relative: 1.0 0.0; to_x: "elm.swallow.icon"; to_y: "elm.text.bg";}
321 name: "elm.swallow.videoicon";
327 state: "default" 0.0;
331 rel1 { relative: PLAY_X/PLAY_BG_W PLAY_Y/PLAY_BG_H; to: "elm.videoicon_bg";}
332 rel2 { relative: (PLAY_X+PLAY_W)/PLAY_BG_W (PLAY_Y+PLAY_H)/PLAY_BG_H; to: "elm.videoicon_bg";}
333 image.normal: GE_EDC_IMAGE_BUTTON_PLAY;
343 state: "default" 0.0;
346 rel1 { relative: 0.0 0.0; to: "elm.text.bg"; }
347 rel2 { relative: 1.0 1.0; to: "elm.text.bg"; }
348 color: 255 255 255 255;
350 font: "HelveticaNeue:style=Medium";
359 name: "mouse_down_shrink";
360 signal: "mouse,down,shrink";
362 action: STATE_SET "shrink" 0.0;
365 transition: LINEAR 0.1;
368 name: "mouse_up_expand";
369 signal: "mouse,up,expand";
371 action: STATE_SET "default" 0.0;
373 transition: LINEAR 0.05;
374 after: "shrink,expand,done,icon";
381 action: STATE_SET "shrink" 0.0;
384 transition: LINEAR 0.1;
388 action: STATE_SET "default" 0.0;
390 transition: LINEAR 0.05;
391 after: "shrink,expand,done,icon";
394 name: "shrink,expand,done,icon";
395 action: SIGNAL_EMIT "shrink,expand,done" "bg";
402 name: "elm/gengrid/photoframe/default_layout_video_bookmark";
404 image: GE_EDC_IMAGE_BUTTON_PLAY COMP;
405 image: GE_EDC_IMAGE_THUMB_BG COMP;
414 state: "default" 0.0;
415 rel1 { relative: 0.0 0.0;}
416 rel2 { relative: 1.0 1.0;}
421 rel1 { relative: 0.03 0.03;}
422 rel2 { relative: 0.97 0.97;}
426 part { name: "icon_bg_img";
431 state: "default" 0.0;
433 normal : GE_EDC_IMAGE_THUMB_BG;
435 rel1 { relative: GAP_SHADOW_L/W GAP_SHADOW_T/H; to: "bg"; }
436 rel2 { relative: (W-GAP_SHADOW_R-1)/W (H+GAP_SHADOW_B-1)/H; to: "bg"; }
443 state: "default" 0.0;
444 color: THUMBNAILS_BG_COLOR;
445 rel1 { relative: GAP_ICON_L/SHADOW_W GAP_ICON_T/SHADOW_H; to: "icon_bg_img"; }
446 rel2 { relative: (SHADOW_W-GAP_ICON_R+2)/SHADOW_W (SHADOW_H-GAP_ICON_B+1)/SHADOW_H; to: "icon_bg_img"; }
451 name: "elm.swallow.icon";
454 state: "default" 0.0;
455 rel1 { relative: (GAP_ICON_L+INNER+0.5)/SHADOW_W (GAP_ICON_T+INNER+1)/SHADOW_H; to: "icon_bg_img"; }
456 rel2 { relative: (SHADOW_W-GAP_ICON_R-INNER+1)/SHADOW_W (SHADOW_H-GAP_ICON_B-INNER+1)/SHADOW_H; to: "icon_bg_img"; }
466 state: "default" 0.0;
472 rel1 { relative: (GAP_ICON_L+INNER+0.5)/SHADOW_W (SHADOW_H-GAP_ICON_B-INNER-BOOKMARK_ICON_H+1)/SHADOW_H; to: "icon_bg_img"; }
473 rel2 { relative: (SHADOW_W-GAP_ICON_R-INNER+1)/SHADOW_W (SHADOW_H-GAP_ICON_B-INNER+1+0.5)/SHADOW_H; to: "icon_bg_img"; }
477 name: "elm.videoicon_bg";
483 state: "default" 0.0;
487 rel1 { relative: 0.0 0.0; to: "elm.swallow.icon";}
488 rel2 { relative: 1.0 0.0; to_x: "elm.swallow.icon"; to_y: "elm.text.bg";}
492 name: "elm.swallow.videoicon";
498 state: "default" 0.0;
503 rel1 { relative: PLAY_X/PLAY_BG_W PLAY_Y/PLAY_BG_H; to: "elm.videoicon_bg";}
504 rel2 { relative: (PLAY_X+PLAY_W)/PLAY_BG_W (PLAY_Y+PLAY_H)/PLAY_BG_H; to: "elm.videoicon_bg";}
505 image.normal: GE_EDC_IMAGE_BUTTON_PLAY;
509 name: "bookmarkicon_bg";
513 state: "default" 0.0;
514 min: BOOKMARK_ICON_W BOOKMARK_ICON_H;
515 max: BOOKMARK_ICON_W BOOKMARK_ICON_H;
519 rel1 { relative: 0.0 0.0; to: "elm.text.bg"; }
520 rel2 { relative: 0.0 1.0; to: "elm.text.bg"; }
524 name: "elm.swallow.bookmarkicon";
528 state: "default" 0.0;
531 rel1 { relative: 0.0 0.0; to: "bookmarkicon_bg"; }
532 rel2 { relative: 1.0 1.0; to: "bookmarkicon_bg"; }
542 state: "default" 0.0;
546 rel1 { relative: 0.9 0.0; to_x: "elm.swallow.bookmarkicon"; to_y: "elm.text.bg"; }
547 rel2 { relative: 1.0 1.0; to: "elm.text.bg"; }
548 color: 255 255 255 255;
550 font: "HelveticaNeue:style=Medium";
559 name: "mouse_down_shrink";
560 signal: "mouse,down,shrink";
562 action: STATE_SET "shrink" 0.0;
565 transition: LINEAR 0.1;
568 name: "mouse_up_expand";
569 signal: "mouse,up,expand";
571 action: STATE_SET "default" 0.0;
573 transition: LINEAR 0.05;
574 after: "shrink,expand,done,icon";
581 action: STATE_SET "shrink" 0.0;
584 transition: LINEAR 0.1;
588 action: STATE_SET "default" 0.0;
590 transition: LINEAR 0.05;
591 after: "shrink,expand,done,icon";
594 name: "shrink,expand,done,icon";
595 action: SIGNAL_EMIT "shrink,expand,done" "bg";