tizen 2.4 release
[framework/uifw/elementary.git] / data / themes / edc / wizard.edc
1 group { name: "e/wizard/main";
2    images.image: "screen_circular_shadow.png" COMP;
3    images.image: "bg_radgrad.png" COMP;
4    images.image: "dot_pattern.png" COMP;
5    images.image: "button_normal.png" COMP;
6    images.image: "button_clicked.png" COMP;
7    images.image: "knob_round_busy.png" COMP;
8    images.image: "glow_round_corners.png" COMP;
9    parts {
10       part { name: "clip"; type: RECT; mouse_events: 0;
11          description { state: "default" 0.0;
12          }
13       }
14       part { name: "bg";
15          description { state: "default" 0.0;
16             image.normal: "bg_radgrad.png";
17             image.scale_hint: STATIC;
18             fill.smooth: 0;
19             ASPECT_FILL((1024/653))
20          }
21       }
22       part { name: "pat";
23          description { state: "default" 0.0;
24             image.normal: "dot_pattern.png";
25             TILED_PATTERN(256, 256)
26          }
27       }
28       part { name: "busy_clip"; type: RECT;
29          description { state: "default" 0.0;
30             visible: 0;
31             color: 255 255 255 0;
32          }
33          description { state: "active" 0.0;
34             visible: 1;
35             color: 255 255 255 255;
36          }
37       }
38       part { name: "knob"; mouse_events: 0;
39          clip_to: "busy_clip";
40          description { state: "default" 0.0;
41          fixed: 1 1;
42             image.normal: "knob_round_busy.png";
43             min: 40 40;
44             max: 40 40;
45             rel1.relative: 0.0 1.0;
46             rel1.offset: 4 -5;
47             rel2.relative: 0.0 1.0;
48             rel2.offset: 4 -5;
49             align: 0.0 1.0;
50             fixed: 1 1;
51          }
52       }
53       part { name: "e.swallow.content"; type: SWALLOW;
54          description { state: "default" 0.0;
55             rel1.relative: 0.2 1.0;
56             rel1.offset: 4 4;
57             rel1.to_y: "e.text.title";
58             rel2.relative: 0.8 0.0;
59             rel2.offset: -5 -11;
60             rel2.to_y: "e.text.label";
61          }
62       }
63       part { name: "base";
64          description { state: "default" 0.0;
65             image.normal: "button_normal.png";
66             image.border: 4 4 3 5;
67             image.middle: SOLID;
68             rel1.offset: -1 0;
69             rel1.to: "e.text.label";
70             rel2.offset: 0 1;
71             rel2.to: "e.text.label";
72             fill.smooth: 0;
73          }
74          description { state: "clicked" 0.0;
75             inherit: "default" 0.0;
76             image.normal: "button_clicked.png";
77             image.border: 5 5 4 6;
78          }
79       }
80       part { name: "block"; type: RECT;
81          description { state: "default" 0.0;
82             rel1.to: "base";
83             rel2.to: "base";
84             color: 0 0 0 0;
85             visible: 0;
86          }
87          description { state: "disabled" 0.0;
88             inherit: "default" 0.0;
89             visible: 0;
90          }
91       }
92       part { name: "e.text.label"; type: TEXT; mouse_events: 0;
93          effect: SHADOW BOTTOM;
94          scale: 1;
95          description { state: "default" 0.0;
96             min: 96 32;
97             align: 0.5 1.0;
98             rel1.relative: 0.5  0.99;
99             rel1.offset: 4 -5;
100             rel2.relative: 0.5  0.99;
101             rel2.offset: -5 -5;
102             color: FN_COL_DEFAULT;
103             text { font: FN; size: 10;
104                text: "Next"; 
105                min: 1 1;
106                ellipsis: -1;
107             }
108          }
109          description { state: "disabled" 0.0;
110             inherit: "default" 0.0;
111             color: FN_COL_DISABLE;
112          }
113       }
114       part { name: "shadow"; mouse_events: 0;
115          clip_to: "clip";
116          description { state: "default" 0.0;
117             rel1.relative: 0.0 0.0;
118             rel2.relative: 1.0 1.0;
119             color: 255 255 255 255;
120             image.normal: "screen_circular_shadow.png";
121             fill.smooth: 0;
122          }
123          description { state: "visible" 0.0;
124             inherit: "default" 0.0;
125             rel1.relative: -1.0 -1.0;
126             rel2.relative: 2.0 2.0;
127             color: 255 255 255 255;
128          }
129       }
130       part { name: "e.text.title"; type: TEXT;
131          effect: GLOW;
132          scale: 1;
133          description { state: "default" 0.0;
134             rel1.relative: 0.05 0.01;
135             rel1.offset: 4 4;
136             rel2.relative: 0.95 0.01;
137             rel2.offset: -5 4;
138             align: 0.5 0.0;
139             color: FN_COL_HIGHLIGHT;
140             text { font: FNBD; size: 10;
141                min: 0 1;
142                text_class: "init_title";
143             }
144             fixed: 0 1;
145          }
146       }
147       part { name: "knob_spinner"; mouse_events: 0;
148          clip_to: "busy_clip";
149          description { state: "default" 0.0;
150             fixed: 1 1;
151             rel1.to: "knob";
152             rel2.to: "knob";
153             image.normal: "glow_round_corners.png";
154             map.on: 1;
155             map.smooth: 1;
156             map.rotation.center: "knob";
157          }
158          description { state: "spin" 0.0;
159             inherit: "default" 0.0;
160             map.rotation.z: 360;
161          }
162       }
163       part { name: "blanker"; type: RECT; mouse_events: 0;
164          description { state: "default" 0.0;
165             color: 0 0 0 255;
166             visible: 1;
167          }
168          description { state: "visible" 0.0;
169             inherit: "default" 0.0;
170             color: 0 0 0 0;
171             visible: 0;
172          }
173       }
174    }
175    programs {
176       program {
177          signal: "show"; source: "";
178          action: STATE_SET "visible" 0.0;
179          transition: DECELERATE 1.0;
180          target: "shadow";
181          target: "blanker";
182       }
183       program {
184          signal: "mouse,down,1"; source: "base";
185          script {
186             new st[31];
187             new Float:vl;
188             get_state(PART:"block", st, 30, vl);
189             if (!strcmp(st, "default"))
190               set_state(PART:"base", "clicked", 0.0);
191          }
192       }
193       program {
194          signal: "mouse,up,1"; source: "base";
195          script {
196             new st[31];
197             new Float:vl;
198             get_state(PART:"block", st, 30, vl);
199             if (!strcmp(st, "default"))
200               set_state(PART:"base", "default", 0.0);
201          }
202       }
203       program {
204          signal: "mouse,clicked,1"; source: "base";
205          script {
206             new st[31];
207             new Float:vl;
208             get_state(PART:"block", st, 30, vl);
209             if (!strcmp(st, "default"))
210               emit("e,action,next", "");
211          }
212       }
213       program {
214          signal: "e,state,next,enable"; source: "e";
215          action: STATE_SET "default" 0.0;
216          target: "block";
217          target: "e.text.label";
218       }
219       program {
220          signal: "e,state,next,disable"; source: "e";
221          action: STATE_SET "disabled" 0.0;
222          target: "block";
223          target: "e.text.label";
224       }
225       
226       program {
227          signal: "e,state,next,disable"; source: "e";
228          action: ACTION_STOP;
229          target: "spin";
230          target: "spin2";
231          target: "spin3";
232          target: "spin4";
233          after: "spin";
234       }
235       program { name: "spin";
236          action: STATE_SET "spin" 0.0;
237          transition: LINEAR 1.0;
238          target: "knob_spinner";
239          after: "spin2";
240       }
241       program { name: "spin2";
242          action: STATE_SET "default" 0.0;
243          target: "knob_spinner";
244          after: "spin";
245       }
246       program {
247          signal: "e,state,next,disable"; source: "e";
248          action: STATE_SET "active" 0.0;
249          transition: SINUSOIDAL 0.25;
250          target: "busy_clip";
251       }
252       program {
253          signal: "e,state,next,enable"; source: "e";
254          action: STATE_SET "default" 0.0;
255          transition: SINUSOIDAL 1.0;
256          target: "busy_clip";
257          after: "spin3";
258       }
259       program { name: "spin3";
260          action: ACTION_STOP;
261          target: "spin";
262          target: "spin2";
263          after: "spin4";
264       }
265       program { name: "spin4";
266          action: STATE_SET "default" 0.0;
267          target: "knob_spinner";
268       }
269    }
270 }
271
272 group { name: "e/wizard/firstpage";
273    images.image: "logo_blue_small.png" COMP;
274    images.image: "logo_blue_small_glow.png" COMP;
275    parts {
276       part { name: "logo";
277          description { state: "default" 0.0;
278             image.normal: "logo_blue_small.png";
279             rel1.relative: 0.5 0.5;
280             rel2.relative: 0.5 0.5;
281             FIXED_SIZE(100, 127)
282          }
283       }
284       part { name: "logo_glow";
285          description { state: "default" 0.0;
286             image.normal: "logo_blue_small_glow.png";
287             rel1.to: "logo";
288             rel2.to: "logo";
289             color: 255 255 255 128;
290          }
291          description { state: "active" 0.0;
292             inherit: "default" 0.0;
293             color: 255 255 255 255;
294          }
295       }
296    }
297   programs {
298      program { name: "logo_pulse";
299         signal: "show"; source: "";
300         action: STATE_SET "active" 0.0;
301         target: "logo_glow";
302         transition: BOUNCE 0.8 0.5 6;
303         after: "logo_pulse2";
304      }
305      program { name: "logo_pulse2";
306         action: STATE_SET "default" 0.0;
307         target: "logo_glow";
308         transition: SINUSOIDAL 0.8;
309         after: "logo_pulse";
310      }
311   }
312 }
313
314 group { name: "e/wizard/extra";
315    images.image: "screen_circular_shadow.png" COMP;
316    images.image: "bg_radgrad.png" COMP;
317    images.image: "dot_pattern.png" COMP;
318    parts {
319       part { name: "clip"; type: RECT; mouse_events: 0;
320          description { state: "default" 0.0;
321          }
322       }
323       part { name: "bg";
324          description { state: "default" 0.0;
325             image.normal: "bg_radgrad.png";
326             image.scale_hint: STATIC;
327             fill.smooth: 0;
328             ASPECT_FILL((1024/653))
329          }
330       }
331       part { name: "pat";
332          description { state: "default" 0.0;
333             image.normal: "dot_pattern.png";
334             TILED_PATTERN(256, 256)
335          }
336       }
337       part { name: "shadow"; mouse_events: 0;
338          clip_to: "clip";
339          description { state: "default" 0.0;
340             rel1.relative: 0.0 0.0;
341             rel2.relative: 1.0 1.0;
342             color: 255 255 255 255;
343             image.normal: "screen_circular_shadow.png";
344             fill.smooth: 0;
345          }
346          description { state: "visible" 0.0;
347             inherit: "default" 0.0;
348             rel1.relative: -1.0 -1.0;
349             rel2.relative: 2.0 2.0;
350             color: 255 255 255 255;
351          }
352       }
353       part { name: "blanker"; type: RECT; mouse_events: 0;
354          description { state: "default" 0.0;
355             color: 0 0 0 255;
356             visible: 1;
357          }
358          description { state: "visible" 0.0;
359             inherit: "default" 0.0;
360             color: 0 0 0 0;
361             visible: 0;
362          }
363       }
364    }
365    programs {
366       program {
367          signal: "show"; source: "";
368          action: STATE_SET "visible" 0.0;
369          transition: DECELERATE 1.0;
370          target: "shadow";
371          target: "blanker";
372       }
373    }
374 }