a6ede1cba49748960a21a7f52c583bce8d517181
[apps/core/preloaded/gallery.git] / ug / ug-gallery-efl / res / edc / gallery-efl-gengrid-item-albums.edc
1 /*
2   * Copyright (c) 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://floralicense.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 /* 14 + 334 + 10 */
18 #define ALBUM_ITEM_W 358
19 /* 26 + 334 */
20 #define ALBUM_ITEM_H 360
21
22 #define ALBUM_W 334
23 #define ALBUM_H 334
24
25 #define ALBUM_GAP_L 12
26 #define ALBUM_GAP_R 12
27 #define ALBUM_GAP_T 26
28
29 #define ALBUM_ICON_W 318
30 #define ALBUM_ICON_H 318
31
32 #define ALBUM_ICON_GAP_L 8
33 #define ALBUM_ICON_GAP_R 8
34 #define ALBUM_ICON_GAP_B 16
35 #define ALBUM_ICON_PAD 3
36
37 #define ALBUM_TEXT_AREA_W 207
38 #define ALBUM_TEXT_AREA_H 102
39 #define ALBUM_TEXT_GAP_L 4
40 #define ALBUM_TEXT_GAP_R 4
41 #define ALBUM_TEXT_SNS_X 60
42 #define ALBUM_TEXT_NAME_H 32
43 #define ALBUM_TEXT_DATE_H 25
44 #define ALBUM_PBAR_W 183
45 #define ALBUM_PBAR_H 10
46 #define ALBUM_PBAR_GAP_L 6
47 #define ALBUM_PBAR_GAP_T 8
48
49 #define ALBUM_SNS_ICON_W 32
50 #define ALBUM_SNS_ICON_H 32
51
52 #define ALBUM_RENAME_BTN_W 64
53 #define ALBUM_RENAME_BTN_H 64
54
55 #define ALBUM_CHECKBOX_W 42
56 #define ALBUM_CHECKBOX_H 42
57 #define ALBUM_CHECKBOX_GAP_L 1
58 #define ALBUM_CHECKBOX_GAP_T 8
59 #define ALBUM_ICON_BG_COLOR_INC 190 189 189 255
60
61 group {
62         name: "elm/gengrid/item/albums_view/gallery_efl/default";
63         data.item: "texts" "elm.text.name elm.text.date elm.text.count";
64         data.item: "contents" "elm.swallow.onlyicon elm.swallow.check_bg label_bg";
65         images {
66                 image: GE_EDC_IMAGE_MAIN_FOLDER_BG COMP;
67         }
68
69         parts {
70                 part {
71                         name: "bg";
72                         type: RECT;
73                         description {
74                                 state: "default" 0.0;
75                                 color: 255 0 0 0;
76                                 rel1 { relative: 0.0 0.0; }
77                                 rel2 { relative: 1.0 1.0; }
78                         }
79                 }
80                 part { name: "icon_bg_img";
81                         type: IMAGE;
82                         mouse_events: 1;
83                         scale : 1;
84                         description {
85                                 min : ALBUM_W ALBUM_H;
86                                 state: "default" 0.0;
87                                 image {
88                                         normal : GE_EDC_IMAGE_MAIN_FOLDER_BG;
89                                 }
90                                 rel1 { relative: ALBUM_GAP_L/ALBUM_ITEM_W ALBUM_GAP_T/ALBUM_ITEM_H; to:"bg"; }
91                                 rel2 { relative: (ALBUM_ITEM_W-ALBUM_GAP_R-1)/ALBUM_ITEM_W 1.0; to:"bg"; }
92                         }
93                 }
94                 part { name: "icon_bg";
95                         type: RECT;
96                         mouse_events: 1;
97                         scale : 1;
98                         description {
99                                 min : ALBUM_ICON_W ALBUM_ICON_H;
100                                 state: "default" 0.0;
101                                 color: ALBUM_ICON_BG_COLOR_INC;
102                                 rel1 { relative: ALBUM_ICON_GAP_L/ALBUM_ICON_W 0.0; to:"icon_bg_img"; }
103                                 rel2 { relative: (ALBUM_ICON_W-ALBUM_ICON_GAP_R+2)/ALBUM_ICON_W (ALBUM_ICON_H-ALBUM_ICON_GAP_B+2)/ALBUM_ICON_H; to:"icon_bg_img"; }
104                         }
105                 }
106                 part {
107                         name: "elm.swallow.onlyicon";
108                         type: SWALLOW;
109                         mouse_events: 1;
110                         repeat_events: 1;
111                         description {
112                                 state: "default" 0.0;
113                                 rel1 { relative: (ALBUM_ICON_PAD/ALBUM_ICON_W) (ALBUM_ICON_PAD/ALBUM_ICON_H); to: "icon_bg"; }
114                                 rel2 { relative: (ALBUM_ICON_W-ALBUM_ICON_PAD)/ALBUM_ICON_W (ALBUM_ICON_H-ALBUM_ICON_PAD)/ALBUM_ICON_H; to: "icon_bg"; }
115                         }
116                 }
117                 part {
118                         name: "label_bg";
119                         type: SWALLOW;
120                         mouse_events: 1;
121                         repeat_events: 1;
122                         description {
123                                 state: "default" 0.0;
124                                 rel1 { relative: (ALBUM_ICON_PAD/ALBUM_ICON_W) (ALBUM_ICON_PAD/ALBUM_ICON_H); offset: 0 0; to: "icon_bg"; }
125                                 rel2 { relative: ((ALBUM_ICON_PAD+ALBUM_TEXT_AREA_W-1)/ALBUM_ICON_W) ((ALBUM_ICON_PAD+ALBUM_TEXT_AREA_H-1)/ALBUM_ICON_H); offset: 0 0; to: "icon_bg"; }
126                         }
127                 }
128                 part {
129                         name: "elm.text.date";
130                         type: TEXT;
131                         mouse_events: 1;
132                         repeat_events: 1;
133                         scale: 1;
134                         description {
135                                 state: "default" 0.0;
136                                 rel1 { relative: ALBUM_TEXT_GAP_L/ALBUM_TEXT_AREA_W  ALBUM_TEXT_NAME_H/ALBUM_TEXT_AREA_H; to: "label_bg"; }
137                                 rel2 { relative: (ALBUM_TEXT_AREA_W-ALBUM_TEXT_GAP_L-1)/ALBUM_TEXT_AREA_W  (ALBUM_TEXT_NAME_H+ALBUM_TEXT_DATE_H-1)/ALBUM_TEXT_AREA_H; to: "label_bg"; }
138                                 color: 190 190 190 255;
139                                 text {
140                                         font: "SLP:style=Medium";
141                                         text_class: "slp";
142                                         size: 22;
143                                         align: 0.0 0.5;
144                                 }
145                         }
146                 }
147                 part {
148                         name: "elm.text.count";
149                         type: TEXT;
150                         mouse_events: 1;
151                         repeat_events: 1;
152                         scale: 1;
153                         description {
154                                 state: "default" 0.0;
155                                 visible: 1;
156                                 rel1 { relative: ((ALBUM_TEXT_GAP_L+ALBUM_SNS_ICON_W+1)/ALBUM_TEXT_AREA_W)  ALBUM_TEXT_SNS_X/ALBUM_TEXT_AREA_H; to: "label_bg"; }
157                                 rel2 { relative: (ALBUM_TEXT_AREA_W-ALBUM_TEXT_GAP_L-1)/ALBUM_TEXT_AREA_W  1.0; to: "label_bg"; }
158                                 color: 255 255 255 255;
159                                 text {
160                                         font: "SLP:style=Medium";
161                                         text_class: "slp";
162                                         size: 38;
163                                         align: 1.0 0.5;
164                                 }
165                         }
166                 }
167                 part {
168                         name: "elm.text.name";
169                         type: TEXT;
170                         mouse_events: 1;
171                         repeat_events: 1;
172                         scale: 1;
173                         description {
174                                 state: "default" 0.0;
175                                 rel1 { relative: (ALBUM_TEXT_GAP_L/ALBUM_TEXT_AREA_W) 0.0; to: "label_bg"; }
176                                 rel2 { relative: (ALBUM_TEXT_AREA_W-ALBUM_TEXT_GAP_L-1)/ALBUM_TEXT_AREA_W (ALBUM_TEXT_NAME_H-1)/ALBUM_TEXT_AREA_H; to: "label_bg"; }
177                                 color: 255 255 255 255;
178                                 text {
179                                 font: "SLP:style=Medium";
180                                 text_class: "slp";
181                                 size: 28;
182                                 align: 0.0 0.5;
183                                 }
184                         }
185                 }
186         }
187 }
188