2 * Copyright (c) 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://floralicense.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 /* Grid item background size W: 10+158+10; H: 24+158 */
23 /* Favourites icon boundary size */
24 #define FAVOR_ICON_W 30
25 #define FAVOR_ICON_H 30
28 name: "elm/gengrid/item/gallery/thumbnail_view/default";
30 data.item: "contents" "elm.swallow.icon elm.swallow.end";
39 rel1 { relative: 0.0 0.0; offset: 0 0;}
40 rel2 { relative: 1.0 1.0; offset: 0 0;}
52 rel1 { relative: 0.0 0.0;to:"bg"; }
53 rel2 { relative: 1.0 1.0;to:"bg"; }
59 name: "elm.swallow.icon";
65 rel1 { relative: 0.0 0.0; to: "icon_bg"; }
66 rel2 { relative: 1.0 1.0; to: "icon_bg"; }
70 name: "elm.swallow.end";
74 rel1 { relative: 0.0 0.0; to: "elm.swallow.icon"; }
75 rel2 { relative: 1.0 1.0; to: "elm.swallow.icon"; }
83 signal: "movedown,bg,show";
85 action: STATE_SET "move_down" 0.0;
96 name: "elm/gengrid/photoframe/default_layout";
103 state: "default" 0.0;
104 rel1 { relative: 0.0 0.0;}
105 rel2 { relative: 1.0 1.0;}
110 rel1 { relative: 0.03 0.03;}
111 rel2 { relative: 0.97 0.97;}
116 name: "elm.swallow.icon";
119 state: "default" 0.0;
120 rel1 { relative: GAP_W/W (GAP_H+1)/H;}
121 rel2 { relative: (W-GAP_W)/W 1;}
128 name: "mouse_down_shrink";
129 signal: "mouse,down,shrink";
131 action: STATE_SET "shrink" 0.0;
134 transition: LINEAR 0.1;
137 name: "mouse_up_expand";
138 signal: "mouse,up,expand";
140 action: STATE_SET "default" 0.0;
142 transition: LINEAR 0.05;
143 after: "shrink,expand,done,icon";
150 action: STATE_SET "shrink" 0.0;
153 transition: LINEAR 0.1;
157 action: STATE_SET "default" 0.0;
159 transition: LINEAR 0.05;
160 after: "shrink,expand,done,icon";
163 name: "shrink,expand,done,icon";
164 action: SIGNAL_EMIT "shrink,expand,done" "bg";
171 name: "elm/gengrid/photoframe/default_layout_favor";
178 state: "default" 0.0;
179 rel1 { relative: 0.0 0.0;}
180 rel2 { relative: 1.0 1.0;}
185 rel1 { relative: 0.03 0.03;}
186 rel2 { relative: 0.97 0.97;}
191 name: "elm.swallow.icon";
194 state: "default" 0.0;
195 rel1 { relative: GAP_W/W (GAP_H+1)/H;}
196 rel2 { relative: (W-GAP_W)/W 1;}
199 #ifdef _USE_FAVOR_AND_BOOKMARK_ICON
201 name: "elm.swallow.favoricon";
206 state: "default" 0.0;
208 rel1 { relative: GAP_W/W (H-FAVOR_ICON_H+1)/H;}
209 rel2 { relative: (FAVOR_ICON_W+GAP_W)/W 1;}
217 name: "mouse_down_shrink";
218 signal: "mouse,down,shrink";
220 action: STATE_SET "shrink" 0.0;
223 transition: LINEAR 0.1;
226 name: "mouse_up_expand";
227 signal: "mouse,up,expand";
229 action: STATE_SET "default" 0.0;
231 transition: LINEAR 0.05;
232 after: "shrink,expand,done,icon";
239 action: STATE_SET "shrink" 0.0;
242 transition: LINEAR 0.1;
246 action: STATE_SET "default" 0.0;
248 transition: LINEAR 0.05;
249 after: "shrink,expand,done,icon";
252 name: "shrink,expand,done,icon";
253 action: SIGNAL_EMIT "shrink,expand,done" "bg";
260 name: "elm/gengrid/photoframe/default_layout_video";
262 image: GALLERY_EDC_IMAGE_BUTTON_PLAY COMP;
271 state: "default" 0.0;
272 rel1 { relative: 0.0 0.0;}
273 rel2 { relative: 1.0 1.0;}
278 rel1 { relative: 0.03 0.03;}
279 rel2 { relative: 0.97 0.97;}
284 name: "elm.swallow.icon";
287 state: "default" 0.0;
288 rel1 { relative: GAP_W/W (GAP_H+1)/H;}
289 rel2 { relative: (W-GAP_W)/W 1;}
293 name: "elm.videoicon_bg";
298 state: "default" 0.0;
301 rel1 { relative: GAP_W/W (H-FAVOR_ICON_H+1)/H;}
302 rel2 { relative: (FAVOR_ICON_W+GAP_W)/W 1;}
311 state: "default" 0.0;
314 rel1 { relative: 1 0; to: "elm.videoicon_bg";}
315 rel2 { relative: (W-GAP_W)/W 1; to_y: "elm.videoicon_bg";}
319 name: "elm.swallow.videoicon";
325 state: "default" 0.0;
328 rel1 { relative: 0 0; to: "elm.videoicon_bg";}
329 rel2 { relative: 1 1; to: "elm.videoicon_bg";}
330 image.normal: GALLERY_EDC_IMAGE_BUTTON_PLAY;
340 state: "default" 0.0;
342 rel1 { relative: 0.0 0.0; to: "elm.text.bg"; }
343 rel2 { relative: 1.0 1.0; to: "elm.text.bg"; }
344 color: 255 255 255 255;
346 font: "SLP:style=Bold";
356 name: "mouse_down_shrink";
357 signal: "mouse,down,shrink";
359 action: STATE_SET "shrink" 0.0;
362 transition: LINEAR 0.1;
365 name: "mouse_up_expand";
366 signal: "mouse,up,expand";
368 action: STATE_SET "default" 0.0;
370 transition: LINEAR 0.05;
371 after: "shrink,expand,done,icon";
378 action: STATE_SET "shrink" 0.0;
381 transition: LINEAR 0.1;
385 action: STATE_SET "default" 0.0;
387 transition: LINEAR 0.05;
388 after: "shrink,expand,done,icon";
391 name: "shrink,expand,done,icon";
392 action: SIGNAL_EMIT "shrink,expand,done" "bg";
399 name: "elm/gengrid/photoframe/default_layout_video_favor";
401 image: GALLERY_EDC_IMAGE_BUTTON_PLAY COMP;
410 state: "default" 0.0;
411 rel1 { relative: 0.0 0.0;}
412 rel2 { relative: 1.0 1.0;}
417 rel1 { relative: 0.03 0.03;}
418 rel2 { relative: 0.97 0.97;}
423 name: "elm.swallow.icon";
426 state: "default" 0.0;
427 rel1 { relative: GAP_W/W (GAP_H+1)/H;}
428 rel2 { relative: (W-GAP_W)/W 1;}
432 name: "elm.videoicon_bg";
437 state: "default" 0.0;
440 rel1 { relative: GAP_W/W (H-FAVOR_ICON_H+1)/H;}
441 rel2 { relative: (FAVOR_ICON_W+GAP_W)/W 1;}
444 #ifdef _USE_FAVOR_AND_BOOKMARK_ICON
446 name: "favoricon_bg";
450 state: "default" 0.0;
453 rel1 { relative: 1 0; to: "elm.videoicon_bg";}
454 rel2 { relative: (FAVOR_ICON_W*2+GAP_W)/W 1; to_y: "elm.videoicon_bg";}
464 state: "default" 0.0;
467 #ifdef _USE_FAVOR_AND_BOOKMARK_ICON
468 rel1 { relative: 1 0; to: "favoricon_bg";}
470 rel1 { relative: 1 0; to: "elm.videoicon_bg";}
472 rel2 { relative: (W-GAP_W)/W 1; to_y: "elm.videoicon_bg";}
476 name: "elm.swallow.videoicon";
482 state: "default" 0.0;
485 rel1 { relative: 0 0; to: "elm.videoicon_bg";}
486 rel2 { relative: 1 1; to: "elm.videoicon_bg";}
487 image.normal: GALLERY_EDC_IMAGE_BUTTON_PLAY;
497 state: "default" 0.0;
499 rel1 { relative: 0.0 0.0; to: "elm.text.bg"; }
500 rel2 { relative: 1.0 1.0; to: "elm.text.bg"; }
501 color: 255 255 255 255;
503 font: "SLP:style=Bold";
510 #ifdef _USE_FAVOR_AND_BOOKMARK_ICON
512 name: "elm.swallow.favoricon";
516 state: "default" 0.0;
518 rel1 { relative: 0.0 0.0; to: "favoricon_bg"; }
519 rel2 { relative: 1.0 1.0; to: "favoricon_bg"; }
526 name: "mouse_down_shrink";
527 signal: "mouse,down,shrink";
529 action: STATE_SET "shrink" 0.0;
532 transition: LINEAR 0.1;
535 name: "mouse_up_expand";
536 signal: "mouse,up,expand";
538 action: STATE_SET "default" 0.0;
540 transition: LINEAR 0.05;
541 after: "shrink,expand,done,icon";
548 action: STATE_SET "shrink" 0.0;
551 transition: LINEAR 0.1;
555 action: STATE_SET "default" 0.0;
557 transition: LINEAR 0.05;
558 after: "shrink,expand,done,icon";
561 name: "shrink,expand,done,icon";
562 action: SIGNAL_EMIT "shrink,expand,done" "bg";
569 name: "elm/gengrid/photoframe/default_layout_video_bookmark";
571 image: GALLERY_EDC_IMAGE_BUTTON_PLAY COMP;
580 state: "default" 0.0;
581 rel1 { relative: 0.0 0.0;}
582 rel2 { relative: 1.0 1.0;}
587 rel1 { relative: 0.03 0.03;}
588 rel2 { relative: 0.97 0.97;}
593 name: "elm.swallow.icon";
596 state: "default" 0.0;
597 rel1 { relative: GAP_W/W (GAP_H+1)/H;}
598 rel2 { relative: (W-GAP_W)/W 1;}
602 name: "elm.videoicon_bg";
607 state: "default" 0.0;
610 rel1 { relative: GAP_W/W (H-FAVOR_ICON_H+1)/H;}
611 rel2 { relative: (FAVOR_ICON_W+GAP_W)/W 1;}
614 #ifdef _USE_FAVOR_AND_BOOKMARK_ICON
616 name: "bookmarkicon_bg";
620 state: "default" 0.0;
623 rel1 { relative: 1 0; to: "elm.videoicon_bg";}
624 rel2 { relative: (FAVOR_ICON_W*2+GAP_W)/W 1; to_y: "elm.videoicon_bg";}
634 state: "default" 0.0;
637 #ifdef _USE_FAVOR_AND_BOOKMARK_ICON
638 rel1 { relative: 1 0; to: "bookmarkicon_bg";}
640 rel1 { relative: 1 0; to: "elm.videoicon_bg";}
642 rel2 { relative: (W-GAP_W)/W 1; to_y: "elm.videoicon_bg";}
646 name: "elm.swallow.videoicon";
652 state: "default" 0.0;
655 rel1 { relative: 0 0; to: "elm.videoicon_bg";}
656 rel2 { relative: 1 1; to: "elm.videoicon_bg";}
657 image.normal: GALLERY_EDC_IMAGE_BUTTON_PLAY;
667 state: "default" 0.0;
669 rel1 { relative: 0.0 0.0; to: "elm.text.bg"; }
670 rel2 { relative: 1.0 1.0; to: "elm.text.bg"; }
671 color: 255 255 255 255;
673 font: "SLP:style=Bold";
680 #ifdef _USE_FAVOR_AND_BOOKMARK_ICON
682 name: "elm.swallow.bookmarkicon";
686 state: "default" 0.0;
689 rel1 { relative: 0.0 0.0; to: "bookmarkicon_bg"; }
690 rel2 { relative: 1.0 1.0; to: "bookmarkicon_bg"; }
697 name: "mouse_down_shrink";
698 signal: "mouse,down,shrink";
700 action: STATE_SET "shrink" 0.0;
703 transition: LINEAR 0.1;
706 name: "mouse_up_expand";
707 signal: "mouse,up,expand";
709 action: STATE_SET "default" 0.0;
711 transition: LINEAR 0.05;
712 after: "shrink,expand,done,icon";
719 action: STATE_SET "shrink" 0.0;
722 transition: LINEAR 0.1;
726 action: STATE_SET "default" 0.0;
728 transition: LINEAR 0.05;
729 after: "shrink,expand,done,icon";
732 name: "shrink,expand,done,icon";
733 action: SIGNAL_EMIT "shrink,expand,done" "bg";
740 name: "elm/gengrid/photoframe/default_layout_video_favor_bookmark";
742 image: GALLERY_EDC_IMAGE_BUTTON_PLAY COMP;
751 state: "default" 0.0;
752 rel1 { relative: 0.0 0.0;}
753 rel2 { relative: 1.0 1.0;}
758 rel1 { relative: 0.03 0.03;}
759 rel2 { relative: 0.97 0.97;}
764 name: "elm.swallow.icon";
767 state: "default" 0.0;
768 rel1 { relative: GAP_W/W (GAP_H+1)/H;}
769 rel2 { relative: (W-GAP_W)/W 1;}
773 name: "elm.videoicon_bg";
778 state: "default" 0.0;
781 rel1 { relative: GAP_W/W (H-FAVOR_ICON_H+1)/H;}
782 rel2 { relative: (FAVOR_ICON_W+GAP_W)/W 1;}
785 #ifdef _USE_FAVOR_AND_BOOKMARK_ICON
787 name: "favoricon_bg";
791 state: "default" 0.0;
794 rel1 { relative: 1 0; to: "elm.videoicon_bg";}
795 rel2 { relative: (FAVOR_ICON_W*2+GAP_W)/W 1; to_y: "elm.videoicon_bg";}
799 name: "bookmarkicon_bg";
803 state: "default" 0.0;
806 rel1 { relative: 1 0; to: "favoricon_bg";}
807 rel2 { relative: (FAVOR_ICON_W*3+GAP_W)/W 1; to_y: "elm.videoicon_bg";}
816 state: "default" 0.0;
819 #ifdef _USE_FAVOR_AND_BOOKMARK_ICON
820 rel1 { relative: 1 0; to: "bookmarkicon_bg";}
822 rel1 { relative: 1 0; to: "elm.videoicon_bg";}
824 rel2 { relative: (W-GAP_W)/W 1; to_y: "elm.videoicon_bg";}
828 name: "elm.swallow.videoicon";
834 state: "default" 0.0;
837 rel1 { relative: 0 0; to: "elm.videoicon_bg";}
838 rel2 { relative: 1 1; to: "elm.videoicon_bg";}
839 image.normal: GALLERY_EDC_IMAGE_BUTTON_PLAY;
849 state: "default" 0.0;
851 rel1 { relative: 0.0 0.0; to: "elm.text.bg"; }
852 rel2 { relative: 1.0 1.0; to: "elm.text.bg"; }
853 color: 255 255 255 255;
855 font: "SLP:style=Bold";
862 #ifdef _USE_FAVOR_AND_BOOKMARK_ICON
864 name: "elm.swallow.favoricon";
868 state: "default" 0.0;
870 rel1 { relative: 0.0 0.0; to: "favoricon_bg"; }
871 rel2 { relative: 1.0 1.0; to: "favoricon_bg"; }
875 name: "elm.swallow.bookmarkicon";
879 state: "default" 0.0;
882 rel1 { relative: 0.0 0.0; to: "bookmarkicon_bg"; }
883 rel2 { relative: 1.0 1.0; to: "bookmarkicon_bg"; }
890 name: "mouse_down_shrink";
891 signal: "mouse,down,shrink";
893 action: STATE_SET "shrink" 0.0;
896 transition: LINEAR 0.1;
899 name: "mouse_up_expand";
900 signal: "mouse,up,expand";
902 action: STATE_SET "default" 0.0;
904 transition: LINEAR 0.05;
905 after: "shrink,expand,done,icon";
912 action: STATE_SET "shrink" 0.0;
915 transition: LINEAR 0.1;
919 action: STATE_SET "default" 0.0;
921 transition: LINEAR 0.05;
922 after: "shrink,expand,done,icon";
925 name: "shrink,expand,done,icon";
926 action: SIGNAL_EMIT "shrink,expand,done" "bg";
936 #define ZOOMED_GAP_H 10
937 #define ZOOMED_GAP_W 2
941 name: "elm/gengrid/photoframe/zoomed_default_layout";
948 state: "default" 0.0;
949 rel1 { relative: 0.0 0.0;}
950 rel2 { relative: 1.0 1.0;}
955 rel1 { relative: 0.03 0.03;}
956 rel2 { relative: 0.97 0.97;}
962 name: "elm.swallow.icon";
965 state: "default" 0.0;
966 rel1 { relative: 0 0;}
967 rel2 { relative: (ZOOMED_W-ZOOMED_GAP_W)/ZOOMED_W (ZOOMED_H-ZOOMED_GAP_H)/ZOOMED_H;}
975 name: "mouse_down_shrink";
976 signal: "mouse,down,shrink";
978 action: STATE_SET "shrink" 0.0;
980 transition: LINEAR 0.1;
983 name: "mouse_up_expand";
984 signal: "mouse,up,expand";
986 action: STATE_SET "default" 0.0;
988 transition: LINEAR 0.05;
989 after: "shrink,expand,done,icon";
996 action: STATE_SET "shrink" 0.0;
999 transition: LINEAR 0.1;
1003 action: STATE_SET "default" 0.0;
1005 transition: LINEAR 0.05;
1006 after: "shrink,expand,done,icon";
1009 name: "shrink,expand,done,icon";
1010 action: SIGNAL_EMIT "shrink,expand,done" "bg";