86b84f9aae24af9c77c9960c6efedfde5f26f2b9
[apps/home/gallery.git] / libug / libug-gallery-efl / res / edc / gallery-efl.edc
1 /*
2   * Copyright 2012  Samsung Electronics Co., Ltd
3   *
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
7   *
8   *     http://www.tizenopensource.org/license
9   *
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.
15   */
16
17 #define FONT_ROM       "HelveticaNeue:style=Roman"
18 #define FONT_MED       "HelveticaNeue:style=Medium"
19
20 #include "gallery-efl-edc-res.h"
21
22 collections {
23 #include "gallery-efl-gengrid-item-thumbview.edc"
24 #include "gallery-efl-gengrid-item-albums.edc"
25 #include "gallery-efl-selection-info.edc"
26 #include "gallery-efl-button.edc"
27 #include "gallery-efl-check.edc"
28 #include "gallery-efl-nocontents.edc"
29
30         group
31         {
32         name: "gallery_efl/gridview";
33
34         parts {
35                         part {
36                             name: "background";
37                                 type, RECT;
38
39                         description {
40                         state: "default" 0.0;
41                         rel1 { relative: 0.0 0.0; offset: 0 0; }
42                         rel2 { relative: 1.0 1.0; offset: -1 -1; }
43                         color, 0 0 0 0;
44                         }
45                         }
46
47                         part {
48                                 name: "contents";
49                                 type: SWALLOW;
50                                 mouse_events: 1;
51                                 scale: 1;
52                                 description {
53                                         state: "default" 0.0;
54                                         rel1 { relative: 0.0 0.0; to: "background";}
55                                         rel2 { relative: 1.0 1.0; to: "background";}
56                                 }
57                                 description {
58                                         state: "moveup" 0.0;
59                                         rel1 { relative: 0.0 0.0; to: "background";}
60                                         rel2 { relative: 1.0 0.0; to: "elm.padding.selinfo"; }
61                                 }
62
63                         }
64                         part {
65                                 name: "elm.padding.selinfo";
66                                 type: RECT;
67                                 scale: 1;
68                                 description {
69                                                 state: "default" 0.0;
70                                                 min: 0 SELINFO_H; // bottom padding size for selectioninfo
71                                                 fixed: 0 1;
72                                                 align: 0.5 1.0;
73                                                 rel1 { relative: 0.0 1.0; }
74                                                 rel2 { relative: 1.0 1.0; }
75                                                 color: 0 0 0 0;
76                                                 visible: 0;
77                                 }
78                         }
79                 }
80
81                 programs {
82                 program {
83                         name: "thumb_view_default";
84                         signal: "elm,thumb_view,state,default";
85                         source: "elm";
86                         script {
87                                 set_state(PART:"contents", "default", 0.0);
88                 }
89             }
90                 program {
91                         name: "thumb_view_moveup";
92                         signal: "elm,thumb_view,state,moveup";
93                         source: "elm";
94                         script {
95                                 set_state(PART:"contents", "moveup", 0.0);
96                 }
97             }
98         }
99         }
100
101         group
102         {
103             name: "gallery_efl/albumview";
104
105             parts {
106                         part {
107                             name: "background";
108                                 type, RECT;
109
110                         description {
111                         state: "default" 0.0;
112                         rel1 { relative: 0.0 0.0; offset: 0 0; }
113                         rel2 { relative: 1.0 1.0; offset: -1 -1; }
114                         color, 0 0 0 0;
115                         }
116                         }
117
118                         part {
119                         name: "contents";
120                         type: SWALLOW;
121                         mouse_events: 1;
122                         scale: 1;
123
124                         description {
125                         state: "default" 0.0;
126                         rel1 { relative: 0.0 0.0; to: "background";}
127                         rel2 { relative: 1.0 1.0; to: "background";}
128
129                         }
130                         }
131                 }
132         }
133 }