Merge "Fix issue that the most visited item can't be selected." into 2.0_beta
[profile/ivi/org.tizen.browser.git] / edc / browser-bookmark-view.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
18 #include "browser-macro.edc"
19
20 collections {
21         group {
22                 name: "bookmark/content_layout";
23                 parts {
24                         part { name: "bg";
25                                 mouse_events: 0;
26                                 type: RECT;
27                                 scale: 1;
28                                 description {
29                                         state: "default" 0.0;
30                                         visible: 0;
31                                         align: 0.0 0.0;
32                                         rel1 { relative: 0.0 0.0; }
33                                         rel2 { relative: 1.0 1.0; }
34                                         color: 255 255 255 255;
35                                 }
36                         }
37                         part { name: "elm.swallow.upperlist";
38                                 mouse_events: 1;
39                                 type: SWALLOW;
40                                 scale: 1;
41                                 description {
42                                         state: "default" 0.0;
43                                         visible: 0;
44                                         min: 0 0;
45                                         max: 0 0;
46                                         rel1 { relative: 0.0 0.0; to: bg; }
47                                         rel2 { relative: 1.0 0.0; to: bg; }
48                                 }
49                                 description {
50                                         state: "show_upper_folder" 0.0;
51                                         inherit: "default" 0.0;
52                                         visible: 1;
53                                         min: 0 115;
54                                         max: 999999 115;
55                                         fixed: 0 1;
56                                         align: 0.0 0.0;
57                                 }
58                         }
59                         part { name: "upper_list_bottom_line";
60                                 mouse_events: 0;
61                                 type: RECT;
62                                 scale: 1;
63                                 description {
64                                         state: "default" 0.0;
65                                         visible: 0;
66                                         min: 0 0;
67                                         max: 999999 0;
68                                         fixed: 0 1;
69                                         rel1 { relative: 0.0 1.0; to: "elm.swallow.upperlist"; }
70                                         rel2 { relative: 1.0 1.0; to: "elm.swallow.upperlist"; }
71                                         color: 200 200 200 255;
72                                 }
73                         }
74                         part { name: "elm.swallow.content_box";
75                                 mouse_events: 1;
76                                 type: SWALLOW;
77                                 scale: 1;
78                                 description {
79                                         state: "default" 0.0;
80                                         visible: 1;
81                                         rel1 { relative: 0.0 1.0; to_x: bg; to_y: "upper_list_bottom_line"; }
82                                         rel2 { relative: 1.0 1.0; to: bg; }
83                                         color: 0 255 0 255;
84                                 }
85                                 description {
86                                         state: "empty" 0.0;
87                                         inherit: "default" 0.0;
88                                         visible: 0;
89                                         min: 0 0;
90                                         max: 0 0;
91                                 }
92                         }
93                         part { name: "elm.swallow.no_content";
94                                 mouse_events: 1;
95                                 type: SWALLOW;
96                                 scale: 1;
97                                 description {
98                                         state: "default" 0.0;
99                                         visible: 0;
100                                         rel1 { relative: 0.0 1.0; to_x: bg; to_y: "upper_list_bottom_line"; }
101                                         rel2 { relative: 1.0 1.0; to: bg; }
102                                         color: 0 0 255 255;
103                                 }
104                                 description {
105                                         state: "empty" 0.0;
106                                         inherit: "default" 0.0;
107                                         visible: 1;
108                                 }
109                         }
110                 }
111                 programs {
112                         program { name: "hide,upper_folder";
113                                 signal: "hide,upper_folder,signal";
114                                 action: STATE_SET "default" 0.0;
115                                 target: "elm.swallow.upperlist";
116                                 target: "upper_list_bottom_line";
117                         }
118                         program { name: "show,upper_folder";
119                                 signal: "show,upper_folder,signal";
120                                 action: STATE_SET "show_upper_folder" 0.0;
121                                 target: "elm.swallow.upperlist";
122                                 target: "upper_list_bottom_line";
123                         }
124                         program { name: "show,content_box";
125                                 signal: "show,content_box,signal";
126                                 action: STATE_SET "default" 0.0;
127                                 target: "elm.swallow.content_box";
128                                 target: "elm.swallow.no_content";
129                         }
130                         program { name: "hide,content_box";
131                                 signal: "hide,content_box,signal";
132                                 action: STATE_SET "empty" 0.0;
133                                 target: "elm.swallow.content_box";
134                                 target: "elm.swallow.no_content";
135                         }
136                 }
137         }
138         group {
139                 name: "bookmark/main_layout";
140                 parts {
141                         part { name: "elm.swallow.tabbar";
142                                 mouse_events: 1;
143                                 repeat_events: 1;
144                                 type: SWALLOW;
145                                 scale: 1;
146                                 description {
147                                         state: "default" 0.0;
148                                         visible: 1;
149                                         min: 0 117;
150                                         fixed: 0 1;
151                                         align: 0.0 0.0;
152                                         rel1 { relative: 0.0 0.0; }
153                                         rel2 { relative: 1.0 0.0; }
154                                 }
155                         }
156                         part { name: "elm.swallow.content";
157                                 mouse_events: 1;
158                                 repeat_events: 1;
159                                 type: SWALLOW;
160                                 scale: 1;
161                                 description {
162                                         state: "default" 0.0;
163                                         visible: 1;
164                                         align: 0.0 0.0;
165                                         rel1 { relative: 0.0 1.0; to: "elm.swallow.tabbar"; }
166                                         rel2 { relative: 1.0 1.0; }
167                                 }
168                                 description {
169                                         state: "unvisible" 0.0;
170                                         inherit: "default" 0.0;
171                                         visible: 0;
172                                 }
173                         }
174                         part { name: "elm.swallow.content1";
175                                 mouse_events: 1;
176                                 repeat_events: 1;
177                                 type: SWALLOW;
178                                 scale: 1;
179                                 description {
180                                         state: "default" 0.0;
181                                         visible: 1;
182                                         align: 0.0 0.0;
183                                         rel1 { relative: 0.0 0.0; to: "elm.swallow.content"; }
184                                         rel2 { relative: 1.0 1.0; to: "elm.swallow.content"; }
185                                 }
186                                 description {
187                                         state: "unvisible" 0.0;
188                                         inherit: "default" 0.0;
189                                         visible: 0;
190                                 }
191                         }
192                 }
193                 programs {
194                         program { name: "show,content0";
195                                 signal: "show,content0,signal";
196                                 action: STATE_SET "default" 0.0;
197                                 target: "elm.swallow.content";
198                                 after: "hide,content1";
199                         }
200                         program { name: "hide,content1";
201                                 action: STATE_SET "unvisible" 0.0;
202                                 target: "elm.swallow.content1";
203                         }
204                         program { name: "show,content1";
205                                 signal: "show,content1,signal";
206                                 action: STATE_SET "default" 0.0;
207                                 target: "elm.swallow.content1";
208                                 after: "hide,content0";
209                         }
210                         program { name: "hide,content0";
211                                 action: STATE_SET "unvisible" 0.0;
212                                 target: "elm.swallow.content";
213                         }
214                 }
215         }
216
217         group {
218                 name: "bookmark/bookmark-folder-view-layout";
219                 parts {
220                         part { name: "bg";
221                                 mouse_events: 0;
222                                 type: RECT;
223                                 scale: 1;
224                                 description {
225                                         state: "default" 0.0;
226                                         visible: 1;
227                                         rel1 { relative: 0.0 0.0; }
228                                         rel2 { relative: 1.0 1.0; }
229                                         color: 100 100 100 255;
230                                 }
231                         }
232                         part { name: "elm.swallow.folderlist";
233                                 mouse_events: 1;
234                                 type: SWALLOW;
235                                 scale: 1;
236                                 description {
237                                         state: "default" 0.0;
238                                         visible: 1;
239                                         rel1 { relative: 0.0 0.0; to: bg; }
240                                         rel2 { relative: 1.0 0.0; to_x: bg; to_y: elm.swallow.controlbar; }
241                                 }
242                         }
243                         part { name: "elm.swallow.controlbar";
244                                 mouse_events: 1;
245                                 type: SWALLOW;
246                                 scale: 1;
247                                 description {
248                                         state: "default" 0.0;
249                                         visible: 1;
250                                         min: 0 96;
251                                         max: 999999 96;
252                                         fixed: 0 1;
253                                         align: 0.0 1.0;
254                                         rel1 { relative: 0.0 1.0; to_x: bg; to_y: bg; }
255                                         rel2 { relative: 1.0 1.0; to_x: bg; to_y: bg; }
256                                 }
257                         }
258                 }
259         }
260
261         group { name: "browser/popup_center_progressview";
262            parts{
263               part { name: "elm.title";
264                  type: TEXT;
265                  scale : 1;
266                  description { state: "default" 0.0;
267                     max: 240 24;
268                     text {
269                        font: "SLP:style=Medium";
270                        size: 33;
271                        min: 0 0;
272                        align: 0.5 0.0;
273                       }
274                     color: 108 108 108 255;
275                     align: 0.5 0.0;
276                     rel1 {
277                        relative: 0.0 0.0;
278                        to: "elm.swallow.content";
279                     }
280                     rel2 {
281                        relative: 1.0 0.0;
282                        to: "elm.swallow.content";
283                     }
284                  }
285               }
286               part{ name:"elm.swallow.content";
287                  type: SWALLOW;
288                  scale : 1;
289                  description { state: "default" 0.0;
290                     min: 0 105;
291                     align: 0.5 0.8;
292                     fixed: 1 0;
293                     rel1 {
294                        relative: 0.0 0.0;
295                     }
296                     rel2 {
297                        relative: 1.0 1.0;
298                     }
299                  }
300               }
301               part { name: "elm.text.left";
302                  type: TEXT;
303                  scale : 1;
304                  description { state: "default" 0.0;
305                     max: 225 24;
306                     text {
307                        font: "SLP:style=Medium";
308                        size: 24;
309                        min: 0 0;
310                        align: 0.0 1.0;
311                       }
312                     color: 108 108 108 255;
313                     align: 0.0 1.0;
314                     rel1 {
315                        relative: 0.0 0.0;
316                        to: "elm.swallow.content";
317                     }
318                     rel2 {
319                        relative: 1.0 1.0;
320                        to: "elm.swallow.content";
321                     }
322                  }
323               }
324               part { name: "elm.text.right";
325                  type: TEXT;
326                  scale : 1;
327                  description { state: "default" 0.0;
328                     max: 225 24;
329                     text {
330                        font: "SLP:style=Medium";
331                        size: 24;
332                        min: 0 0;
333                        align: 1.0 1.0;
334                       }
335                     color: 108 108 108 255;
336                     align: 1.0 1.0;
337                     rel1 {
338                        relative: 0.0 0.0;
339                        to: "elm.swallow.content";
340                     }
341                     rel2 {
342                        relative: 1.0 1.0;
343                        to: "elm.swallow.content";
344                     }
345                  }
346               }
347            }
348         }
349
350 #define NOCONTENT_TEXT_BLOCK_STYLE_COLOR_INC 81 78 76 255
351 #define NOCONTENT_TEXT_BLOCK_TEXT_SIZE_INC   42
352 #define NOCONTENT_MIDDLE_PADDING_INC         54
353 #define NOCONTENT_BASE_SEARCH_PADDING_INC    40
354 #define NOCONTENT_IMAGE_REL1_WIDTH_HEIGHT_INC 0.282 0.294
355 #define NOCONTENT_IMAGE_REL2_WIDTH_HEIGHT_INC 0.718 0.54
356 #define NOCONTENT_BG_COLOR_INC               0 0 0 255
357 #define NOCONTENT_TEXT_STYLE_BG_MIN_INC       0 120
358
359 group {
360    name: "elm/layout/no_bookmark/full";
361    alias: "elm/no_bookmark/base/full";
362    alias: "elm/no_bookmark/base/default";
363    styles{
364       style { name: "nocontent_style";
365          base: "font=SLP:style=Roman font_size="NOCONTENT_TEXT_BLOCK_TEXT_SIZE_INC" align=center color=#ffffff wrap=mixed ellipsis=1.0";
366          tag:  "br" "\n";
367          tag:  "hilight" "+ font=SLP:style=Bold";
368          tag:  "b" "+ font=SLP:style=Bold";
369          tag:  "tab" "\t";
370       }
371    }
372    images {
373       image: "bookmarks/I01_Nocontents_Bookmarks.png" COMP;
374    }
375    parts {
376       part { name: "bg";
377          type: RECT;
378          scale: 1;
379          description { state: "default" 0.0;
380             visible: 1;
381             min: 200 200;
382             rel1 {
383                relative: 0.0 0.0;
384             }
385             rel2 {
386                relative: 1.0 1.0;
387             }
388             color: NOCONTENT_BG_COLOR_INC;
389          }
390       }
391       part { name: "nocontents.image";
392          description { state: "default" 0.0;
393             visible: 1;
394             align: 0.5 0.0;
395             rel1 {
396                relative: NOCONTENT_IMAGE_REL1_WIDTH_HEIGHT_INC;
397                to: "bg";
398             }
399             rel2 {
400                relative: NOCONTENT_IMAGE_REL2_WIDTH_HEIGHT_INC;
401                to: "bg";
402             }
403             image {
404                normal: "bookmarks/I01_Nocontents_Bookmarks.png";
405                border: 1 1 1 1;
406                border_scale: 1;
407             }
408             aspect: 1.0 1.0;
409             aspect_preference: BOTH;
410          }
411       }
412       part { name: "middle.padding";
413          type: RECT;
414          scale: 1;
415          description { state: "default" 0.0;
416             visible: 0;
417             min: 1 NOCONTENT_MIDDLE_PADDING_INC;
418             max: 1 NOCONTENT_MIDDLE_PADDING_INC;
419             align: 0.5 0.0;
420             rel1 {
421                relative: 0.0 1.0;
422                to_y: "nocontents.image";
423             }
424          }
425       }
426       part { name: "elm.text";
427          type: TEXTBLOCK;
428          scale: 1;
429          description { state: "default" 0.0;
430             min: NOCONTENT_TEXT_STYLE_BG_MIN_INC;
431             fixed: 0 1;
432             align: 0.5 0.5;
433             visible: 1;
434             rel1 {
435                relative: 0.0 1.0;
436                to_x: "bg";
437                to_y: "middle.padding";
438             }
439             rel2 {
440                relative: 1.0 1.0;
441                to_x: "bg";
442                to_y: "middle.padding";
443             }
444             color: NOCONTENT_TEXT_BLOCK_STYLE_COLOR_INC;
445             text {
446                style: "nocontent_style";
447                align: 0.5 0.5;
448                min: 0 0;
449                max: 0 1;
450             }
451          }
452       }
453    }
454 }
455
456 }
457