Merge "Fix issue that the most visited item can't be selected." into 2.0_beta
[profile/ivi/org.tizen.browser.git] / edc / most-visited-sites.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 #if 1
22         group {
23                 name: "most_visited_sites_layout";
24                 parts {
25                         part {
26                                 name: "elm.swallow.gengrid";
27                                 type: SWALLOW;
28                                 scale: 1;
29                                 mouse_events: 1;
30                                 description {
31                                         state: "default" 0.0;
32                                         visible: 1;
33                                         rel1 {relative: 0.0 0.0; }
34                                         rel2 {relative: 1.0 1.0; }
35                                 }
36                         }
37                         part { name: "padding,setting_button,left";
38                                 mouse_events: 0;
39                                 type: RECT;
40                                 scale: 1;
41                                 description {
42                                         state: "default" 0.0;
43                                         visible: 0;
44                                         min: 16 0;
45                                         fixed: 1 0;
46                                         align: 0.0 0.0;
47                                         rel1 { relative: 0.0 0.0; }
48                                         rel2 { relative: 0.0 1.0; }
49                                 }
50                         }
51                         part { name: "padding,setting_button,right";
52                                 mouse_events: 0;
53                                 type: RECT;
54                                 scale: 1;
55                                 description {
56                                         state: "default" 0.0;
57                                         visible: 0;
58                                         min: 16 0;
59                                         fixed: 1 0;
60                                         align: 1.0 0.0;
61                                         rel1 { relative: 1.0 0.0; to: "elm.swallow.gengrid"; }
62                                         rel2 { relative: 1.0 1.0; to: "elm.swallow.gengrid"; }
63                                 }
64                         }
65                         part { name: "padding,setting_button,bottom";
66                                 mouse_events: 0;
67                                 type: RECT;
68                                 scale: 1;
69                                 description {
70                                         state: "default" 0.0;
71                                         visible: 0;
72                                         min: 0 29;
73                                         fixed: 0 1;
74                                         align: 0.0 1.0;
75                                         rel1 { relative: 0.0 1.0; }
76                                         rel2 { relative: 1.0 1.0; }
77                                 }
78                         }
79                         part {
80                                 name: "elm.swallow.setting_button";
81                                 type: SWALLOW;
82                                 scale: 1;
83                                 mouse_events: 1;
84                                 description {
85                                         state: "default" 0.0;
86                                         visible: 1;
87                                         min: 144 60;
88                                         max: 144 60;
89                                         fixed: 1 1;
90                                         align: 0.0 1.0;
91                                         rel1 {relative: 1.0 0.0; to_x: "padding,setting_button,left"; to_y: "padding,setting_button,bottom"; }
92                                         rel2 {relative: 1.0 0.0; to_x: "padding,setting_button,left"; to_y: "padding,setting_button,bottom"; }
93                                 }
94                                 description {
95                                         state: "rotate" 0.0;
96                                         inherit: "default" 0.0;
97                                         align: 1.0 1.0;
98                                         rel1 {relative: 0.0 0.0; to_x: "padding,setting_button,right"; to_y: "padding,setting_button,bottom"; }
99                                         rel2 {relative: 0.0 0.0; to_x: "padding,setting_button,right"; to_y: "padding,setting_button,bottom"; }
100                                 }
101                         }
102                 }
103                 programs {
104                         program { name: "rotate,landscape";
105                                 signal: "rotate,landscape,signal";
106                                 action: STATE_SET "rotate" 0.0;
107                                 target: "elm.swallow.setting_button";
108                         }
109                         program { name: "rotate,portrait";
110                                 signal: "rotate,portrait,signal";
111                                 action: STATE_SET "default" 0.0;
112                                 target: "elm.swallow.setting_button";
113                         }
114                 }
115         }
116
117         group {
118                 name: "most_visited_sites_empty_item";
119                 parts {
120                         part { name: "bg";
121                                 mouse_events: 0;
122                                 type: RECT;
123                                 scale: 1;
124                                 description {
125                                         state: "default" 0.0;
126                                         visible: 1;
127                                         min: 210 257;
128                                         max: 210 257;
129                                         fixed: 1 1;
130                                         align: 0.5 0.5;
131                                         rel1 { relative: 0.0 0.0; }
132                                         rel2 { relative: 1.0 1.0; }
133                                         color: 38 38 38 255;
134                                 }
135                         }
136                         part {
137                                 name: "elm.swallow.snapshot";
138                                 type: RECT;
139                                 scale: 1;
140                                 mouse_events: 1;
141                                 description {
142                                         state: "default" 0.0;
143                                         visible: 1;
144                                         min: 210 220;
145                                         max: 210 220;
146                                         fixed: 1 1;
147                                         align: 0.0 0.0;
148                                         color: 81 81 81 255;
149                                         rel1 {relative: 0.0 0.0; to: "bg"; }
150                                         rel2 {relative: 1.0 0.0; to: "bg"; }
151                                 }
152                         }
153                 }
154         }
155         group {
156                 name: "most_visited_sites_item";
157                 images {
158                         image: "browser-view-images/most-visited-sites/I01_icon_bookmark_bg.png" COMP;
159                         image: "browser-view-images/most-visited-sites/I01_icon_bookmark_off.png" COMP;
160                         image: "browser-view-images/most-visited-sites/I01_icon_bookmark_on.png" COMP;
161                         image: "browser-view-images/most-visited-sites/I01_Btn_delete_01.png" COMP;
162                         image: "browser-view-images/most-visited-sites/I01_Btn_delete_01_press.png" COMP;
163                 }
164                 parts {
165                         part { name: "bg";
166                                 mouse_events: 0;
167                                 type: RECT;
168                                 scale: 1;
169                                 description {
170                                         state: "default" 0.0;
171                                         visible: 1;
172                                         min: 210 257;
173                                         max: 210 257;
174                                         fixed: 1 1;
175                                         align: 0.5 0.5;
176                                         rel1 { relative: 0.0 0.0; }
177                                         rel2 { relative: 1.0 1.0; }
178                                         color: 0 0 0 0;
179                                 }
180                         }
181                         part {
182                                 name: "elm.swallow.snapshot";
183                                 type: SWALLOW;
184                                 scale: 1;
185                                 mouse_events: 1;
186                                 description {
187                                         state: "default" 0.0;
188                                         visible: 1;
189                                         min: 210 220;
190                                         max: 210 220;
191                                         fixed: 1 1;
192                                         align: 0.0 0.0;
193                                         rel1 {relative: 0.0 0.0; to: "bg"; }
194                                         rel2 {relative: 1.0 0.0; to: "bg"; }
195                                 }
196                         }
197                         part { name: "title_label_bg";
198                                 mouse_events: 0;
199                                 type: RECT;
200                                 scale: 1;
201                                 description {
202                                         state: "default" 0.0;
203                                         visible: 1;
204                                         align: 0.0 0.0;
205                                         rel1 { relative: 0.0 0.0; to: "title_label"; }
206                                         rel2 { relative: 1.0 1.0; to: "title_label"; }
207                                         color: 38 38 38 255;
208                                 }
209                         }
210                         part {
211                                 name: "title_label";
212                                 type: TEXT;
213                                 scale: 1;
214                                 mouse_events: 0;
215                                 description {
216                                         state: "default" 0.0;
217                                         visible: 1;
218                                         fixed: 1 1;
219                                         align: 0.0 0.0;
220                                         rel1 {relative: 0.0 1.0; to: "elm.swallow.snapshot"; }
221                                         rel2 {relative: 1.0 1.0; to: "bg"; }
222                                         text { font: FONT_ROM;
223                             size: 22;
224                             min: 0 0;
225                             align: 0.5 0.5;
226                     }
227                     color: 255 255 255 255;
228                                 }
229                         }
230                         part { name: "bookmark_icon_bg";
231                                 type: IMAGE;
232                                 mouse_events: 1;
233                                 repeat_events: 0;
234                                 scale: 1;
235                                 description {
236                                         state: "default" 0.0;
237                                         visible: 1;
238                                         min: 72 72;
239                                         max: 72 72;
240                                         fixed: 1 1;
241                                         align: 1.0 0.0;
242                                         image.normal: "browser-view-images/most-visited-sites/I01_icon_bookmark_bg.png";
243                                         rel1 { relative: 1.01 0.0;  to: "bg"; }
244                                         rel2 { relative: 1.01 0.0;  to: "bg"; }
245                                 }
246                         }
247                         part { name: "bookmark_icon";
248                                 type: IMAGE;
249                                 mouse_events: 1;
250                                 repeat_events: 1;
251                                 scale: 1;
252                                 description {
253                                         state: "default" 0.0;
254                                         visible: 1;
255                                         min: 36 36;
256                                         max: 36 36;
257                                         fixed: 1 1;
258                                         align: 1.0 0.0;
259                                         rel1 { relative: 1.0 0.0;  to: "bg"; }
260                                         rel2 { relative: 1.0 0.0;  to: "bg"; }
261                                         image.normal: "browser-view-images/most-visited-sites/I01_icon_bookmark_off.png";
262                                 }
263                                 description {
264                                         state: "bookmark_on" 0.0;
265                                         inherit: "default" 0.0;
266                                         image.normal: "browser-view-images/most-visited-sites/I01_icon_bookmark_on.png";
267                                 }
268                         }
269                         part { name: "elm.image.delete_button";
270                                 type: IMAGE;
271                                 mouse_events: 1;
272                                 repeat_events: 0;
273                                 scale: 1;
274                                 description {
275                                         state: "default" 0.0;
276                                         visible: 0;
277                                         min: 48 48;
278                                         max: 48 48;
279                                         fixed: 1 1;
280                                         align: 0.0 0.0;
281                                         rel1 { relative: 0.0 0.0; to: "bg"; }
282                                         rel2 { relative: 0.0 0.0; to: "bg"; }
283                                         image.normal: "browser-view-images/most-visited-sites/I01_Btn_delete_01.png";
284                                 }
285                                 description {
286                                         state: "visible" 0.0;
287                                         inherit: "default" 0.0;
288                                         visible: 1;
289                                 }
290                                 description {
291                                         state: "pressed" 0.0;
292                                         inherit: "default" 0.0;
293                                         visible: 1;
294                                         image.normal: "browser-view-images/most-visited-sites/I01_Btn_delete_01_press.png";
295                                 }
296                         }
297                 }
298                 programs {
299                         program { name: "bookmark_icon,on";
300                                 signal: "bookmark_icon,on,signal";
301                                 action: STATE_SET "bookmark_on" 0.0;
302                                 target: "bookmark_icon";
303                         }
304                         program { name: "bookmark_icon,off";
305                                 signal: "bookmark_icon,off,signal";
306                                 action: STATE_SET "default" 0.0;
307                                 target: "bookmark_icon";
308                         }
309                         program { name: "show,delete_button";
310                                 signal: "show,delete_button,signal";
311                                 action: STATE_SET "visible" 0.0;
312                                 target: "elm.image.delete_button";
313                         }
314                         program { name: "hide,delete_button";
315                                 signal: "hide,delete_button,signal";
316                                 action: STATE_SET "default" 0.0;
317                                 target: "elm.image.delete_button";
318                         }
319                         program {
320                                 name: "delete_button_press";
321                                 signal: "mouse,down,1";
322                                 source: "elm.image.delete_button";
323                                 script {
324                                         new st[31];
325                                         new Float:vl;
326                                         get_state(PART:"elm.image.delete_button", st, 30, vl);
327
328                                         if (!strcmp(st, "visible"))
329                                                 set_state(PART:"elm.image.delete_button", "pressed", 0.0);
330                                 }
331                         }
332                         program {
333                                 name: "delete_button_release";
334                                 signal: "mouse,up,1";
335                                 source: "elm.image.delete_button";
336                                 script {
337                                         new st[31];
338                                         new Float:vl;
339                                         get_state(PART:"elm.image.delete_button", st, 30, vl);
340
341                                         if (!strcmp(st, "pressed"))
342                                                 set_state(PART:"elm.image.delete_button", "visible", 0.0);
343                                 }
344                         }
345                 }
346         }
347 #else
348         group {
349                 name: "most_visited_sites_item";
350                 images {
351                         image: "browser-view-images/most-visited-sites/bg-base.png" COMP;
352                         image: "browser-view-images/most-visited-sites/favorite.png" COMP;
353                         image: "browser-view-images/most-visited-sites/no-image.png" COMP;
354                         image: "browser-view-images/most-visited-sites/paper-clip.png" COMP;
355                 }
356                 parts {
357                         part { name: "bg";
358                                 mouse_events: 0;
359                                 type: RECT;
360                                 scale: 1;
361                                 description {
362                                         state: "default" 0.0;
363                                         visible: 1;
364                                         min: 240 255;
365                                         max: 240 255;
366                                         fixed: 1 1;
367                                         align: 0.5 0.5;
368                                         rel1 { relative: 0.0 0.0; }
369                                         rel2 { relative: 1.0 1.0; }
370                                         color: 0 0 0 0;
371                                 }
372                         }
373                         part { name: "bg_rect";
374                                 mouse_events: 0;
375                                 type: RECT;
376                                 scale: 1;
377                                 description {
378                                         state: "default" 0.0;
379                                         visible: 1;
380                                         fixed: 1 1;
381                                         align: 0.5 0.5;
382                                         rel1 {relative: 0.0 0.0; to: bg;}
383                                         rel2 {relative: 1.0 1.0; to: bg;}
384                                         color: 0 0 0 0;
385                                 }
386                                 description {
387                                         state: "pressed" 0.0;
388                                         inherit: "default" 0.0;
389                                         rel1 {relative: 0.01 0.01; to: bg;}
390                                         rel2 {relative: 0.99 0.99; to: bg;}
391                                         color: 53 69 95 150;
392                                 }
393                         }
394                         part { name: "bg_base_edge";
395                                 type: IMAGE;
396                                 mouse_events: 0;
397                                 repeat_events: 0;
398                                 scale: 1;
399                                 description {
400                                         state: "default" 0.0;
401                                         visible: 1;
402                                         fixed: 1 1;
403                                         align: 0.5 0.5;
404                                         rel1 {relative: 0.0 0.0; to: bg_rect;}
405                                         rel2 {relative: 1.0 1.0; to: bg_rect;}
406                                         image.normal: "browser-view-images/most-visited-sites/bg-base.png";
407                                 }
408                                 description {
409                                         state: "pressed" 0.0;
410                                         inherit: "default" 0.0;
411                                         rel1 {relative: 0.03 0.03; to: bg_rect;}
412                                         rel2 {relative: 0.97 0.97; to: bg_rect;}
413                                 }
414                         }
415                         part { name: "bg_no_image";
416                                 type: IMAGE;
417                                 mouse_events: 0;
418                                 repeat_events: 0;
419                                 scale: 1;
420                                 description {
421                                         state: "default" 0.0;
422                                         visible: 1;
423                                         fixed: 1 1;
424                                         align: 0.5 0.5;
425                                         rel1 {relative: 0.0 0.0; to: bg_base_edge;}
426                                         rel2 {relative: 1.0 1.0; to: bg_base_edge;}
427                                         image.normal: "browser-view-images/most-visited-sites/no-image.png";
428                                 }
429                         }
430                         part {
431                                 name: "elm.swallow.tile";
432                                 type: SWALLOW;
433                                 scale: 1;
434                                 mouse_events: 1;
435                                 description {
436                                         state: "default" 0.0;
437                                         visible: 1;
438                                         fixed: 1 1;
439                                         align: 0.5 0.5;
440                                         rel1 {relative: 0.1 0.1; to: bg_base_edge;}
441                                         rel2 {relative: 0.9 0.9; to: bg_base_edge;}
442                                 }
443                         }
444                         part {
445                                 name: "title_rect";
446                                 type: RECT;
447                                 mouse_events: 0;
448                                 repeat_events: 0;
449                                 scale: 1;
450                                 description {
451                                         state: "default" 0.0;
452                                         visible: 0;
453                                         align: 0.5 1.0;
454                                         fixed: 1 1;
455                                         rel1 {relative: 0.08 0.78; to: bg_base_edge;}
456                                         rel2 {relative: 0.92 0.9; to: bg_base_edge;}
457                                         color: 0 0 0 90;
458                                 }
459                                 description {
460                                         state: "visible" 0.0;
461                                         inherit: "default" 0.0;
462                                         visible: 1;
463                                 }
464                         }
465                         part {
466                                 name: "title_label";
467                                 type: TEXT;
468                                 scale: 1;
469                                 mouse_events: 0;
470                                 description {
471                                         state: "default" 0.0;
472                                         visible: 1;
473                                         fixed: 1 1;
474                                         align: 0.5 1.0;
475                                         rel1 {relative: 0.0 0.0; to: title_rect;}
476                                         rel2 {relative: 1.0 1.0; to: title_rect;}
477                                         text { font: FONT_ROM;
478                             size: 22;
479                             min: 0 0;
480                             align: 0.5 1.0;
481                     }
482                     color: 255 255 255 255;
483                                 }
484                                 description {
485                                         state: "visible" 0.0;
486                                         inherit: "default" 0.0;
487                                         visible: 1;
488                                 }
489                         }
490                         part { name: "bookmark_icon";
491                                 type: IMAGE;
492                                 mouse_events: 0;
493                                 repeat_events: 0;
494                                 scale: 1;
495                                 description {
496                                         state: "default" 0.0;
497                                         visible: 0;
498                                         min: 36 36;
499                                         max: 36 36;
500                                         fixed: 1 1;
501                                         align: 0.5 0.3;
502                                         rel1 { relative: 0.85 0.68;  to: bg_base_edge; }
503                                         rel2 { relative: 1.0 0.8;  to: bg_base_edge; }
504                                         image.normal: "browser-view-images/most-visited-sites/favorite.png";
505                                 }
506                                 description {
507                                         state: "visible" 0.0;
508                                         inherit: "default" 0.0;
509                                         visible: 1;
510                                 }
511                         }
512                         part { name: "pin";
513                                 type: IMAGE;
514                                 mouse_events: 1;
515                                 repeat_events: 0;
516                                 scale: 1;
517                                 description {
518                                         state: "default" 0.0;
519                                         visible: 0;
520                                         min: 48 48;
521                                         max: 48 48;
522                                         fixed: 1 1;
523                                         align: 0.6 0.6;
524                                         rel1 { relative: 0.1 0.1;  to: bg_base_edge; }
525                                         rel2 { relative: 0.1 0.1;  to: bg_base_edge; }
526                                 }
527                                 description {
528                                         state: "pin_tack" 0.0;
529                                         inherit: "default" 0.0;
530                                         image.normal: "browser-view-images/most-visited-sites/paper-clip.png";
531                                         visible: 1;
532                                 }
533                         }
534                 }
535                 programs {
536                         program { name: "bookmark_icon";
537                                 signal: "bookmark_icon";
538                                 action: STATE_SET "visible" 0.0;
539                                 target: "bookmark_icon";
540                         }
541                         program { name: "pin_icon_default";
542                                 signal: "hide,pin_icon";
543                                 action: STATE_SET "default" 0.0;
544                                 target: "pin";
545                         }
546                         program { name: "tack_icon";
547                                 signal: "tack_icon";
548                                 action: STATE_SET "pin_tack" 0.0;
549                                 target: "pin";
550                         }
551                         program { name: "titlearea";
552                                 signal: "titlearea";
553                                 action: STATE_SET "visible" 0.0;
554                                 target: "title_rect";
555                         }
556                         program { name: "tile_pressed";
557                                 signal: "tile_pressed";
558                                 action: STATE_SET "pressed" 0.0;
559                                 target: "bg_rect";
560                         }
561                         program { name: "tile_released";
562                                 signal: "tile_released";
563                                 action: STATE_SET "default" 0.0;
564                                 target: "bg_rect";
565                         }
566                 }
567         }
568
569         group {
570                 name: "most_visited_sites_empty_item";
571                 images {
572                         image: "browser-view-images/most-visited-sites/bg-base.png" COMP;
573                         image: "browser-view-images/most-visited-sites/button-add.png" COMP;
574                 }
575                 parts {
576                         part { name: "bg";
577                                 mouse_events: 0;
578                                 type: RECT;
579                                 scale: 1;
580                                 description {
581                                         state: "default" 0.0;
582                                         visible: 1;
583                                         min: 240 255;
584                                         max: 240 255;
585                                         fixed: 1 1;
586                                         align: 0.5 0.5;
587                                         rel1 { relative: 0.0 0.0; }
588                                         rel2 { relative: 1.0 1.0; }
589                                         color: 255 255 255 0;  // white
590                                 }
591                         }
592                         part { name: "bg_rect";
593                                 mouse_events: 0;
594                                 type: RECT;
595                                 scale: 1;
596                                 description {
597                                         state: "default" 0.0;
598                                         visible: 1;
599                                         fixed: 1 1;
600                                         align: 0.5 0.5;
601                                         rel1 {relative: 0.0 0.0; to: bg;}
602                                         rel2 {relative: 1.0 1.0; to: bg;}
603                                         color: 255 255 255 255;  // white
604                                 }
605                                 description {
606                                         state: "pressed" 0.0;
607                                         inherit: "default" 0.0;
608                                         rel1 {relative: 0.01 0.01; to: bg;}
609                                         rel2 {relative: 0.99 0.99; to: bg;}
610                                         color: 255 127 0 150;
611                                 }
612                         }
613                         part { name: "bg_base_edge";
614                                 type: IMAGE;
615                                 mouse_events: 0;
616                                 repeat_events: 0;
617                                 scale: 1;
618                                 description {
619                                         state: "default" 0.0;
620                                         visible: 1;
621                                         fixed: 1 1;
622                                         align: 0.5 0.5;
623                                         rel1 {relative: 0.0 0.0; to: bg_rect;}
624                                         rel2 {relative: 1.0 1.0; to: bg_rect;}
625                                         image.normal: "browser-view-images/most-visited-sites/bg-base.png";
626                                 }
627                         }
628                         part {
629                                 name: "elm.swallow.tile";
630                                 type: SWALLOW;
631                                 scale: 1;
632                                 mouse_events: 1;
633                                 description {
634                                         state: "default" 0.0;
635                                         align: 0.5 0.5;
636                                         rel1 {relative: 0.0 0.0; to: bg_base_edge;}
637                                         rel2 {relative: 1.0 1.0; to: bg_base_edge;}
638                                         color: 255 255 255 0;
639                                 }
640                         }
641                         part { name: "empty_slot";
642                                 type: IMAGE;
643                                 mouse_events: 0;
644                                 repeat_events: 0;
645                                 scale: 1;
646                                 description {
647                                         state: "default" 0.0;
648                                         visible: 1;
649                                         min: 96 96;
650                                         max: 96 96;
651                                         fixed: 1 1;
652                                         align: 0.5 0.5;
653                                         rel1 {relative: 0.0 0.0; to: bg_base_edge;}
654                                         rel2 {relative: 1.0 1.0; to: bg_base_edge;}
655                                         image.normal: "browser-view-images/most-visited-sites/button-add.png";
656                                 }
657                         }
658                 }
659                 programs {
660                         program { name: "tile_pressed";
661                                 signal: "tile_pressed";
662                                 action: STATE_SET "pressed" 0.0;
663                                 target: "bg_rect";
664                         }
665                         program { name: "tile_released";
666                                 signal: "tile_released";
667                                 action: STATE_SET "default" 0.0;
668                                 target: "bg_rect";
669                         }
670                 }
671         }
672 #endif
673
674         group {
675                 name: "guide_text";
676                 images {
677                         image: "browser-view-images/most-visited-sites/I01_popup_bg.png" COMP;
678                         image: "browser-view-images/most-visited-sites/I01_popup_bottom_bg.png" COMP;
679                 }
680                 parts {
681                         part {
682                                 name: "bg";
683                                 type: RECT;
684                                 scale: 1;
685                                 description {
686                                         state: "default" 0.0;
687                                         visible: 1;
688                                         color: 0 0 0 128;
689                                         rel1 { relative: 0.0 0.0; to: "guide_text_bg"; }
690                                         rel2 { relative: 1.02 1.15; to: "option_bg"; }
691                                 }
692                         }
693                         part {
694                                 name: "guide_text_bg";
695                                 type: IMAGE;
696                                 scale: 1;
697                                 description {
698                                         state: "default" 0.0;
699                                         visible: 1;
700                                         align: 0.0 0.0;
701                                         fixed: 1 1;
702                                         rel1 { relative: -0.05 -0.1; to: "elm.swallow.guide_text_label"; }
703                                         rel2 { relative: 1.05 1.15; to: "elm.swallow.guide_text_label"; }
704                                         image {
705                                                 normal: "browser-view-images/most-visited-sites/I01_popup_bg.png";
706                                                 border: 11 11 11 11;
707                                                 border_scale: 1;
708                                         }
709                                 }
710                         }
711                         part {
712                                 name: "elm.swallow.guide_text_label";
713                                 type: SWALLOW;
714                                 scale: 1;
715                                 description {
716                                         state: "default" 0.0;
717                                         visible: 1;
718                                         fixed: 1 1;
719                                         align: 0.5 0.0;
720                                         rel1 { relative: 0.05 0.1; }
721                                         rel2 { relative: 0.95 0.1; }
722                                 }
723                         }
724                         part {
725                                 name: "option_bg";
726                                 type: IMAGE;
727                                 scale: 1;
728                                 description {
729                                         state: "default" 0.0;
730                                         visible: 1;
731                                         min: 0 90;
732                                         align: 0.0 0.0;
733                                         fixed: 0 1;
734                                         rel1 { relative: 0.016 1.05; to_y: "elm.swallow.guide_text_label"; }
735                                         rel2 { relative: 0.982 1.0; to_y: "elm.swallow.guide_text_label"; }
736                                         image {
737                                                 normal: "browser-view-images/most-visited-sites/I01_popup_bottom_bg.png";
738                                                 border: 3 3 2 3;
739                                                 border_scale: 1;
740                                         }
741                                 }
742                         }
743                         part {
744                                 name: "elm.swallow.never_show_check_box";
745                                 type: SWALLOW;
746                                 mouse_events: 1;
747                                 scale: 1;
748                                 description {
749                                         state: "default" 0.0;
750                                         visible: 1;
751                                         min: 45 45;
752                                         max: 45 45;
753                                         fixed: 1 1;
754                                         align: 0.5 0.5;
755                                         rel1 { relative: 0.0 0.0; to: "option_bg"; }
756                                         rel2 { relative: 0.15 1.0; to: "option_bg"; }
757                                 }
758                         }
759                         part {
760                                 name: "elm.swallow.never_show_text";
761                                 type: SWALLOW;
762                                 mouse_events: 1;
763                                 scale: 1;
764                                 description {
765                                         state: "default" 0.0;
766                                         visible: 1;
767                                         fixed: 1 1;
768                                         align: 0.0 0.0;
769                                         rel1 { relative: 1.0 0.2; to_x: "elm.swallow.never_show_check_box"; to_y: "elm.swallow.never_show_check_box"; }
770                                         rel2 { relative: 0.0 1.0; to_x: "elm.swallow.ok_button"; to_y: "elm.swallow.never_show_check_box"; }
771                                 }
772                         }
773                         part {
774                                 name: "elm.swallow.never_show_text_click_area";
775                                 type: RECT;
776                                 mouse_events: 1;
777                                 scale: 1;
778                                 description {
779                                         state: "default" 0.0;
780                                         visible: 1;
781                                         align: 0.0 0.0;
782                                         rel1 { relative: 0.0 0.0; to: "elm.swallow.never_show_text"; }
783                                         rel2 { relative: 0.5 1.0; to: "elm.swallow.never_show_text"; }
784                                         color: 0 0 0 0;
785                                 }
786                         }
787                         part {
788                                 name: "elm.swallow.ok_button";
789                                 type: SWALLOW;
790                                 mouse_events: 1;
791                                 scale: 1;
792                                 description {
793                                         state: "default" 0.0;
794                                         visible: 1;
795                                         min: 75 0;
796                                         fixed: 1 0;
797                                         align: 1.0 0.5;
798                                         rel1 { relative: 0.98 0.2; to: "option_bg"; }
799                                         rel2 { relative: 0.98 0.8; to: "option_bg"; }
800                                 }
801                         }
802                 }
803         }
804         group {
805                 name: "elm/gengrid/item/default_grid/browser/most_visited_sites/default";
806                 data.item: "contents" "elm.swallow.icon elm.swallow.end";
807
808                 parts {
809                         part {
810                                 name: "bg";
811                                 type: RECT;
812                                 description {
813                                         state: "default" 0.0;
814                                         color: 0 0 0 0;
815                                         rel1 { relative: 0.0 0.0; }
816                                         rel2 { relative: 1.0 1.0; }
817                         }
818                         }
819                         part {
820                                 name: "left_top_padding";
821                                 type: RECT;
822                                 description {
823                                         state: "default" 0.0;
824                                         min: 8 15;
825                                         align: 0.0 0.0;
826                                         color: 0 0 0 0;
827                                         rel1 { relative: 0.0 0.0; to: "bg"; }
828                                         rel2 { relative: 0.0 0.0; to: "bg"; }
829                                 }
830                         }
831                         part {
832                                 name: "right_bottom_padding";
833                                 type: RECT;
834                                 description {
835                                         state: "default" 0.0;
836                                         min: 7 0;
837                                         color: 0 0 0 0;
838                                         align: 1.0 1.0;
839                                         rel1 { relative: 1.0 1.0; to: "bg"; }
840                                         rel2 { relative: 1.0 1.0; to: "bg"; }
841                                 }
842                         }
843                         part {
844                                 name: "area_bg";
845                                 type: RECT;
846                                 description {
847                                         state: "default" 0.0;
848                                         color: 0 0 0 0;
849                                         rel1 { relative: 1.0 1.0; to_x: "left_top_padding"; to_y: "left_top_padding";}
850                                         rel2 { relative: 0.0 0.0; to_x: "right_bottom_padding"; to_y: "right_bottom_padding";}
851                                 }
852                                 description {
853                                         state: "enabled" 0.0;
854                                         inherit: "default" 0.0;
855                                         rel1.offset: -6 -6;
856                                         rel2.offset: 5 5;
857                                 }
858                         }
859                         part {
860                                 name: "elm.swallow.icon";
861                                 type: SWALLOW;
862                                 description {
863                                         state: "default" 0.0;
864                                         rel1 { relative: 0.0 0.0; offset: 1 1; to: "area_bg"; }
865                                         rel2 { relative: 1.0 1.0; offset: -2 -2; to: "area_bg"; }
866                                 }
867                         }
868
869                         part {
870                                 name: "elm.swallow.end";
871                                 type: SWALLOW;
872                                 description {
873                                         state: "default" 0.0;
874                                         rel1 { relative: 0.0 0.0; to: "elm.swallow.icon"; }
875                                         rel2 { relative: 1.0 1.0; to: "elm.swallow.icon"; }
876                                 }
877                         }
878                         part {
879                                 name: "reorder_bg";
880                                 type: RECT;
881                                 description {
882                                         state: "default" 0.0;
883                                         color: 0 0 0 0;
884                                         visible: 0;
885                                         align: 0.0 0.0;
886                                         rel1 { relative: 0.075 0.075; to: "area_bg"; }
887                                         rel2 { relative: 0.925 0.925; to: "area_bg"; }
888                                 }
889                                 description {
890                                         state: "enabled" 0.0;
891                                         inherit: "default" 0.0;
892                                         color: 0 0 0 128;
893                                         visible: 1;
894                                 }
895                         }
896                 }
897                 programs {
898                         program {
899                                 name:    "go_reorder_disabled";
900                                 signal:  "elm,state,reorder,disabled";
901                                 source:  "elm";
902                                 action:  STATE_SET "default" 0.0;
903                                 target:  "area_bg";
904                                 target:  "reorder_bg";
905                                 transition: ACCELERATE 0.3;
906                         }
907                         program {
908                                 name:    "go_reorder_enabled";
909                                 signal:  "elm,state,reorder,enabled";
910                                 source:  "elm";
911                                 action:  STATE_SET "enabled" 0.0;
912                                 target:  "area_bg";
913                                 target:  "reorder_bg";
914                                 transition: ACCELERATE 0.3;
915                         }
916                 }
917         }
918 }