Fixed privilege for web-history.admin
[profile/tv/apps/web/browser.git] / services / BookmarksUI / edc / Bookmarks.edc
1 #define DEBUG_RECT_OVER(over_part, r, g, b)                         \
2     part { name: __CONCAT("dbg_rect_at_", __stringify(__LINE__));   \
3                                                                     \
4 scale:1;                                                            \
5         type : RECT;                                                \
6         repeat_events: 1;                                           \
7         description {                                               \
8             state: "default" 0.0;                                   \
9             visible: 1;                                             \
10             color: r g b 128;                                       \
11             rel1 { to: over_part; relative: 0 0; }                  \
12             rel2 { to: over_part; relative: 1 1; }                  \
13         }                                                           \
14     }
15
16 collections {
17
18 group { name: "elm/label/base/bookmarks_label";
19    styles {
20       style { name: "textblock_white";
21          base: "font=Sans font_size="30" color=#D3D3D3";
22       }
23    }
24    styles {
25       style { name: "textblock_white_bold";
26          base: "font=Sans:style=Bold font_size="30" color=#D3D3D3";
27       }
28    }
29
30    parts {
31       part { name: "elm.text";
32          type: TEXTBLOCK;
33          description { state: "default" 0.0;
34             rel1.relative: 0.0 0.0;
35             rel2.relative: 1.0 1.0;
36             align: 0.0 0.0;
37             fixed: 1 1;
38             text {
39                style: "textblock_white";
40                min: 0 1;
41             }
42          }
43          description { state: "bold" 0.0;
44                 inherit: "default" 0.0;
45                 text {
46                style: "textblock_white_bold";
47                min: 0 1;
48             }
49          }
50       }
51    }
52 }
53
54 group { name: "elm/button/base/thumbButton";
55                 images {
56                         image: "ico_delete.png" COMP;
57                 }
58                 parts {
59                         part { name: "elm.swallow.content";
60                                 type: RECT;
61                                 mouse_events: 1;
62                                 repeat_events: 1;
63                                 description { state: "default" 0.0;
64                                         color: 0 0 0 0;
65                                         visible: 1;
66                                         rel1.relative: 0.0 0.0;
67                         rel2.relative: 1.0 1.0;
68                         align: 0.0 0.0;
69                 }
70                         }
71                 }
72
73                 programs {
74                         program { name: "mouse,clicked";
75                                 signal: "mouse,down,1";
76                                 source: "elm.swallow.content";
77                                 action: SIGNAL_EMIT "elm,action,click" "";
78                         }
79                 }
80 }
81
82 group { name: "elm/button/base/deleteButton";
83                 parts {
84                         part { name: "delete_x";
85                                 type: IMAGE;
86                                 description { state: "default" 0.0;
87                                         min: 27 27;
88                                         max: 27 27;
89                                         image.normal: "ico_delete.png";
90                                         rel1.relative: 0.0 0.0;
91                         rel2.relative: 1.0 1.0;
92                         align: 0.5 0.5;
93                         visible: 0;
94                                 }
95                                 description { state: "over" 0.0;
96                                         inherit: "default" 0.0;
97                                         visible: 1;
98                                 }
99                         }
100
101                         part { name: "elm.swallow.content";
102                                 type: RECT;
103                                 mouse_events: 1;
104                                 repeat_events: 1;
105                                 description { state: "default" 0.0;
106                                         color: 0 0 0 0;
107                                         visible: 1;
108                                         rel1.relative: 0.0 0.0;
109                         rel2.relative: 1.0 1.0;
110                         align: 0.0 0.0;
111                 }
112                         }
113                 }
114                 programs {
115                         program { name: "mouse,clicked";
116                                 signal: "mouse,down,1";
117                                 source: "elm.swallow.content";
118                                 action: SIGNAL_EMIT "elm,action,click" "";
119                         }
120                         program { name: "mouse_in";
121                                 signal: "mouse,in";
122                                 source: "elm.swallow.content";
123                                 action:  STATE_SET "over" 0.0;
124                                 target:  "delete_x";
125                         }
126                         program { name: "mouse_out";
127                                 signal: "mouse,out";
128                                 source: "elm.swallow.content";
129                                 action:  STATE_SET "default" 0.0;
130                                 target:  "delete_x";
131                         }
132                 }
133 }
134 group { name: "elm/gengrid/base/bookmarks";
135     data {
136         item: "focus_highlight" "off";
137     }
138
139         parts {
140             part { name: "clipper";
141                 type: RECT;
142                 mouse_events: 0;
143                 description { state: "default" 0.0;
144                     rel1 {
145                                                 relative: 0 0;
146                     }
147                     rel2{
148                                                 relative: 1 1;
149                     }
150                 }
151             }
152            part { name: "background";
153                 type: RECT;
154                 mouse_events: 0;
155                 description { state: "default" 0.0;
156                                         color: 42 50 64 255;
157                     rel1 {
158                                                 relative: 0 0;
159                     }
160                     rel2{
161                                                 relative: 1 1;
162                     }
163                 }
164             }
165             part { name: "elm.swallow.content";
166                 type: SWALLOW;
167                 clip_to: "clipper";
168                 description { state: "default" 0.0;
169                     rel1 {
170                                                 relative: 0 0;
171                                                 offset: 169 110;
172                     }
173                     rel2 {
174                         relative: 1 1;
175                         offset: -169 0;
176                     }
177                 }
178             }
179             part { name: "elm.swallow.empty";
180                 type: SWALLOW;
181                 description { state: "default" 0.0;
182                 align: 0.5 0.5;
183                     rel1 {
184                         relative: 0.5 0.5;
185                     }
186                     rel2 {
187                         relative: 0.5 0.5;
188                     }
189                 }
190             }
191     }
192 }
193 group { name: "elm/gengrid/item/bookmark_item/default";
194         data.item: "texts" "elm.text";
195         data.item: "contents" "elm.thumbnail favicon elm.text elm.label elm.deleteButton elm.thumbButton";
196         images {
197                 image: "web_frame_selected.png" COMP;
198                 image: "ico_bg_round_shape_37x37.png" COMP;
199         }
200         parts {
201                 part { name: "bg";
202                         clip_to: "disclip";
203                         mouse_events: 0;
204                         description { state: "default" 0.0;
205                                 visible: 0;
206                                 color: 255 255 255 0;
207                         }
208                 }
209
210                 part { name: "elm.thumbnail";
211                         clip_to: "disclip";
212                         type: SWALLOW;
213                         description { state: "default" 0.0;
214                                 fixed: 1 0;
215                                 align: 0.0 0.0;
216                                 min: 373 240;
217                                 max: 373 240;
218                                 rel1 {
219                                         relative: 0.0  0.0;
220                                 }
221                                 rel2 {
222                                         relative: 1.0  1.0;
223                                 }
224                         }
225                         description { state: "selected";
226                                 inherit: "default" 0.0;
227                         }
228                 }
229
230                 part { name: "focus_highlight";
231                         type: IMAGE;
232                         description { state: "default" 0.0;
233                                 rel1 {
234                                         to: "elm.thumbnail";
235                                         relative: 0.0  0.0;
236                                 }
237                                 rel2 {
238                                         to: "elm.thumbnail";
239                                         relative: 1.0  1.0;
240                                 }
241                                 image.normal: "web_frame_selected.png";
242                                 image.border: 8 8 8 0;
243                                 image.border_scale: 1;
244                                 image.middle: NONE;
245                                 visible: 0;
246                         }
247                         description { state: "selected";
248                                 inherit: "default" 0.0;
249                                 visible: 1;
250                         }
251                 }
252
253                 part { name: "background";
254                         clip_to: "disclip";
255                         type: RECT;
256                         description { state: "default" 0.0;
257                                 min: 373 87;
258                                 max: 373 87;
259                                 align: 0.0 0.0;
260                                 color: 30 38 50 255;
261                                 rel1 {
262                                         to: "elm.thumbnail";
263                                         relative: 0.0  1.0;
264                                         offset: 0 0;
265                                 }
266                                 rel2 {
267                                         relative: 1.0  1.0;
268                                 }
269                         }
270                         description { state: "selected" 0.0;
271                                 inherit: "default" 0.0;
272                                 color: 70 143 254 255;
273                         }
274                 }
275
276                 part { name: "favicon_bg";
277                         clip_to: "disclip";
278                         type: IMAGE;
279                         description { state: "default" 0.0;
280                                 fixed: 1 0;
281                                 align: 0.0 0.0;
282                                 min: 37 37;
283                                 max: 37 37;
284                                 rel1 {
285                                         to: "elm.thumbnail";
286                                         relative: 0.0  1.0;
287                                         offset: 25 25;
288                                 }
289                                 rel2 {
290                                         relative: 1.0  1.0;
291                                 }
292                         //      image.normal: "ico_bg_round_shape_37x37.png";
293                         }
294                 }
295
296                 part { name: "favicon";
297                         clip_to: "disclip";
298                         type: SWALLOW;
299                         description { state: "default" 0.0;
300                                 fixed: 1 0;
301                                 align: 0.5 0.5;
302                                 min: 37 37;
303                                 max: 37 37;
304                                 rel1.to: "favicon_bg";
305                                 rel2.to: "favicon_bg";
306                         }
307                 }
308
309                 part { name: "elm.label";
310                         clip_to: "disclip";
311                         type: SWALLOW;
312                         description { state: "default" 0.0;
313                                 min: 273 41;
314                                 max: 273 41;
315                                 align: 0.0 0.0;
316                                 rel1 {
317                                         to: "favicon_bg";
318                                         relative: 1.0  0.0;
319                                         offset: 13 0;
320                                 }
321                                 rel2 {
322                                         relative: 1.0  1.0;
323                                 }
324                         }
325                 }
326
327                 part { name: "delete_bg";
328                         clip_to: "disclip";
329                         type: RECT;
330                         description { state: "default" 0.0;
331                                 min: 373 87;
332                                 max: 373 87;
333                                 align: 0.0 0.0;
334                                 color: 70 143 254 204;
335                                 rel1.to: "background";
336                                 rel2.to: "background";
337                                 visible: 0;
338                         }
339                         description { state: "over" 0.0;
340                                 inherit: "default" 0.0;
341                                 visible: 1;
342                         }
343                 }
344
345                 part { name: "disclip";
346                         type: RECT;
347                         description { state: "default" 0.0;
348                                 rel1.to: "bg";
349                                 rel2.to: "bg";
350                         }
351                 }
352
353                 part { name: "elm.deleteButton";
354                         clip_to: "disclip";
355                         type: SWALLOW;
356                         description { state: "default" 0.0;
357                                 min: 373 87;
358                                 max: 373 87;
359                                 align: 0.0 0.0;
360                                 rel1 {
361                                         to: "elm.thumbnail";
362                                         relative: 0.0  1.0;
363                                         offset: 0 0;
364                                 }
365                                 rel2 {
366                                         relative: 1.0  1.0;
367                                 }
368                                 visible: 1;
369                         }
370                         description { state: "over" 0.0;
371                                 inherit: "default" 0.0;
372                                 visible: 1;
373                         }
374                 }
375
376                 part { name: "elm.thumbButton";
377                         clip_to: "disclip";
378                         type: SWALLOW;
379                         description { state: "default" 0.0;
380                                 rel1.to: "elm.thumbnail";
381                                 rel2.to: "elm.thumbnail";
382                         }
383                 }
384
385                 part { name: "over2";
386                         type: RECT;
387                         mouse_events: 1;
388                         repeat_events: 1;
389                         description { state: "default" 0.0;
390                                 color: 0 0 0 0;
391                                 rel1.to: "bg";
392                                 rel2.to: "background";
393                         }
394                 }
395                 part { name: "over3";
396                         type: RECT;
397                         mouse_events: 1;
398                         repeat_events: 1;
399                         description { state: "default" 0.0;
400                                 color: 0 0 0 0;
401                                 rel1.to: "background";
402                                 rel2.to: "background";
403                         }
404                 }
405         }
406
407         programs{
408                 program { name: "mouse_in";
409                         signal: "mouse,in";
410                         source: "over2";
411                         action:  STATE_SET "selected" 0.0;
412                         target:  "background";
413                         target: "focus_highlight";
414                         target: "elm.thumbnail";
415                 }
416                 program { name: "mouse_out";
417                         signal: "mouse,out";
418                         source: "over2";
419                         action:  STATE_SET "default" 0.0;
420                         target:  "background";
421                         target: "focus_highlight";
422                         target: "elm.thumbnail";
423                 }
424                 program { name: "mouse_in_delete";
425                         signal: "mouse,in";
426                         source: "over3";
427                         action:  STATE_SET "over" 0.0;
428                         target:  "delete_bg";
429                         target: "elm.deleteButton";
430                 }
431                 program { name: "mouse_out_delete";
432                         signal: "mouse,out";
433                         source: "over3";
434                         action:  STATE_SET "default" 0.0;
435                         target:  "delete_bg";
436                         target: "elm.deleteButton";
437                 }
438         }
439 }
440 }