move elementary to trunk base. out of TMP/st.
[framework/uifw/elementary.git] / data / themes / default-desktop.edc
1 externals.external: "elm";
2
3 #define SCROLLBARS_ADD() \
4             images { \
5                 image: "bt_sm_base2.png" COMP; \
6                 image: "bt_sm_shine.png" COMP; \
7                 image: "bt_sm_hilight.png" COMP; \
8                 image: "sb_runnerh.png" COMP; \
9                 image: "sb_runnerv.png" COMP; \
10                 image: "arrow_up.png" COMP; \
11                 image: "arrow_down.png" COMP; \
12                 image: "arrow_right.png" COMP; \
13                 image: "arrow_left.png" COMP; \
14             } \
15             script { \
16                 public sbvis_v, sbvis_h; \
17             } \
18             part { name: "elm.scrollbar.base"; \
19                 type: SWALLOW; \
20                 mouse_events: 0; \
21                 description { state: "default" 0.0; \
22                     min: 0 0; \
23                     fixed: 1 1; \
24                     align: 0.0 0.0; \
25                     rel1.relative: 1.0 1.0; \
26                 } \
27                 description { state: "vertical" 0.0; \
28                     inherit: "default" 0.0; \
29                     min: 17 0; \
30                     align: 1.0 0.0; \
31                 } \
32                 description { state: "horizontal" 0.0; \
33                     inherit: "default" 0.0; \
34                     min: 0 17; \
35                     align: 0.0 1.0; \
36                 } \
37                 description { state: "both" 0.0; \
38                     inherit: "default" 0.0; \
39                     min: 17 17; \
40                     align: 1.0 1.0; \
41                 } \
42             } \
43             part { name: "sb_vbar_clip_master"; \
44                 type: RECT; \
45                 mouse_events: 0; \
46                 description { state: "default" 0.0; \
47                 } \
48                 description { state: "hidden" 0.0; \
49                     visible: 0; \
50                 } \
51             } \
52             part { name: "sb_vbar_clip"; \
53                 type: RECT; \
54                 mouse_events: 0; \
55                 clip_to: "sb_vbar_clip_master"; \
56                 description { state: "default" 0.0; \
57                     rel1.to: "sb_vbar_clip_master"; \
58                     rel2.to: "sb_vbar_clip_master"; \
59                 } \
60                 description { state: "hidden" 0.0; \
61                     inherit: "default" 0.0; \
62                     visible: 0; \
63                     max: 0 99999; \
64                 } \
65             } \
66             part { name: "sb_vbar"; \
67                 type: RECT; \
68                 mouse_events: 0; \
69                 clip_to: "sb_vbar_clip"; \
70                 description { state: "default" 0.0; \
71                     min: 17 0; \
72                     fixed: 1 1; \
73                     color: 0 0 0 0; \
74                     align: 0.5 0.5; \
75                     rel1 { \
76                         to_y: "sb_vbar_a1"; \
77                         to_x: "elm.scrollbar.base"; \
78                         relative: 0.0 1.0; \
79                         offset: 0 -1; \
80                     } \
81                     rel2 { \
82                         to_y: "sb_vbar_a2"; \
83                         relative: 1.0 0.0; \
84                         offset: -1 -2; \
85                     } \
86                 } \
87             } \
88             part { name: "sb_vbar_runner"; \
89                 mouse_events: 0; \
90                 clip_to: "sb_vbar_clip"; \
91                 description { state: "default" 0.0; \
92                     min: 3 0; \
93                     max: 3 99999; \
94                     fixed: 1 1; \
95                     align: 1.0 0.5; \
96                     rel1 { \
97                         to: "sb_vbar"; \
98                         relative: 0.5 0.0; \
99                         offset: 0 2; \
100                     } \
101                     rel2 { \
102                         to: "sb_vbar"; \
103                         relative: 0.5 1.0; \
104                         offset: 0 -2; \
105                     } \
106                     image { \
107                         normal: "sb_runnerv.png"; \
108                         border: 0 0 4 4; \
109                     } \
110                     fill.smooth: 0; \
111                 } \
112             } \
113             part { name: "sb_vbar_p1"; \
114                 type: RECT; \
115                 mouse_events: 1; \
116                 clip_to: "sb_vbar_clip"; \
117                 description { state: "default" 0.0; \
118                     color: 0 0 0 0; \
119                     fixed: 1 1; \
120                     rel1 { \
121                         to: "sb_vbar_a1"; \
122                         relative: 0.0 1.0; \
123                     } \
124                     rel2 { \
125                         to: "elm.dragable.vbar"; \
126                         relative: 1.0 0.0; \
127                     } \
128                 } \
129             } \
130             part { name: "sb_vbar_p2"; \
131                 type: RECT; \
132                 mouse_events: 1; \
133                 clip_to: "sb_vbar_clip"; \
134                 description { state: "default" 0.0; \
135                     color: 0 0 0 0; \
136                     fixed: 1 1; \
137                     rel1 { \
138                         to: "elm.dragable.vbar"; \
139                         relative: 0.0 1.0; \
140                     } \
141                     rel2 { \
142                         to: "sb_vbar_a2"; \
143                         relative: 1.0 0.0; \
144                     } \
145                 } \
146             } \
147             part { name: "sb_vbar_a1"; \
148                 type: RECT; \
149                 mouse_events: 1; \
150                 clip_to: "sb_vbar_clip"; \
151                 description { state: "default" 0.0; \
152                     min: 17 17; \
153                     fixed: 1 1; \
154                     align: 0.5 0.0; \
155                     aspect: 1.0 1.0; \
156                     aspect_preference: HORIZONTAL; \
157                     color: 0 0 0 0; \
158                     rel1 { \
159                         to_y: "sb_vbar_clip"; \
160                         to_x: "elm.scrollbar.base"; \
161                         relative: 0.0 0.0; \
162                         offset: 0 1; \
163                     } \
164                     rel2 { \
165                         to: "elm.scrollbar.base"; \
166                         relative: 1.0 0.0; \
167                         offset: -1 -2; \
168                     } \
169                 } \
170             } \
171             part { name: "sb_vbar_a1_arrow"; \
172                 mouse_events: 0; \
173                 clip_to: "sb_vbar_clip"; \
174                 description { state: "default" 0.0; \
175                     rel1.to: "sb_vbar_a1"; \
176                     rel2.to: "sb_vbar_a1"; \
177                     image.normal: "arrow_up.png"; \
178                 } \
179                 description { state: "clicked" 0.0; \
180                     inherit: "default" 0.0; \
181                     rel1.offset: 0 -1; \
182                     rel2.offset: -1 -2; \
183                 } \
184             } \
185             part { name: "sb_vbar_a2"; \
186                 type: RECT; \
187                 mouse_events: 1; \
188                 clip_to: "sb_vbar_clip"; \
189                 description { state: "default" 0.0; \
190                     min: 17 17; \
191                     fixed: 1 1; \
192                     align: 0.5 1.0; \
193                     aspect: 1.0 1.0; \
194                     aspect_preference: HORIZONTAL; \
195                     color: 0 0 0 0; \
196                     rel1.to: "elm.scrollbar.base"; \
197                     rel2 { \
198                         to: "elm.scrollbar.base"; \
199                         relative: 1.0 0.0; \
200                     } \
201                 } \
202             } \
203             part { name: "sb_vbar_a2_arrow"; \
204                 mouse_events: 0; \
205                 clip_to: "sb_vbar_clip"; \
206                 description { state: "default" 0.0; \
207                     rel1.to: "sb_vbar_a2"; \
208                     rel2.to: "sb_vbar_a2"; \
209                     image.normal: "arrow_down.png"; \
210                 } \
211                 description { state: "clicked" 0.0; \
212                     inherit: "default" 0.0; \
213                     rel1.offset: 0 1; \
214                     rel2.offset: -1 0; \
215                 } \
216             } \
217             part { name: "elm.dragable.vbar"; \
218                 type: RECT; \
219                 mouse_events: 1; \
220                 clip_to: "sb_vbar_clip"; \
221                 dragable { \
222                     x: 0 0 0; \
223                     y: 1 1 0; \
224                     confine: "sb_vbar"; \
225                 } \
226                 description { state: "default" 0.0; \
227                     min: 17 17; \
228                     fixed: 1 1; \
229                     aspect: 1.0 0.5; \
230                     aspect_preference: VERTICAL; \
231                     align: 0.5 0.0; \
232                     color: 0 0 0 0; \
233                     rel1 { \
234                         to_y: "sb_vbar"; \
235                         to_x: "elm.scrollbar.base"; \
236                         relative: 0.0 0.0; \
237                     } \
238                     rel2.to_y: "sb_vbar"; \
239                 } \
240             } \
241             part { name: "elm.dragable.vbar.image"; \
242                 mouse_events: 0; \
243                 clip_to: "sb_vbar_clip"; \
244                 description { state: "default" 0.0; \
245                     rel1.to: "elm.dragable.vbar"; \
246                     rel2.to: "elm.dragable.vbar"; \
247                     image { \
248                         normal: "bt_sm_base2.png"; \
249                         border: 6 6 6 6; \
250                     } \
251                 } \
252             } \
253             part { name: "sb_vbar_over1"; \
254                 clip_to: "sb_vbar_clip"; \
255                 mouse_events: 0; \
256                 description { state: "default" 0.0; \
257                     rel1.to: "elm.dragable.vbar.image"; \
258                     rel2 { \
259                         to: "elm.dragable.vbar.image"; \
260                         relative: 1.0 0.5; \
261                     } \
262                     image { \
263                         normal: "bt_sm_hilight.png"; \
264                         border: 6 6 6 0; \
265                     } \
266                 } \
267             } \
268             part { name: "sb_vbar_over2"; \
269                 clip_to: "sb_vbar_clip"; \
270                 mouse_events: 0; \
271                 description { state: "default" 0.0; \
272                     rel1.to: "elm.dragable.vbar.image"; \
273                     rel2.to: "elm.dragable.vbar.image"; \
274                     image { \
275                         normal: "bt_sm_shine.png"; \
276                         border: 6 6 6 0; \
277                     } \
278                 } \
279             } \
280             part { name: "sb_hbar_clip_master"; \
281                 type: RECT; \
282                 mouse_events: 0; \
283                 description { state: "default" 0.0; \
284                 } \
285                 description { state: "hidden" 0.0; \
286                     visible: 0; \
287                 } \
288             } \
289             part { name: "sb_hbar_clip"; \
290                 type: RECT; \
291                 mouse_events: 0; \
292                 clip_to: "sb_hbar_clip_master"; \
293                 description { state: "default" 0.0; \
294                     rel1.to: "sb_hbar_clip_master"; \
295                     rel2.to: "sb_hbar_clip_master"; \
296                 } \
297                 description { state: "hidden" 0.0; \
298                     inherit: "default" 0.0; \
299                     visible: 0; \
300                     max: 99999 0; \
301                 } \
302             } \
303             part { name: "sb_hbar"; \
304                 type: RECT; \
305                 mouse_events: 0; \
306                 clip_to: "sb_hbar_clip"; \
307                 description { state: "default" 0.0; \
308                     min: 0 17; \
309                     fixed: 1 1; \
310                     color: 0 0 0 0; \
311                     align: 0.5 0.5; \
312                     rel1 { \
313                         to_x: "sb_hbar_a1"; \
314                         to_y: "elm.scrollbar.base"; \
315                         relative: 1.0 0.0; \
316                         offset: -1 0; \
317                     } \
318                     rel2 { \
319                         to_x: "sb_hbar_a2"; \
320                         relative: 0.0 1.0; \
321                         offset: -2 -1; \
322                     } \
323                 } \
324             } \
325             part { name: "sb_hbar_runner"; \
326                 mouse_events: 0; \
327                 clip_to: "sb_hbar_clip"; \
328                 description { state: "default" 0.0; \
329                     min: 0 3; \
330                     max: 99999 3; \
331                     fixed: 1 1; \
332                     align: 0.5 0.5; \
333                     rel1 { \
334                         to: "sb_hbar"; \
335                         relative: 0.0 0.5; \
336                         offset: 2 0; \
337                     } \
338                     rel2 { \
339                         to: "sb_hbar"; \
340                         relative: 1.0 0.5; \
341                         offset: -2 0; \
342                     } \
343                     image { \
344                         normal: "sb_runnerh.png"; \
345                         border: 4 4 0 0; \
346                     } \
347                     fill.smooth: 0; \
348                 } \
349             } \
350             part { name: "elm.dragable.hbar"; \
351                 type: RECT; \
352                 mouse_events: 1; \
353                 clip_to: "sb_hbar_clip"; \
354                 dragable { \
355                     x: 1 1 0; \
356                     y: 0 0 0; \
357                     confine: "sb_hbar"; \
358                 } \
359                 description { state: "default" 0.0; \
360                     min: 17 17; \
361                     fixed: 1 1; \
362                     aspect_preference: HORIZONTAL; \
363                     align: 0.0 1.0; \
364                     color: 0 0 0 0; \
365                     rel1 { \
366                         to_x: "sb_hbar"; \
367                         relative: 0.0 1.0; \
368                     } \
369                     rel2.to_x: "sb_hbar"; \
370                 } \
371             } \
372             part { name: "elm.dragable.hbar.image"; \
373                 mouse_events: 0; \
374                 clip_to: "sb_hbar_clip"; \
375                 description { state: "default" 0.0; \
376                     rel1.to: "elm.dragable.hbar"; \
377                     rel2.to: "elm.dragable.hbar"; \
378                     image { \
379                         normal: "bt_sm_base2.png"; \
380                         border: 6 6 6 6; \
381                     } \
382                 } \
383             } \
384             part { name: "sb_hbar_over1"; \
385                 clip_to: "sb_hbar_clip"; \
386                 mouse_events: 0; \
387                 description { state: "default" 0.0; \
388                     rel1.to: "elm.dragable.hbar.image"; \
389                     rel2 { \
390                         to: "elm.dragable.hbar.image"; \
391                         relative: 1.0 0.5; \
392                     } \
393                     image { \
394                         normal: "bt_sm_hilight.png"; \
395                         border: 6 6 6 0; \
396                     } \
397                 } \
398             } \
399             part { name: "sb_hbar_over2"; \
400                 clip_to: "sb_hbar_clip"; \
401                 mouse_events: 0; \
402                 description { state: "default" 0.0; \
403                     rel1.to: "elm.dragable.hbar.image"; \
404                     rel2.to: "elm.dragable.hbar.image"; \
405                     image { \
406                         normal: "bt_sm_shine.png"; \
407                         border: 6 6 6 0; \
408                     } \
409                 } \
410             } \
411             part { name: "sb_hbar_p1"; \
412                 type: RECT; \
413                 mouse_events: 1; \
414                 clip_to: "sb_hbar_clip"; \
415                 description { state: "default" 0.0; \
416                     color: 0 0 0 0; \
417                     fixed: 1 1; \
418                     rel1 { \
419                         to: "sb_hbar_a1"; \
420                         relative: 1.0 0.0; \
421                     } \
422                     rel2 { \
423                         to: "elm.dragable.hbar"; \
424                         relative: 0.0 1.0; \
425                     } \
426                 } \
427             } \
428             part { name: "sb_hbar_p2"; \
429                 type: RECT; \
430                 mouse_events: 1; \
431                 clip_to: "sb_hbar_clip"; \
432                 description { state: "default" 0.0; \
433                     color: 0 0 0 0; \
434                     fixed: 1 1; \
435                     rel1 { \
436                         to: "elm.dragable.hbar"; \
437                         relative: 1.0 0.0; \
438                     } \
439                     rel2 { \
440                         to: "sb_hbar_a2"; \
441                         relative: 0.0 1.0; \
442                     } \
443                 } \
444             } \
445             part { name: "sb_hbar_a1"; \
446                 type: RECT; \
447                 mouse_events: 1; \
448                 clip_to: "sb_hbar_clip"; \
449                 description { state: "default" 0.0; \
450                     min: 17 17; \
451                     fixed: 1 1; \
452                     align: 0.0 1.0; \
453                     aspect: 1.0 1.0; \
454                     aspect_preference: VERTICAL; \
455                     color: 0 0 0 0; \
456                     rel1 { \
457                         to_x: "sb_hbar_clip"; \
458                         to_y: "elm.scrollbar.base"; \
459                         relative: 0.0 0.0; \
460                     } \
461                     rel2 { \
462                         to: "elm.scrollbar.base"; \
463                         relative: 0.0 1.0; \
464                         offset: -1 -1; \
465                     } \
466                 } \
467             } \
468             part { name: "sb_hbar_a1_arrow"; \
469                 mouse_events: 0; \
470                 clip_to: "sb_hbar_clip"; \
471                 description { state: "default" 0.0; \
472                     rel1.to: "sb_hbar_a1"; \
473                     rel2.to: "sb_hbar_a1"; \
474                     image.normal: "arrow_left.png"; \
475                 } \
476                 description { state: "clicked" 0.0; \
477                     inherit: "default" 0.0; \
478                     rel1.offset: -1 0; \
479                     rel2.offset: -2 -1; \
480                 } \
481             } \
482             part { name: "sb_hbar_a2"; \
483                 type: RECT; \
484                 mouse_events: 1; \
485                 clip_to: "sb_hbar_clip"; \
486                 description { state: "default" 0.0; \
487                     min: 17 17; \
488                     align: 1.0 1.0; \
489                     aspect: 1.0 1.0; \
490                     fixed: 1 1; \
491                     aspect_preference: VERTICAL; \
492                     color: 0 0 0 0; \
493                     rel1 { \
494                         to: "elm.scrollbar.base"; \
495                         relative: 1.0 0.0; \
496                     } \
497                     rel2 { \
498                         to: "elm.scrollbar.base"; \
499                         relative: 0.0 1.0; \
500                     } \
501                 } \
502             } \
503             part { name: "sb_hbar_a2_arrow"; \
504                 mouse_events: 0; \
505                 clip_to: "sb_hbar_clip"; \
506                 description { state: "default" 0.0; \
507                     rel1.to: "sb_hbar_a2"; \
508                     rel2.to: "sb_hbar_a2"; \
509                     image.normal: "arrow_right.png"; \
510                 } \
511                 description { state: "clicked" 0.0; \
512                     inherit: "default" 0.0; \
513                     rel1.offset: 1 0; \
514                     rel2.offset: 0 -1; \
515                 } \
516             } \
517             part { name: "disabler"; \
518                type: RECT; \
519                description { state: "default" 0.0; \
520                   rel1.to: "clipper"; \
521                   rel2.to: "clipper"; \
522                   color: 0 0 0 0; \
523                   visible: 0; \
524                } \
525                description { state: "disabled" 0.0; \
526                   inherit: "default" 0.0; \
527                   visible: 1; \
528                   color: 128 128 128 128; \
529                } \
530             } \
531             programs { \
532                 program { name: "load"; \
533                     signal: "load"; \
534                     source: ""; \
535                     script { \
536                         set_state(PART:"sb_hbar_clip", "hidden", 0.0); \
537                         set_state(PART:"sb_vbar_clip", "hidden", 0.0); \
538                         set_int(sbvis_h, 0); \
539                         set_int(sbvis_v, 0); \
540                     } \
541                 } \
542                 program { name: "vbar_show"; \
543                     signal: "elm,action,show,vbar"; \
544                     source: "elm"; \
545                     script { \
546                         set_state(PART:"sb_vbar_clip_master", "default", 0.0); \
547                         set_int(sbvis_v, 1); \
548                         if (get_int(sbvis_h)) \
549                             set_state(PART:"elm.scrollbar.base", "both", 0.0); \
550                         else \
551                             set_state(PART:"elm.scrollbar.base", "vertical", 0.0); \
552                         emit("do-show-vbar", ""); \
553                     } \
554                 } \
555                 program { name: "vbar_hide"; \
556                     signal: "elm,action,hide,vbar"; \
557                     source: "elm"; \
558                     script { \
559                         set_state(PART:"sb_vbar_clip_master", "hidden", 0.0); \
560                         set_int(sbvis_v, 0); \
561                         if (get_int(sbvis_h)) \
562                             set_state(PART:"elm.scrollbar.base", "horizontal", 0.0); \
563                         else \
564                             set_state(PART:"elm.scrollbar.base", "default", 0.0); \
565                         emit("do-hide-vbar", ""); \
566                     } \
567                 } \
568                 program { name: "sb_vbar_down"; \
569                     signal: "mouse,down,1"; \
570                     source: "elm.dragable.vbar"; \
571                     action: STATE_SET "clicked" 0.0; \
572                     target: "elm.dragable.vbar"; \
573                 } \
574                 program { name: "sb_vbar_up"; \
575                     signal: "mouse,up,1"; \
576                     source: "elm.dragable.vbar"; \
577                     action: STATE_SET "default" 0.0; \
578                     target: "elm.dragable.vbar"; \
579                 } \
580                 program { name: "sb_vbar_show"; \
581                     signal: "do-show-vbar"; \
582                     source: ""; \
583                     action: STATE_SET "default" 0.0; \
584                     transition: LINEAR 0.1; \
585                     target: "sb_vbar_clip"; \
586                 } \
587                 program { name: "sb_vbar_hide"; \
588                     signal: "do-hide-vbar"; \
589                     source: ""; \
590                     action: STATE_SET "hidden" 0.0; \
591                     transition: LINEAR 1.0; \
592                     target: "sb_vbar_clip"; \
593                 } \
594                 program { name: "sb_vbar_a1_down"; \
595                     signal: "mouse,down,1"; \
596                     source: "sb_vbar_a1"; \
597                     action: STATE_SET "clicked" 0.0; \
598                     target: "sb_vbar_a1_arrow"; \
599                 } \
600                 program { name: "sb_vbar_a1_down2"; \
601                     signal: "mouse,down,1"; \
602                     source: "sb_vbar_a1"; \
603                     action: DRAG_VAL_STEP 0.0 -1.0; \
604                     target: "elm.dragable.vbar"; \
605                 } \
606                 program { name: "sb_vbar_a1_up"; \
607                     signal: "mouse,up,1"; \
608                     source: "sb_vbar_a1"; \
609                     action: STATE_SET "default" 0.0; \
610                     target: "sb_vbar_a1_arrow"; \
611                 } \
612                 program { name: "sb_vbar_a2_down"; \
613                     signal: "mouse,down,1"; \
614                     source: "sb_vbar_a2"; \
615                     action: STATE_SET "clicked" 0.0; \
616                     target: "sb_vbar_a2_arrow"; \
617                 } \
618                 program { name: "sb_vbar_a2_down2"; \
619                     signal: "mouse,down,1"; \
620                     source: "sb_vbar_a2"; \
621                     action: DRAG_VAL_STEP 0.0 1.0; \
622                     target: "elm.dragable.vbar"; \
623                 } \
624                 program { name: "sb_vbar_a2_up"; \
625                     signal: "mouse,up,1"; \
626                     source: "sb_vbar_a2"; \
627                     action: STATE_SET "default" 0.0; \
628                     target: "sb_vbar_a2_arrow"; \
629                 } \
630                 program { name: "sb_vbar_p1_down"; \
631                     signal: "mouse,down,1"; \
632                     source: "sb_vbar_p1"; \
633                     action: DRAG_VAL_PAGE 0.0 -1.0; \
634                     target: "elm.dragable.vbar"; \
635                 } \
636                 program { name: "sb_vbar_p2_down"; \
637                     signal: "mouse,down,1"; \
638                     source: "sb_vbar_p2"; \
639                     action: DRAG_VAL_PAGE 0.0 1.0; \
640                     target: "elm.dragable.vbar"; \
641                 } \
642                 program { name: "hbar_show"; \
643                     signal: "elm,action,show,hbar"; \
644                     source: "elm"; \
645                     script { \
646                         set_state(PART:"sb_hbar_clip_master", "default", 0.0); \
647                         set_int(sbvis_h, 1); \
648                         if (get_int(sbvis_v)) \
649                             set_state(PART:"elm.scrollbar.base", "both", 0.0); \
650                         else \
651                             set_state(PART:"elm.scrollbar.base", "horizontal", 0.0); \
652                         emit("do-show-hbar", ""); \
653                     } \
654                 } \
655                 program { name: "hbar_hide"; \
656                     signal: "elm,action,hide,hbar"; \
657                     source: "elm"; \
658                     script { \
659                         set_state(PART:"sb_hbar_clip_master", "hidden", 0.0); \
660                         set_int(sbvis_h, 0); \
661                         if (get_int(sbvis_v)) \
662                             set_state(PART:"elm.scrollbar.base", "vertical", 0.0); \
663                         else \
664                             set_state(PART:"elm.scrollbar.base", "default", 0.0); \
665                         emit("do-hide-hbar", ""); \
666                     } \
667                 } \
668                 program { name: "sb_hbar_down"; \
669                     signal: "mouse,down,1"; \
670                     source: "elm.dragable.hbar"; \
671                     action: STATE_SET "clicked" 0.0; \
672                     target: "elm.dragable.hbar"; \
673                 } \
674                 program { name: "sb_hbar_up"; \
675                     signal: "mouse,up,1"; \
676                     source: "elm.dragable.hbar"; \
677                     action: STATE_SET "default" 0.0; \
678                     target: "elm.dragable.hbar"; \
679                 } \
680                 program { name: "sb_hbar_show"; \
681                     signal: "do-show-hbar"; \
682                     source: ""; \
683                     action: STATE_SET "default" 0.0; \
684                     transition: LINEAR 0.1; \
685                     target: "sb_hbar_clip"; \
686                 } \
687                 program { name: "sb_hbar_hide"; \
688                     signal: "do-hide-hbar"; \
689                     source: ""; \
690                     action: STATE_SET "hidden" 0.0; \
691                     transition: LINEAR 1.0; \
692                     target: "sb_hbar_clip"; \
693                 } \
694                 program { name: "sb_hbar_a1_down"; \
695                     signal: "mouse,down,1"; \
696                     source: "sb_hbar_a1"; \
697                     action: STATE_SET "clicked" 0.0; \
698                     target: "sb_hbar_a1_arrow"; \
699                 } \
700                 program { name: "sb_hbar_a1_down2"; \
701                     signal: "mouse,down,1"; \
702                     source: "sb_hbar_a1"; \
703                     action: DRAG_VAL_STEP -1.0 0.0; \
704                     target: "elm.dragable.hbar"; \
705                 } \
706                 program { name: "sb_hbar_a1_up"; \
707                     signal: "mouse,up,1"; \
708                     source: "sb_hbar_a1"; \
709                     action: STATE_SET "default" 0.0; \
710                     target: "sb_hbar_a1_arrow"; \
711                 } \
712                 program { name: "sb_hbar_a2_down"; \
713                     signal: "mouse,down,1"; \
714                     source: "sb_hbar_a2"; \
715                     action: STATE_SET "clicked" 0.0; \
716                     target: "sb_hbar_a2_arrow"; \
717                 } \
718                 program { name: "sb_hbar_a2_down2"; \
719                     signal: "mouse,down,1"; \
720                     source: "sb_hbar_a2"; \
721                     action: DRAG_VAL_STEP 1.0 0.0; \
722                     target: "elm.dragable.hbar"; \
723                 } \
724                 program { name: "sb_hbar_a2_up"; \
725                     signal: "mouse,up,1"; \
726                     source: "sb_hbar_a2"; \
727                     action: STATE_SET "default" 0.0; \
728                     target: "sb_hbar_a2_arrow"; \
729                 } \
730                 program { name: "sb_hbar_p1_down"; \
731                     signal: "mouse,down,1"; \
732                     source: "sb_hbar_p1"; \
733                     action: DRAG_VAL_PAGE -1.0 0.0; \
734                     target: "elm.dragable.hbar"; \
735                 } \
736                 program { name: "sb_hbar_p2_down"; \
737                     signal: "mouse,down,1"; \
738                     source: "sb_hbar_p2"; \
739                     action: DRAG_VAL_PAGE 1.0 0.0; \
740                     target: "elm.dragable.hbar"; \
741                 } \
742                 program { name: "disable"; \
743                     signal: "elm,state,disabled"; \
744                     source: "elm"; \
745                     action: STATE_SET "disabled" 0.0; \
746                     target: "disabler"; \
747                 } \
748                 program { name: "enable"; \
749                     signal: "elm,state,enabled"; \
750                     source: "elm"; \
751                     action: STATE_SET "default" 0.0; \
752                     target: "disabler"; \
753                 } \
754             } \
755
756 collections {
757
758     group { name: "elm/scroller/base/default";
759         alias: "elm/list/base/default";
760         alias: "elm/genlist/base/default";
761         alias: "elm/carousel/base/default";
762         alias: "elm/gengrid/base/default";
763
764         data {
765             item: "focus_highlight" "on";
766         }
767
768         images {
769             image: "shelf_inset.png" COMP;
770             image: "sl_bt2_2.png" COMP;
771         }
772
773         parts {
774             part { name: "bg";
775                 type: RECT;
776                 mouse_events: 0;
777                 description { state: "default" 0.0;
778                     rel1.offset: 1 1;
779                     rel2.offset: -2 -2;
780                     color: 255 255 255 0;
781                 }
782             }
783             part { name: "clipper";
784                 type: RECT;
785                 mouse_events: 0;
786                 description { state: "default" 0.0;
787                     rel1.to: "bg";
788                     rel2.to: "bg";
789                 }
790             }
791             part { name: "elm.swallow.content";
792                 type: SWALLOW;
793                 clip_to: "clipper";
794                 description { state: "default" 0.0;
795                     rel2 {
796                         to_x: "sb_vbar";
797                         to_y: "sb_hbar";
798                         relative: 0.0 0.0;
799                         offset: -1 -1;
800                     }
801                 }
802             }
803             part { name: "conf_over";
804                 mouse_events: 0;
805                 description { state: "default" 0.0;
806                     image {
807                         normal: "shelf_inset.png";
808                         border: 7 7 7 7;
809                         middle: 0;
810                     }
811                     fill.smooth: 0;
812                 }
813             }
814             part { name: "focus_highlight";
815                 mouse_events: 0;
816                 description { state: "default" 0.0;
817                     rel1.offset: -1 -1;
818                     rel2.offset: 0 0;
819                     image {
820                         normal: "sl_bt2_2.png";
821                         border: 7 7 7 7;
822                         middle: 0;
823                     }
824                     fill.smooth: 0;
825                     color: 200 155 0 0;
826                 }
827                 description { state: "enabled" 0.0;
828                     inherit: "default" 0.0;
829                     color: 200 155 0 255;
830                 }
831             }
832             SCROLLBARS_ADD()
833         }
834     }
835
836     group { name: "elm/scroller/entry/default";
837
838         data {
839             item: "focus_highlight" "on";
840         }
841
842         images {
843             image: "shelf_inset.png" COMP;
844             image: "sl_bt2_2.png" COMP;
845         }
846
847         parts {
848             part { name: "bg";
849                 type: RECT;
850                 mouse_events: 0;
851                 description { state: "default" 0.0;
852                     rel1.offset: 1 1;
853                     rel2.offset: -2 -2;
854                     color: 255 255 255 255;
855                 }
856             }
857             part { name: "clipper";
858                 type: RECT;
859                 mouse_events: 0;
860                 description { state: "default" 0.0;
861                     rel1.to: "bg";
862                     rel2.to: "bg";
863                 }
864             }
865             part { name: "content.clipper";
866                 type: RECT;
867                 mouse_events: 0;
868                 clip_to: "clipper";
869                 description { state: "default" 0.0;
870                     rel1 {
871                         to: "elm.swallow.icon";
872                         relative: 1.0 0.0;
873                     }
874                     rel2 {
875                         to: "elm.swallow.end";
876                         relative: 0.0 1.0;
877                     }
878                 }
879             }
880             part { name: "elm.swallow.icon";
881                 type: SWALLOW;
882                 clip_to: "clipper";
883                 description { state: "default" 0.0;
884                     fixed: 1 1;
885                     visible: 0;
886                     rel1 {
887                         to: "bg";
888                         relative: 0.0 0.0;
889                         offset: 0 0;
890                     }
891                     rel2 {
892                         to: "bg";
893                         relative: 0.0 1.0;
894                         offset: -1 -1;
895                     }
896                 }
897                 description { state: "visible" 0.0;
898                     inherit: "default" 0.0;
899                     visible: 1;
900                 }
901             }
902             part { name: "elm.swallow.end";
903                 type: SWALLOW;
904                 clip_to: "clipper";
905                 description { state: "default" 0.0;
906                     fixed: 1 1;
907                     visible: 0;
908                     rel1 {
909                         to: "bg";
910                         relative: 1.0 0.0;
911                         offset: 0 0;
912                     }
913                     rel2 {
914                         to_x: "elm.dragable.vbar";
915                         to_y: "elm.dragable.hbar";
916                         relative: 0.0 0.0;
917                         offset: -1 -1;
918                     }
919                 }
920                 description { state: "visible" 0.0;
921                     inherit: "default" 0.0;
922                     visible: 1;
923                 }
924             }
925             part { name: "elm.swallow.content";
926                 type: SWALLOW;
927                 clip_to: "content.clipper";
928                 description { state: "default" 0.0;
929                     rel1 {
930                         to: "elm.swallow.icon";
931                         relative: 1.0 0.0;
932                         offset: 4 4;
933                     }
934                     rel2 {
935                         to: "elm.swallow.end";
936                         relative: 0.0 1.0;
937                         offset: -5 -5;
938                     }
939                 }
940             }
941             part { name: "conf_over";
942                 mouse_events: 0;
943                 description { state: "default" 0.0;
944                     image {
945                         normal: "shelf_inset.png";
946                         border: 7 7 7 7;
947                         middle: 0;
948                     }
949                     fill.smooth: 0;
950                 }
951             }
952             part { name: "focus_highlight";
953                 mouse_events: 0;
954                 description { state: "default" 0.0;
955                     rel1.offset: -1 -1;
956                     rel2.offset: 0 0;
957                     image {
958                         normal: "sl_bt2_2.png";
959                         border: 7 7 7 7;
960                         middle: 0;
961                     }
962                     fill.smooth: 0;
963                     color: 200 155 0 0;
964                 }
965                 description { state: "enabled" 0.0;
966                     inherit: "default" 0.0;
967                     color: 200 155 0 255;
968                 }
969             }
970             SCROLLBARS_ADD()
971         }
972         programs {
973             program { name: "icon_show";
974                 signal: "elm,action,show,icon";
975                 source: "elm";
976                 action: STATE_SET "visible" 0.0;
977                 target: "elm.swallow.icon";
978             }
979             program { name: "icon_hide";
980                 signal: "elm,action,hide,icon";
981                 source: "elm";
982                 action: STATE_SET "default" 0.0;
983                 target: "elm.swallow.icon";
984             }
985             program { name: "end_show";
986                 signal: "elm,action,show,end";
987                 source: "elm";
988                 action: STATE_SET "visible" 0.0;
989                 target: "elm.swallow.end";
990             }
991             program { name: "end_hide";
992                 signal: "elm,action,hide,end";
993                 source: "elm";
994                 action: STATE_SET "default" 0.0;
995                 target: "elm.swallow.end";
996             }
997             program { name: "highlight_show";
998                 signal: "elm,action,focus_highlight,show";
999                 source: "elm";
1000                 action: STATE_SET "enabled" 0.0;
1001                 transition: ACCELERATE 0.3;
1002                 target: "focus_highlight";
1003                 target: "conf_over";
1004             }
1005             program { name: "highlight_hide";
1006                 signal: "elm,action,focus_highlight,hide";
1007                 source: "elm";
1008                 action: STATE_SET "default" 0.0;
1009                 transition: DECELERATE 0.3;
1010                 target: "focus_highlight";
1011                 target: "conf_over";
1012             }
1013         }
1014     }
1015
1016     group { name: "elm/photocam/base/default";
1017
1018         images {
1019             image: "shelf_inset.png" COMP;
1020             image: "busy-1.png" COMP;
1021             image: "busy-2.png" COMP;
1022             image: "busy-3.png" COMP;
1023             image: "busy-4.png" COMP;
1024             image: "busy-5.png" COMP;
1025             image: "busy-6.png" COMP;
1026             image: "busy-7.png" COMP;
1027             image: "busy-8.png" COMP;
1028             image: "busy-9.png" COMP;
1029         }
1030         parts {
1031             part { name: "bg";
1032                 type: RECT;
1033                 description { state: "default" 0.0;
1034                     rel1.offset: 1 1;
1035                     rel2.offset: -2 -2;
1036                     color: 255 255 255 0;
1037                 }
1038             }
1039             part { name: "clipper";
1040                 type: RECT;
1041                 mouse_events: 0;
1042                 description { state: "default" 0.0;
1043                     rel1.to: "bg";
1044                     rel2.to: "bg";
1045                 }
1046             }
1047             part { name: "elm.swallow.content";
1048                 clip_to: "clipper";
1049                 type: SWALLOW;
1050                 description { state: "default" 0.0;
1051                     rel1.offset: 1 1;
1052                     rel2.offset: -2 -2;
1053                 }
1054             }
1055             part { name: "busy_clip";
1056                 type: RECT;
1057                 mouse_events: 0;
1058                 description { state: "default" 0.0;
1059                     visible: 0;
1060                     color: 255 255 255 0;
1061                 }
1062                 description { state: "active" 0.0;
1063                     visible: 1;
1064                     color: 255 255 255 255;
1065                 }
1066             }
1067             part { name: "busy";
1068                 clip_to: "busy_clip";
1069                 mouse_events: 0;
1070                 description { state: "default" 0.0;
1071                     fixed: 1 1;
1072                     min: 32 32;
1073                     aspect: 1.0 1.0;
1074                     align: 1.0 1.0;
1075                     aspect_preference: BOTH;
1076                     rel1 {
1077                         relative: 0.9 0.9;
1078                         offset:   -9 -9;
1079                     }
1080                     rel2 {
1081                         relative: 0.9 0.9;
1082                         offset:   -9 -9;
1083                     }
1084                     image {
1085                         normal: "busy-9.png";
1086                         tween:  "busy-1.png";
1087                         tween:  "busy-2.png";
1088                         tween:  "busy-3.png";
1089                         tween:  "busy-4.png";
1090                         tween:  "busy-5.png";
1091                         tween:  "busy-6.png";
1092                         tween:  "busy-7.png";
1093                         tween:  "busy-8.png";
1094                     }
1095                 }
1096             }
1097             part { name: "conf_over";
1098                 mouse_events:  0;
1099                 description { state: "default" 0.0;
1100                     rel1.offset: 0 0;
1101                     rel2.offset: -1 -1;
1102                     image {
1103                         normal: "shelf_inset.png";
1104                         border: 7 7 7 7;
1105                         middle: 0;
1106                     }
1107                     fill.smooth : 0;
1108                 }
1109             }
1110             SCROLLBARS_ADD()
1111         }
1112         programs {
1113             program { name: "go1";
1114                 signal: "elm,state,busy,start";
1115                 source: "elm";
1116                 action: STATE_SET "active" 0.0;
1117                 transition: SINUSOIDAL 1.0;
1118                 target:  "busy_clip";
1119             }
1120             program { name: "go2";
1121                 signal: "elm,state,busy,start";
1122                 source: "elm";
1123                 action: STATE_SET "default" 0.0;
1124                 transition: LINEAR 0.5;
1125                 target: "busy";
1126                 after:  "go2";
1127             }
1128             program { name: "stop1";
1129                 signal: "elm,state,busy,stop";
1130                 source: "elm";
1131                 action: STATE_SET "default" 0.0;
1132                 transition: SINUSOIDAL 1.0;
1133                 target: "busy_clip";
1134                 after: "stop2";
1135             }
1136             program { name: "stop2";
1137                 action: ACTION_STOP;
1138                 target: "go2";
1139             }
1140         }
1141     }
1142
1143     ///////////////////////////////////////////////////////////////////////////////
1144     group { name: "elm/map/base/default";
1145         images {
1146             image: "shelf_inset.png" COMP;
1147             image: "busy-1.png" COMP;
1148             image: "busy-2.png" COMP;
1149             image: "busy-3.png" COMP;
1150             image: "busy-4.png" COMP;
1151             image: "busy-5.png" COMP;
1152             image: "busy-6.png" COMP;
1153             image: "busy-7.png" COMP;
1154             image: "busy-8.png" COMP;
1155             image: "busy-9.png" COMP;
1156         }
1157         parts {
1158             part { name: "bg";
1159                 type: RECT;
1160                 description { state: "default" 0.0;
1161                     rel1.offset: 1 1;
1162                     rel2.offset: -2 -2;
1163                     color: 255 255 255 0;
1164                 }
1165             }
1166             part { name: "clipper";
1167                 type: RECT;
1168                 mouse_events: 0;
1169                 description { state: "default" 0.0;
1170                     rel1.to: "bg";
1171                     rel2.to: "bg";
1172                 }
1173             }
1174             part { name: "elm.swallow.content";
1175                 clip_to: "clipper";
1176                 type: SWALLOW;
1177                 description { state: "default" 0.0;
1178                     rel1.offset: 1 1;
1179                     rel2.offset: -2 -2;
1180                 }
1181             }
1182             part { name: "busy_clip";
1183                 type: RECT;
1184                 mouse_events: 0;
1185                 description { state: "default" 0.0;
1186                     visible: 0;
1187                     color: 255 255 255 0;
1188                 }
1189                 description { state: "active" 0.0;
1190                     visible: 1;
1191                     color: 255 255 255 255;
1192                 }
1193             }
1194             part { name: "busy";
1195                 clip_to: "busy_clip";
1196                 mouse_events: 0;
1197                 description { state: "default" 0.0;
1198                     fixed: 1 1;
1199                     min: 32 32;
1200                     aspect: 1.0 1.0;
1201                     align: 1.0 1.0;
1202                     aspect_preference: BOTH;
1203                     rel1 {
1204                         relative: 0.9 0.9;
1205                         offset:   -9 -9;
1206                     }
1207                     rel2 {
1208                         relative: 0.9 0.9;
1209                         offset:   -9 -9;
1210                     }
1211                     image {
1212                         normal: "busy-9.png";
1213                         tween:  "busy-1.png";
1214                         tween:  "busy-2.png";
1215                         tween:  "busy-3.png";
1216                         tween:  "busy-4.png";
1217                         tween:  "busy-5.png";
1218                         tween:  "busy-6.png";
1219                         tween:  "busy-7.png";
1220                         tween:  "busy-8.png";
1221                     }
1222                 }
1223             }
1224             part { name: "conf_over";
1225                 mouse_events:  0;
1226                 description { state: "default" 0.0;
1227                     rel1.offset: 0 0;
1228                     rel2.offset: -1 -1;
1229                     image {
1230                         normal: "shelf_inset.png";
1231                         border: 7 7 7 7;
1232                         middle: 0;
1233                     }
1234                     fill.smooth : 0;
1235                 }
1236             }
1237             SCROLLBARS_ADD()
1238         }
1239         programs {
1240             program { name: "go1";
1241                 signal: "elm,state,busy,start";
1242                 source: "elm";
1243                 action: STATE_SET "active" 0.0;
1244                 transition: SINUSOIDAL 1.0;
1245                 target:  "busy_clip";
1246             }
1247             program { name: "go2";
1248                 signal: "elm,state,busy,start";
1249                 source: "elm";
1250                 action: STATE_SET "default" 0.0;
1251                 transition: LINEAR 0.5;
1252                 target: "busy";
1253                 after:  "go2";
1254             }
1255             program { name: "stop1";
1256                 signal: "elm,state,busy,stop";
1257                 source: "elm";
1258                 action: STATE_SET "default" 0.0;
1259                 transition: SINUSOIDAL 1.0;
1260                 target: "busy_clip";
1261                 after: "stop2";
1262             }
1263             program { name: "stop2";
1264                 action: ACTION_STOP;
1265                 target: "go2";
1266             }
1267         }
1268     }
1269
1270     group { name: "elm/list/base/hoverlist";
1271         data {
1272             item: "focus_highlight" "on";
1273         }
1274         images {
1275             image: "sl_bt2_2.png" COMP;
1276         }
1277         parts {
1278             part { name: "bg";
1279                 type: RECT;
1280                 description { state: "default" 0.0;
1281                     rel1.offset: 2 2;
1282                     rel2.offset: -3 -3;
1283                     color: 255 255 255 0;
1284                 }
1285             }
1286             part { name: "clipper";
1287                 type: RECT;
1288                 mouse_events: 0;
1289                 description { state: "default" 0.0;
1290                     rel1 {
1291                         to: "bg";
1292                         offset: 2 2;
1293                     }
1294                     rel2 {
1295                         to: "bg";
1296                         offset: -3 -3;
1297                     }
1298                 }
1299             }
1300             part { name: "elm.swallow.content";
1301                 clip_to: "clipper";
1302                 type: SWALLOW;
1303                 description { state: "default" 0.0;
1304                     rel1 {
1305                         to: "bg";
1306                         offset: 2 2;
1307                     }
1308                     rel2 {
1309                         to: "bg";
1310                         offset: -3 -3;
1311                     }
1312                 }
1313             }
1314             part { name: "focus_highlight";
1315                 mouse_events: 0;
1316                 description { state: "default" 0.0;
1317                     rel1.offset: -1 -1;
1318                     rel2.offset: 0 0;
1319                     image {
1320                         normal: "sl_bt2_2.png";
1321                         border: 7 7 7 7;
1322                         middle: 0;
1323                     }
1324                     fill.smooth : 0;
1325                     color: 200 155 0 0;
1326                 }
1327                 description { state: "enabled" 0.0;
1328                     inherit: "default" 0.0;
1329                     color: 200 155 0 255;
1330                 }
1331             }
1332             SCROLLBARS_ADD()
1333         }
1334         programs {
1335             program { name: "highlight_show";
1336                 signal: "elm,action,focus_highlight,show";
1337                 source: "elm";
1338                 action: STATE_SET "enabled" 0.0;
1339                 transition: ACCELERATE 0.3;
1340                 target: "focus_highlight";
1341             }
1342             program { name: "highlight_hide";
1343                 signal: "elm,action,focus_highlight,hide";
1344                 source: "elm";
1345                 action: STATE_SET "default" 0.0;
1346                 transition: DECELERATE 0.3;
1347                 target: "focus_highlight";
1348             }
1349         }
1350     }
1351 }