From: Jaehwan Kim <jae.hwan.kim@samsung.com>
[framework/uifw/elementary.git] / data / themes / widgets / thumb.edc
1 group { name: "elm/thumb/base/default";
2    images {
3       image: "frame_1.png" COMP;
4       image: "frame_2.png" COMP;
5       image: "dia_grad.png" COMP;
6       image: "busy-1.png" COMP;
7       image: "busy-2.png" COMP;
8       image: "busy-3.png" COMP;
9       image: "busy-4.png" COMP;
10       image: "busy-5.png" COMP;
11       image: "busy-6.png" COMP;
12       image: "busy-7.png" COMP;
13       image: "busy-8.png" COMP;
14       image: "busy-9.png" COMP;
15    }
16    parts {
17       part { name: "base0";
18          mouse_events:  0;
19          description { state:        "default" 0.0;
20             image.normal: "dia_grad.png";
21             rel1.to: "over";
22             rel2.to: "over";
23             fill {
24                smooth: 0;
25                size {
26                   relative: 0.0 1.0;
27                   offset: 64 0;
28                }
29             }
30          }
31       }
32       part { name: "base";
33          mouse_events:  0;
34          description { state:        "default" 0.0;
35             image {
36                normal: "frame_2.png";
37                border: 5 5 32 26;
38                middle: 0;
39             }
40             fill.smooth : 0;
41          }
42       }
43       part { name: "clip";
44          mouse_events:  0;
45          type: RECT;
46          description { state:        "default" 0.0;
47             rel1.offset: 4 4;
48             rel2.offset: -5 -5;
49             color: 255 255 255 255;
50          }
51       }
52       part { name: "elm.swallow.content";
53          type: SWALLOW;
54          clip_to: "clip";
55          description { state:        "default" 0.0;
56             rel1.offset: 4 4;
57             rel2.offset: -5 -5;
58          }
59       }
60       part { name: "progress";
61          mouse_events: 0;
62
63          clip_to: "clip";
64          description { state:        "default" 0.0;
65             min: 32 32;
66             max: 32 32;
67             visible: 0;
68             aspect: 1.0 1.0;
69             aspect_preference: BOTH;
70          }
71          description { state:        "pulse" 0.0;
72             inherit: "default" 0.0;
73             visible: 1;
74             image {
75                normal: "busy-9.png";
76                tween:  "busy-1.png";
77                tween:  "busy-2.png";
78                tween:  "busy-3.png";
79                tween:  "busy-4.png";
80                tween:  "busy-5.png";
81                tween:  "busy-6.png";
82                tween:  "busy-7.png";
83                tween:  "busy-8.png";
84                border: 7 7 7 7;
85             }
86          }
87       }
88       part { name: "over";
89          mouse_events:  0;
90          description { state:        "default" 0.0;
91             rel1.offset: 4 4;
92             rel2.offset: -5 -5;
93             image {
94                normal: "frame_1.png";
95                border: 2 2 28 22;
96                middle: 0;
97             }
98             fill.smooth: 0;
99          }
100       }
101       programs {
102          program { name: "start_pulse";
103             signal: "elm,state,pulse,start";
104             source: "elm";
105             action: STATE_SET "pulse" 0.0;
106             target: "progress";
107             transition: LINEAR 0.5;
108             after: "start_pulse";
109          }
110          program { name: "stop_pulse";
111             signal: "elm,state,pulse,stop";
112             source: "elm";
113             action: STATE_SET "default" 0.0;
114             target: "progress";
115          }
116       }
117    }
118 }
119
120 group { name: "elm/thumb/base/noframe";
121    images {
122       image: "busy-1.png" COMP;
123       image: "busy-2.png" COMP;
124       image: "busy-3.png" COMP;
125       image: "busy-4.png" COMP;
126       image: "busy-5.png" COMP;
127       image: "busy-6.png" COMP;
128       image: "busy-7.png" COMP;
129       image: "busy-8.png" COMP;
130       image: "busy-9.png" COMP;
131    }
132    parts {
133       part { name: "elm.swallow.content";
134          type: SWALLOW;
135          description { state: "default" 0.0;
136             rel1.offset: 4 4;
137             rel2.offset: -5 -5;
138          }
139       }
140       part { name: "progress";
141          mouse_events: 0;
142          description { state:        "default" 0.0;
143             min: 32 32;
144             max: 32 32;
145             visible: 0;
146             aspect: 1.0 1.0;
147             aspect_preference: BOTH;
148          }
149          description { state:        "pulse" 0.0;
150             inherit: "default" 0.0;
151             visible: 1;
152             image {
153                normal: "busy-9.png";
154                tween:  "busy-1.png";
155                tween:  "busy-2.png";
156                tween:  "busy-3.png";
157                tween:  "busy-4.png";
158                tween:  "busy-5.png";
159                tween:  "busy-6.png";
160                tween:  "busy-7.png";
161                tween:  "busy-8.png";
162                border: 7 7 7 7;
163             }
164          }
165       }
166       programs {
167          program { name: "start_pulse";
168             signal: "elm,state,pulse,start";
169             source: "elm";
170             action: STATE_SET "pulse" 0.0;
171             target: "progress";
172             transition: LINEAR 0.5;
173             after: "start_pulse";
174          }
175          program { name: "stop_pulse";
176             signal: "elm,state,pulse,stop";
177             source: "elm";
178             action: STATE_SET "default" 0.0;
179             target: "progress";
180          }
181       }
182    }
183 }
184
185