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.
18 #define ALBUM_ITEM_W 358
20 #define ALBUM_ITEM_H 360
25 #define ALBUM_GAP_L 12
26 #define ALBUM_GAP_R 12
27 #define ALBUM_GAP_T 26
29 #define ALBUM_ICON_W 318
30 #define ALBUM_ICON_H 318
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
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_Y 60
42 #define ALBUM_TEXT_NAME_H 32
43 #define ALBUM_TEXT_DATE_H 25
45 #define ALBUM_RENAME_BTN_W 64
46 #define ALBUM_RENAME_BTN_H 64
48 #define ALBUM_CHECKBOX_W 42
49 #define ALBUM_CHECKBOX_H 42
50 #define ALBUM_CHECKBOX_GAP_L 1
51 #define ALBUM_CHECKBOX_GAP_T 8
55 name: "elm/gengrid/item/albums_view/gallery_efl/default";
57 data.item: "texts" "elm.text.name elm.text.date elm.text.count";
58 data.item: "contents" "elm.swallow.firsticon elm.swallow.icon elm.swallow.onlyicon elm.swallow.check_bg label_bg";
61 image: GE_EDC_IMAGE_MAIN_FOLDER_BG COMP;
71 rel1 { relative: 0.0 0.0; }
72 rel2 { relative: 1.0 1.0; }
75 part { name: "icon_bg_img";
80 min : ALBUM_W ALBUM_H;
83 normal : GE_EDC_IMAGE_MAIN_FOLDER_BG;
85 rel1 { relative: ALBUM_GAP_L/ALBUM_ITEM_W ALBUM_GAP_T/ALBUM_ITEM_H; to:"bg"; }
86 rel2 { relative: (ALBUM_ITEM_W-ALBUM_GAP_R-1)/ALBUM_ITEM_W 1.0; to:"bg"; }
89 part { name: "icon_bg";
94 min : ALBUM_ICON_W ALBUM_ICON_H;
96 rel1 { relative: ALBUM_ICON_GAP_L/ALBUM_ICON_W 0.0; to:"icon_bg_img"; }
97 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"; }
101 name: "elm.swallow.onlyicon";
106 state: "default" 0.0;
107 rel1 { relative: (ALBUM_ICON_PAD/ALBUM_ICON_W) (ALBUM_ICON_PAD/ALBUM_ICON_H); to: "icon_bg"; }
108 rel2 { relative: (ALBUM_ICON_W-ALBUM_ICON_PAD)/ALBUM_ICON_W (ALBUM_ICON_H-ALBUM_ICON_PAD)/ALBUM_ICON_H; to: "icon_bg"; }
117 state: "default" 0.0;
118 rel1 { relative: (ALBUM_ICON_PAD/ALBUM_ICON_W) (ALBUM_ICON_PAD/ALBUM_ICON_H); offset: 0 0; to: "icon_bg"; }
119 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"; }
123 name: "elm.swallow.firsticon";
128 state: "default" 0.0;
129 rel1 { relative: ((ALBUM_ICON_PAD+ALBUM_TEXT_AREA_W+ALBUM_ICON_PAD)/ALBUM_ICON_W) (ALBUM_ICON_PAD/ALBUM_ICON_H); to: "icon_bg"; }
130 rel2 { relative: (ALBUM_ICON_W-ALBUM_ICON_PAD)/ALBUM_ICON_W (ALBUM_TEXT_AREA_H+ALBUM_ICON_PAD)/ALBUM_ICON_H; to: "icon_bg"; }
134 name: "elm.swallow.icon";
139 state: "default" 0.0;
140 rel1 { relative: (ALBUM_ICON_PAD/ALBUM_ICON_W) ((ALBUM_ICON_PAD+ALBUM_TEXT_AREA_H+ALBUM_ICON_PAD)/ALBUM_ICON_H); to: "icon_bg"; }
141 rel2 { relative: (ALBUM_ICON_W-ALBUM_ICON_PAD)/ALBUM_ICON_W (ALBUM_ICON_H-ALBUM_ICON_PAD)/ALBUM_ICON_H; to: "icon_bg"; }
145 name: "edit_text_bg";
150 state: "default" 0.0;
152 rel1 { relative: 0.0 0.0; to: "label_bg"; }
153 rel2 { relative: 1.0 1.0; to: "label_bg"; }
154 color: 100 100 100 100;
158 inherit: "default" 0.0;
163 name: "elm.text.date";
169 state: "default" 0.0;
170 rel1 { relative: ALBUM_TEXT_GAP_L/ALBUM_TEXT_AREA_W ALBUM_TEXT_NAME_H/ALBUM_TEXT_AREA_H; to: "label_bg"; }
171 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"; }
172 color: 190 190 190 255;
174 font: "Helvetica Neue:style=Medium";
181 name: "elm.text.count";
187 state: "default" 0.0;
189 rel1 { relative: ((ALBUM_TEXT_GAP_L+1)/ALBUM_TEXT_AREA_W) ALBUM_TEXT_Y/ALBUM_TEXT_AREA_H; to: "label_bg"; }
190 rel2 { relative: (ALBUM_TEXT_AREA_W-ALBUM_TEXT_GAP_L-1)/ALBUM_TEXT_AREA_W 1.0; to: "label_bg"; }
191 color: 255 255 255 255;
193 font: "Helvetica Neue:style=Medium";
200 inherit: "default" 0.0;
208 state: "default" 0.0;
210 rel1 { relative: 0.0 0.0; to: "elm.swallow.icon"; }
211 rel2 { relative: 1.0 1.0; to: "elm.swallow.icon"; }
214 state: "selected" 0.0;
215 inherit: "default" 0.0;
220 name: "elm.swallow.check_bg";
224 state: "default" 0.0;
225 rel1 { relative: (ALBUM_ICON_PAD/ALBUM_ICON_W) (ALBUM_ICON_PAD/ALBUM_ICON_H); offset: 0 0; to: "icon_bg"; }
226 rel2 { relative: ((ALBUM_ICON_W-ALBUM_ICON_PAD-1)/ALBUM_ICON_W) ((ALBUM_ICON_H-ALBUM_ICON_PAD-1)/ALBUM_ICON_H); offset: 0 0; to: "icon_bg"; }
230 name: "elm.text.name";
236 state: "default" 0.0;
237 rel1 { relative: (ALBUM_TEXT_GAP_L/ALBUM_TEXT_AREA_W) 0.0; to: "label_bg"; }
238 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"; }
239 color: 255 255 255 255;
241 font: "Helvetica Neue:style=Medium";
248 inherit: "default" 0.0;
249 color: 111 198 235 255;
257 signal: "elm,state,selected";
259 action: STATE_SET "selected" 0.0;
260 target: "selected_bg";
264 signal: "elm,state,unselected";
266 action: STATE_SET "default" 0.0;
267 target: "selected_bg";
269 program { /* Show blue name */
270 name: "show_blue_name";
271 signal: "elm,name,show,blue";
274 set_state(PART:"elm.text.name", "blue", 0.0);