diff options
Diffstat (limited to '')
51 files changed, 42268 insertions, 0 deletions
diff --git a/libraries/elementary/data/themes/widgets/actionslider.edc b/libraries/elementary/data/themes/widgets/actionslider.edc new file mode 100644 index 0000000..be82c58 --- /dev/null +++ b/libraries/elementary/data/themes/widgets/actionslider.edc | |||
@@ -0,0 +1,431 @@ | |||
1 | group { name: "elm/actionslider/base/default"; | ||
2 | |||
3 | images { | ||
4 | image: "shelf_inset.png" COMP; | ||
5 | image: "ilist_1.png" COMP; | ||
6 | image: "bt_bases.png" COMP; | ||
7 | image: "bt_basew.png" COMP; | ||
8 | image: "bt_hilightw.png" COMP; | ||
9 | } | ||
10 | |||
11 | parts { | ||
12 | part { | ||
13 | name: "base"; | ||
14 | mouse_events: 0; | ||
15 | description { | ||
16 | state: "default" 0.0; | ||
17 | min: 75 25; | ||
18 | rel1.offset: 1 1; | ||
19 | rel2.offset: -2 -2; | ||
20 | image { | ||
21 | normal: "ilist_1.png"; | ||
22 | border: 2 2 2 2; | ||
23 | } | ||
24 | fill.smooth: 0; | ||
25 | } | ||
26 | } | ||
27 | part { name: "conf_over"; | ||
28 | mouse_events: 0; | ||
29 | description { state: "default" 0.0; | ||
30 | rel1.to: "base"; | ||
31 | rel2.to: "base"; | ||
32 | image { | ||
33 | normal: "shelf_inset.png"; | ||
34 | border: 7 7 7 7; | ||
35 | middle: 0; | ||
36 | } | ||
37 | fill.smooth : 0; | ||
38 | } | ||
39 | } | ||
40 | part { name: "icon.dragable.area"; | ||
41 | type: RECT; | ||
42 | mouse_events: 0; | ||
43 | description { state: "default" 0.0; | ||
44 | visible: 0; | ||
45 | rel1.to: "base"; | ||
46 | rel2.to: "base"; | ||
47 | } | ||
48 | } | ||
49 | part { name: "elm.text.left"; | ||
50 | type: TEXT; | ||
51 | mouse_events: 0; | ||
52 | scale: 1; | ||
53 | description { state: "default" 0.0; | ||
54 | color: 0 0 0 255; | ||
55 | text { | ||
56 | font: "Sans,Edje-Vera"; | ||
57 | size: 10; | ||
58 | align: 0.05 0.5; | ||
59 | min: 1 1; | ||
60 | } | ||
61 | } | ||
62 | } | ||
63 | part { name: "elm.text.center"; | ||
64 | type: TEXT; | ||
65 | mouse_events: 0; | ||
66 | scale: 1; | ||
67 | description { state: "default" 0.0; | ||
68 | color: 0 0 0 255; | ||
69 | text { | ||
70 | font: "Sans,Edje-Vera"; | ||
71 | size: 10; | ||
72 | align: 0.5 0.5; | ||
73 | min: 1 1; | ||
74 | } | ||
75 | } | ||
76 | } | ||
77 | part { name: "elm.text.right"; | ||
78 | type: TEXT; | ||
79 | mouse_events: 0; | ||
80 | scale: 1; | ||
81 | description { state: "default" 0.0; | ||
82 | color: 0 0 0 255; | ||
83 | text { | ||
84 | font: "Sans,Edje-Vera"; | ||
85 | size: 10; | ||
86 | align: 0.95 0.5; | ||
87 | min: 1 1; | ||
88 | } | ||
89 | } | ||
90 | } | ||
91 | part { name: "elm.drag_button_base"; | ||
92 | type: SWALLOW; | ||
93 | mouse_events: 0; | ||
94 | scale: 1; | ||
95 | description { state: "default" 0.0; | ||
96 | fixed: 1 1; | ||
97 | min: 50 25; | ||
98 | align: 0.5 0.5; | ||
99 | rel1.to: "icon.dragable.area"; | ||
100 | rel2 { | ||
101 | relative: 0.0 1.0; | ||
102 | to: "icon.dragable.area"; | ||
103 | } | ||
104 | } | ||
105 | dragable { | ||
106 | confine: "icon.dragable.area"; | ||
107 | x: 1 1 0; | ||
108 | y: 0 0 0; | ||
109 | } | ||
110 | } | ||
111 | part { name: "elm.drag_button"; | ||
112 | type: RECT; | ||
113 | mouse_events: 1; | ||
114 | description { state: "default" 0.0; | ||
115 | min: 50 25; | ||
116 | color: 255 255 255 0; | ||
117 | rel1.to_x: "elm.drag_button_base"; | ||
118 | rel1.to_y: "icon.dragable.area"; | ||
119 | rel2.to_x: "elm.drag_button_base"; | ||
120 | rel2.to_y: "icon.dragable.area"; | ||
121 | } | ||
122 | dragable { | ||
123 | events: "elm.drag_button_base"; | ||
124 | } | ||
125 | } | ||
126 | part { name: "button0"; | ||
127 | mouse_events: 0; | ||
128 | description { state: "default" 0.0; | ||
129 | rel1.to: "button2"; | ||
130 | rel1.offset: -4 -4; | ||
131 | rel2.to: "button2"; | ||
132 | rel2.offset: 3 3; | ||
133 | image { | ||
134 | normal: "bt_bases.png"; | ||
135 | border: 11 11 11 11; | ||
136 | middle: SOLID; | ||
137 | } | ||
138 | color: 255 255 255 128; | ||
139 | } | ||
140 | } | ||
141 | part { name: "button2"; | ||
142 | mouse_events: 0; | ||
143 | description { state: "default" 0.0; | ||
144 | rel1.to: "elm.drag_button"; | ||
145 | rel2.to: "elm.drag_button"; | ||
146 | image { | ||
147 | normal: "bt_basew.png"; | ||
148 | border: 7 7 7 7; | ||
149 | middle: SOLID; | ||
150 | } | ||
151 | color: 255 255 255 210; | ||
152 | } | ||
153 | } | ||
154 | part { name: "button3"; | ||
155 | mouse_events: 0; | ||
156 | description { state: "default" 0.0; | ||
157 | rel1.to: "button2"; | ||
158 | rel2.to: "button2"; | ||
159 | rel2.relative: 1.0 0.5; | ||
160 | image { | ||
161 | normal: "bt_hilightw.png"; | ||
162 | border: 4 4 4 0; | ||
163 | } | ||
164 | color: 255 255 255 190; | ||
165 | } | ||
166 | } | ||
167 | part { name: "elm.text.indicator"; | ||
168 | type: TEXT; | ||
169 | scale: 1; | ||
170 | mouse_events: 0; | ||
171 | description { state: "default" 0.0; | ||
172 | rel1 { | ||
173 | to: "elm.drag_button"; | ||
174 | offset: 5 0; | ||
175 | } | ||
176 | rel2 { | ||
177 | to: "elm.drag_button"; | ||
178 | offset: -5 0; | ||
179 | } | ||
180 | color: 0 0 0 255; | ||
181 | text { | ||
182 | font: "Sans,Edje-Vera"; | ||
183 | size: 10; | ||
184 | align: 0.5 0.5; | ||
185 | min: 0 1; | ||
186 | } | ||
187 | } | ||
188 | } | ||
189 | } | ||
190 | programs { | ||
191 | program { name: "elm.drag_button,mouse,up"; | ||
192 | signal: "mouse,up,1"; | ||
193 | source: "elm.drag_button"; | ||
194 | action: SIGNAL_EMIT "elm.drag_button,mouse,up" ""; | ||
195 | } | ||
196 | program { name: "elm.drag_button,mouse,down"; | ||
197 | signal: "mouse,down,1"; | ||
198 | source: "elm.drag_button"; | ||
199 | action: SIGNAL_EMIT "elm.drag_button,mouse,down" ""; | ||
200 | } | ||
201 | program { name: "elm.drag_button,mouse,move"; | ||
202 | signal: "mouse,move"; | ||
203 | source: "elm.drag_button_base"; | ||
204 | action: SIGNAL_EMIT "elm.drag_button,mouse,move" ""; | ||
205 | } | ||
206 | } | ||
207 | } | ||
208 | |||
209 | group { name: "elm/actionslider/base/bar"; | ||
210 | |||
211 | images { | ||
212 | image: "shelf_inset.png" COMP; | ||
213 | image: "ilist_1.png" COMP; | ||
214 | image: "bt_bases.png" COMP; | ||
215 | image: "bt_basew.png" COMP; | ||
216 | image: "bt_hilightw.png" COMP; | ||
217 | } | ||
218 | |||
219 | parts { | ||
220 | part { | ||
221 | name: "base"; | ||
222 | mouse_events: 0; | ||
223 | description { | ||
224 | state: "default" 0.0; | ||
225 | min: 150 30; | ||
226 | rel1.offset: 1 1; | ||
227 | rel2.offset: -2 -2; | ||
228 | image { | ||
229 | normal: "ilist_1.png"; | ||
230 | border: 2 2 2 2; | ||
231 | } | ||
232 | fill.smooth: 0; | ||
233 | } | ||
234 | } | ||
235 | part { name: "conf_over"; | ||
236 | mouse_events: 0; | ||
237 | description { state: "default" 0.0; | ||
238 | rel1.to: "base"; | ||
239 | rel2.to: "base"; | ||
240 | image { | ||
241 | normal: "shelf_inset.png"; | ||
242 | border: 7 7 7 7; | ||
243 | middle: 0; | ||
244 | } | ||
245 | fill.smooth : 0; | ||
246 | } | ||
247 | } | ||
248 | part { name: "icon.dragable.area"; | ||
249 | type: RECT; | ||
250 | mouse_events: 0; | ||
251 | description { state: "default" 0.0; | ||
252 | visible: 0; | ||
253 | rel1.to: "base"; | ||
254 | rel2.to: "base"; | ||
255 | } | ||
256 | } | ||
257 | part { name: "elm.text.left"; | ||
258 | type: TEXT; | ||
259 | mouse_events: 0; | ||
260 | scale: 1; | ||
261 | description { state: "default" 0.0; | ||
262 | color: 0 0 0 255; | ||
263 | text { | ||
264 | font: "Sans,Edje-Vera"; | ||
265 | size: 10; | ||
266 | align: 0.05 0.5; | ||
267 | min: 1 1; | ||
268 | } | ||
269 | } | ||
270 | } | ||
271 | part { name: "elm.text.center"; | ||
272 | type: TEXT; | ||
273 | mouse_events: 0; | ||
274 | scale: 1; | ||
275 | description { state: "default" 0.0; | ||
276 | color: 0 0 0 255; | ||
277 | text { | ||
278 | font: "Sans,Edje-Vera"; | ||
279 | size: 10; | ||
280 | align: 0.5 0.5; | ||
281 | min: 1 1; | ||
282 | } | ||
283 | } | ||
284 | } | ||
285 | part { name: "elm.text.right"; | ||
286 | type: TEXT; | ||
287 | mouse_events: 0; | ||
288 | scale: 1; | ||
289 | description { state: "default" 0.0; | ||
290 | color: 0 0 0 255; | ||
291 | text { | ||
292 | font: "Sans,Edje-Vera"; | ||
293 | size: 10; | ||
294 | align: 0.95 0.5; | ||
295 | min: 1 1; | ||
296 | } | ||
297 | } | ||
298 | } | ||
299 | part { name: "bar"; | ||
300 | type: RECT; | ||
301 | mouse_events: 0; | ||
302 | description { state: "default" 0.0; | ||
303 | rel1.to: "base"; | ||
304 | rel1.offset: 0 2; | ||
305 | rel2 { | ||
306 | relative: 0 1; | ||
307 | offset: 3 -3; | ||
308 | to_x: "elm.drag_button_base"; | ||
309 | to_y: "base"; | ||
310 | } | ||
311 | color: 0 0 0 180; | ||
312 | } | ||
313 | } | ||
314 | part { name: "elm.drag_button_base"; | ||
315 | type: SWALLOW; | ||
316 | mouse_events: 1; | ||
317 | scale: 1; | ||
318 | description { state: "default" 0.0; | ||
319 | fixed: 1 1; | ||
320 | min: 50 25; | ||
321 | align: 0.5 0.5; | ||
322 | rel1.to: "icon.dragable.area"; | ||
323 | rel2 { | ||
324 | relative: 0.0 1.0; | ||
325 | to: "icon.dragable.area"; | ||
326 | } | ||
327 | } | ||
328 | dragable { | ||
329 | confine: "icon.dragable.area"; | ||
330 | x: 1 1 0; | ||
331 | y: 0 0 0; | ||
332 | } | ||
333 | } | ||
334 | part { name: "elm.drag_button"; | ||
335 | type: RECT; | ||
336 | mouse_events: 1; | ||
337 | description { state: "default" 0.0; | ||
338 | min: 50 25; | ||
339 | color: 255 255 255 0; | ||
340 | rel1.to_x: "elm.drag_button_base"; | ||
341 | rel1.to_y: "icon.dragable.area"; | ||
342 | rel2.to_x: "elm.drag_button_base"; | ||
343 | rel2.to_y: "icon.dragable.area"; | ||
344 | } | ||
345 | dragable { | ||
346 | events: "elm.drag_button_base"; | ||
347 | } | ||
348 | } | ||
349 | part { name: "button0"; | ||
350 | mouse_events: 0; | ||
351 | description { state: "default" 0.0; | ||
352 | rel1.to: "button2"; | ||
353 | rel1.offset: -4 -4; | ||
354 | rel2.to: "button2"; | ||
355 | rel2.offset: 3 3; | ||
356 | image { | ||
357 | normal: "bt_bases.png"; | ||
358 | border: 11 11 11 11; | ||
359 | middle: SOLID; | ||
360 | } | ||
361 | color: 255 255 255 128; | ||
362 | } | ||
363 | } | ||
364 | part { name: "button2"; | ||
365 | mouse_events: 0; | ||
366 | description { state: "default" 0.0; | ||
367 | rel1.to: "elm.drag_button"; | ||
368 | rel2.to: "elm.drag_button"; | ||
369 | image { | ||
370 | normal: "bt_basew.png"; | ||
371 | border: 7 7 7 7; | ||
372 | middle: SOLID; | ||
373 | } | ||
374 | color: 255 255 255 210; | ||
375 | } | ||
376 | } | ||
377 | part { name: "button3"; | ||
378 | mouse_events: 0; | ||
379 | description { state: "default" 0.0; | ||
380 | rel1.to: "button2"; | ||
381 | rel2.to: "button2"; | ||
382 | rel2.relative: 1.0 0.5; | ||
383 | image { | ||
384 | normal: "bt_hilightw.png"; | ||
385 | border: 4 4 4 0; | ||
386 | } | ||
387 | color: 255 255 255 190; | ||
388 | } | ||
389 | } | ||
390 | part { name: "elm.text.indicator"; | ||
391 | type: TEXT; | ||
392 | scale: 1; | ||
393 | mouse_events: 0; | ||
394 | description { state: "default" 0.0; | ||
395 | rel1 { | ||
396 | to: "elm.drag_button"; | ||
397 | offset: 5 0; | ||
398 | } | ||
399 | rel2 { | ||
400 | to: "elm.drag_button"; | ||
401 | offset: -5 0; | ||
402 | } | ||
403 | color: 0 0 0 255; | ||
404 | text { | ||
405 | font: "Sans,Edje-Vera"; | ||
406 | size: 10; | ||
407 | align: 0.5 0.5; | ||
408 | min: 0 1; | ||
409 | } | ||
410 | } | ||
411 | } | ||
412 | } | ||
413 | programs { | ||
414 | program { name: "elm.drag_button,mouse,up"; | ||
415 | signal: "mouse,up,1"; | ||
416 | source: "elm.drag_button"; | ||
417 | action: SIGNAL_EMIT "elm.drag_button,mouse,up" ""; | ||
418 | } | ||
419 | program { name: "elm.drag_button,mouse,down"; | ||
420 | signal: "mouse,down,1"; | ||
421 | source: "elm.drag_button"; | ||
422 | action: SIGNAL_EMIT "elm.drag_button,mouse,down" ""; | ||
423 | } | ||
424 | program { name: "elm.drag_button,mouse,move"; | ||
425 | signal: "mouse,move"; | ||
426 | source: "elm.drag_button_base"; | ||
427 | action: SIGNAL_EMIT "elm.drag_button,mouse,move" ""; | ||
428 | } | ||
429 | } | ||
430 | } | ||
431 | |||
diff --git a/libraries/elementary/data/themes/widgets/bg.edc b/libraries/elementary/data/themes/widgets/bg.edc new file mode 100644 index 0000000..b3b81fd --- /dev/null +++ b/libraries/elementary/data/themes/widgets/bg.edc | |||
@@ -0,0 +1,67 @@ | |||
1 | group { name: "elm/bg/base/default"; | ||
2 | images { | ||
3 | image: "dia_grad.png" COMP; | ||
4 | image: "dia_topshad.png" COMP; | ||
5 | image: "dia_botshad.png" COMP; | ||
6 | } | ||
7 | parts { | ||
8 | part { name: "base"; | ||
9 | mouse_events: 0; | ||
10 | description { state: "default" 0.0; | ||
11 | image.normal: "dia_grad.png"; | ||
12 | fill { | ||
13 | smooth: 0; | ||
14 | size { | ||
15 | relative: 0.0 1.0; | ||
16 | offset: 64 0; | ||
17 | } | ||
18 | } | ||
19 | } | ||
20 | } | ||
21 | part { name: "elm.swallow.rectangle"; | ||
22 | type: SWALLOW; | ||
23 | description { state: "default" 0.0; | ||
24 | } | ||
25 | } | ||
26 | part { name: "elm.swallow.background"; | ||
27 | type: SWALLOW; | ||
28 | description { state: "default" 0.0; | ||
29 | } | ||
30 | } | ||
31 | part { name: "shadow"; | ||
32 | mouse_events: 0; | ||
33 | description { state: "default" 0.0; | ||
34 | rel2.relative: 1.0 0.0; | ||
35 | rel2.offset: -1 31; | ||
36 | image.normal: "dia_topshad.png"; | ||
37 | fill { | ||
38 | smooth: 0; | ||
39 | size { | ||
40 | relative: 0.0 1.0; | ||
41 | offset: 64 0; | ||
42 | } | ||
43 | } | ||
44 | } | ||
45 | } | ||
46 | part { name: "shadow2"; | ||
47 | mouse_events: 0; | ||
48 | description { state: "default" 0.0; | ||
49 | rel1.relative: 0.0 1.0; | ||
50 | rel1.offset: 0 -9; | ||
51 | image.normal: "dia_botshad.png"; | ||
52 | fill { | ||
53 | smooth: 0; | ||
54 | size { | ||
55 | relative: 0.0 1.0; | ||
56 | offset: 64 0; | ||
57 | } | ||
58 | } | ||
59 | } | ||
60 | } | ||
61 | part { name: "elm.swallow.content"; | ||
62 | type: SWALLOW; | ||
63 | description { state: "default" 0.0; | ||
64 | } | ||
65 | } | ||
66 | } | ||
67 | } | ||
diff --git a/libraries/elementary/data/themes/widgets/border.edc b/libraries/elementary/data/themes/widgets/border.edc new file mode 100644 index 0000000..7318e26 --- /dev/null +++ b/libraries/elementary/data/themes/widgets/border.edc | |||
@@ -0,0 +1,917 @@ | |||
1 | color_classes { | ||
2 | color_class { | ||
3 | name: "border_top"; | ||
4 | color: 255 255 255 255; | ||
5 | } | ||
6 | color_class { | ||
7 | name: "border_top_hilight"; | ||
8 | color: 255 255 255 255; | ||
9 | } | ||
10 | color_class { | ||
11 | name: "border_bottom"; | ||
12 | color: 255 255 255 255; | ||
13 | } | ||
14 | color_class { | ||
15 | name: "border_title"; | ||
16 | color: 0 0 0 255; | ||
17 | } | ||
18 | color_class { | ||
19 | name: "border_title_active"; | ||
20 | color: 224 224 224 255; | ||
21 | color3: 0 0 0 64; | ||
22 | } | ||
23 | } | ||
24 | |||
25 | group { | ||
26 | name: "elm/border/base/default"; | ||
27 | data.item: "focus_highlight" "off"; | ||
28 | images { | ||
29 | image: "bd_top.png" COMP; | ||
30 | image: "bd_top_hilight.png" COMP; | ||
31 | image: "bd_bottom.png" COMP; | ||
32 | image: "bd_title_bg.png" COMP; | ||
33 | image: "bd_title_over.png" COMP; | ||
34 | image: "bd_resize_b.png" COMP; | ||
35 | image: "busy-1.png" COMP; | ||
36 | image: "busy-2.png" COMP; | ||
37 | image: "busy-3.png" COMP; | ||
38 | image: "busy-4.png" COMP; | ||
39 | image: "busy-5.png" COMP; | ||
40 | image: "busy-6.png" COMP; | ||
41 | image: "busy-7.png" COMP; | ||
42 | image: "busy-8.png" COMP; | ||
43 | image: "busy-9.png" COMP; | ||
44 | image: "exclam.png" COMP; | ||
45 | image: "bd_button_close_shadow.png" COMP; | ||
46 | image: "bd_button_close_focused.png" COMP; | ||
47 | image: "bd_button_close_unfocused.png" COMP; | ||
48 | image: "bd_button_max_shadow.png" COMP; | ||
49 | image: "bd_button_max_focused.png" COMP; | ||
50 | image: "bd_button_max_unfocused.png" COMP; | ||
51 | image: "bd_button_min_shadow.png" COMP; | ||
52 | image: "bd_button_min_focused.png" COMP; | ||
53 | image: "bd_button_min_unfocused.png" COMP; | ||
54 | } | ||
55 | parts { | ||
56 | part { | ||
57 | name: "top"; | ||
58 | type: IMAGE; | ||
59 | mouse_events: 0; | ||
60 | description { | ||
61 | state: "default" 0.0; | ||
62 | rel2.to_y: "title_base"; | ||
63 | color_class: "border_top"; | ||
64 | image { | ||
65 | normal: "bd_top.png"; | ||
66 | border: 2 2 2 2; | ||
67 | } | ||
68 | } | ||
69 | } | ||
70 | part { | ||
71 | name: "bottom"; | ||
72 | type: IMAGE; | ||
73 | mouse_events: 0; | ||
74 | description { | ||
75 | state: "default" 0.0; | ||
76 | rel1 { | ||
77 | relative: 0.0 1.0; | ||
78 | offset: 0 -4; | ||
79 | } | ||
80 | color_class: "border_bottom"; | ||
81 | image { | ||
82 | normal: "bd_bottom.png"; | ||
83 | border: 2 2 0 0; | ||
84 | } | ||
85 | } | ||
86 | description { | ||
87 | state: "shaded" 0.0; | ||
88 | inherit: "default" 0.0; | ||
89 | visible: 0; | ||
90 | } | ||
91 | description { | ||
92 | state: "max" 0.0; | ||
93 | inherit: "default" 0.0; | ||
94 | visible: 0; | ||
95 | } | ||
96 | } | ||
97 | part { | ||
98 | name: "icon_area"; | ||
99 | type: RECT; | ||
100 | description { | ||
101 | state: "default" 0.0; | ||
102 | visible: 0; | ||
103 | align: 0.0 0.5; | ||
104 | aspect: 1.0 1.0; | ||
105 | aspect_preference: VERTICAL; | ||
106 | rel1.offset: 2 2; | ||
107 | rel2 { | ||
108 | relative: 0.0 1.0; | ||
109 | offset: 2 -3; | ||
110 | to_y: "title_base"; | ||
111 | } | ||
112 | } | ||
113 | description { | ||
114 | state: "active" 0.0; | ||
115 | inherit: "default" 0.0; | ||
116 | rel1.offset: 2 3; | ||
117 | rel2.offset: 2 -2; | ||
118 | } | ||
119 | } | ||
120 | part { | ||
121 | name: "icon_area2"; | ||
122 | type: RECT; | ||
123 | description { | ||
124 | state: "default" 0.0; | ||
125 | visible: 0; | ||
126 | rel1.to: "icon_area"; | ||
127 | rel2.to: "icon_area"; | ||
128 | } | ||
129 | description { | ||
130 | state: "uw0" 0.0; | ||
131 | inherit: "default" 0.0; | ||
132 | rel1.offset: -3 -2; | ||
133 | rel2.offset: -4 -3; | ||
134 | } | ||
135 | description { | ||
136 | state: "uw1" 0.0; | ||
137 | inherit: "default" 0.0; | ||
138 | rel1.offset: 5 -2; | ||
139 | rel2.offset: 4 -3; | ||
140 | } | ||
141 | description { | ||
142 | state: "uw2" 0.0; | ||
143 | inherit: "default" 0.0; | ||
144 | rel1.offset: -1 4; | ||
145 | rel2.offset: -2 3; | ||
146 | } | ||
147 | description { | ||
148 | state: "uw3" 0.0; | ||
149 | inherit: "default" 0.0; | ||
150 | rel1.offset: -2 -1; | ||
151 | rel2.offset: -3 -2; | ||
152 | } | ||
153 | description { | ||
154 | state: "uw4" 0.0; | ||
155 | inherit: "default" 0.0; | ||
156 | rel1.offset: -4 1; | ||
157 | rel2.offset: -5 0; | ||
158 | } | ||
159 | } | ||
160 | part { | ||
161 | name: "elm.swallow.icon"; | ||
162 | type: SWALLOW; | ||
163 | description { | ||
164 | state: "default" 0.0; | ||
165 | aspect: 1.0 1.0; | ||
166 | aspect_preference: BOTH; | ||
167 | rel1.to: "icon_area2"; | ||
168 | rel2.to: "icon_area2"; | ||
169 | } | ||
170 | description { | ||
171 | state: "shrunk" 0.0; | ||
172 | inherit: "default" 0.0; | ||
173 | rel1.relative: 0.3 0.3; | ||
174 | rel2.relative: 0.7 0.7; | ||
175 | } | ||
176 | } | ||
177 | part { | ||
178 | name: "elm.text.title"; | ||
179 | type: TEXT; | ||
180 | mouse_events: 0; | ||
181 | scale: 1; | ||
182 | description { | ||
183 | state: "default" 0.0; | ||
184 | visible: 1; | ||
185 | align: 0.0 0.0; | ||
186 | rel1 { | ||
187 | relative: 1.0 0.0; | ||
188 | offset: 9 2; | ||
189 | to_x: "icon_area"; | ||
190 | } | ||
191 | rel2 { | ||
192 | relative: 1.0 0.0; | ||
193 | offset: -8 2; | ||
194 | to_x: "title_base"; | ||
195 | } | ||
196 | color_class: "border_title"; | ||
197 | text { | ||
198 | font: "Sans:style=Bold"; | ||
199 | size: 10; | ||
200 | min: 0 1; | ||
201 | align: 0.0 0.0; | ||
202 | text_class: "title_bar"; | ||
203 | } | ||
204 | } | ||
205 | description { | ||
206 | state: "focused" 0.0; | ||
207 | inherit: "default" 0.0; | ||
208 | visible: 0; | ||
209 | color: 0 0 0 0; | ||
210 | } | ||
211 | } | ||
212 | part { | ||
213 | name: "bt_close"; | ||
214 | type: IMAGE; | ||
215 | mouse_events: 0; | ||
216 | description { | ||
217 | state: "default" 0.0; | ||
218 | align: 1.0 0.5; | ||
219 | min: 22 22; | ||
220 | max: 22 22; | ||
221 | aspect: 1.0 1.0; | ||
222 | aspect_preference: VERTICAL; | ||
223 | rel1 { | ||
224 | relative: 1.0 0.0; | ||
225 | offset: -2 1; | ||
226 | to: "top"; | ||
227 | } | ||
228 | rel2 { | ||
229 | offset: -2 -2; | ||
230 | to: "top"; | ||
231 | } | ||
232 | image.normal: "bd_button_close_shadow.png"; | ||
233 | } | ||
234 | } | ||
235 | part { | ||
236 | name: "bt_max"; | ||
237 | type: IMAGE; | ||
238 | mouse_events: 0; | ||
239 | description { | ||
240 | state: "default" 0.0; | ||
241 | align: 1.0 0.5; | ||
242 | min: 22 22; | ||
243 | max: 22 22; | ||
244 | aspect: 1.0 1.0; | ||
245 | aspect_preference: VERTICAL; | ||
246 | rel1 { | ||
247 | offset: -2 1; | ||
248 | to_x: "bt_close"; | ||
249 | to_y: "top"; | ||
250 | } | ||
251 | rel2 { | ||
252 | relative: 0.0 1.0; | ||
253 | offset: -2 -2; | ||
254 | to_x: "bt_close"; | ||
255 | to_y: "top"; | ||
256 | } | ||
257 | image.normal: "bd_button_max_shadow.png"; | ||
258 | } | ||
259 | } | ||
260 | part { | ||
261 | name: "bt_min"; | ||
262 | type: IMAGE; | ||
263 | mouse_events: 0; | ||
264 | description { | ||
265 | state: "default" 0.0; | ||
266 | align: 1.0 0.5; | ||
267 | min: 22 22; | ||
268 | max: 22 22; | ||
269 | aspect: 1.0 1.0; | ||
270 | aspect_preference: VERTICAL; | ||
271 | rel1 { | ||
272 | offset: -2 1; | ||
273 | to_x: "bt_max"; | ||
274 | to_y: "top"; | ||
275 | } | ||
276 | rel2 { | ||
277 | relative: 0.0 1.0; | ||
278 | offset: -2 -2; | ||
279 | to_x: "bt_max"; | ||
280 | to_y: "top"; | ||
281 | } | ||
282 | image.normal: "bd_button_min_shadow.png"; | ||
283 | } | ||
284 | } | ||
285 | part { | ||
286 | name: "top_hilight"; | ||
287 | type: IMAGE; | ||
288 | mouse_events: 0; | ||
289 | description { | ||
290 | state: "default" 0.0; | ||
291 | rel1.to: "top"; | ||
292 | rel2 { | ||
293 | relative: 1.0 0.5; | ||
294 | offset: -1 0; | ||
295 | to: "top"; | ||
296 | } | ||
297 | color_class: "border_top_hilight"; | ||
298 | image.normal: "bd_top_hilight.png"; | ||
299 | fill.smooth: 0; | ||
300 | } | ||
301 | } | ||
302 | part { | ||
303 | name: "buttons_unfoc"; | ||
304 | type: RECT; | ||
305 | description { | ||
306 | state: "default" 0.0; | ||
307 | visible: 1; | ||
308 | color: 255 255 255 255; | ||
309 | } | ||
310 | description { | ||
311 | state: "focused" 0.0; | ||
312 | inherit: "default" 0.0; | ||
313 | visible: 0; | ||
314 | color: 255 255 255 0; | ||
315 | } | ||
316 | } | ||
317 | part { | ||
318 | name: "bt_close_unfoc"; | ||
319 | type: IMAGE; | ||
320 | mouse_events: 0; | ||
321 | clip_to: "buttons_unfoc"; | ||
322 | description { | ||
323 | state: "default" 0.0; | ||
324 | rel1.to: "bt_close"; | ||
325 | rel2.to: "bt_close"; | ||
326 | image.normal: "bd_button_close_unfocused.png"; | ||
327 | } | ||
328 | description { | ||
329 | state: "active" 0.0; | ||
330 | inherit: "default" 0.0; | ||
331 | rel1.offset: 0 1; | ||
332 | rel2.offset: -1 0; | ||
333 | } | ||
334 | } | ||
335 | part { | ||
336 | name: "bt_max_unfoc"; | ||
337 | type: IMAGE; | ||
338 | mouse_events: 0; | ||
339 | clip_to: "buttons_unfoc"; | ||
340 | description { | ||
341 | state: "default" 0.0; | ||
342 | rel1.to: "bt_max"; | ||
343 | rel2.to: "bt_max"; | ||
344 | image.normal: "bd_button_max_unfocused.png"; | ||
345 | } | ||
346 | description { | ||
347 | state: "active" 0.0; | ||
348 | inherit: "default" 0.0; | ||
349 | rel1.offset: 0 1; | ||
350 | rel2.offset: -1 0; | ||
351 | } | ||
352 | } | ||
353 | part { | ||
354 | name: "bt_min_unfoc"; | ||
355 | type: IMAGE; | ||
356 | mouse_events: 0; | ||
357 | clip_to: "buttons_unfoc"; | ||
358 | description { | ||
359 | state: "default" 0.0; | ||
360 | rel1.to: "bt_min"; | ||
361 | rel2.to: "bt_min"; | ||
362 | image.normal: "bd_button_min_unfocused.png"; | ||
363 | } | ||
364 | description { | ||
365 | state: "active" 0.0; | ||
366 | inherit: "default" 0.0; | ||
367 | rel1.offset: 0 1; | ||
368 | rel2.offset: -1 0; | ||
369 | } | ||
370 | } | ||
371 | part { | ||
372 | name: "buttons_foc"; | ||
373 | type: RECT; | ||
374 | description { | ||
375 | state: "default" 0.0; | ||
376 | visible: 0; | ||
377 | color: 255 255 255 0; | ||
378 | } | ||
379 | description { | ||
380 | state: "focused" 0.0; | ||
381 | inherit: "default" 0.0; | ||
382 | visible: 1; | ||
383 | color: 255 255 255 255; | ||
384 | } | ||
385 | } | ||
386 | part { | ||
387 | name: "bt_close_foc"; | ||
388 | type: IMAGE; | ||
389 | mouse_events: 0; | ||
390 | clip_to: "buttons_foc"; | ||
391 | description { | ||
392 | state: "default" 0.0; | ||
393 | rel1.to: "bt_close"; | ||
394 | rel2.to: "bt_close"; | ||
395 | image.normal: "bd_button_close_focused.png"; | ||
396 | } | ||
397 | description { | ||
398 | state: "active" 0.0; | ||
399 | inherit: "default" 0.0; | ||
400 | rel1.offset: 0 1; | ||
401 | rel2.offset: -1 0; | ||
402 | } | ||
403 | } | ||
404 | part { | ||
405 | name: "bt_max_foc"; | ||
406 | type: IMAGE; | ||
407 | mouse_events: 0; | ||
408 | clip_to: "buttons_foc"; | ||
409 | description { | ||
410 | state: "default" 0.0; | ||
411 | rel1.to: "bt_max"; | ||
412 | rel2.to: "bt_max"; | ||
413 | image.normal: "bd_button_max_focused.png"; | ||
414 | } | ||
415 | description { | ||
416 | state: "active" 0.0; | ||
417 | inherit: "default" 0.0; | ||
418 | rel1.offset: 0 1; | ||
419 | rel2.offset: -1 0; | ||
420 | } | ||
421 | } | ||
422 | part { | ||
423 | name: "bt_min_foc"; | ||
424 | type: IMAGE; | ||
425 | mouse_events: 0; | ||
426 | clip_to: "buttons_foc"; | ||
427 | description { | ||
428 | state: "default" 0.0; | ||
429 | rel1.to: "bt_min"; | ||
430 | rel2.to: "bt_min"; | ||
431 | image.normal: "bd_button_min_focused.png"; | ||
432 | } | ||
433 | description { | ||
434 | state: "active" 0.0; | ||
435 | inherit: "default" 0.0; | ||
436 | rel1.offset: 0 1; | ||
437 | rel2.offset: -1 0; | ||
438 | } | ||
439 | } | ||
440 | part { | ||
441 | name: "title_base"; | ||
442 | type: RECT; | ||
443 | mouse_events: 0; | ||
444 | description { | ||
445 | state: "default" 0.0; | ||
446 | visible: 0; | ||
447 | rel1 { | ||
448 | relative: 1.0 0.0; | ||
449 | to_x: "icon_area"; | ||
450 | } | ||
451 | rel2 { | ||
452 | relative: 0.0 1.0; | ||
453 | offset: -3 4; | ||
454 | to_y: "elm.text.title"; | ||
455 | to_x: "bt_min"; | ||
456 | } | ||
457 | } | ||
458 | } | ||
459 | part { | ||
460 | name: "title_back"; | ||
461 | type: IMAGE; | ||
462 | mouse_events: 0; | ||
463 | description { | ||
464 | state: "default" 0.0; | ||
465 | visible: 0; | ||
466 | rel1.to: "title_base"; | ||
467 | rel2 { | ||
468 | relative: 1.0 0.0; | ||
469 | to: "title_base"; | ||
470 | } | ||
471 | image { | ||
472 | normal: "bd_title_bg.png"; | ||
473 | border: 7 7 2 7; | ||
474 | } | ||
475 | fill.smooth: 0; | ||
476 | } | ||
477 | description { | ||
478 | state: "focused" 0.0; | ||
479 | inherit: "default" 0.0; | ||
480 | visible: 1; | ||
481 | rel2 { | ||
482 | relative: 1.0 1.0; | ||
483 | to: "title_base"; | ||
484 | } | ||
485 | } | ||
486 | } | ||
487 | part { | ||
488 | name: "title2"; | ||
489 | type: TEXT; | ||
490 | mouse_events: 0; | ||
491 | scale: 1; | ||
492 | effect: SOFT_SHADOW; | ||
493 | description { | ||
494 | state: "default" 0.0; | ||
495 | visible: 0; | ||
496 | align: 0.0 1.0; | ||
497 | rel1 { | ||
498 | relative: 0.0 1.0; | ||
499 | offset: -1 0; | ||
500 | to_x: "elm.text.title"; | ||
501 | to_y: "title_back"; | ||
502 | } | ||
503 | rel2 { | ||
504 | offset: 0 0; | ||
505 | to_x: "elm.text.title"; | ||
506 | to_y: "title_back"; | ||
507 | } | ||
508 | color_class: "border_title_active"; | ||
509 | text { | ||
510 | text_source: "elm.text.title"; | ||
511 | font: "Sans:style=Bold"; | ||
512 | size: 10; | ||
513 | align: 0.0 0.0; | ||
514 | min: 0 1; | ||
515 | text_class: "title_bar"; | ||
516 | } | ||
517 | } | ||
518 | description { | ||
519 | state: "focused" 0.0; | ||
520 | inherit: "default" 0.0; | ||
521 | visible: 1; | ||
522 | } | ||
523 | } | ||
524 | part { | ||
525 | name: "title_over"; | ||
526 | type: IMAGE; | ||
527 | mouse_events: 0; | ||
528 | description { | ||
529 | state: "default" 0.0; | ||
530 | visible: 0; | ||
531 | rel1.to: "title_back"; | ||
532 | rel2.to: "title_back"; | ||
533 | image { | ||
534 | normal: "bd_title_over.png"; | ||
535 | border: 7 7 2 7; | ||
536 | } | ||
537 | fill.smooth: 0; | ||
538 | } | ||
539 | description { | ||
540 | state: "focused" 0.0; | ||
541 | inherit: "default" 0.0; | ||
542 | visible: 1; | ||
543 | } | ||
544 | } | ||
545 | part { | ||
546 | name: "bottom_clip"; | ||
547 | type: RECT; | ||
548 | description { | ||
549 | state: "default" 0.0; | ||
550 | rel1.to: "bottom"; | ||
551 | rel2.to: "bottom"; | ||
552 | color: 255 255 255 255; | ||
553 | } | ||
554 | } | ||
555 | part { | ||
556 | name: "resize_b"; | ||
557 | type: IMAGE; | ||
558 | mouse_events: 0; | ||
559 | clip_to: "bottom_clip"; | ||
560 | description { | ||
561 | state: "default" 0.0; | ||
562 | min: 20 10; | ||
563 | max: 20 10; | ||
564 | rel1 { | ||
565 | relative: 0.5 0.0; | ||
566 | offset: 0 -10; | ||
567 | to: "bottom"; | ||
568 | } | ||
569 | rel2 { | ||
570 | relative: 0.5 0.0; | ||
571 | offset: 0 -1; | ||
572 | to: "bottom"; | ||
573 | } | ||
574 | image.normal: "bd_resize_b.png"; | ||
575 | } | ||
576 | description { | ||
577 | state: "past" 0.0; | ||
578 | inherit: "default" 0.0; | ||
579 | rel1 { | ||
580 | relative: 0.5 1.0; | ||
581 | offset: 0 0; | ||
582 | } | ||
583 | rel2 { | ||
584 | relative: 0.5 1.0; | ||
585 | offset: 0 9; | ||
586 | } | ||
587 | } | ||
588 | } | ||
589 | part { | ||
590 | name: "elm.event.titlebar"; | ||
591 | type: RECT; | ||
592 | description { | ||
593 | state: "default" 0.0; | ||
594 | rel1.to: "title_base"; | ||
595 | rel2.to: "title_base"; | ||
596 | color: 0 0 0 0; | ||
597 | } | ||
598 | } | ||
599 | part { | ||
600 | name: "elm.event.resize.t"; | ||
601 | type: RECT; | ||
602 | description { | ||
603 | state: "default" 0.0; | ||
604 | rel2 { | ||
605 | relative: 1.0 0.0; | ||
606 | offset: -1 3; | ||
607 | } | ||
608 | color: 0 0 0 0; | ||
609 | } | ||
610 | description { | ||
611 | state: "shaded" 0.0; | ||
612 | inherit: "default" 0.0; | ||
613 | visible: 0; | ||
614 | } | ||
615 | } | ||
616 | part { | ||
617 | name: "elm.event.resize.b"; | ||
618 | type: RECT; | ||
619 | description { | ||
620 | state: "default" 0.0; | ||
621 | rel1 { | ||
622 | relative: 0.0 1.0; | ||
623 | offset: 0 -4; | ||
624 | } | ||
625 | color: 0 0 0 0; | ||
626 | } | ||
627 | description { | ||
628 | state: "shaded" 0.0; | ||
629 | inherit: "default" 0.0; | ||
630 | visible: 0; | ||
631 | } | ||
632 | } | ||
633 | part { | ||
634 | name: "elm.event.resize.tl"; | ||
635 | type: RECT; | ||
636 | description { | ||
637 | state: "default" 0.0; | ||
638 | rel2 { | ||
639 | relative: 0.0 0.0; | ||
640 | offset: 15 15; | ||
641 | } | ||
642 | color: 0 0 0 0; | ||
643 | } | ||
644 | description { | ||
645 | state: "shaded" 0.0; | ||
646 | inherit: "default" 0.0; | ||
647 | visible: 0; | ||
648 | } | ||
649 | } | ||
650 | part { | ||
651 | name: "elm.event.resize.tr"; | ||
652 | type: RECT; | ||
653 | description { | ||
654 | state: "default" 0.0; | ||
655 | rel1 { | ||
656 | relative: 1.0 0.0; | ||
657 | offset: -16 0; | ||
658 | } | ||
659 | rel2 { | ||
660 | relative: 1.0 0.0; | ||
661 | offset: -1 15; | ||
662 | } | ||
663 | color: 0 0 0 0; | ||
664 | } | ||
665 | description { | ||
666 | state: "shaded" 0.0; | ||
667 | inherit: "default" 0.0; | ||
668 | visible: 0; | ||
669 | } | ||
670 | } | ||
671 | part { | ||
672 | name: "elm.event.resize.bl"; | ||
673 | type: RECT; | ||
674 | description { | ||
675 | state: "default" 0.0; | ||
676 | rel1 { | ||
677 | relative: 0.0 1.0; | ||
678 | offset: 0 -16; | ||
679 | } | ||
680 | rel2 { | ||
681 | relative: 0.0 1.0; | ||
682 | offset: 15 -1; | ||
683 | } | ||
684 | color: 0 0 0 0; | ||
685 | } | ||
686 | description { | ||
687 | state: "shaded" 0.0; | ||
688 | inherit: "default" 0.0; | ||
689 | visible: 0; | ||
690 | } | ||
691 | } | ||
692 | part { | ||
693 | name: "elm.event.resize.br"; | ||
694 | type: RECT; | ||
695 | description { | ||
696 | state: "default" 0.0; | ||
697 | rel1 { | ||
698 | relative: 1.0 1.0; | ||
699 | offset: -16 -16; | ||
700 | } | ||
701 | color: 0 0 0 0; | ||
702 | } | ||
703 | description { | ||
704 | state: "shaded" 0.0; | ||
705 | inherit: "default" 0.0; | ||
706 | visible: 0; | ||
707 | } | ||
708 | } | ||
709 | part { | ||
710 | name: "elm.event.icon"; | ||
711 | type: RECT; | ||
712 | description { | ||
713 | state: "default" 0.0; | ||
714 | rel1.to: "icon_area"; | ||
715 | rel2.to: "icon_area"; | ||
716 | color: 0 0 0 0; | ||
717 | } | ||
718 | } | ||
719 | part { | ||
720 | name: "elm.event.close"; | ||
721 | type: RECT; | ||
722 | description { | ||
723 | state: "default" 0.0; | ||
724 | rel1.to: "bt_close"; | ||
725 | rel2.to: "bt_close"; | ||
726 | color: 0 0 0 0; | ||
727 | } | ||
728 | } | ||
729 | part { | ||
730 | name: "elm.event.minimize"; | ||
731 | type: RECT; | ||
732 | description { | ||
733 | state: "default" 0.0; | ||
734 | rel1.to: "bt_min"; | ||
735 | rel2.to: "bt_min"; | ||
736 | color: 0 0 0 0; | ||
737 | } | ||
738 | } | ||
739 | part { | ||
740 | name: "elm.event.maximize"; | ||
741 | type: RECT; | ||
742 | description { | ||
743 | state: "default" 0.0; | ||
744 | rel1.to: "bt_max"; | ||
745 | rel2.to: "bt_max"; | ||
746 | color: 0 0 0 0; | ||
747 | } | ||
748 | } | ||
749 | } | ||
750 | programs { | ||
751 | program { | ||
752 | name: "focus_in"; | ||
753 | signal: "elm,action,focus"; | ||
754 | source: "elm"; | ||
755 | action: STATE_SET "focused" 0.0; | ||
756 | transition: LINEAR 0.2; | ||
757 | target: "title_back"; | ||
758 | target: "title2"; | ||
759 | target: "title_over"; | ||
760 | target: "buttons_foc"; | ||
761 | target: "buttons_unfoc"; | ||
762 | target: "elm.text.title"; | ||
763 | } | ||
764 | program { | ||
765 | name: "focus_out"; | ||
766 | signal: "elm,action,unfocus"; | ||
767 | source: "elm"; | ||
768 | action: STATE_SET "default" 0.0; | ||
769 | transition: LINEAR 0.2; | ||
770 | target: "title_back"; | ||
771 | target: "title2"; | ||
772 | target: "title_over"; | ||
773 | target: "buttons_foc"; | ||
774 | target: "buttons_unfoc"; | ||
775 | target: "elm.text.title"; | ||
776 | } | ||
777 | program { | ||
778 | name: "resize_b_on"; | ||
779 | signal: "mouse,in"; | ||
780 | source: "elm.event.resize.b"; | ||
781 | action: ACTION_STOP; | ||
782 | target: "resize_b_on2"; | ||
783 | target: "resize_b_on3"; | ||
784 | after: "resize_b_on2"; | ||
785 | } | ||
786 | program { | ||
787 | name: "resize_b_on2"; | ||
788 | action: STATE_SET "default" 0.0; | ||
789 | target: "resize_b"; | ||
790 | after: "resize_b_on3"; | ||
791 | } | ||
792 | program { | ||
793 | name: "resize_b_on3"; | ||
794 | action: STATE_SET "past" 0.0; | ||
795 | transition: LINEAR 0.5; | ||
796 | target: "resize_b"; | ||
797 | after: "resize_b_on2"; | ||
798 | } | ||
799 | program { | ||
800 | name: "resize_b_off"; | ||
801 | signal: "mouse,out"; | ||
802 | source: "elm.event.resize.b"; | ||
803 | action: ACTION_STOP; | ||
804 | target: "resize_b_on"; | ||
805 | target: "resize_b_on2"; | ||
806 | target: "resize_b_on3"; | ||
807 | } | ||
808 | program { | ||
809 | name: "bt_close_down"; | ||
810 | signal: "mouse,down,*"; | ||
811 | source: "elm.event.close"; | ||
812 | action: STATE_SET "active" 0.0; | ||
813 | target: "bt_close_unfoc"; | ||
814 | target: "bt_close_foc"; | ||
815 | } | ||
816 | program { | ||
817 | name: "bt_close_up"; | ||
818 | signal: "mouse,up,*"; | ||
819 | source: "elm.event.close"; | ||
820 | action: STATE_SET "default" 0.0; | ||
821 | target: "bt_close_unfoc"; | ||
822 | target: "bt_close_foc"; | ||
823 | } | ||
824 | program { | ||
825 | name: "bt_min_down"; | ||
826 | signal: "mouse,down,*"; | ||
827 | source: "elm.event.minimize"; | ||
828 | action: STATE_SET "active" 0.0; | ||
829 | target: "bt_min_unfoc"; | ||
830 | target: "bt_min_foc"; | ||
831 | } | ||
832 | program { | ||
833 | name: "bt_min_up"; | ||
834 | signal: "mouse,up,*"; | ||
835 | source: "elm.event.minimize"; | ||
836 | action: STATE_SET "default" 0.0; | ||
837 | target: "bt_min_unfoc"; | ||
838 | target: "bt_min_foc"; | ||
839 | } | ||
840 | program { | ||
841 | name: "bt_max_down"; | ||
842 | signal: "mouse,down,*"; | ||
843 | source: "elm.event.maximize"; | ||
844 | action: STATE_SET "active" 0.0; | ||
845 | target: "bt_max_unfoc"; | ||
846 | target: "bt_max_foc"; | ||
847 | } | ||
848 | program { | ||
849 | name: "bt_max_up"; | ||
850 | signal: "mouse,up,*"; | ||
851 | source: "elm.event.maximize"; | ||
852 | action: STATE_SET "default" 0.0; | ||
853 | target: "bt_max_unfoc"; | ||
854 | target: "bt_max_foc"; | ||
855 | } | ||
856 | program { | ||
857 | name: "move_start"; | ||
858 | signal: "mouse,down,1"; | ||
859 | source: "elm.event.titlebar"; | ||
860 | action: SIGNAL_EMIT "elm,action,move,start" "elm"; | ||
861 | } | ||
862 | program { | ||
863 | name: "minimize"; | ||
864 | signal: "mouse,clicked,1"; | ||
865 | source: "elm.event.minimize"; | ||
866 | action: SIGNAL_EMIT "elm,action,minimize" "elm"; | ||
867 | } | ||
868 | program { | ||
869 | name: "maximized"; | ||
870 | signal: "mouse,clicked,1"; | ||
871 | source: "elm.event.maximize"; | ||
872 | action: SIGNAL_EMIT "elm,action,maximize" "elm"; | ||
873 | } | ||
874 | program { | ||
875 | name: "close"; | ||
876 | signal: "mouse,clicked,1"; | ||
877 | source: "elm.event.close"; | ||
878 | action: SIGNAL_EMIT "elm,action,close" "elm"; | ||
879 | } | ||
880 | program { | ||
881 | name: "resize_t_down"; | ||
882 | signal: "mouse,down,1"; | ||
883 | source: "elm.event.resize.t"; | ||
884 | action: SIGNAL_EMIT "elm,action,resize,start" "elm.event.resize.t"; | ||
885 | } | ||
886 | program { | ||
887 | name: "resize_b_down"; | ||
888 | signal: "mouse,down,1"; | ||
889 | source: "elm.event.resize.b"; | ||
890 | action: SIGNAL_EMIT "elm,action,resize,start" "elm.event.resize.b"; | ||
891 | } | ||
892 | program { | ||
893 | name: "resize_tl_down"; | ||
894 | signal: "mouse,down,1"; | ||
895 | source: "elm.event.resize.tl"; | ||
896 | action: SIGNAL_EMIT "elm,action,resize,start" "elm.event.resize.tl"; | ||
897 | } | ||
898 | program { | ||
899 | name: "resize_tr_down"; | ||
900 | signal: "mouse,down,1"; | ||
901 | source: "elm.event.resize.tr"; | ||
902 | action: SIGNAL_EMIT "elm,action,resize,start" "elm.event.resize.tr"; | ||
903 | } | ||
904 | program { | ||
905 | name: "resize_bl_down"; | ||
906 | signal: "mouse,down,1"; | ||
907 | source: "elm.event.resize.bl"; | ||
908 | action: SIGNAL_EMIT "elm,action,resize,start" "elm.event.resize.bl"; | ||
909 | } | ||
910 | program { | ||
911 | name: "resize_br_down"; | ||
912 | signal: "mouse,down,1"; | ||
913 | source: "elm.event.resize.br"; | ||
914 | action: SIGNAL_EMIT "elm,action,resize,start" "elm.event.resize.br"; | ||
915 | } | ||
916 | } | ||
917 | } | ||
diff --git a/libraries/elementary/data/themes/widgets/bubble.edc b/libraries/elementary/data/themes/widgets/bubble.edc new file mode 100644 index 0000000..8348b07 --- /dev/null +++ b/libraries/elementary/data/themes/widgets/bubble.edc | |||
@@ -0,0 +1,734 @@ | |||
1 | group { name: "elm/bubble/top_left/default"; | ||
2 | alias: "elm/bubble/base/default"; | ||
3 | images { | ||
4 | image: "bubble_3.png" COMP; | ||
5 | image: "bubble_4.png" COMP; | ||
6 | image: "bubble_shine3.png" COMP; | ||
7 | image: "bubble_shine4.png" COMP; | ||
8 | } | ||
9 | parts { | ||
10 | part { name: "event"; | ||
11 | type: RECT; | ||
12 | description { | ||
13 | state: "default" 0.0; | ||
14 | color: 0 0 0 0; | ||
15 | } | ||
16 | } | ||
17 | part { name: "elm.swallow.icon"; | ||
18 | type: SWALLOW; | ||
19 | description { state: "default" 0.0; | ||
20 | fixed: 1 1; | ||
21 | visible: 0; | ||
22 | align: 0.0 0.0; | ||
23 | aspect: 1.0 1.0; | ||
24 | aspect_preference: VERTICAL; | ||
25 | rel1 { | ||
26 | relative: 0.0 0.0; | ||
27 | offset: 4 4; | ||
28 | } | ||
29 | rel2 { | ||
30 | to_y: "elm.text"; | ||
31 | relative: 0.0 1.0; | ||
32 | offset: 4 -1; | ||
33 | } | ||
34 | } | ||
35 | description { state: "visible" 0.0; | ||
36 | inherit: "default" 0.0; | ||
37 | visible: 1; | ||
38 | } | ||
39 | } | ||
40 | part { name: "elm.text"; | ||
41 | type: TEXT; | ||
42 | mouse_events: 0; | ||
43 | scale: 1; | ||
44 | description { state: "default" 0.0; | ||
45 | align: 0.0 0.0; | ||
46 | fixed: 0 1; | ||
47 | rel1 { | ||
48 | to_x: "elm.swallow.icon"; | ||
49 | relative: 1.0 0.0; | ||
50 | offset: 4 4; | ||
51 | } | ||
52 | rel2 { | ||
53 | to_x: "elm.info"; | ||
54 | relative: 0.0 0.0; | ||
55 | offset: -5 4; | ||
56 | } | ||
57 | color: 0 0 0 255; | ||
58 | text { | ||
59 | font: "Sans:style=Bold,Edje-Vera-Bold"; | ||
60 | size: 10; | ||
61 | min: 0 1; | ||
62 | max: 0 1; | ||
63 | align: 0.0 0.0; | ||
64 | } | ||
65 | } | ||
66 | } | ||
67 | part { name: "elm.info"; | ||
68 | type: TEXT; | ||
69 | mouse_events: 0; | ||
70 | scale: 1; | ||
71 | description { state: "default" 0.0; | ||
72 | align: 1.0 0.0; | ||
73 | fixed: 1 1; | ||
74 | rel1 { | ||
75 | relative: 1.0 0.0; | ||
76 | offset: -5 4; | ||
77 | } | ||
78 | rel2 { | ||
79 | relative: 1.0 0.0; | ||
80 | offset: -5 4; | ||
81 | } | ||
82 | color: 0 0 0 64; | ||
83 | text { | ||
84 | font: "Sans:style=Bold,Edje-Vera-Bold"; | ||
85 | size: 10; | ||
86 | min: 1 1; | ||
87 | max: 1 1; | ||
88 | align: 1.0 0.0; | ||
89 | } | ||
90 | } | ||
91 | } | ||
92 | part { name: "base0"; | ||
93 | mouse_events: 0; | ||
94 | description { state: "default" 0.0; | ||
95 | rel1 { | ||
96 | to_y: "elm.swallow.icon"; | ||
97 | relative: 0.0 1.0; | ||
98 | offset: 0 0; | ||
99 | } | ||
100 | image { | ||
101 | normal: "bubble_3.png"; | ||
102 | border: 36 11 18 9; | ||
103 | } | ||
104 | image.middle: SOLID; | ||
105 | fill.smooth: 0; | ||
106 | } | ||
107 | description { state: "rtl" 0.0; | ||
108 | inherit: "default" 0.0; | ||
109 | image { | ||
110 | normal: "bubble_4.png"; | ||
111 | border: 11 36 18 9; | ||
112 | } | ||
113 | } | ||
114 | } | ||
115 | part { name: "elm.swallow.content"; | ||
116 | type: SWALLOW; | ||
117 | description { state: "default" 0.0; | ||
118 | rel1 { | ||
119 | to: "base0"; | ||
120 | offset: 9 16; | ||
121 | } | ||
122 | rel2 { | ||
123 | to: "base0"; | ||
124 | offset: -10 -9; | ||
125 | } | ||
126 | } | ||
127 | } | ||
128 | part { name: "shine"; | ||
129 | mouse_events: 0; | ||
130 | description { state: "default" 0.0; | ||
131 | rel1 { | ||
132 | to: "base0"; | ||
133 | offset: 5 4; | ||
134 | } | ||
135 | rel2 { | ||
136 | to: "base0"; | ||
137 | relative: 1.0 0.5; | ||
138 | offset: -6 7; | ||
139 | } | ||
140 | image { | ||
141 | normal: "bubble_shine3.png"; | ||
142 | border: 36 5 14 0; | ||
143 | } | ||
144 | fill.smooth: 0; | ||
145 | } | ||
146 | description { state: "rtl" 0.0; | ||
147 | inherit: "default" 0.0; | ||
148 | image { | ||
149 | normal: "bubble_shine4.png"; | ||
150 | border: 5 36 14 0; | ||
151 | } | ||
152 | } | ||
153 | } | ||
154 | } | ||
155 | programs { | ||
156 | program { | ||
157 | name: "icon_show"; | ||
158 | signal: "elm,state,icon,visible"; | ||
159 | source: "elm"; | ||
160 | action: STATE_SET "visible" 0.0; | ||
161 | target: "elm.swallow.icon"; | ||
162 | } | ||
163 | program { | ||
164 | name: "icon_hide"; | ||
165 | signal: "elm,state,icon,hidden"; | ||
166 | source: "elm"; | ||
167 | action: STATE_SET "default" 0.0; | ||
168 | target: "elm.swallow.icon"; | ||
169 | } | ||
170 | program { name: "to_rtl"; | ||
171 | signal: "edje,state,rtl"; | ||
172 | source: "edje"; | ||
173 | action: STATE_SET "rtl" 0.0; | ||
174 | target: "base0"; | ||
175 | target: "shine"; | ||
176 | } | ||
177 | program { name: "to_ltr"; | ||
178 | signal: "edje,state,ltr"; | ||
179 | source: "edje"; | ||
180 | action: STATE_SET "default" 0.0; | ||
181 | target: "base0"; | ||
182 | target: "shine"; | ||
183 | } | ||
184 | } | ||
185 | } | ||
186 | |||
187 | group { name: "elm/bubble/top_right/default"; | ||
188 | images { | ||
189 | image: "bubble_3.png" COMP; | ||
190 | image: "bubble_4.png" COMP; | ||
191 | image: "bubble_shine3.png" COMP; | ||
192 | image: "bubble_shine4.png" COMP; | ||
193 | } | ||
194 | parts { | ||
195 | part { name: "event"; | ||
196 | type: RECT; | ||
197 | description { | ||
198 | state: "default" 0.0; | ||
199 | color: 0 0 0 0; | ||
200 | } | ||
201 | } | ||
202 | part { name: "elm.swallow.icon"; | ||
203 | type: SWALLOW; | ||
204 | description { state: "default" 0.0; | ||
205 | fixed: 1 1; | ||
206 | visible: 0; | ||
207 | align: 1.0 0.0; | ||
208 | aspect: 1.0 1.0; | ||
209 | aspect_preference: VERTICAL; | ||
210 | rel1 { | ||
211 | relative: 1.0 0.0; | ||
212 | offset: -5 4; | ||
213 | } | ||
214 | rel2 { | ||
215 | to_y: "elm.text"; | ||
216 | relative: 1.0 1.0; | ||
217 | offset: -5 -1; | ||
218 | } | ||
219 | } | ||
220 | description { state: "visible" 0.0; | ||
221 | inherit: "default" 0.0; | ||
222 | visible: 1; | ||
223 | } | ||
224 | } | ||
225 | part { name: "elm.text"; | ||
226 | type: TEXT; | ||
227 | mouse_events: 0; | ||
228 | scale: 1; | ||
229 | description { state: "default" 0.0; | ||
230 | align: 0.0 0.0; | ||
231 | fixed: 0 1; | ||
232 | rel1 { | ||
233 | relative: 0.0 0.0; | ||
234 | offset: 4 4; | ||
235 | } | ||
236 | rel2 { | ||
237 | to_x: "elm.info"; | ||
238 | relative: 0.0 0.0; | ||
239 | offset: -5 4; | ||
240 | } | ||
241 | color: 0 0 0 255; | ||
242 | text { | ||
243 | font: "Sans:style=Bold,Edje-Vera-Bold"; | ||
244 | size: 10; | ||
245 | min: 0 1; | ||
246 | max: 0 1; | ||
247 | align: 0.0 0.0; | ||
248 | } | ||
249 | } | ||
250 | } | ||
251 | part { name: "elm.info"; | ||
252 | type: TEXT; | ||
253 | mouse_events: 0; | ||
254 | scale: 1; | ||
255 | description { state: "default" 0.0; | ||
256 | align: 1.0 0.0; | ||
257 | fixed: 1 1; | ||
258 | rel1 { | ||
259 | relative: 1.0 0.0; | ||
260 | offset: -5 4; | ||
261 | } | ||
262 | rel2 { | ||
263 | to_x: "elm.swallow.icon"; | ||
264 | relative: 0.0 0.0; | ||
265 | offset: -5 4; | ||
266 | } | ||
267 | color: 0 0 0 64; | ||
268 | text { | ||
269 | font: "Sans:style=Bold,Edje-Vera-Bold"; | ||
270 | size: 10; | ||
271 | min: 1 1; | ||
272 | max: 1 1; | ||
273 | align: 1.0 0.0; | ||
274 | } | ||
275 | } | ||
276 | } | ||
277 | part { name: "base0"; | ||
278 | mouse_events: 0; | ||
279 | description { state: "default" 0.0; | ||
280 | rel1 { | ||
281 | to_y: "elm.swallow.icon"; | ||
282 | relative: 0.0 1.0; | ||
283 | offset: 0 0; | ||
284 | } | ||
285 | image { | ||
286 | normal: "bubble_4.png"; | ||
287 | border: 11 36 18 9; | ||
288 | } | ||
289 | image.middle: SOLID; | ||
290 | fill.smooth: 0; | ||
291 | } | ||
292 | description { state: "rtl" 0.0; | ||
293 | inherit: "default" 0.0; | ||
294 | image { | ||
295 | normal: "bubble_3.png"; | ||
296 | border: 36 11 18 9; | ||
297 | } | ||
298 | } | ||
299 | } | ||
300 | part { name: "elm.swallow.content"; | ||
301 | type: SWALLOW; | ||
302 | description { state: "default" 0.0; | ||
303 | rel1 { | ||
304 | to: "base0"; | ||
305 | offset: 9 16; | ||
306 | } | ||
307 | rel2 { | ||
308 | to: "base0"; | ||
309 | offset: -10 -9; | ||
310 | } | ||
311 | } | ||
312 | } | ||
313 | part { name: "shine"; | ||
314 | mouse_events: 0; | ||
315 | description { state: "default" 0.0; | ||
316 | rel1 { | ||
317 | to: "base0"; | ||
318 | offset: 5 4; | ||
319 | } | ||
320 | rel2 { | ||
321 | to: "base0"; | ||
322 | relative: 1.0 0.5; | ||
323 | offset: -6 7; | ||
324 | } | ||
325 | image { | ||
326 | normal: "bubble_shine4.png"; | ||
327 | border: 5 36 14 0; | ||
328 | } | ||
329 | fill.smooth: 0; | ||
330 | } | ||
331 | description { state: "rtl" 0.0; | ||
332 | inherit: "default" 0.0; | ||
333 | image { | ||
334 | normal: "bubble_shine3.png"; | ||
335 | border: 36 5 14 0; | ||
336 | } | ||
337 | } | ||
338 | } | ||
339 | } | ||
340 | programs { | ||
341 | program { | ||
342 | name: "icon_show"; | ||
343 | signal: "elm,state,icon,visible"; | ||
344 | source: "elm"; | ||
345 | action: STATE_SET "visible" 0.0; | ||
346 | target: "elm.swallow.icon"; | ||
347 | } | ||
348 | program { | ||
349 | name: "icon_hide"; | ||
350 | signal: "elm,state,icon,hidden"; | ||
351 | source: "elm"; | ||
352 | action: STATE_SET "default" 0.0; | ||
353 | target: "elm.swallow.icon"; | ||
354 | } | ||
355 | program { name: "to_rtl"; | ||
356 | signal: "edje,state,rtl"; | ||
357 | source: "edje"; | ||
358 | action: STATE_SET "rtl" 0.0; | ||
359 | target: "base0"; | ||
360 | target: "shine"; | ||
361 | } | ||
362 | program { name: "to_ltr"; | ||
363 | signal: "edje,state,ltr"; | ||
364 | source: "edje"; | ||
365 | action: STATE_SET "default" 0.0; | ||
366 | target: "base0"; | ||
367 | target: "shine"; | ||
368 | } | ||
369 | } | ||
370 | } | ||
371 | |||
372 | group { name: "elm/bubble/bottom_left/default"; | ||
373 | images { | ||
374 | image: "bubble_1.png" COMP; | ||
375 | image: "bubble_2.png" COMP; | ||
376 | image: "bubble_shine.png" COMP; | ||
377 | } | ||
378 | parts { | ||
379 | part { name: "event"; | ||
380 | type: RECT; | ||
381 | description { | ||
382 | state: "default" 0.0; | ||
383 | color: 0 0 0 0; | ||
384 | } | ||
385 | } | ||
386 | part { name: "elm.swallow.icon"; | ||
387 | type: SWALLOW; | ||
388 | description { state: "default" 0.0; | ||
389 | fixed: 1 1; | ||
390 | visible: 0; | ||
391 | align: 0.0 1.0; | ||
392 | aspect: 1.0 1.0; | ||
393 | aspect_preference: VERTICAL; | ||
394 | rel1 { | ||
395 | to_y: "elm.text"; | ||
396 | relative: 0.0 0.0; | ||
397 | offset: 4 0; | ||
398 | } | ||
399 | rel2 { | ||
400 | relative: 0.0 1.0; | ||
401 | offset: 4 -5; | ||
402 | } | ||
403 | } | ||
404 | description { state: "visible" 0.0; | ||
405 | inherit: "default" 0.0; | ||
406 | visible: 1; | ||
407 | } | ||
408 | } | ||
409 | part { name: "elm.text"; | ||
410 | type: TEXT; | ||
411 | mouse_events: 0; | ||
412 | scale: 1; | ||
413 | description { state: "default" 0.0; | ||
414 | align: 0.0 1.0; | ||
415 | fixed: 0 1; | ||
416 | rel1 { | ||
417 | to_x: "elm.swallow.icon"; | ||
418 | relative: 1.0 1.0; | ||
419 | offset: 4 -5; | ||
420 | } | ||
421 | rel2 { | ||
422 | to_x: "elm.info"; | ||
423 | relative: 0.0 1.0; | ||
424 | offset: -5 -5; | ||
425 | } | ||
426 | color: 0 0 0 255; | ||
427 | text { | ||
428 | font: "Sans:style=Bold,Edje-Vera-Bold"; | ||
429 | size: 10; | ||
430 | min: 0 1; | ||
431 | max: 0 1; | ||
432 | align: 0.0 1.0; | ||
433 | } | ||
434 | } | ||
435 | } | ||
436 | part { name: "elm.info"; | ||
437 | type: TEXT; | ||
438 | mouse_events: 0; | ||
439 | scale: 1; | ||
440 | description { state: "default" 0.0; | ||
441 | align: 1.0 1.0; | ||
442 | fixed: 1 1; | ||
443 | rel1 { | ||
444 | relative: 1.0 1.0; | ||
445 | offset: -5 -5; | ||
446 | } | ||
447 | rel2 { | ||
448 | relative: 1.0 1.0; | ||
449 | offset: -5 -5; | ||
450 | } | ||
451 | color: 0 0 0 64; | ||
452 | text { | ||
453 | font: "Sans:style=Bold,Edje-Vera-Bold"; | ||
454 | size: 10; | ||
455 | min: 1 1; | ||
456 | max: 1 1; | ||
457 | align: 1.0 1.0; | ||
458 | } | ||
459 | } | ||
460 | } | ||
461 | part { name: "base0"; | ||
462 | mouse_events: 0; | ||
463 | description { state: "default" 0.0; | ||
464 | rel2 { | ||
465 | to_y: "elm.swallow.icon"; | ||
466 | relative: 1.0 0.0; | ||
467 | offset: -1 -1; | ||
468 | } | ||
469 | image { | ||
470 | normal: "bubble_1.png"; | ||
471 | border: 36 11 10 19; | ||
472 | } | ||
473 | image.middle: SOLID; | ||
474 | fill.smooth: 0; | ||
475 | } | ||
476 | description { state: "rtl" 0.0; | ||
477 | inherit: "default" 0.0; | ||
478 | image { | ||
479 | normal: "bubble_2.png"; | ||
480 | border: 11 36 10 19; | ||
481 | } | ||
482 | } | ||
483 | } | ||
484 | part { name: "elm.swallow.content"; | ||
485 | type: SWALLOW; | ||
486 | description { state: "default" 0.0; | ||
487 | rel1 { | ||
488 | to: "base0"; | ||
489 | offset: 9 8; | ||
490 | } | ||
491 | rel2 { | ||
492 | to: "base0"; | ||
493 | offset: -10 -17; | ||
494 | } | ||
495 | } | ||
496 | } | ||
497 | part { name: "shine"; | ||
498 | mouse_events: 0; | ||
499 | description { state: "default" 0.0; | ||
500 | rel1 { | ||
501 | to: "base0"; | ||
502 | offset: 5 4; | ||
503 | } | ||
504 | rel2 { | ||
505 | to: "base0"; | ||
506 | relative: 1.0 0.5; | ||
507 | offset: -6 -16; | ||
508 | } | ||
509 | image { | ||
510 | normal: "bubble_shine.png"; | ||
511 | border: 5 5 5 0; | ||
512 | } | ||
513 | fill.smooth: 0; | ||
514 | } | ||
515 | description { state: "rtl" 0.0; | ||
516 | inherit: "default" 0.0; | ||
517 | image { | ||
518 | normal: "bubble_shine4.png"; | ||
519 | border: 5 36 14 0; | ||
520 | } | ||
521 | } | ||
522 | } | ||
523 | } | ||
524 | programs { | ||
525 | program { | ||
526 | name: "icon_show"; | ||
527 | signal: "elm,state,icon,visible"; | ||
528 | source: "elm"; | ||
529 | action: STATE_SET "visible" 0.0; | ||
530 | target: "elm.swallow.icon"; | ||
531 | } | ||
532 | program { | ||
533 | name: "icon_hide"; | ||
534 | signal: "elm,state,icon,hidden"; | ||
535 | source: "elm"; | ||
536 | action: STATE_SET "default" 0.0; | ||
537 | target: "elm.swallow.icon"; | ||
538 | } | ||
539 | program { name: "to_rtl"; | ||
540 | signal: "edje,state,rtl"; | ||
541 | source: "edje"; | ||
542 | action: STATE_SET "rtl" 0.0; | ||
543 | target: "base0"; | ||
544 | } | ||
545 | program { name: "to_ltr"; | ||
546 | signal: "edje,state,ltr"; | ||
547 | source: "edje"; | ||
548 | action: STATE_SET "default" 0.0; | ||
549 | target: "base0"; | ||
550 | } | ||
551 | } | ||
552 | } | ||
553 | |||
554 | group { name: "elm/bubble/bottom_right/default"; | ||
555 | images { | ||
556 | image: "bubble_1.png" COMP; | ||
557 | image: "bubble_2.png" COMP; | ||
558 | image: "bubble_shine.png" COMP; | ||
559 | } | ||
560 | parts { | ||
561 | part { name: "event"; | ||
562 | type: RECT; | ||
563 | description { | ||
564 | state: "default" 0.0; | ||
565 | color: 0 0 0 0; | ||
566 | } | ||
567 | } | ||
568 | part { name: "elm.swallow.icon"; | ||
569 | type: SWALLOW; | ||
570 | description { state: "default" 0.0; | ||
571 | fixed: 1 1; | ||
572 | visible: 0.0; | ||
573 | align: 1.0 1.0; | ||
574 | aspect: 1.0 1.0; | ||
575 | aspect_preference: VERTICAL; | ||
576 | rel1 { | ||
577 | to_y: "elm.text"; | ||
578 | relative: 1.0 0.0; | ||
579 | offset: -5 0; | ||
580 | } | ||
581 | rel2 { | ||
582 | relative: 1.0 1.0; | ||
583 | offset: -5 -5; | ||
584 | } | ||
585 | } | ||
586 | description { state: "visible" 0.0; | ||
587 | inherit: "default" 0.0; | ||
588 | visible: 1; | ||
589 | } | ||
590 | } | ||
591 | part { name: "elm.text"; | ||
592 | type: TEXT; | ||
593 | mouse_events: 0; | ||
594 | scale: 1; | ||
595 | description { state: "default" 0.0; | ||
596 | align: 0.0 1.0; | ||
597 | fixed: 0 1; | ||
598 | rel1 { | ||
599 | relative: 0.0 1.0; | ||
600 | offset: 4 -5; | ||
601 | } | ||
602 | rel2 { | ||
603 | to_x: "elm.info"; | ||
604 | relative: 0.0 1.0; | ||
605 | offset: -5 -5; | ||
606 | } | ||
607 | color: 0 0 0 255; | ||
608 | text { | ||
609 | font: "Sans:style=Bold,Edje-Vera-Bold"; | ||
610 | size: 10; | ||
611 | min: 0 1; | ||
612 | max: 0 1; | ||
613 | align: 0.0 1.0; | ||
614 | } | ||
615 | } | ||
616 | } | ||
617 | part { name: "elm.info"; | ||
618 | type: TEXT; | ||
619 | mouse_events: 0; | ||
620 | scale: 1; | ||
621 | description { state: "default" 0.0; | ||
622 | align: 1.0 1.0; | ||
623 | fixed: 1 1; | ||
624 | rel1 { | ||
625 | relative: 1.0 1.0; | ||
626 | offset: -5 -5; | ||
627 | } | ||
628 | rel2 { | ||
629 | to_x: "elm.swallow.icon"; | ||
630 | relative: 0.0 1.0; | ||
631 | offset: -5 -5; | ||
632 | } | ||
633 | color: 0 0 0 64; | ||
634 | text { | ||
635 | font: "Sans:style=Bold,Edje-Vera-Bold"; | ||
636 | size: 10; | ||
637 | min: 1 1; | ||
638 | max: 1 1; | ||
639 | align: 1.0 1.0; | ||
640 | } | ||
641 | } | ||
642 | } | ||
643 | part { name: "base0"; | ||
644 | mouse_events: 0; | ||
645 | description { state: "default" 0.0; | ||
646 | rel2 { | ||
647 | to_y: "elm.swallow.icon"; | ||
648 | relative: 1.0 0.0; | ||
649 | offset: -1 -1; | ||
650 | } | ||
651 | image { | ||
652 | normal: "bubble_2.png"; | ||
653 | border: 11 36 10 19; | ||
654 | } | ||
655 | image.middle: SOLID; | ||
656 | fill.smooth: 0; | ||
657 | } | ||
658 | description { state: "rtl" 0.0; | ||
659 | inherit: "default" 0.0; | ||
660 | image { | ||
661 | normal: "bubble_1.png"; | ||
662 | border: 36 11 10 19; | ||
663 | } | ||
664 | } | ||
665 | } | ||
666 | part { name: "elm.swallow.content"; | ||
667 | type: SWALLOW; | ||
668 | description { state: "default" 0.0; | ||
669 | rel1 { | ||
670 | to: "base0"; | ||
671 | offset: 9 8; | ||
672 | } | ||
673 | rel2 { | ||
674 | to: "base0"; | ||
675 | offset: -10 -17; | ||
676 | } | ||
677 | } | ||
678 | } | ||
679 | part { name: "shine"; | ||
680 | mouse_events: 0; | ||
681 | description { state: "default" 0.0; | ||
682 | rel1 { | ||
683 | to: "base0"; | ||
684 | offset: 5 4; | ||
685 | } | ||
686 | rel2 { | ||
687 | to: "base0"; | ||
688 | relative: 1.0 0.5; | ||
689 | offset: -6 -16; | ||
690 | } | ||
691 | image { | ||
692 | normal: "bubble_shine.png"; | ||
693 | border: 5 5 5 0; | ||
694 | } | ||
695 | fill.smooth: 0; | ||
696 | } | ||
697 | description { state: "rtl" 0.0; | ||
698 | inherit: "default" 0.0; | ||
699 | image { | ||
700 | normal: "bubble_shine3.png"; | ||
701 | border: 36 5 14 0; | ||
702 | } | ||
703 | } | ||
704 | } | ||
705 | } | ||
706 | programs { | ||
707 | program { | ||
708 | name: "icon_show"; | ||
709 | signal: "elm,state,icon,visible"; | ||
710 | source: "elm"; | ||
711 | action: STATE_SET "visible" 0.0; | ||
712 | target: "elm.swallow.icon"; | ||
713 | } | ||
714 | program { | ||
715 | name: "icon_hide"; | ||
716 | signal: "elm,state,icon,hidden"; | ||
717 | source: "elm"; | ||
718 | action: STATE_SET "default" 0.0; | ||
719 | target: "elm.swallow.icon"; | ||
720 | } | ||
721 | program { name: "to_rtl"; | ||
722 | signal: "edje,state,rtl"; | ||
723 | source: "edje"; | ||
724 | action: STATE_SET "rtl" 0.0; | ||
725 | target: "base0"; | ||
726 | } | ||
727 | program { name: "to_ltr"; | ||
728 | signal: "edje,state,ltr"; | ||
729 | source: "edje"; | ||
730 | action: STATE_SET "default" 0.0; | ||
731 | target: "base0"; | ||
732 | } | ||
733 | } | ||
734 | } | ||
diff --git a/libraries/elementary/data/themes/widgets/button.edc b/libraries/elementary/data/themes/widgets/button.edc new file mode 100644 index 0000000..11dcd42 --- /dev/null +++ b/libraries/elementary/data/themes/widgets/button.edc | |||
@@ -0,0 +1,1666 @@ | |||
1 | group { name: "elm/button/base/default"; | ||
2 | alias: "elm/button/base/popup_button/default"; | ||
3 | images { | ||
4 | image: "bt_base1.png" COMP; | ||
5 | image: "bt_base2.png" COMP; | ||
6 | image: "bt_hilight.png" COMP; | ||
7 | image: "bt_shine.png" COMP; | ||
8 | image: "bt_glow.png" COMP; | ||
9 | image: "bt_dis_base.png" COMP; | ||
10 | image: "bt_dis_hilight.png" COMP; | ||
11 | } | ||
12 | parts { | ||
13 | part { name: "button_image"; | ||
14 | mouse_events: 1; | ||
15 | description { state: "default" 0.0; | ||
16 | min: 15 15; | ||
17 | image { | ||
18 | normal: "bt_base2.png"; | ||
19 | border: 7 7 7 7; | ||
20 | } | ||
21 | image.middle: SOLID; | ||
22 | } | ||
23 | description { state: "clicked" 0.0; | ||
24 | inherit: "default" 0.0; | ||
25 | image.normal: "bt_base1.png"; | ||
26 | } | ||
27 | description { state: "disabled" 0.0; | ||
28 | inherit: "default" 0.0; | ||
29 | image { | ||
30 | normal: "bt_dis_base.png"; | ||
31 | border: 4 4 4 4; | ||
32 | } | ||
33 | } | ||
34 | } | ||
35 | part { name: "elm.swallow.content"; | ||
36 | type: SWALLOW; | ||
37 | description { state: "default" 0.0; | ||
38 | fixed: 1 0; | ||
39 | visible: 0; | ||
40 | align: 0.0 0.5; | ||
41 | rel1.offset: 4 4; | ||
42 | rel2.offset: 3 -5; | ||
43 | rel2.relative: 0.0 1.0; | ||
44 | } | ||
45 | description { state: "visible" 0.0; | ||
46 | inherit: "default" 0.0; | ||
47 | fixed: 1 0; | ||
48 | visible: 1; | ||
49 | aspect: 1.0 1.0; | ||
50 | // aspect_preference: VERTICAL; | ||
51 | rel2.offset: 4 -5; | ||
52 | } | ||
53 | description { state: "icononly" 0.0; | ||
54 | inherit: "default" 0.0; | ||
55 | fixed: 0 0; | ||
56 | visible: 1; | ||
57 | align: 0.5 0.5; | ||
58 | // aspect: 1.0 1.0; | ||
59 | rel2.offset: -5 -5; | ||
60 | rel2.relative: 1.0 1.0; | ||
61 | // aspect_preference: VERTICAL; | ||
62 | } | ||
63 | } | ||
64 | part { | ||
65 | name: "elm.text"; | ||
66 | type: TEXT; | ||
67 | effect: SOFT_SHADOW; | ||
68 | mouse_events: 0; | ||
69 | scale: 1; | ||
70 | description { state: "default" 0.0; | ||
71 | visible: 0; | ||
72 | rel1.to_x: "elm.swallow.content"; | ||
73 | rel1.relative: 1.0 0.0; | ||
74 | rel1.offset: 0 4; | ||
75 | rel2.offset: -5 -5; | ||
76 | color: 224 224 224 255; | ||
77 | color3: 0 0 0 64; | ||
78 | text { | ||
79 | font: "Sans,Edje-Vera"; | ||
80 | size: 10; | ||
81 | min: 0 0; | ||
82 | align: 0.5 0.5; | ||
83 | text_class: "button"; | ||
84 | } | ||
85 | } | ||
86 | description { state: "visible" 0.0; | ||
87 | inherit: "default" 0.0; | ||
88 | visible: 1; | ||
89 | text.min: 1 1; | ||
90 | } | ||
91 | description { state: "disabled" 0.0; | ||
92 | inherit: "default" 0.0; | ||
93 | } | ||
94 | description { state: "disabled_visible" 0.0; | ||
95 | inherit: "default" 0.0; | ||
96 | color: 0 0 0 128; | ||
97 | color3: 0 0 0 0; | ||
98 | visible: 1; | ||
99 | text.min: 1 1; | ||
100 | } | ||
101 | } | ||
102 | part { name: "over1"; | ||
103 | mouse_events: 0; | ||
104 | description { state: "default" 0.0; | ||
105 | rel2.relative: 1.0 0.5; | ||
106 | image { | ||
107 | normal: "bt_hilight.png"; | ||
108 | border: 7 7 7 0; | ||
109 | } | ||
110 | } | ||
111 | description { state: "disabled" 0.0; | ||
112 | inherit: "default" 0.0; | ||
113 | image { | ||
114 | normal: "bt_dis_hilight.png"; | ||
115 | border: 4 4 4 0; | ||
116 | } | ||
117 | } | ||
118 | } | ||
119 | part { name: "over2"; | ||
120 | mouse_events: 1; | ||
121 | repeat_events: 1; | ||
122 | ignore_flags: ON_HOLD; | ||
123 | description { state: "default" 0.0; | ||
124 | image { | ||
125 | normal: "bt_shine.png"; | ||
126 | border: 7 7 7 7; | ||
127 | } | ||
128 | } | ||
129 | description { state: "disabled" 0.0; | ||
130 | inherit: "default" 0.0; | ||
131 | visible: 0; | ||
132 | } | ||
133 | } | ||
134 | part { name: "over3"; | ||
135 | mouse_events: 1; | ||
136 | repeat_events: 1; | ||
137 | description { state: "default" 0.0; | ||
138 | color: 255 255 255 0; | ||
139 | image { | ||
140 | normal: "bt_glow.png"; | ||
141 | border: 12 12 12 12; | ||
142 | } | ||
143 | fill.smooth : 0; | ||
144 | } | ||
145 | description { state: "clicked" 0.0; | ||
146 | inherit: "default" 0.0; | ||
147 | color: 255 255 255 255; | ||
148 | } | ||
149 | } | ||
150 | part { name: "disabler"; | ||
151 | type: RECT; | ||
152 | description { state: "default" 0.0; | ||
153 | color: 0 0 0 0; | ||
154 | visible: 0; | ||
155 | } | ||
156 | description { state: "disabled" 0.0; | ||
157 | inherit: "default" 0.0; | ||
158 | visible: 1; | ||
159 | } | ||
160 | } | ||
161 | } | ||
162 | programs { | ||
163 | program { | ||
164 | name: "button_click"; | ||
165 | signal: "mouse,down,1"; | ||
166 | source: "over2"; | ||
167 | action: SIGNAL_EMIT "elm,action,press" ""; | ||
168 | after: "button_click_anim"; | ||
169 | } | ||
170 | program { | ||
171 | name: "button_click_anim"; | ||
172 | action: STATE_SET "clicked" 0.0; | ||
173 | target: "button_image"; | ||
174 | } | ||
175 | program { | ||
176 | name: "button_unclick"; | ||
177 | signal: "mouse,up,1"; | ||
178 | source: "over3"; | ||
179 | action: SIGNAL_EMIT "elm,action,unpress" ""; | ||
180 | after: "button_unclick_anim"; | ||
181 | } | ||
182 | program { | ||
183 | name: "button_pressed_anim"; | ||
184 | signal: "elm,anim,activate"; | ||
185 | source: "elm"; | ||
186 | action: STATE_SET "clicked" 0.0; | ||
187 | target: "button_image"; | ||
188 | target: "over3"; | ||
189 | after: "button_unpressed_anim"; | ||
190 | } | ||
191 | program { | ||
192 | name: "button_unpressed_anim"; | ||
193 | action: STATE_SET "default" 0.0; | ||
194 | transition: DECELERATE 0.5; | ||
195 | target: "button_image"; | ||
196 | target: "over3"; | ||
197 | } | ||
198 | program { | ||
199 | name: "button_unclick_anim"; | ||
200 | action: STATE_SET "default" 0.0; | ||
201 | target: "button_image"; | ||
202 | } | ||
203 | program { | ||
204 | name: "button_click2"; | ||
205 | signal: "mouse,down,1"; | ||
206 | source: "over3"; | ||
207 | action: STATE_SET "clicked" 0.0; | ||
208 | target: "over3"; | ||
209 | } | ||
210 | program { | ||
211 | name: "button_unclick2"; | ||
212 | signal: "mouse,up,1"; | ||
213 | source: "over3"; | ||
214 | action: STATE_SET "default" 0.0; | ||
215 | transition: DECELERATE 0.5; | ||
216 | target: "over3"; | ||
217 | } | ||
218 | program { | ||
219 | name: "button_unclick3"; | ||
220 | signal: "mouse,clicked,1"; | ||
221 | source: "over2"; | ||
222 | action: SIGNAL_EMIT "elm,action,click" ""; | ||
223 | } | ||
224 | program { name: "text_show"; | ||
225 | signal: "elm,state,text,visible"; | ||
226 | source: "elm"; | ||
227 | script { | ||
228 | new st[31]; | ||
229 | new Float:vl; | ||
230 | get_state(PART:"elm.swallow.content", st, 30, vl); | ||
231 | if (!strcmp(st, "icononly")) | ||
232 | set_state(PART:"elm.swallow.content", "visible", 0.0); | ||
233 | get_state(PART:"elm.text", st, 30, vl); | ||
234 | if (!strcmp(st, "disabled") || (!strcmp(st, "disabled_visible"))) | ||
235 | set_state(PART:"elm.text", "disabled_visible", 0.0); | ||
236 | else | ||
237 | set_state(PART:"elm.text", "visible", 0.0); | ||
238 | } | ||
239 | } | ||
240 | program { name: "text_hide"; | ||
241 | signal: "elm,state,text,hidden"; | ||
242 | source: "elm"; | ||
243 | script { | ||
244 | new st[31]; | ||
245 | new Float:vl; | ||
246 | get_state(PART:"elm.swallow.content", st, 30, vl); | ||
247 | if (!strcmp(st, "visible")) | ||
248 | set_state(PART:"elm.swallow.content", "icononly", 0.0); | ||
249 | set_state(PART:"elm.text", "default", 0.0); | ||
250 | get_state(PART:"elm.text", st, 30, vl); | ||
251 | if (!strcmp(st, "default") || (!strcmp(st, "visible"))) | ||
252 | set_state(PART:"elm.text", "default", 0.0); | ||
253 | else | ||
254 | set_state(PART:"elm.text", "disabled", 0.0); | ||
255 | } | ||
256 | } | ||
257 | program { name: "icon_show"; | ||
258 | signal: "elm,state,icon,visible"; | ||
259 | source: "elm"; | ||
260 | script { | ||
261 | new st[31]; | ||
262 | new Float:vl; | ||
263 | get_state(PART:"elm.text", st, 30, vl); | ||
264 | if (!strcmp(st, "visible")) | ||
265 | set_state(PART:"elm.swallow.content", "visible", 0.0); | ||
266 | else | ||
267 | set_state(PART:"elm.swallow.content", "icononly", 0.0); | ||
268 | } | ||
269 | } | ||
270 | program { name: "icon_hide"; | ||
271 | signal: "elm,state,icon,hidden"; | ||
272 | source: "elm"; | ||
273 | action: STATE_SET "default" 0.0; | ||
274 | target: "elm.swallow.content"; | ||
275 | } | ||
276 | program { name: "disable"; | ||
277 | signal: "elm,state,disabled"; | ||
278 | source: "elm"; | ||
279 | script { | ||
280 | new st[31]; | ||
281 | new Float:vl; | ||
282 | set_state(PART:"button_image", "disabled", 0.0); | ||
283 | set_state(PART:"over1", "disabled", 0.0); | ||
284 | set_state(PART:"over2", "disabled", 0.0); | ||
285 | set_state(PART:"disabler", "disabled", 0.0); | ||
286 | get_state(PART:"elm.text", st, 30, vl); | ||
287 | if (!strcmp(st, "visible") || !strcmp(st, "disabled_visible")) | ||
288 | set_state(PART:"elm.text", "disabled_visible", 0.0); | ||
289 | else | ||
290 | set_state(PART:"elm.text", "disabled", 0.0); | ||
291 | } | ||
292 | } | ||
293 | program { name: "enable"; | ||
294 | signal: "elm,state,enabled"; | ||
295 | source: "elm"; | ||
296 | script { | ||
297 | new st[31]; | ||
298 | new Float:vl; | ||
299 | set_state(PART:"button_image", "visible", 0.0); | ||
300 | set_state(PART:"over1", "visible", 0.0); | ||
301 | set_state(PART:"over2", "visible", 0.0); | ||
302 | set_state(PART:"disabler", "visible", 0.0); | ||
303 | get_state(PART:"elm.text", st, 30, vl); | ||
304 | if (!strcmp(st, "visible") || !strcmp(st, "disabled_visible")) | ||
305 | set_state(PART:"elm.text", "visible", 0.0); | ||
306 | else | ||
307 | set_state(PART:"elm.text", "default", 0.0); | ||
308 | } | ||
309 | } | ||
310 | } | ||
311 | } | ||
312 | |||
313 | group { name: "elm/button/base/hoversel_vertical/default"; | ||
314 | alias: "elm/button/base/hoversel_vertical/entry"; | ||
315 | alias: "elm/button/base/hoversel_horizontal/default"; | ||
316 | alias: "elm/button/base/hoversel_horizontal/entry"; | ||
317 | images { | ||
318 | image: "bt_base1.png" COMP; | ||
319 | image: "bt_base2.png" COMP; | ||
320 | image: "bt_hilight.png" COMP; | ||
321 | image: "bt_shine.png" COMP; | ||
322 | image: "bt_glow.png" COMP; | ||
323 | image: "updown.png" COMP; | ||
324 | image: "bt_dis_base.png" COMP; | ||
325 | image: "bt_dis_hilight.png" COMP; | ||
326 | } | ||
327 | parts { | ||
328 | part { name: "button_image"; | ||
329 | mouse_events: 1; | ||
330 | description { state: "default" 0.0; | ||
331 | image { | ||
332 | normal: "bt_base2.png"; | ||
333 | border: 7 7 7 7; | ||
334 | } | ||
335 | image.middle: SOLID; | ||
336 | } | ||
337 | description { state: "clicked" 0.0; | ||
338 | inherit: "default" 0.0; | ||
339 | image.normal: "bt_base1.png"; | ||
340 | image.middle: SOLID; | ||
341 | } | ||
342 | description { state: "disabled" 0.0; | ||
343 | inherit: "default" 0.0; | ||
344 | image { | ||
345 | normal: "bt_dis_base.png"; | ||
346 | border: 4 4 4 4; | ||
347 | } | ||
348 | } | ||
349 | } | ||
350 | part { name: "arrow"; | ||
351 | mouse_events: 0; | ||
352 | description { state: "default" 0.0; | ||
353 | image.normal: "updown.png"; | ||
354 | aspect: 0.6666666666 0.6666666666; | ||
355 | aspect_preference: VERTICAL; | ||
356 | rel1.offset: 6 7; | ||
357 | rel2.offset: 6 -7; | ||
358 | rel2.relative: 0.0 1.0; | ||
359 | align: 0.0 0.5; | ||
360 | } | ||
361 | } | ||
362 | part { name: "elm.swallow.content"; | ||
363 | type: SWALLOW; | ||
364 | description { state: "default" 0.0; | ||
365 | fixed: 1 0; | ||
366 | visible: 0; | ||
367 | align: 0.0 0.5; | ||
368 | rel1 { | ||
369 | to_x: "arrow"; | ||
370 | offset: 2 4; | ||
371 | relative: 1.0 0.0; | ||
372 | } | ||
373 | rel2 { | ||
374 | to_x: "arrow"; | ||
375 | offset: 1 -5; | ||
376 | relative: 1.0 1.0; | ||
377 | } | ||
378 | } | ||
379 | description { state: "visible" 0.0; | ||
380 | inherit: "default" 0.0; | ||
381 | fixed: 0 0; | ||
382 | visible: 1; | ||
383 | aspect: 1.0 1.0; | ||
384 | aspect_preference: VERTICAL; | ||
385 | rel2.offset: 2 -5; | ||
386 | } | ||
387 | description { state: "icononly" 0.0; | ||
388 | inherit: "default" 0.0; | ||
389 | fixed: 0 0; | ||
390 | visible: 1; | ||
391 | align: 0.5 0.5; | ||
392 | aspect: 1.0 1.0; | ||
393 | rel1 { | ||
394 | to_x: "button_image"; | ||
395 | offset: -5 -5; | ||
396 | relative: 1.0 1.0; | ||
397 | } | ||
398 | aspect_preference: VERTICAL; | ||
399 | } | ||
400 | } | ||
401 | part { | ||
402 | name: "elm.text"; | ||
403 | type: TEXT; | ||
404 | effect: SOFT_SHADOW; | ||
405 | mouse_events: 0; | ||
406 | scale: 1; | ||
407 | description { state: "default" 0.0; | ||
408 | visible: 0; | ||
409 | rel1.to_x: "elm.swallow.content"; | ||
410 | rel1.relative: 1.0 0.0; | ||
411 | rel1.offset: 0 4; | ||
412 | rel2.offset: -5 -5; | ||
413 | color: 224 224 224 255; | ||
414 | color3: 0 0 0 64; | ||
415 | text { | ||
416 | font: "Sans,Edje-Vera"; | ||
417 | size: 10; | ||
418 | min: 0 0; | ||
419 | align: 0.5 0.5; | ||
420 | text_class: "button"; | ||
421 | } | ||
422 | } | ||
423 | description { state: "visible" 0.0; | ||
424 | inherit: "default" 0.0; | ||
425 | visible: 1; | ||
426 | text.min: 1 1; | ||
427 | } | ||
428 | description { state: "disabled" 0.0; | ||
429 | inherit: "default" 0.0; | ||
430 | color: 0 0 0 128; | ||
431 | color3: 0 0 0 0; | ||
432 | } | ||
433 | description { state: "disabled_visible" 0.0; | ||
434 | inherit: "default" 0.0; | ||
435 | color: 0 0 0 128; | ||
436 | color3: 0 0 0 0; | ||
437 | visible: 1; | ||
438 | text.min: 1 1; | ||
439 | } | ||
440 | } | ||
441 | part { name: "over1"; | ||
442 | mouse_events: 0; | ||
443 | description { state: "default" 0.0; | ||
444 | rel2.relative: 1.0 0.5; | ||
445 | image { | ||
446 | normal: "bt_hilight.png"; | ||
447 | border: 7 7 7 0; | ||
448 | } | ||
449 | } | ||
450 | description { state: "disabled" 0.0; | ||
451 | inherit: "default" 0.0; | ||
452 | image { | ||
453 | normal: "bt_dis_hilight.png"; | ||
454 | border: 4 4 4 0; | ||
455 | } | ||
456 | } | ||
457 | } | ||
458 | part { name: "over2"; | ||
459 | mouse_events: 1; | ||
460 | repeat_events: 1; | ||
461 | ignore_flags: ON_HOLD; | ||
462 | description { state: "default" 0.0; | ||
463 | image { | ||
464 | normal: "bt_shine.png"; | ||
465 | border: 7 7 7 7; | ||
466 | } | ||
467 | } | ||
468 | description { state: "disabled" 0.0; | ||
469 | inherit: "default" 0.0; | ||
470 | visible: 0; | ||
471 | } | ||
472 | } | ||
473 | part { name: "over3"; | ||
474 | mouse_events: 1; | ||
475 | repeat_events: 1; | ||
476 | description { state: "default" 0.0; | ||
477 | color: 255 255 255 0; | ||
478 | image { | ||
479 | normal: "bt_glow.png"; | ||
480 | border: 12 12 12 12; | ||
481 | } | ||
482 | fill.smooth : 0; | ||
483 | } | ||
484 | description { state: "clicked" 0.0; | ||
485 | inherit: "default" 0.0; | ||
486 | visible: 1; | ||
487 | color: 255 255 255 255; | ||
488 | } | ||
489 | } | ||
490 | part { name: "disabler"; | ||
491 | type: RECT; | ||
492 | description { state: "default" 0.0; | ||
493 | color: 0 0 0 0; | ||
494 | visible: 0; | ||
495 | } | ||
496 | description { state: "disabled" 0.0; | ||
497 | inherit: "default" 0.0; | ||
498 | visible: 1; | ||
499 | } | ||
500 | } | ||
501 | } | ||
502 | programs { | ||
503 | program { | ||
504 | name: "button_click"; | ||
505 | signal: "mouse,down,1"; | ||
506 | source: "over2"; | ||
507 | action: STATE_SET "clicked" 0.0; | ||
508 | target: "button_image"; | ||
509 | } | ||
510 | program { | ||
511 | name: "button_unclick"; | ||
512 | signal: "mouse,up,1"; | ||
513 | source: "over2"; | ||
514 | action: STATE_SET "default" 0.0; | ||
515 | target: "button_image"; | ||
516 | } | ||
517 | program { | ||
518 | name: "button_click2"; | ||
519 | signal: "mouse,down,1"; | ||
520 | source: "over3"; | ||
521 | action: STATE_SET "clicked" 0.0; | ||
522 | target: "over3"; | ||
523 | } | ||
524 | program { | ||
525 | name: "button_unclick2"; | ||
526 | signal: "mouse,up,1"; | ||
527 | source: "over3"; | ||
528 | action: STATE_SET "default" 0.0; | ||
529 | transition: DECELERATE 0.5; | ||
530 | target: "over3"; | ||
531 | } | ||
532 | program { | ||
533 | name: "button_unclick3"; | ||
534 | signal: "mouse,up,1"; | ||
535 | source: "over2"; | ||
536 | action: SIGNAL_EMIT "elm,action,click" ""; | ||
537 | } | ||
538 | program { name: "text_show"; | ||
539 | signal: "elm,state,text,visible"; | ||
540 | source: "elm"; | ||
541 | script { | ||
542 | new st[31]; | ||
543 | new Float:vl; | ||
544 | get_state(PART:"elm.swallow.content", st, 30, vl); | ||
545 | if (!strcmp(st, "icononly")) | ||
546 | set_state(PART:"elm.swallow.content", "visible", 0.0); | ||
547 | set_state(PART:"elm.text", "visible", 0.0); | ||
548 | } | ||
549 | } | ||
550 | program { name: "text_hide"; | ||
551 | signal: "elm,state,text,hidden"; | ||
552 | source: "elm"; | ||
553 | script { | ||
554 | new st[31]; | ||
555 | new Float:vl; | ||
556 | get_state(PART:"elm.swallow.content", st, 30, vl); | ||
557 | if (!strcmp(st, "visible")) | ||
558 | set_state(PART:"elm.swallow.content", "icononly", 0.0); | ||
559 | set_state(PART:"elm.text", "default", 0.0); | ||
560 | } | ||
561 | } | ||
562 | program { name: "icon_show"; | ||
563 | signal: "elm,state,icon,visible"; | ||
564 | source: "elm"; | ||
565 | script { | ||
566 | new st[31]; | ||
567 | new Float:vl; | ||
568 | get_state(PART:"elm.text", st, 30, vl); | ||
569 | if (!strcmp(st, "visible")) | ||
570 | set_state(PART:"elm.swallow.content", "visible", 0.0); | ||
571 | else | ||
572 | set_state(PART:"elm.swallow.content", "icononly", 0.0); | ||
573 | } | ||
574 | } | ||
575 | program { name: "icon_hide"; | ||
576 | signal: "elm,state,icon,hidden"; | ||
577 | source: "elm"; | ||
578 | action: STATE_SET "default" 0.0; | ||
579 | target: "elm.swallow.content"; | ||
580 | } | ||
581 | program { name: "disable"; | ||
582 | signal: "elm,state,disabled"; | ||
583 | source: "elm"; | ||
584 | action: STATE_SET "disabled" 0.0; | ||
585 | target: "button_image"; | ||
586 | target: "over1"; | ||
587 | target: "over2"; | ||
588 | target: "disabler"; | ||
589 | after: "disable_text"; | ||
590 | } | ||
591 | program { name: "disable_text"; | ||
592 | script { | ||
593 | new st[31]; | ||
594 | new Float:vl; | ||
595 | get_state(PART:"elm.text", st, 30, vl); | ||
596 | if (!strcmp(st, "visible")) | ||
597 | set_state(PART:"elm.text", "disabled_visible", 0.0); | ||
598 | else | ||
599 | set_state(PART:"elm.text", "disabled", 0.0); | ||
600 | } | ||
601 | } | ||
602 | program { name: "enable"; | ||
603 | signal: "elm,state,enabled"; | ||
604 | source: "elm"; | ||
605 | action: STATE_SET "default" 0.0; | ||
606 | target: "button_image"; | ||
607 | target: "over1"; | ||
608 | target: "over2"; | ||
609 | target: "disabler"; | ||
610 | after: "enable_text"; | ||
611 | } | ||
612 | program { name: "enable_text"; | ||
613 | script { | ||
614 | new st[31]; | ||
615 | new Float:vl; | ||
616 | get_state(PART:"elm.text", st, 30, vl); | ||
617 | if (!strcmp(st, "disabled_visible")) | ||
618 | set_state(PART:"elm.text", "visible", 0.0); | ||
619 | else | ||
620 | set_state(PART:"elm.text", "default", 0.0); | ||
621 | } | ||
622 | } | ||
623 | } | ||
624 | } | ||
625 | |||
626 | group { name: "elm/button/base/hoversel_vertical_entry/default"; | ||
627 | alias: "elm/button/base/hoversel_vertical_entry/entry"; | ||
628 | alias: "elm/button/base/hoversel_horizontal_entry/default"; | ||
629 | alias: "elm/button/base/hoversel_horizontal_entry/entry"; | ||
630 | images { | ||
631 | image: "hoversel_entry_bg.png" COMP; | ||
632 | } | ||
633 | parts { | ||
634 | part { name: "button_image"; | ||
635 | mouse_events: 1; | ||
636 | description { state: "default" 0.0; | ||
637 | color: 255 255 255 0; | ||
638 | image.normal: "hoversel_entry_bg.png"; | ||
639 | image.border: 0 0 2 2; | ||
640 | fill.smooth: 0; | ||
641 | } | ||
642 | description { state: "clicked" 0.0; | ||
643 | inherit: "default" 0.0; | ||
644 | color: 255 255 255 255; | ||
645 | } | ||
646 | } | ||
647 | part { name: "elm.swallow.content"; | ||
648 | type: SWALLOW; | ||
649 | description { state: "default" 0.0; | ||
650 | visible: 0; | ||
651 | align: 0.0 0.5; | ||
652 | rel1.offset: 4 4; | ||
653 | rel2.offset: 3 -5; | ||
654 | rel2.relative: 0.0 1.0; | ||
655 | } | ||
656 | description { state: "visible" 0.0; | ||
657 | inherit: "default" 0.0; | ||
658 | visible: 1; | ||
659 | aspect: 1.0 1.0; | ||
660 | aspect_preference: VERTICAL; | ||
661 | rel2.offset: 4 -5; | ||
662 | } | ||
663 | description { state: "icononly" 0.0; | ||
664 | inherit: "default" 0.0; | ||
665 | visible: 1; | ||
666 | align: 0.5 0.5; | ||
667 | aspect: 1.0 1.0; | ||
668 | rel2.offset: -5 -5; | ||
669 | rel2.relative: 1.0 1.0; | ||
670 | aspect_preference: VERTICAL; | ||
671 | } | ||
672 | } | ||
673 | part { name: "textvis"; | ||
674 | type: RECT; | ||
675 | mouse_events: 0; | ||
676 | description { state: "default" 0.0; | ||
677 | visible: 0; | ||
678 | } | ||
679 | description { state: "visible" 0.0; | ||
680 | visible: 1; | ||
681 | } | ||
682 | } | ||
683 | part { | ||
684 | name: "elm.text"; | ||
685 | type: TEXT; | ||
686 | effect: SOFT_SHADOW; | ||
687 | mouse_events: 0; | ||
688 | scale: 1; | ||
689 | clip_to: "textvis"; | ||
690 | description { state: "default" 0.0; | ||
691 | rel1.to_x: "elm.swallow.content"; | ||
692 | rel1.relative: 1.0 0.0; | ||
693 | rel1.offset: 0 4; | ||
694 | rel2.offset: -5 -5; | ||
695 | color: 224 224 224 255; | ||
696 | color3: 0 0 0 64; | ||
697 | text { | ||
698 | font: "Sans,Edje-Vera"; | ||
699 | size: 10; | ||
700 | min: 0 0; | ||
701 | align: 0.5 0.5; | ||
702 | text_class: "button"; | ||
703 | } | ||
704 | } | ||
705 | description { state: "visible" 0.0; | ||
706 | inherit: "default" 0.0; | ||
707 | text.min: 1 1; | ||
708 | } | ||
709 | description { state: "clicked" 0.0; | ||
710 | inherit: "default" 0.0; | ||
711 | text.min: 1 1; | ||
712 | color: 0 0 0 255; | ||
713 | color3: 0 0 0 0; | ||
714 | } | ||
715 | } | ||
716 | part { name: "over2"; | ||
717 | type: RECT; | ||
718 | mouse_events: 1; | ||
719 | description { state: "default" 0.0; | ||
720 | color: 0 0 0 0; | ||
721 | } | ||
722 | } | ||
723 | } | ||
724 | programs { | ||
725 | program { | ||
726 | name: "button_click"; | ||
727 | signal: "mouse,down,1"; | ||
728 | source: "over2"; | ||
729 | action: STATE_SET "clicked" 0.0; | ||
730 | target: "button_image"; | ||
731 | target: "elm.text"; | ||
732 | } | ||
733 | program { | ||
734 | name: "button_unclick"; | ||
735 | signal: "mouse,up,1"; | ||
736 | source: "over2"; | ||
737 | action: STATE_SET "default" 0.0; | ||
738 | target: "button_image"; | ||
739 | target: "elm.text"; | ||
740 | } | ||
741 | program { | ||
742 | name: "button_unclick3"; | ||
743 | signal: "mouse,up,1"; | ||
744 | source: "over2"; | ||
745 | action: SIGNAL_EMIT "elm,action,click" ""; | ||
746 | } | ||
747 | program { name: "text_show"; | ||
748 | signal: "elm,state,text,visible"; | ||
749 | source: "elm"; | ||
750 | script { | ||
751 | new st[31]; | ||
752 | new Float:vl; | ||
753 | get_state(PART:"elm.swallow.content", st, 30, vl); | ||
754 | if (!strcmp(st, "icononly")) | ||
755 | set_state(PART:"elm.swallow.content", "visible", 0.0); | ||
756 | set_state(PART:"textvis", "visible", 0.0); | ||
757 | set_state(PART:"elm.text", "visible", 0.0); | ||
758 | } | ||
759 | } | ||
760 | program { name: "text_hide"; | ||
761 | signal: "elm,state,text,hidden"; | ||
762 | source: "elm"; | ||
763 | script { | ||
764 | new st[31]; | ||
765 | new Float:vl; | ||
766 | get_state(PART:"elm.swallow.content", st, 30, vl); | ||
767 | if (!strcmp(st, "visible")) | ||
768 | set_state(PART:"elm.swallow.content", "icononly", 0.0); | ||
769 | set_state(PART:"textvis", "default", 0.0); | ||
770 | set_state(PART:"elm.text", "default", 0.0); | ||
771 | } | ||
772 | } | ||
773 | program { name: "icon_show"; | ||
774 | signal: "elm,state,icon,visible"; | ||
775 | source: "elm"; | ||
776 | script { | ||
777 | new st[31]; | ||
778 | new Float:vl; | ||
779 | get_state(PART:"textvis", st, 30, vl); | ||
780 | if (!strcmp(st, "visible")) | ||
781 | set_state(PART:"elm.swallow.content", "visible", 0.0); | ||
782 | else | ||
783 | set_state(PART:"elm.swallow.content", "icononly", 0.0); | ||
784 | } | ||
785 | } | ||
786 | program { name: "icon_hide"; | ||
787 | signal: "elm,state,icon,hidden"; | ||
788 | source: "elm"; | ||
789 | action: STATE_SET "default" 0.0; | ||
790 | target: "elm.swallow.content"; | ||
791 | } | ||
792 | } | ||
793 | } | ||
794 | |||
795 | group { name: "elm/button/base/anchor"; | ||
796 | images { | ||
797 | image: "bt_base1.png" COMP; | ||
798 | image: "bt_base2.png" COMP; | ||
799 | image: "bt_hilight.png" COMP; | ||
800 | image: "bt_shine.png" COMP; | ||
801 | image: "bt_glow.png" COMP; | ||
802 | image: "bt_dis_base.png" COMP; | ||
803 | image: "bt_dis_hilight.png" COMP; | ||
804 | } | ||
805 | parts { | ||
806 | part { name: "button_image"; | ||
807 | mouse_events: 1; | ||
808 | description { state: "default" 0.0; | ||
809 | min: 15 15; | ||
810 | color: 255 255 255 0; | ||
811 | image { | ||
812 | normal: "bt_base2.png"; | ||
813 | border: 7 7 7 7; | ||
814 | } | ||
815 | image.middle: SOLID; | ||
816 | } | ||
817 | description { state: "visible" 0.0; | ||
818 | inherit: "default" 0.0; | ||
819 | color: 255 255 255 255; | ||
820 | } | ||
821 | description { state: "clicked" 0.0; | ||
822 | inherit: "default" 0.0; | ||
823 | inherit: "visible" 0.0; | ||
824 | image.normal: "bt_base1.png"; | ||
825 | image.middle: SOLID; | ||
826 | } | ||
827 | description { state: "disabled" 0.0; | ||
828 | inherit: "default" 0.0; | ||
829 | inherit: "visible" 0.0; | ||
830 | image { | ||
831 | normal: "bt_dis_base.png"; | ||
832 | border: 4 4 4 4; | ||
833 | } | ||
834 | } | ||
835 | } | ||
836 | part { name: "elm.swallow.content"; | ||
837 | type: SWALLOW; | ||
838 | description { state: "default" 0.0; | ||
839 | fixed: 1 0; | ||
840 | visible: 0; | ||
841 | align: 0.0 0.5; | ||
842 | rel1.offset: 4 4; | ||
843 | rel2.offset: 3 -5; | ||
844 | rel2.relative: 0.0 1.0; | ||
845 | } | ||
846 | description { state: "visible" 0.0; | ||
847 | inherit: "default" 0.0; | ||
848 | fixed: 1 0; | ||
849 | visible: 1; | ||
850 | aspect: 1.0 1.0; | ||
851 | aspect_preference: VERTICAL; | ||
852 | rel2.offset: 4 -5; | ||
853 | } | ||
854 | description { state: "icononly" 0.0; | ||
855 | inherit: "default" 0.0; | ||
856 | fixed: 0 0; | ||
857 | visible: 1; | ||
858 | align: 0.5 0.5; | ||
859 | aspect: 1.0 1.0; | ||
860 | rel2.offset: -5 -5; | ||
861 | rel2.relative: 1.0 1.0; | ||
862 | aspect_preference: VERTICAL; | ||
863 | } | ||
864 | } | ||
865 | part { | ||
866 | name: "elm.text"; | ||
867 | type: TEXT; | ||
868 | effect: SOFT_SHADOW; | ||
869 | mouse_events: 0; | ||
870 | scale: 1; | ||
871 | description { state: "default" 0.0; | ||
872 | visible: 0; | ||
873 | rel1.to_x: "elm.swallow.content"; | ||
874 | rel1.relative: 1.0 0.0; | ||
875 | rel1.offset: 0 4; | ||
876 | rel2.offset: -5 -5; | ||
877 | color: 224 224 224 255; | ||
878 | color3: 0 0 0 64; | ||
879 | text { | ||
880 | font: "Sans,Edje-Vera"; | ||
881 | size: 10; | ||
882 | min: 0 0; | ||
883 | align: 0.5 0.5; | ||
884 | text_class: "button"; | ||
885 | } | ||
886 | } | ||
887 | description { state: "visible" 0.0; | ||
888 | inherit: "default" 0.0; | ||
889 | visible: 1; | ||
890 | text.min: 1 1; | ||
891 | } | ||
892 | description { state: "disabled" 0.0; | ||
893 | inherit: "default" 0.0; | ||
894 | } | ||
895 | description { state: "disabled_visible" 0.0; | ||
896 | inherit: "default" 0.0; | ||
897 | color: 0 0 0 128; | ||
898 | color3: 0 0 0 0; | ||
899 | visible: 1; | ||
900 | text.min: 1 1; | ||
901 | } | ||
902 | } | ||
903 | part { name: "over1"; | ||
904 | mouse_events: 0; | ||
905 | description { state: "default" 0.0; | ||
906 | color: 255 255 255 0; | ||
907 | rel2.relative: 1.0 0.5; | ||
908 | image { | ||
909 | normal: "bt_hilight.png"; | ||
910 | border: 7 7 7 0; | ||
911 | } | ||
912 | } | ||
913 | description { state: "visible" 0.0; | ||
914 | inherit: "default" 0.0; | ||
915 | color: 255 255 255 255; | ||
916 | } | ||
917 | description { state: "disabled" 0.0; | ||
918 | inherit: "default" 0.0; | ||
919 | inherit: "visible" 0.0; | ||
920 | image { | ||
921 | normal: "bt_dis_hilight.png"; | ||
922 | border: 4 4 4 0; | ||
923 | } | ||
924 | } | ||
925 | } | ||
926 | part { name: "over2"; | ||
927 | mouse_events: 1; | ||
928 | repeat_events: 1; | ||
929 | ignore_flags: ON_HOLD; | ||
930 | description { state: "default" 0.0; | ||
931 | image { | ||
932 | normal: "bt_shine.png"; | ||
933 | border: 7 7 7 7; | ||
934 | } | ||
935 | } | ||
936 | description { state: "disabled" 0.0; | ||
937 | inherit: "default" 0.0; | ||
938 | visible: 0; | ||
939 | } | ||
940 | } | ||
941 | part { name: "over3"; | ||
942 | mouse_events: 1; | ||
943 | repeat_events: 1; | ||
944 | description { state: "default" 0.0; | ||
945 | color: 255 255 255 0; | ||
946 | image { | ||
947 | normal: "bt_glow.png"; | ||
948 | border: 12 12 12 12; | ||
949 | } | ||
950 | fill.smooth : 0; | ||
951 | } | ||
952 | description { state: "clicked" 0.0; | ||
953 | inherit: "default" 0.0; | ||
954 | visible: 1; | ||
955 | color: 255 255 255 255; | ||
956 | } | ||
957 | } | ||
958 | part { name: "disabler"; | ||
959 | type: RECT; | ||
960 | description { state: "default" 0.0; | ||
961 | color: 0 0 0 0; | ||
962 | visible: 0; | ||
963 | } | ||
964 | description { state: "disabled" 0.0; | ||
965 | inherit: "default" 0.0; | ||
966 | visible: 1; | ||
967 | } | ||
968 | } | ||
969 | } | ||
970 | programs { | ||
971 | program { | ||
972 | name: "button_mouse_in"; | ||
973 | signal: "mouse,in"; | ||
974 | source: "over2"; | ||
975 | action: STATE_SET "visible" 0.0; | ||
976 | target: "button_image"; | ||
977 | target: "over1"; | ||
978 | transition: DECELERATE 0.5; | ||
979 | } | ||
980 | program { | ||
981 | name: "button_mouse_out"; | ||
982 | signal: "mouse,out"; | ||
983 | source: "over2"; | ||
984 | action: STATE_SET "default" 0.0; | ||
985 | target: "button_image"; | ||
986 | target: "over1"; | ||
987 | transition: DECELERATE 0.5; | ||
988 | } | ||
989 | program { | ||
990 | name: "button_unclick"; | ||
991 | signal: "mouse,up,1"; | ||
992 | source: "over2"; | ||
993 | action: STATE_SET "visible" 0.0; | ||
994 | target: "button_image"; | ||
995 | } | ||
996 | program { | ||
997 | name: "button_click2"; | ||
998 | signal: "mouse,down,1"; | ||
999 | source: "over3"; | ||
1000 | action: STATE_SET "clicked" 0.0; | ||
1001 | target: "over3"; | ||
1002 | } | ||
1003 | program { | ||
1004 | name: "button_unclick2"; | ||
1005 | signal: "mouse,up,1"; | ||
1006 | source: "over3"; | ||
1007 | action: STATE_SET "default" 0.0; | ||
1008 | transition: DECELERATE 0.5; | ||
1009 | target: "over3"; | ||
1010 | } | ||
1011 | program { | ||
1012 | name: "button_unclick3"; | ||
1013 | signal: "mouse,up,1"; | ||
1014 | source: "over2"; | ||
1015 | action: SIGNAL_EMIT "elm,action,click" ""; | ||
1016 | } | ||
1017 | program { name: "text_show"; | ||
1018 | signal: "elm,state,text,visible"; | ||
1019 | source: "elm"; | ||
1020 | script { | ||
1021 | new st[31]; | ||
1022 | new Float:vl; | ||
1023 | get_state(PART:"elm.swallow.content", st, 30, vl); | ||
1024 | if (!strcmp(st, "icononly")) | ||
1025 | set_state(PART:"elm.swallow.content", "visible", 0.0); | ||
1026 | get_state(PART:"elm.text", st, 30, vl); | ||
1027 | if (!strcmp(st, "disabled") || (!strcmp(st, "disabled_visible"))) | ||
1028 | set_state(PART:"elm.text", "disabled_visible", 0.0); | ||
1029 | else | ||
1030 | set_state(PART:"elm.text", "visible", 0.0); | ||
1031 | } | ||
1032 | } | ||
1033 | program { name: "text_hide"; | ||
1034 | signal: "elm,state,text,hidden"; | ||
1035 | source: "elm"; | ||
1036 | script { | ||
1037 | new st[31]; | ||
1038 | new Float:vl; | ||
1039 | get_state(PART:"elm.swallow.content", st, 30, vl); | ||
1040 | if (!strcmp(st, "visible")) | ||
1041 | set_state(PART:"elm.swallow.content", "icononly", 0.0); | ||
1042 | get_state(PART:"elm.text", st, 30, vl); | ||
1043 | if (!strcmp(st, "default") || (!strcmp(st, "visible"))) | ||
1044 | set_state(PART:"elm.text", "default", 0.0); | ||
1045 | else | ||
1046 | set_state(PART:"elm.text", "disabled", 0.0); | ||
1047 | } | ||
1048 | } | ||
1049 | program { name: "icon_show"; | ||
1050 | signal: "elm,state,icon,visible"; | ||
1051 | source: "elm"; | ||
1052 | script { | ||
1053 | new st[31]; | ||
1054 | new Float:vl; | ||
1055 | get_state(PART:"elm.text", st, 30, vl); | ||
1056 | if (!strcmp(st, "visible")) | ||
1057 | set_state(PART:"elm.swallow.content", "visible", 0.0); | ||
1058 | else | ||
1059 | set_state(PART:"elm.swallow.content", "icononly", 0.0); | ||
1060 | } | ||
1061 | } | ||
1062 | program { name: "icon_hide"; | ||
1063 | signal: "elm,state,icon,hidden"; | ||
1064 | source: "elm"; | ||
1065 | action: STATE_SET "default" 0.0; | ||
1066 | target: "elm.swallow.content"; | ||
1067 | } | ||
1068 | program { name: "disable"; | ||
1069 | signal: "elm,state,disabled"; | ||
1070 | source: "elm"; | ||
1071 | script { | ||
1072 | new st[31]; | ||
1073 | new Float:vl; | ||
1074 | set_state(PART:"button_image", "disabled", 0.0); | ||
1075 | set_state(PART:"over1", "disabled", 0.0); | ||
1076 | set_state(PART:"over2", "disabled", 0.0); | ||
1077 | set_state(PART:"disabler", "disabled", 0.0); | ||
1078 | get_state(PART:"elm.text", st, 30, vl); | ||
1079 | if (!strcmp(st, "visible") || !strcmp(st, "disabled_visible")) | ||
1080 | set_state(PART:"elm.text", "disabled_visible", 0.0); | ||
1081 | else | ||
1082 | set_state(PART:"elm.text", "disabled", 0.0); | ||
1083 | } | ||
1084 | } | ||
1085 | program { name: "enable"; | ||
1086 | signal: "elm,state,enabled"; | ||
1087 | source: "elm"; | ||
1088 | script { | ||
1089 | new st[31]; | ||
1090 | new Float:vl; | ||
1091 | set_state(PART:"button_image", "visible", 0.0); | ||
1092 | set_state(PART:"over1", "visible", 0.0); | ||
1093 | set_state(PART:"over2", "visible", 0.0); | ||
1094 | set_state(PART:"disabler", "visible", 0.0); | ||
1095 | get_state(PART:"elm.text", st, 30, vl); | ||
1096 | if (!strcmp(st, "visible") || !strcmp(st, "disabled_visible")) | ||
1097 | set_state(PART:"elm.text", "visible", 0.0); | ||
1098 | else | ||
1099 | set_state(PART:"elm.text", "default", 0.0); | ||
1100 | } | ||
1101 | } | ||
1102 | } | ||
1103 | } | ||
1104 | group { name: "elm/button/base/naviframe/back_btn/default"; | ||
1105 | images { | ||
1106 | image: "bt_base1.png" COMP; | ||
1107 | image: "bt_base2.png" COMP; | ||
1108 | image: "bt_hilight.png" COMP; | ||
1109 | image: "bt_shine.png" COMP; | ||
1110 | image: "bt_glow.png" COMP; | ||
1111 | image: "bt_dis_base.png" COMP; | ||
1112 | image: "bt_dis_hilight.png" COMP; | ||
1113 | image: "icon_left_arrow.png" COMP; | ||
1114 | } | ||
1115 | parts { | ||
1116 | part { name: "button_image"; | ||
1117 | mouse_events: 1; | ||
1118 | description { state: "default" 0.0; | ||
1119 | min: 15 15; | ||
1120 | image { | ||
1121 | normal: "bt_base2.png"; | ||
1122 | border: 7 7 7 7; | ||
1123 | } | ||
1124 | image.middle: SOLID; | ||
1125 | } | ||
1126 | description { state: "clicked" 0.0; | ||
1127 | inherit: "default" 0.0; | ||
1128 | image.normal: "bt_base1.png"; | ||
1129 | } | ||
1130 | description { state: "disabled" 0.0; | ||
1131 | inherit: "default" 0.0; | ||
1132 | image { | ||
1133 | normal: "bt_dis_base.png"; | ||
1134 | border: 4 4 4 4; | ||
1135 | } | ||
1136 | } | ||
1137 | } | ||
1138 | part { name: "prev_image"; | ||
1139 | type: IMAGE; | ||
1140 | scale: 1; | ||
1141 | description { state: "default" 0.0; | ||
1142 | min: 30 30; | ||
1143 | max: 30 30; | ||
1144 | fixed: 1 1; | ||
1145 | align: 0.5 0.5; | ||
1146 | image.normal: "icon_left_arrow.png"; | ||
1147 | } | ||
1148 | } | ||
1149 | part { name: "over1"; | ||
1150 | mouse_events: 0; | ||
1151 | description { state: "default" 0.0; | ||
1152 | rel2.relative: 1.0 0.5; | ||
1153 | image { | ||
1154 | normal: "bt_hilight.png"; | ||
1155 | border: 7 7 7 0; | ||
1156 | } | ||
1157 | } | ||
1158 | description { state: "disabled" 0.0; | ||
1159 | inherit: "default" 0.0; | ||
1160 | image { | ||
1161 | normal: "bt_dis_hilight.png"; | ||
1162 | border: 4 4 4 0; | ||
1163 | } | ||
1164 | } | ||
1165 | } | ||
1166 | part { name: "over2"; | ||
1167 | mouse_events: 1; | ||
1168 | repeat_events: 1; | ||
1169 | ignore_flags: ON_HOLD; | ||
1170 | description { state: "default" 0.0; | ||
1171 | image { | ||
1172 | normal: "bt_shine.png"; | ||
1173 | border: 7 7 7 7; | ||
1174 | } | ||
1175 | } | ||
1176 | description { state: "disabled" 0.0; | ||
1177 | inherit: "default" 0.0; | ||
1178 | visible: 0; | ||
1179 | } | ||
1180 | } | ||
1181 | part { name: "over3"; | ||
1182 | mouse_events: 1; | ||
1183 | repeat_events: 1; | ||
1184 | description { state: "default" 0.0; | ||
1185 | color: 255 255 255 0; | ||
1186 | image { | ||
1187 | normal: "bt_glow.png"; | ||
1188 | border: 12 12 12 12; | ||
1189 | } | ||
1190 | fill.smooth : 0; | ||
1191 | } | ||
1192 | description { state: "clicked" 0.0; | ||
1193 | inherit: "default" 0.0; | ||
1194 | color: 255 255 255 255; | ||
1195 | } | ||
1196 | } | ||
1197 | part { name: "disabler"; | ||
1198 | type: RECT; | ||
1199 | description { state: "default" 0.0; | ||
1200 | color: 0 0 0 0; | ||
1201 | visible: 0; | ||
1202 | } | ||
1203 | description { state: "disabled" 0.0; | ||
1204 | inherit: "default" 0.0; | ||
1205 | visible: 1; | ||
1206 | } | ||
1207 | } | ||
1208 | } | ||
1209 | programs { | ||
1210 | program { | ||
1211 | name: "button_click"; | ||
1212 | signal: "mouse,down,1"; | ||
1213 | source: "over2"; | ||
1214 | action: SIGNAL_EMIT "elm,action,press" ""; | ||
1215 | after: "button_click_anim"; | ||
1216 | } | ||
1217 | program { | ||
1218 | name: "button_click_anim"; | ||
1219 | action: STATE_SET "clicked" 0.0; | ||
1220 | target: "button_image"; | ||
1221 | } | ||
1222 | program { | ||
1223 | name: "button_unclick"; | ||
1224 | signal: "mouse,up,1"; | ||
1225 | source: "over3"; | ||
1226 | action: SIGNAL_EMIT "elm,action,unpress" ""; | ||
1227 | after: "button_unclick_anim"; | ||
1228 | } | ||
1229 | program { | ||
1230 | name: "button_pressed_anim"; | ||
1231 | signal: "elm,anim,activate"; | ||
1232 | source: "elm"; | ||
1233 | action: STATE_SET "clicked" 0.0; | ||
1234 | target: "button_image"; | ||
1235 | target: "over3"; | ||
1236 | after: "button_unpressed_anim"; | ||
1237 | } | ||
1238 | program { | ||
1239 | name: "button_unpressed_anim"; | ||
1240 | action: STATE_SET "default" 0.0; | ||
1241 | transition: DECELERATE 0.5; | ||
1242 | target: "button_image"; | ||
1243 | target: "over3"; | ||
1244 | } | ||
1245 | program { | ||
1246 | name: "button_unclick_anim"; | ||
1247 | action: STATE_SET "default" 0.0; | ||
1248 | target: "button_image"; | ||
1249 | } | ||
1250 | program { | ||
1251 | name: "button_click2"; | ||
1252 | signal: "mouse,down,1"; | ||
1253 | source: "over3"; | ||
1254 | action: STATE_SET "clicked" 0.0; | ||
1255 | target: "over3"; | ||
1256 | } | ||
1257 | program { | ||
1258 | name: "button_unclick2"; | ||
1259 | signal: "mouse,up,1"; | ||
1260 | source: "over3"; | ||
1261 | action: STATE_SET "default" 0.0; | ||
1262 | transition: DECELERATE 0.5; | ||
1263 | target: "over3"; | ||
1264 | } | ||
1265 | program { | ||
1266 | name: "button_unclick3"; | ||
1267 | signal: "mouse,clicked,1"; | ||
1268 | source: "over2"; | ||
1269 | action: SIGNAL_EMIT "elm,action,click" ""; | ||
1270 | } | ||
1271 | program { name: "disable"; | ||
1272 | signal: "elm,state,disabled"; | ||
1273 | source: "elm"; | ||
1274 | action: STATE_SET "disabled" 0.0; | ||
1275 | target: "button_image"; | ||
1276 | target: "over1"; | ||
1277 | target: "over2"; | ||
1278 | target: "disabler"; | ||
1279 | } | ||
1280 | program { name: "enable"; | ||
1281 | signal: "elm,state,enabled"; | ||
1282 | source: "elm"; | ||
1283 | action: STATE_SET "default" 0.0; | ||
1284 | target: "button_image"; | ||
1285 | target: "over1"; | ||
1286 | target: "over2"; | ||
1287 | target: "disabler"; | ||
1288 | } | ||
1289 | } | ||
1290 | } | ||
1291 | |||
1292 | group { name: "elm/button/base/colorselector/left/default"; | ||
1293 | images { | ||
1294 | image: "bt_base1.png" COMP; | ||
1295 | image: "bt_base2.png" COMP; | ||
1296 | image: "bt_hilight.png" COMP; | ||
1297 | image: "bt_shine.png" COMP; | ||
1298 | image: "bt_glow.png" COMP; | ||
1299 | image: "bt_dis_base.png" COMP; | ||
1300 | image: "bt_dis_hilight.png" COMP; | ||
1301 | image: "sp_bt_l.png" COMP; | ||
1302 | } | ||
1303 | parts { | ||
1304 | part { name: "button_image"; | ||
1305 | mouse_events: 1; | ||
1306 | description { state: "default" 0.0; | ||
1307 | min: 15 15; | ||
1308 | image { | ||
1309 | normal: "bt_base2.png"; | ||
1310 | border: 7 7 7 7; | ||
1311 | } | ||
1312 | image.middle: SOLID; | ||
1313 | } | ||
1314 | description { state: "clicked" 0.0; | ||
1315 | inherit: "default" 0.0; | ||
1316 | image.normal: "bt_base1.png"; | ||
1317 | } | ||
1318 | description { state: "disabled" 0.0; | ||
1319 | inherit: "default" 0.0; | ||
1320 | image { | ||
1321 | normal: "bt_dis_base.png"; | ||
1322 | border: 4 4 4 4; | ||
1323 | } | ||
1324 | } | ||
1325 | } | ||
1326 | part { name: "prev_image"; | ||
1327 | type: IMAGE; | ||
1328 | scale: 1; | ||
1329 | description { state: "default" 0.0; | ||
1330 | min: 16 16; | ||
1331 | max: 16 16; | ||
1332 | fixed: 1 1; | ||
1333 | align: 0.5 0.5; | ||
1334 | image.normal: "sp_bt_l.png"; | ||
1335 | } | ||
1336 | } | ||
1337 | part { name: "over1"; | ||
1338 | mouse_events: 0; | ||
1339 | description { state: "default" 0.0; | ||
1340 | rel2.relative: 1.0 0.5; | ||
1341 | image { | ||
1342 | normal: "bt_hilight.png"; | ||
1343 | border: 7 7 7 0; | ||
1344 | } | ||
1345 | } | ||
1346 | description { state: "disabled" 0.0; | ||
1347 | inherit: "default" 0.0; | ||
1348 | image { | ||
1349 | normal: "bt_dis_hilight.png"; | ||
1350 | border: 4 4 4 0; | ||
1351 | } | ||
1352 | } | ||
1353 | } | ||
1354 | part { name: "over2"; | ||
1355 | mouse_events: 1; | ||
1356 | repeat_events: 1; | ||
1357 | ignore_flags: ON_HOLD; | ||
1358 | description { state: "default" 0.0; | ||
1359 | image { | ||
1360 | normal: "bt_shine.png"; | ||
1361 | border: 7 7 7 7; | ||
1362 | } | ||
1363 | } | ||
1364 | description { state: "disabled" 0.0; | ||
1365 | inherit: "default" 0.0; | ||
1366 | visible: 0; | ||
1367 | } | ||
1368 | } | ||
1369 | part { name: "over3"; | ||
1370 | mouse_events: 1; | ||
1371 | repeat_events: 1; | ||
1372 | description { state: "default" 0.0; | ||
1373 | color: 255 255 255 0; | ||
1374 | image { | ||
1375 | normal: "bt_glow.png"; | ||
1376 | border: 12 12 12 12; | ||
1377 | } | ||
1378 | fill.smooth : 0; | ||
1379 | } | ||
1380 | description { state: "clicked" 0.0; | ||
1381 | inherit: "default" 0.0; | ||
1382 | color: 255 255 255 255; | ||
1383 | } | ||
1384 | } | ||
1385 | part { name: "disabler"; | ||
1386 | type: RECT; | ||
1387 | description { state: "default" 0.0; | ||
1388 | color: 0 0 0 0; | ||
1389 | visible: 0; | ||
1390 | } | ||
1391 | description { state: "disabled" 0.0; | ||
1392 | inherit: "default" 0.0; | ||
1393 | visible: 1; | ||
1394 | } | ||
1395 | } | ||
1396 | } | ||
1397 | programs { | ||
1398 | program { | ||
1399 | name: "button_click"; | ||
1400 | signal: "mouse,down,1"; | ||
1401 | source: "over2"; | ||
1402 | action: SIGNAL_EMIT "elm,action,press" ""; | ||
1403 | after: "button_click_anim"; | ||
1404 | } | ||
1405 | program { | ||
1406 | name: "button_click_anim"; | ||
1407 | action: STATE_SET "clicked" 0.0; | ||
1408 | target: "button_image"; | ||
1409 | } | ||
1410 | program { | ||
1411 | name: "button_unclick"; | ||
1412 | signal: "mouse,up,1"; | ||
1413 | source: "over3"; | ||
1414 | action: SIGNAL_EMIT "elm,action,unpress" ""; | ||
1415 | after: "button_unclick_anim"; | ||
1416 | } | ||
1417 | program { | ||
1418 | name: "button_pressed_anim"; | ||
1419 | signal: "elm,anim,activate"; | ||
1420 | source: "elm"; | ||
1421 | action: STATE_SET "clicked" 0.0; | ||
1422 | target: "button_image"; | ||
1423 | target: "over3"; | ||
1424 | after: "button_unpressed_anim"; | ||
1425 | } | ||
1426 | program { | ||
1427 | name: "button_unpressed_anim"; | ||
1428 | action: STATE_SET "default" 0.0; | ||
1429 | transition: DECELERATE 0.5; | ||
1430 | target: "button_image"; | ||
1431 | target: "over3"; | ||
1432 | } | ||
1433 | program { | ||
1434 | name: "button_unclick_anim"; | ||
1435 | action: STATE_SET "default" 0.0; | ||
1436 | target: "button_image"; | ||
1437 | } | ||
1438 | program { | ||
1439 | name: "button_click2"; | ||
1440 | signal: "mouse,down,1"; | ||
1441 | source: "over3"; | ||
1442 | action: STATE_SET "clicked" 0.0; | ||
1443 | target: "over3"; | ||
1444 | } | ||
1445 | program { | ||
1446 | name: "button_unclick2"; | ||
1447 | signal: "mouse,up,1"; | ||
1448 | source: "over3"; | ||
1449 | action: STATE_SET "default" 0.0; | ||
1450 | transition: DECELERATE 0.5; | ||
1451 | target: "over3"; | ||
1452 | } | ||
1453 | program { | ||
1454 | name: "button_unclick3"; | ||
1455 | signal: "mouse,clicked,1"; | ||
1456 | source: "over2"; | ||
1457 | action: SIGNAL_EMIT "elm,action,click" ""; | ||
1458 | } | ||
1459 | program { name: "disable"; | ||
1460 | signal: "elm,state,disabled"; | ||
1461 | source: "elm"; | ||
1462 | action: STATE_SET "disabled" 0.0; | ||
1463 | target: "button_image"; | ||
1464 | target: "over1"; | ||
1465 | target: "over2"; | ||
1466 | target: "disabler"; | ||
1467 | } | ||
1468 | program { name: "enable"; | ||
1469 | signal: "elm,state,enabled"; | ||
1470 | source: "elm"; | ||
1471 | action: STATE_SET "default" 0.0; | ||
1472 | target: "button_image"; | ||
1473 | target: "over1"; | ||
1474 | target: "over2"; | ||
1475 | target: "disabler"; | ||
1476 | } | ||
1477 | } | ||
1478 | } | ||
1479 | |||
1480 | group { name: "elm/button/base/colorselector/right/default"; | ||
1481 | images { | ||
1482 | image: "bt_base1.png" COMP; | ||
1483 | image: "bt_base2.png" COMP; | ||
1484 | image: "bt_hilight.png" COMP; | ||
1485 | image: "bt_shine.png" COMP; | ||
1486 | image: "bt_glow.png" COMP; | ||
1487 | image: "bt_dis_base.png" COMP; | ||
1488 | image: "bt_dis_hilight.png" COMP; | ||
1489 | image: "sp_bt_r.png" COMP; | ||
1490 | } | ||
1491 | parts { | ||
1492 | part { name: "button_image"; | ||
1493 | mouse_events: 1; | ||
1494 | description { state: "default" 0.0; | ||
1495 | min: 15 15; | ||
1496 | image { | ||
1497 | normal: "bt_base2.png"; | ||
1498 | border: 7 7 7 7; | ||
1499 | } | ||
1500 | image.middle: SOLID; | ||
1501 | } | ||
1502 | description { state: "clicked" 0.0; | ||
1503 | inherit: "default" 0.0; | ||
1504 | image.normal: "bt_base1.png"; | ||
1505 | } | ||
1506 | description { state: "disabled" 0.0; | ||
1507 | inherit: "default" 0.0; | ||
1508 | image { | ||
1509 | normal: "bt_dis_base.png"; | ||
1510 | border: 4 4 4 4; | ||
1511 | } | ||
1512 | } | ||
1513 | } | ||
1514 | part { name: "prev_image"; | ||
1515 | type: IMAGE; | ||
1516 | scale: 1; | ||
1517 | description { state: "default" 0.0; | ||
1518 | min: 16 16; | ||
1519 | max: 16 16; | ||
1520 | fixed: 1 1; | ||
1521 | align: 0.5 0.5; | ||
1522 | image.normal: "sp_bt_r.png"; | ||
1523 | } | ||
1524 | } | ||
1525 | part { name: "over1"; | ||
1526 | mouse_events: 0; | ||
1527 | description { state: "default" 0.0; | ||
1528 | rel2.relative: 1.0 0.5; | ||
1529 | image { | ||
1530 | normal: "bt_hilight.png"; | ||
1531 | border: 7 7 7 0; | ||
1532 | } | ||
1533 | } | ||
1534 | description { state: "disabled" 0.0; | ||
1535 | inherit: "default" 0.0; | ||
1536 | image { | ||
1537 | normal: "bt_dis_hilight.png"; | ||
1538 | border: 4 4 4 0; | ||
1539 | } | ||
1540 | } | ||
1541 | } | ||
1542 | part { name: "over2"; | ||
1543 | mouse_events: 1; | ||
1544 | repeat_events: 1; | ||
1545 | ignore_flags: ON_HOLD; | ||
1546 | description { state: "default" 0.0; | ||
1547 | image { | ||
1548 | normal: "bt_shine.png"; | ||
1549 | border: 7 7 7 7; | ||
1550 | } | ||
1551 | } | ||
1552 | description { state: "disabled" 0.0; | ||
1553 | inherit: "default" 0.0; | ||
1554 | visible: 0; | ||
1555 | } | ||
1556 | } | ||
1557 | part { name: "over3"; | ||
1558 | mouse_events: 1; | ||
1559 | repeat_events: 1; | ||
1560 | description { state: "default" 0.0; | ||
1561 | color: 255 255 255 0; | ||
1562 | image { | ||
1563 | normal: "bt_glow.png"; | ||
1564 | border: 12 12 12 12; | ||
1565 | } | ||
1566 | fill.smooth : 0; | ||
1567 | } | ||
1568 | description { state: "clicked" 0.0; | ||
1569 | inherit: "default" 0.0; | ||
1570 | color: 255 255 255 255; | ||
1571 | } | ||
1572 | } | ||
1573 | part { name: "disabler"; | ||
1574 | type: RECT; | ||
1575 | description { state: "default" 0.0; | ||
1576 | color: 0 0 0 0; | ||
1577 | visible: 0; | ||
1578 | } | ||
1579 | description { state: "disabled" 0.0; | ||
1580 | inherit: "default" 0.0; | ||
1581 | visible: 1; | ||
1582 | } | ||
1583 | } | ||
1584 | } | ||
1585 | programs { | ||
1586 | program { | ||
1587 | name: "button_click"; | ||
1588 | signal: "mouse,down,1"; | ||
1589 | source: "over2"; | ||
1590 | action: SIGNAL_EMIT "elm,action,press" ""; | ||
1591 | after: "button_click_anim"; | ||
1592 | } | ||
1593 | program { | ||
1594 | name: "button_click_anim"; | ||
1595 | action: STATE_SET "clicked" 0.0; | ||
1596 | target: "button_image"; | ||
1597 | } | ||
1598 | program { | ||
1599 | name: "button_unclick"; | ||
1600 | signal: "mouse,up,1"; | ||
1601 | source: "over3"; | ||
1602 | action: SIGNAL_EMIT "elm,action,unpress" ""; | ||
1603 | after: "button_unclick_anim"; | ||
1604 | } | ||
1605 | program { | ||
1606 | name: "button_pressed_anim"; | ||
1607 | signal: "elm,anim,activate"; | ||
1608 | source: "elm"; | ||
1609 | action: STATE_SET "clicked" 0.0; | ||
1610 | target: "button_image"; | ||
1611 | target: "over3"; | ||
1612 | after: "button_unpressed_anim"; | ||
1613 | } | ||
1614 | program { | ||
1615 | name: "button_unpressed_anim"; | ||
1616 | action: STATE_SET "default" 0.0; | ||
1617 | transition: DECELERATE 0.5; | ||
1618 | target: "button_image"; | ||
1619 | target: "over3"; | ||
1620 | } | ||
1621 | program { | ||
1622 | name: "button_unclick_anim"; | ||
1623 | action: STATE_SET "default" 0.0; | ||
1624 | target: "button_image"; | ||
1625 | } | ||
1626 | program { | ||
1627 | name: "button_click2"; | ||
1628 | signal: "mouse,down,1"; | ||
1629 | source: "over3"; | ||
1630 | action: STATE_SET "clicked" 0.0; | ||
1631 | target: "over3"; | ||
1632 | } | ||
1633 | program { | ||
1634 | name: "button_unclick2"; | ||
1635 | signal: "mouse,up,1"; | ||
1636 | source: "over3"; | ||
1637 | action: STATE_SET "default" 0.0; | ||
1638 | transition: DECELERATE 0.5; | ||
1639 | target: "over3"; | ||
1640 | } | ||
1641 | program { | ||
1642 | name: "button_unclick3"; | ||
1643 | signal: "mouse,clicked,1"; | ||
1644 | source: "over2"; | ||
1645 | action: SIGNAL_EMIT "elm,action,click" ""; | ||
1646 | } | ||
1647 | program { name: "disable"; | ||
1648 | signal: "elm,state,disabled"; | ||
1649 | source: "elm"; | ||
1650 | action: STATE_SET "disabled" 0.0; | ||
1651 | target: "button_image"; | ||
1652 | target: "over1"; | ||
1653 | target: "over2"; | ||
1654 | target: "disabler"; | ||
1655 | } | ||
1656 | program { name: "enable"; | ||
1657 | signal: "elm,state,enabled"; | ||
1658 | source: "elm"; | ||
1659 | action: STATE_SET "default" 0.0; | ||
1660 | target: "button_image"; | ||
1661 | target: "over1"; | ||
1662 | target: "over2"; | ||
1663 | target: "disabler"; | ||
1664 | } | ||
1665 | } | ||
1666 | } | ||
diff --git a/libraries/elementary/data/themes/widgets/calendar.edc b/libraries/elementary/data/themes/widgets/calendar.edc new file mode 100644 index 0000000..090a11e --- /dev/null +++ b/libraries/elementary/data/themes/widgets/calendar.edc | |||
@@ -0,0 +1,738 @@ | |||
1 | #define CH(_pos) \ | ||
2 | part { name: "ch_"#_pos".base"; \ | ||
3 | type: RECT; \ | ||
4 | description { state: "default" 0.0; \ | ||
5 | rel1 { \ | ||
6 | relative: (_pos % 7 * 7 / 8 / 6) 0; \ | ||
7 | to: "header"; \ | ||
8 | } \ | ||
9 | rel2 { \ | ||
10 | relative: (_pos % 7 * 7 / 8 / 6 + 1 / 8) 1; \ | ||
11 | to: "header"; \ | ||
12 | } \ | ||
13 | color: 0 0 0 0; \ | ||
14 | visible: 0; \ | ||
15 | } \ | ||
16 | } \ | ||
17 | part { name: "ch_"#_pos".text"; \ | ||
18 | type: TEXT; \ | ||
19 | effect: SOFT_SHADOW; \ | ||
20 | mouse_events: 0; \ | ||
21 | scale: 1; \ | ||
22 | clip_to: "ch_"#_pos".clipper"; \ | ||
23 | description { \ | ||
24 | state: "default" 0.0; \ | ||
25 | rel1.to: "ch_"#_pos".base"; \ | ||
26 | rel2.to: "ch_"#_pos".base"; \ | ||
27 | color: 0 0 0 255; \ | ||
28 | color3: 0 0 0 0; \ | ||
29 | text { \ | ||
30 | font: "Sans"; \ | ||
31 | size: 10; \ | ||
32 | min: 1 1; \ | ||
33 | align: 0.5 0.5; \ | ||
34 | } \ | ||
35 | } \ | ||
36 | } \ | ||
37 | part { name: "ch_"#_pos".clipper"; \ | ||
38 | type: RECT; \ | ||
39 | description { state: "default" 0.0; \ | ||
40 | rel1.to: "ch_"#_pos".base"; \ | ||
41 | rel2.to: "ch_"#_pos".base"; \ | ||
42 | } \ | ||
43 | } | ||
44 | |||
45 | #define CIT(_pos) \ | ||
46 | part { name: "cit_"#_pos".rect"; \ | ||
47 | type: RECT; \ | ||
48 | description { state: "default" 0.0; \ | ||
49 | rel1 { \ | ||
50 | relative: (_pos % 7 * 7 / 8 / 6) \ | ||
51 | (_pos / 8 / 5 - _pos % 7 / 8 / 5); \ | ||
52 | to: "base"; \ | ||
53 | } \ | ||
54 | rel2 { \ | ||
55 | relative: (_pos % 7 * 7 / 8 / 6 + 1 / 8) \ | ||
56 | (_pos / 8 / 5 - _pos % 7 / 8 / 5 + 1 / 8); \ | ||
57 | to: "base"; \ | ||
58 | } \ | ||
59 | color: 0 0 0 0; \ | ||
60 | visible: 0; \ | ||
61 | } \ | ||
62 | } \ | ||
63 | part { \ | ||
64 | name: "cit_"#_pos".event"; \ | ||
65 | type: RECT; \ | ||
66 | repeat_events: 1; \ | ||
67 | description { \ | ||
68 | rel1.to: "cit_"#_pos".rect"; \ | ||
69 | rel2.to: "cit_"#_pos".rect"; \ | ||
70 | state: "default" 0.0; \ | ||
71 | color: 0 0 0 0; \ | ||
72 | } \ | ||
73 | } \ | ||
74 | part { name: "cit_"#_pos".shelf"; \ | ||
75 | type: RECT; \ | ||
76 | mouse_events: 0; \ | ||
77 | description { state: "default" 0.0; \ | ||
78 | rel1 { \ | ||
79 | to: "cit_"#_pos".bg"; \ | ||
80 | offset: -1 -1; \ | ||
81 | } \ | ||
82 | rel2 { \ | ||
83 | to: "cit_"#_pos".bg"; \ | ||
84 | } \ | ||
85 | color: 200 200 200 255; \ | ||
86 | } \ | ||
87 | } \ | ||
88 | part { name: "cit_"#_pos".hd"; \ | ||
89 | type: RECT; \ | ||
90 | mouse_events: 0; \ | ||
91 | description { state: "default" 0.0; \ | ||
92 | rel1 { \ | ||
93 | to: "cit_"#_pos".bg"; \ | ||
94 | offset: -1 -1; \ | ||
95 | } \ | ||
96 | rel2 { \ | ||
97 | to: "cit_"#_pos".bg"; \ | ||
98 | } \ | ||
99 | visible: 0; \ | ||
100 | color: 160 0 0 255; \ | ||
101 | } \ | ||
102 | description { state: "visible" 0.0; \ | ||
103 | inherit: "default" 0.0; \ | ||
104 | visible: 1; \ | ||
105 | } \ | ||
106 | } \ | ||
107 | part { \ | ||
108 | name: "cit_"#_pos".base_sh"; \ | ||
109 | mouse_events: 0; \ | ||
110 | description { \ | ||
111 | state: "default" 0.0; \ | ||
112 | align: 0.0 0.0; \ | ||
113 | min: 0 1; \ | ||
114 | rel1 { \ | ||
115 | to: "cit_"#_pos".base"; \ | ||
116 | relative: 0.0 1.0; \ | ||
117 | offset: 0 0; \ | ||
118 | } \ | ||
119 | rel2 { \ | ||
120 | to: "cit_"#_pos".base"; \ | ||
121 | relative: 1.0 1.05; \ | ||
122 | offset: -1 0; \ | ||
123 | } \ | ||
124 | image { \ | ||
125 | normal: "ilist_item_shadow.png"; \ | ||
126 | } \ | ||
127 | fill.smooth: 0; \ | ||
128 | } \ | ||
129 | } \ | ||
130 | part { \ | ||
131 | name: "cit_"#_pos".base"; \ | ||
132 | mouse_events: 0; \ | ||
133 | description { \ | ||
134 | state: "default" 0.0; \ | ||
135 | rel1.to: "cit_"#_pos".rect"; \ | ||
136 | rel2.to: "cit_"#_pos".rect"; \ | ||
137 | rel2.offset: -1 -1; \ | ||
138 | image { \ | ||
139 | normal: "ilist_1.png"; \ | ||
140 | border: 2 2 2 2; \ | ||
141 | } \ | ||
142 | fill.smooth: 0; \ | ||
143 | } \ | ||
144 | description { \ | ||
145 | state: "today" 0.0; \ | ||
146 | inherit: "default" 0.0; \ | ||
147 | image.normal: "ilist_2.png"; \ | ||
148 | color: 240 240 240 255; \ | ||
149 | } \ | ||
150 | } \ | ||
151 | part { name: "cit_"#_pos".bg"; \ | ||
152 | mouse_events: 0; \ | ||
153 | description { state: "default" 0.0; \ | ||
154 | visible: 0; \ | ||
155 | color: 255 255 255 0; \ | ||
156 | rel1 { \ | ||
157 | to: "cit_"#_pos".rect"; \ | ||
158 | relative: 0.0 0.0; \ | ||
159 | } \ | ||
160 | rel2 { \ | ||
161 | to: "cit_"#_pos".rect"; \ | ||
162 | relative: 1.0 1.0; \ | ||
163 | offset: -1 -1; \ | ||
164 | } \ | ||
165 | image { \ | ||
166 | normal: "bt_sm_base1.png"; \ | ||
167 | border: 6 6 6 6; \ | ||
168 | } \ | ||
169 | image.middle: SOLID; \ | ||
170 | } \ | ||
171 | description { state: "selected" 0.0; \ | ||
172 | inherit: "default" 0.0; \ | ||
173 | visible: 1; \ | ||
174 | color: 255 255 255 255; \ | ||
175 | } \ | ||
176 | } \ | ||
177 | part { name: "cit_"#_pos".text"; \ | ||
178 | type: TEXT; \ | ||
179 | effect: SOFT_SHADOW; \ | ||
180 | mouse_events: 0; \ | ||
181 | scale: 1; \ | ||
182 | description { \ | ||
183 | state: "default" 0.0; \ | ||
184 | rel1.to: "cit_"#_pos".bg"; \ | ||
185 | rel2.to: "cit_"#_pos".bg"; \ | ||
186 | color: 0 0 0 255; \ | ||
187 | color3: 0 0 0 0; \ | ||
188 | text { \ | ||
189 | font: "Sans"; \ | ||
190 | size: 10; \ | ||
191 | min: 1 1; \ | ||
192 | align: 0.5 0.5; \ | ||
193 | } \ | ||
194 | } \ | ||
195 | description { state: "selected" 0.0; \ | ||
196 | inherit: "default" 0.0; \ | ||
197 | color: 224 224 224 255; \ | ||
198 | color3: 0 0 0 64; \ | ||
199 | } \ | ||
200 | } \ | ||
201 | part { name: "cit_"#_pos".fg1"; \ | ||
202 | mouse_events: 0; \ | ||
203 | description { state: "default" 0.0; \ | ||
204 | visible: 0; \ | ||
205 | color: 255 255 255 0; \ | ||
206 | rel1.to: "cit_"#_pos".bg"; \ | ||
207 | rel2.relative: 1.0 0.5; \ | ||
208 | rel2.to: "cit_"#_pos".bg"; \ | ||
209 | image { \ | ||
210 | normal: "bt_sm_hilight.png"; \ | ||
211 | border: 6 6 6 0; \ | ||
212 | } \ | ||
213 | } \ | ||
214 | description { state: "selected" 0.0; \ | ||
215 | inherit: "default" 0.0; \ | ||
216 | visible: 1; \ | ||
217 | color: 255 255 255 255; \ | ||
218 | } \ | ||
219 | } \ | ||
220 | part { name: "cit_"#_pos".fg2"; \ | ||
221 | mouse_events: 0; \ | ||
222 | description { state: "default" 0.0; \ | ||
223 | visible: 0; \ | ||
224 | color: 255 255 255 0; \ | ||
225 | rel1.to: "cit_"#_pos".bg"; \ | ||
226 | rel2.to: "cit_"#_pos".bg"; \ | ||
227 | image { \ | ||
228 | normal: "bt_sm_shine.png"; \ | ||
229 | border: 6 6 6 0; \ | ||
230 | } \ | ||
231 | } \ | ||
232 | description { state: "selected" 0.0; \ | ||
233 | inherit: "default" 0.0; \ | ||
234 | visible: 1; \ | ||
235 | color: 255 255 255 255; \ | ||
236 | } \ | ||
237 | } \ | ||
238 | part { name: "cit_"#_pos".check"; \ | ||
239 | mouse_events: 0; \ | ||
240 | description { state: "default" 0.0; \ | ||
241 | rel1 { \ | ||
242 | to: "cit_"#_pos".bg"; \ | ||
243 | relative: 0.7 0.6; \ | ||
244 | offset: 1 1; \ | ||
245 | } \ | ||
246 | rel2 { \ | ||
247 | to: "cit_"#_pos".bg"; \ | ||
248 | relative: 1.1 1.2; \ | ||
249 | offset: -2 -2; \ | ||
250 | } \ | ||
251 | aspect: 1 1; \ | ||
252 | visible: 0; \ | ||
253 | color: 255 0 0 255; \ | ||
254 | image.normal: "check.png"; \ | ||
255 | } \ | ||
256 | description { state: "visible" 0.0; \ | ||
257 | inherit: "default" 0.0; \ | ||
258 | visible: 1; \ | ||
259 | } \ | ||
260 | } \ | ||
261 | programs { \ | ||
262 | program { \ | ||
263 | name: "cit_"#_pos".go_active"; \ | ||
264 | signal: "cit_"#_pos",selected"; \ | ||
265 | source: "elm"; \ | ||
266 | action: STATE_SET "selected" 0.0; \ | ||
267 | target: "cit_"#_pos".bg"; \ | ||
268 | target: "cit_"#_pos".fg1"; \ | ||
269 | target: "cit_"#_pos".fg2"; \ | ||
270 | target: "cit_"#_pos".text"; \ | ||
271 | } \ | ||
272 | program { \ | ||
273 | name: "cit_"#_pos".go_passive"; \ | ||
274 | signal: "cit_"#_pos",unselected"; \ | ||
275 | source: "elm"; \ | ||
276 | action: STATE_SET "default" 0.0; \ | ||
277 | target: "cit_"#_pos".bg"; \ | ||
278 | target: "cit_"#_pos".fg1"; \ | ||
279 | target: "cit_"#_pos".fg2"; \ | ||
280 | target: "cit_"#_pos".text"; \ | ||
281 | } \ | ||
282 | program { \ | ||
283 | name: "cit_"#_pos".is_today"; \ | ||
284 | signal: "cit_"#_pos",today"; \ | ||
285 | source: "elm"; \ | ||
286 | action: STATE_SET "today" 0.0; \ | ||
287 | target: "cit_"#_pos".base"; \ | ||
288 | } \ | ||
289 | program { \ | ||
290 | name: "cit_"#_pos".not_today"; \ | ||
291 | signal: "cit_"#_pos",not_today"; \ | ||
292 | source: "elm"; \ | ||
293 | action: STATE_SET "default" 0.0; \ | ||
294 | target: "cit_"#_pos".base"; \ | ||
295 | } \ | ||
296 | program { \ | ||
297 | source: "cit_"#_pos".clicked"; \ | ||
298 | signal: "mouse,clicked,1"; \ | ||
299 | source: "cit_"#_pos".event"; \ | ||
300 | action: SIGNAL_EMIT "elm,action,selected" #_pos; \ | ||
301 | } \ | ||
302 | program { \ | ||
303 | name: "cit_"#_pos".clear"; \ | ||
304 | signal: "cit_"#_pos",clear"; \ | ||
305 | source: "elm"; \ | ||
306 | action: STATE_SET "default" 0.0; \ | ||
307 | target: "cit_"#_pos".check"; \ | ||
308 | target: "cit_"#_pos".hd"; \ | ||
309 | } \ | ||
310 | program { \ | ||
311 | name: "cit_"#_pos".checked"; \ | ||
312 | signal: "cit_"#_pos",checked"; \ | ||
313 | source: "elm"; \ | ||
314 | action: STATE_SET "visible" 0.0; \ | ||
315 | target: "cit_"#_pos".check"; \ | ||
316 | } \ | ||
317 | program { \ | ||
318 | name: "cit_"#_pos".holiday"; \ | ||
319 | signal: "cit_"#_pos",holiday"; \ | ||
320 | source: "elm"; \ | ||
321 | action: STATE_SET "visible" 0.0; \ | ||
322 | target: "cit_"#_pos".hd"; \ | ||
323 | } \ | ||
324 | } | ||
325 | |||
326 | group { name: "elm/calendar/base/default"; | ||
327 | images { | ||
328 | image: "shelf_inset.png" COMP; | ||
329 | image: "bt_base1.png" COMP; | ||
330 | image: "bt_hilight.png" COMP; | ||
331 | image: "bt_shine.png" COMP; | ||
332 | image: "bt_glow.png" COMP; | ||
333 | image: "bt_dis_base.png" COMP; | ||
334 | image: "bt_dis_hilight.png" COMP; | ||
335 | image: "sp_bt_l.png" COMP; | ||
336 | image: "sp_bt_r.png" COMP; | ||
337 | image: "bt_sm_base1.png" COMP; | ||
338 | image: "bt_sm_shine.png" COMP; | ||
339 | image: "bt_sm_hilight.png" COMP; | ||
340 | image: "ilist_1.png" COMP; | ||
341 | image: "ilist_2.png" COMP; | ||
342 | image: "ilist_item_shadow.png" COMP; | ||
343 | image: "check.png" COMP; | ||
344 | } | ||
345 | parts { | ||
346 | part { name: "bg"; | ||
347 | type: RECT; | ||
348 | description { state: "default" 0.0; | ||
349 | min: 0 30; | ||
350 | rel1.offset: 1 1; | ||
351 | rel2.offset: -2 -2; | ||
352 | color: 255 255 255 0; | ||
353 | align: 0.0 0.5; | ||
354 | } | ||
355 | } | ||
356 | part { name: "spinner-base"; | ||
357 | type: RECT; | ||
358 | mouse_events: 0; | ||
359 | description { state: "default" 0.0; | ||
360 | min: 24 24; | ||
361 | max: 999999 24; | ||
362 | rel1.to: "bg"; | ||
363 | rel1.offset: 6 6; | ||
364 | rel2.to: "bg"; | ||
365 | rel2.offset: -7 -7; | ||
366 | color: 255 255 255 0; | ||
367 | align: 0.0 0.0; | ||
368 | } | ||
369 | } | ||
370 | part { name: "conf_over_spinner"; | ||
371 | mouse_events: 0; | ||
372 | description { state: "default" 0.0; | ||
373 | rel1.to: "spinner-base"; | ||
374 | rel1.offset: -3 -3; | ||
375 | rel2.to: "spinner-base"; | ||
376 | rel2.offset: 2 2; | ||
377 | image { | ||
378 | normal: "shelf_inset.png"; | ||
379 | border: 7 7 7 7; | ||
380 | middle: 0; | ||
381 | } | ||
382 | fill.smooth : 0; | ||
383 | } | ||
384 | } | ||
385 | part { name: "table-base"; | ||
386 | type: RECT; | ||
387 | mouse_events: 0; | ||
388 | description { state: "default" 0.0; | ||
389 | min: 256 220; | ||
390 | rel1.to_x: "bg"; | ||
391 | rel1.to_y: "spinner-base"; | ||
392 | rel1.offset: 6 6; | ||
393 | rel1.relative: 0 1; | ||
394 | rel2.to: "bg"; | ||
395 | rel2.offset: -7 -7; | ||
396 | color: 255 255 255 0; | ||
397 | } | ||
398 | } | ||
399 | part { name: "conf_over_table"; | ||
400 | mouse_events: 0; | ||
401 | description { state: "default" 0.0; | ||
402 | rel1.to: "table-base"; | ||
403 | rel1.offset: -3 -3; | ||
404 | rel2.to: "table-base"; | ||
405 | rel2.offset: 2 2; | ||
406 | image { | ||
407 | normal: "shelf_inset.png"; | ||
408 | border: 7 7 7 7; | ||
409 | middle: 0; | ||
410 | } | ||
411 | fill.smooth : 0; | ||
412 | } | ||
413 | } | ||
414 | part { name: "header"; | ||
415 | type: RECT; | ||
416 | mouse_events: 0; | ||
417 | description { state: "default" 0.0; | ||
418 | rel1.to: "table-base"; | ||
419 | rel1.relative: 0 0; | ||
420 | rel2.to: "table-base"; | ||
421 | rel2.relative: 1 0.1; | ||
422 | color: 255 255 255 0; | ||
423 | } | ||
424 | } | ||
425 | part { name: "base"; | ||
426 | type: RECT; | ||
427 | mouse_events: 0; | ||
428 | description { state: "default" 0.0; | ||
429 | rel1.to_x: "table-base"; | ||
430 | rel1.to_y: "header"; | ||
431 | rel1.relative: 0 1; | ||
432 | rel1.offset: 3 0; | ||
433 | rel2.to: "table-base"; | ||
434 | rel2.offset: -3 0; | ||
435 | color: 255 255 255 0; | ||
436 | } | ||
437 | } | ||
438 | part { name: "left_bt"; | ||
439 | mouse_events: 1; | ||
440 | description { state: "default" 0.0; | ||
441 | rel1 { to: "spinner-base"; | ||
442 | offset: 2 2; | ||
443 | } | ||
444 | rel2 { to: "spinner-base"; | ||
445 | offset: -3 -3; | ||
446 | } | ||
447 | align: 0.0 0.5; | ||
448 | min: 24 24; | ||
449 | max: 24 24; | ||
450 | fixed: 1 1; | ||
451 | image { | ||
452 | normal: "bt_base1.png"; | ||
453 | border: 6 6 6 6; | ||
454 | } | ||
455 | fill.smooth : 0; | ||
456 | } | ||
457 | description { state: "clicked" 0.0; | ||
458 | inherit: "default" 0.0; | ||
459 | image.normal: "bt_base1.png"; | ||
460 | image.middle: SOLID; | ||
461 | } | ||
462 | } | ||
463 | part { name: "left_over1"; | ||
464 | mouse_events: 0; | ||
465 | description { state: "default" 0.0; | ||
466 | rel1.to: "left_bt"; | ||
467 | rel2 { to: "left_bt"; | ||
468 | relative: 1.0 0.5; | ||
469 | } | ||
470 | image { | ||
471 | normal: "bt_hilight.png"; | ||
472 | border: 7 7 7 0; | ||
473 | } | ||
474 | } | ||
475 | } | ||
476 | part { name: "left_over2"; | ||
477 | mouse_events: 1; | ||
478 | repeat_events: 1; | ||
479 | description { state: "default" 0.0; | ||
480 | rel1.to: "left_bt"; | ||
481 | rel2.to: "left_bt"; | ||
482 | image { | ||
483 | normal: "bt_shine.png"; | ||
484 | border: 7 7 7 7; | ||
485 | } | ||
486 | } | ||
487 | } | ||
488 | part { name: "left_over3"; | ||
489 | mouse_events: 1; | ||
490 | repeat_events: 1; | ||
491 | description { state: "default" 0.0; | ||
492 | color: 255 255 255 0; | ||
493 | rel1.to: "left_bt"; | ||
494 | rel2.to: "left_bt"; | ||
495 | image { | ||
496 | normal: "bt_glow.png"; | ||
497 | border: 12 12 12 12; | ||
498 | } | ||
499 | fill.smooth : 0; | ||
500 | } | ||
501 | description { state: "clicked" 0.0; | ||
502 | inherit: "default" 0.0; | ||
503 | visible: 1; | ||
504 | color: 255 255 255 255; | ||
505 | } | ||
506 | } | ||
507 | part { name: "right_bt"; | ||
508 | mouse_events: 1; | ||
509 | description { state: "default" 0.0; | ||
510 | rel1 { to: "spinner-base"; | ||
511 | offset: -27 3; | ||
512 | } | ||
513 | rel2 { to: "spinner-base"; | ||
514 | offset: -3 -3; | ||
515 | } | ||
516 | align: 1.0 0.5; | ||
517 | min: 24 24; | ||
518 | max: 24 24; | ||
519 | fixed: 1 1; | ||
520 | image { | ||
521 | normal: "bt_base1.png"; | ||
522 | border: 5 5 4 12; | ||
523 | } | ||
524 | fill.smooth : 0; | ||
525 | } | ||
526 | description { state: "clicked" 0.0; | ||
527 | inherit: "default" 0.0; | ||
528 | image.normal: "bt_base1.png"; | ||
529 | image.middle: SOLID; | ||
530 | } | ||
531 | } | ||
532 | part { name: "right_over1"; | ||
533 | mouse_events: 0; | ||
534 | description { state: "default" 0.0; | ||
535 | rel1.to: "right_bt"; | ||
536 | rel2 { to: "right_bt"; | ||
537 | relative: 1.0 0.5; | ||
538 | } | ||
539 | image { | ||
540 | normal: "bt_hilight.png"; | ||
541 | border: 7 7 7 0; | ||
542 | } | ||
543 | } | ||
544 | } | ||
545 | part { name: "right_over2"; | ||
546 | mouse_events: 1; | ||
547 | repeat_events: 1; | ||
548 | description { state: "default" 0.0; | ||
549 | rel1.to: "right_bt"; | ||
550 | rel2.to: "right_bt"; | ||
551 | image { | ||
552 | normal: "bt_shine.png"; | ||
553 | border: 7 7 7 7; | ||
554 | } | ||
555 | } | ||
556 | } | ||
557 | part { name: "right_over3"; | ||
558 | mouse_events: 1; | ||
559 | repeat_events: 1; | ||
560 | description { state: "default" 0.0; | ||
561 | color: 255 255 255 0; | ||
562 | rel1.to: "right_bt"; | ||
563 | rel2.to: "right_bt"; | ||
564 | image { | ||
565 | normal: "bt_glow.png"; | ||
566 | border: 12 12 12 12; | ||
567 | } | ||
568 | fill.smooth : 0; | ||
569 | } | ||
570 | description { state: "clicked" 0.0; | ||
571 | inherit: "default" 0.0; | ||
572 | visible: 1; | ||
573 | color: 255 255 255 255; | ||
574 | } | ||
575 | } | ||
576 | part { name: "left_bt_icon"; | ||
577 | repeat_events: 1; | ||
578 | description { state: "default" 0.0; | ||
579 | rel1.to: "left_bt"; | ||
580 | rel2.to: "left_bt"; | ||
581 | align: 0.5 0.5; | ||
582 | min: 16 16; | ||
583 | max: 16 16; | ||
584 | image.normal: "sp_bt_l.png"; | ||
585 | } | ||
586 | description { state: "rtl" 0.0; | ||
587 | inherit: "default" 0.0; | ||
588 | image.normal: "sp_bt_r.png"; | ||
589 | } | ||
590 | } | ||
591 | part { name: "right_bt_icon"; | ||
592 | repeat_events: 1; | ||
593 | description { state: "default" 0.0; | ||
594 | rel1.to: "right_bt"; | ||
595 | rel2.to: "right_bt"; | ||
596 | align: 0.5 0.5; | ||
597 | min: 16 16; | ||
598 | max: 16 16; | ||
599 | image.normal: "sp_bt_r.png"; | ||
600 | } | ||
601 | description { state: "rtl" 0.0; | ||
602 | inherit: "default" 0.0; | ||
603 | image.normal: "sp_bt_l.png"; | ||
604 | } | ||
605 | } | ||
606 | part { name: "month_text"; | ||
607 | type: TEXT; | ||
608 | mouse_events: 0; | ||
609 | scale: 1; | ||
610 | description { state: "default" 0.0; | ||
611 | align: 0 0.5; | ||
612 | fixed: 1 1; | ||
613 | rel1 { relative: 1.0 0.0; | ||
614 | offset: 3 2; | ||
615 | to: "left_bt"; | ||
616 | to_y: "spinner-base"; | ||
617 | } | ||
618 | rel2 { relative: 0.0 1.0; | ||
619 | offset: -3 -2; | ||
620 | to_x: "right_bt"; | ||
621 | to_y: "spinner-base"; | ||
622 | } | ||
623 | color: 0 0 0 255; | ||
624 | text { | ||
625 | font: "Sans,Edje-Vera"; | ||
626 | size: 12; | ||
627 | min: 1 1; | ||
628 | align: 0.5 0.5; | ||
629 | } | ||
630 | } | ||
631 | } | ||
632 | CH(0) CH(1) CH(2) CH(3) CH(4) CH(5) CH(6) | ||
633 | CIT(0) CIT(1) CIT(2) CIT(3) CIT(4) CIT(5) CIT(6) | ||
634 | CIT(7) CIT(8) CIT(9) CIT(10) CIT(11) CIT(12) CIT(13) | ||
635 | CIT(14) CIT(15) CIT(16) CIT(17) CIT(18) CIT(19) CIT(20) | ||
636 | CIT(21) CIT(22) CIT(23) CIT(24) CIT(25) CIT(26) CIT(27) | ||
637 | CIT(28) CIT(29) CIT(30) CIT(31) CIT(32) CIT(33) CIT(34) | ||
638 | CIT(35) CIT(36) CIT(37) CIT(38) CIT(39) CIT(40) CIT(41) | ||
639 | } | ||
640 | programs { | ||
641 | program { name: "dec_start"; | ||
642 | signal: "mouse,down,1"; | ||
643 | source: "left_bt"; | ||
644 | action: SIGNAL_EMIT "elm,action,decrement,start" ""; | ||
645 | } | ||
646 | program { name: "dec_stop"; | ||
647 | signal: "mouse,up,1"; | ||
648 | source: "left_bt"; | ||
649 | action: SIGNAL_EMIT "elm,action,stop" ""; | ||
650 | } | ||
651 | program { name: "inc_start"; | ||
652 | signal: "mouse,down,1"; | ||
653 | source: "right_bt"; | ||
654 | action: SIGNAL_EMIT "elm,action,increment,start" ""; | ||
655 | } | ||
656 | program { name: "inc_stop"; | ||
657 | signal: "mouse,up,1"; | ||
658 | source: "right_bt"; | ||
659 | action: SIGNAL_EMIT "elm,action,stop" ""; | ||
660 | } | ||
661 | program { | ||
662 | name: "left_bt_click"; | ||
663 | signal: "mouse,down,1"; | ||
664 | source: "left_over2"; | ||
665 | action: STATE_SET "clicked" 0.0; | ||
666 | target: "left_bt"; | ||
667 | } | ||
668 | program { | ||
669 | name: "left_bt_unclick"; | ||
670 | signal: "mouse,up,1"; | ||
671 | source: "left_over2"; | ||
672 | action: STATE_SET "default" 0.0; | ||
673 | target: "left_bt"; | ||
674 | } | ||
675 | program { | ||
676 | name: "left_bt_click2"; | ||
677 | signal: "mouse,down,1"; | ||
678 | source: "left_over3"; | ||
679 | action: STATE_SET "clicked" 0.0; | ||
680 | target: "left_over3"; | ||
681 | } | ||
682 | program { | ||
683 | name: "left_bt_unclick2"; | ||
684 | signal: "mouse,up,1"; | ||
685 | source: "left_over3"; | ||
686 | action: STATE_SET "default" 0.0; | ||
687 | transition: DECELERATE 0.5; | ||
688 | target: "left_over3"; | ||
689 | } | ||
690 | program { | ||
691 | name: "right_bt_click"; | ||
692 | signal: "mouse,down,1"; | ||
693 | source: "right_over2"; | ||
694 | action: STATE_SET "clicked" 0.0; | ||
695 | target: "right_bt"; | ||
696 | } | ||
697 | program { | ||
698 | name: "right_bt_unclick"; | ||
699 | signal: "mouse,up,1"; | ||
700 | source: "right_over2"; | ||
701 | action: STATE_SET "default" 0.0; | ||
702 | target: "right_bt"; | ||
703 | } | ||
704 | program { | ||
705 | name: "right_bt_click2"; | ||
706 | signal: "mouse,down,1"; | ||
707 | source: "right_over3"; | ||
708 | action: STATE_SET "clicked" 0.0; | ||
709 | target: "right_over3"; | ||
710 | } | ||
711 | program { | ||
712 | name: "right_bt_unclick2"; | ||
713 | signal: "mouse,up,1"; | ||
714 | source: "right_over3"; | ||
715 | action: STATE_SET "default" 0.0; | ||
716 | transition: DECELERATE 0.5; | ||
717 | target: "right_over3"; | ||
718 | } | ||
719 | program { name: "to_rtl"; | ||
720 | signal: "edje,state,rtl"; | ||
721 | source: "edje"; | ||
722 | action: STATE_SET "rtl" 0.0; | ||
723 | target: "right_bt_icon"; | ||
724 | target: "left_bt_icon"; | ||
725 | } | ||
726 | program { name: "to_ltr"; | ||
727 | signal: "edje,state,ltr"; | ||
728 | source: "edje"; | ||
729 | action: STATE_SET "default" 0.0; | ||
730 | target: "right_bt_icon"; | ||
731 | target: "left_bt_icon"; | ||
732 | } | ||
733 | } | ||
734 | } | ||
735 | |||
736 | #undef CIT | ||
737 | #undef CH | ||
738 | |||
diff --git a/libraries/elementary/data/themes/widgets/check.edc b/libraries/elementary/data/themes/widgets/check.edc new file mode 100644 index 0000000..ba63cec --- /dev/null +++ b/libraries/elementary/data/themes/widgets/check.edc | |||
@@ -0,0 +1,694 @@ | |||
1 | group { name: "elm/check/base/default"; | ||
2 | images { | ||
3 | image: "check_base.png" COMP; | ||
4 | image: "check.png" COMP; | ||
5 | image: "check2.png" COMP; | ||
6 | } | ||
7 | parts { | ||
8 | part { name: "bg"; | ||
9 | mouse_events: 0; | ||
10 | scale: 1; | ||
11 | description { state: "default" 0.0; | ||
12 | rel1.offset: 1 1; | ||
13 | rel2.relative: 0.0 1.0; | ||
14 | rel2.offset: 1 -2; | ||
15 | align: 0.0 0.5; | ||
16 | min: 16 16; | ||
17 | max: 16 16; | ||
18 | aspect: 1.0 1.0; | ||
19 | aspect_preference: VERTICAL; | ||
20 | image { | ||
21 | normal: "check_base.png"; | ||
22 | border: 5 5 5 5; | ||
23 | middle: 0; | ||
24 | } | ||
25 | fill.smooth : 0; | ||
26 | } | ||
27 | } | ||
28 | part { name: "check"; | ||
29 | mouse_events: 0; | ||
30 | scale: 1; | ||
31 | description { state: "default" 0.0; | ||
32 | rel1 { | ||
33 | to: "bg"; | ||
34 | offset: 1 1; | ||
35 | } | ||
36 | rel2 { | ||
37 | to: "bg"; | ||
38 | offset: -2 -2; | ||
39 | } | ||
40 | visible: 0; | ||
41 | color: 255 255 255 255; | ||
42 | image.normal: "check.png"; | ||
43 | } | ||
44 | description { state: "visible" 0.0; | ||
45 | inherit: "default" 0.0; | ||
46 | visible: 1; | ||
47 | } | ||
48 | description { state: "disabled" 0.0; | ||
49 | inherit: "default" 0.0; | ||
50 | visible: 0; | ||
51 | color: 128 128 128 128; | ||
52 | } | ||
53 | description { state: "disabled_visible" 0.0; | ||
54 | inherit: "default" 0.0; | ||
55 | color: 128 128 128 128; | ||
56 | visible: 1; | ||
57 | } | ||
58 | } | ||
59 | part { name: "elm.swallow.content"; | ||
60 | type: SWALLOW; | ||
61 | description { state: "default" 0.0; | ||
62 | fixed: 1 0; | ||
63 | visible: 0; | ||
64 | align: 0.0 0.5; | ||
65 | rel1.to_x: "bg"; | ||
66 | rel1.relative: 1.0 0.0; | ||
67 | rel1.offset: 1 1; | ||
68 | rel2.to_x: "bg"; | ||
69 | rel2.offset: 1 -2; | ||
70 | rel2.relative: 1.0 1.0; | ||
71 | } | ||
72 | description { state: "visible" 0.0; | ||
73 | inherit: "default" 0.0; | ||
74 | fixed: 1 0; | ||
75 | visible: 1; | ||
76 | aspect: 1.0 1.0; | ||
77 | } | ||
78 | description { state: "disabled" 0.0; | ||
79 | inherit: "default" 0.0; | ||
80 | color: 128 128 128 128; | ||
81 | } | ||
82 | description { state: "disabled_visible" 0.0; | ||
83 | inherit: "default" 0.0; | ||
84 | color: 128 128 128 128; | ||
85 | fixed: 1 0; | ||
86 | visible: 1; | ||
87 | aspect: 1.0 1.0; | ||
88 | } | ||
89 | } | ||
90 | part { name: "elm.text"; | ||
91 | type: TEXT; | ||
92 | mouse_events: 0; | ||
93 | scale: 1; | ||
94 | description { state: "default" 0.0; | ||
95 | visible: 0; | ||
96 | rel1.to_x: "elm.swallow.content"; | ||
97 | rel1.relative: 1.0 0.0; | ||
98 | rel1.offset: 1 1; | ||
99 | rel2.relative: 1.0 1.0; | ||
100 | rel2.offset: -2 -2; | ||
101 | color: 0 0 0 255; | ||
102 | text { | ||
103 | font: "Sans,Edje-Vera"; | ||
104 | size: 10; | ||
105 | min: 0 1; | ||
106 | align: -1.0 0.5; | ||
107 | } | ||
108 | } | ||
109 | description { state: "visible" 0.0; | ||
110 | inherit: "default" 0.0; | ||
111 | visible: 1; | ||
112 | text.min: 1 1; | ||
113 | } | ||
114 | description { state: "disabled" 0.0; | ||
115 | inherit: "default" 0.0; | ||
116 | color: 0 0 0 128; | ||
117 | color3: 0 0 0 0; | ||
118 | } | ||
119 | description { state: "disabled_visible" 0.0; | ||
120 | inherit: "default" 0.0; | ||
121 | color: 0 0 0 128; | ||
122 | color3: 0 0 0 0; | ||
123 | visible: 1; | ||
124 | text.min: 1 1; | ||
125 | } | ||
126 | } | ||
127 | part { name: "events"; | ||
128 | type: RECT; | ||
129 | ignore_flags: ON_HOLD; | ||
130 | description { state: "default" 0.0; | ||
131 | color: 0 0 0 0; | ||
132 | } | ||
133 | } | ||
134 | part { name: "disabler"; | ||
135 | type: RECT; | ||
136 | description { state: "default" 0.0; | ||
137 | color: 0 0 0 0; | ||
138 | visible: 0; | ||
139 | } | ||
140 | description { state: "disabled" 0.0; | ||
141 | inherit: "default" 0.0; | ||
142 | visible: 1; | ||
143 | } | ||
144 | } | ||
145 | } | ||
146 | programs { | ||
147 | program { name: "click"; | ||
148 | signal: "mouse,up,1"; | ||
149 | source: "events"; | ||
150 | action: SIGNAL_EMIT "elm,action,check,toggle" ""; | ||
151 | } | ||
152 | program { name: "check_on"; | ||
153 | signal: "elm,state,check,on"; | ||
154 | source: "elm"; | ||
155 | action: STATE_SET "visible" 0.0; | ||
156 | target: "check"; | ||
157 | } | ||
158 | program { name: "check_off"; | ||
159 | signal: "elm,state,check,off"; | ||
160 | source: "elm"; | ||
161 | action: STATE_SET "default" 0.0; | ||
162 | target: "check"; | ||
163 | } | ||
164 | program { name: "text_show"; | ||
165 | signal: "elm,state,text,visible"; | ||
166 | source: "elm"; | ||
167 | action: STATE_SET "visible" 0.0; | ||
168 | target: "elm.text"; | ||
169 | } | ||
170 | program { name: "text_hide"; | ||
171 | signal: "elm,state,text,hidden"; | ||
172 | source: "elm"; | ||
173 | action: STATE_SET "default" 0.0; | ||
174 | target: "elm.text"; | ||
175 | } | ||
176 | program { name: "icon_show"; | ||
177 | signal: "elm,state,icon,visible"; | ||
178 | source: "elm"; | ||
179 | action: STATE_SET "visible" 0.0; | ||
180 | target: "elm.swallow.content"; | ||
181 | } | ||
182 | program { name: "icon_hide"; | ||
183 | signal: "elm,state,icon,hidden"; | ||
184 | source: "elm"; | ||
185 | action: STATE_SET "default" 0.0; | ||
186 | target: "elm.swallow.content"; | ||
187 | } | ||
188 | program { name: "disable"; | ||
189 | signal: "elm,state,disabled"; | ||
190 | source: "elm"; | ||
191 | action: STATE_SET "disabled" 0.0; | ||
192 | target: "disabler"; | ||
193 | after: "disable_text"; | ||
194 | } | ||
195 | program { name: "disable_text"; | ||
196 | script { | ||
197 | new st[31]; | ||
198 | new Float:vl; | ||
199 | get_state(PART:"elm.text", st, 30, vl); | ||
200 | if (!strcmp(st, "visible")) | ||
201 | set_state(PART:"elm.text", "disabled_visible", 0.0); | ||
202 | else | ||
203 | set_state(PART:"elm.text", "disabled", 0.0); | ||
204 | |||
205 | get_state(PART:"elm.swallow.content", st, 30, vl); | ||
206 | if (!strcmp(st, "visible")) | ||
207 | set_state(PART:"elm.swallow.content", "disabled_visible", 0.0); | ||
208 | else | ||
209 | set_state(PART:"elm.swallow.content", "disabled", 0.0); | ||
210 | |||
211 | get_state(PART:"check", st, 30, vl); | ||
212 | if (!strcmp(st, "visible")) | ||
213 | set_state(PART:"check", "disabled_visible", 0.0); | ||
214 | else | ||
215 | set_state(PART:"check", "disabled", 0.0); | ||
216 | } | ||
217 | } | ||
218 | program { name: "enable"; | ||
219 | signal: "elm,state,enabled"; | ||
220 | source: "elm"; | ||
221 | action: STATE_SET "default" 0.0; | ||
222 | target: "disabler"; | ||
223 | after: "enable_text"; | ||
224 | } | ||
225 | program { name: "enable_text"; | ||
226 | script { | ||
227 | new st[31]; | ||
228 | new Float:vl; | ||
229 | get_state(PART:"elm.text", st, 30, vl); | ||
230 | if (!strcmp(st, "disabled_visible")) | ||
231 | set_state(PART:"elm.text", "visible", 0.0); | ||
232 | else | ||
233 | set_state(PART:"elm.text", "default", 0.0); | ||
234 | |||
235 | get_state(PART:"elm.swallow.content", st, 30, vl); | ||
236 | if (!strcmp(st, "visible")) | ||
237 | set_state(PART:"elm.swallow.content", "visible", 0.0); | ||
238 | else | ||
239 | set_state(PART:"elm.swallow.content", "default", 0.0); | ||
240 | |||
241 | get_state(PART:"check", st, 30, vl); | ||
242 | if (!strcmp(st, "visible")) | ||
243 | set_state(PART:"check", "visible", 0.0); | ||
244 | else | ||
245 | set_state(PART:"check", "default", 0.0); | ||
246 | } | ||
247 | } | ||
248 | } | ||
249 | } | ||
250 | |||
251 | group { name: "elm/check/base/toggle"; | ||
252 | images { | ||
253 | image: "shelf_inset.png" COMP; | ||
254 | image: "bt_basew.png" COMP; | ||
255 | image: "bt_bases.png" COMP; | ||
256 | image: "bt_hilightw.png" COMP; | ||
257 | image: "tog_base_on.png" COMP; | ||
258 | image: "tog_base_off.png" COMP; | ||
259 | image: "tog_dis_base_on.png" COMP; | ||
260 | image: "tog_dis_base_off.png" COMP; | ||
261 | } | ||
262 | script { | ||
263 | public is_rtl; | ||
264 | } | ||
265 | parts { | ||
266 | part { name: "bg"; | ||
267 | type: RECT; | ||
268 | mouse_events: 0; | ||
269 | scale: 1; | ||
270 | description { state: "default" 0.0; | ||
271 | rel1.relative: 1.0 0.0; | ||
272 | rel1.offset: -4 3; | ||
273 | rel2.offset: -4 -4; | ||
274 | align: 1.0 0.5; | ||
275 | min: 96 16; | ||
276 | max: 96 16; | ||
277 | aspect: 4.0 4.0; | ||
278 | aspect_preference: VERTICAL; | ||
279 | color: 255 255 255 255; | ||
280 | } | ||
281 | } | ||
282 | part { name: "clipper"; | ||
283 | type: RECT; | ||
284 | mouse_events: 0; | ||
285 | description { state: "default" 0.0; | ||
286 | rel1.to: "bg"; | ||
287 | rel2.to: "bg"; | ||
288 | color: 255 255 255 255; | ||
289 | } | ||
290 | } | ||
291 | part { name: "button"; | ||
292 | type: RECT; | ||
293 | scale: 1; | ||
294 | clip_to: "clipper"; | ||
295 | mouse_events: 1; | ||
296 | dragable { | ||
297 | x: 1 1 0; | ||
298 | y: 0 0 0; | ||
299 | confine: "bg"; | ||
300 | } | ||
301 | description { state: "default" 0.0; | ||
302 | fixed: 1 1; | ||
303 | rel1.to: "bg"; | ||
304 | rel2.to: "bg"; | ||
305 | min: 16 16; | ||
306 | max: 16 16; | ||
307 | aspect: 1.0 1.0; | ||
308 | aspect_preference: VERTICAL; | ||
309 | color: 0 0 0 0; | ||
310 | } | ||
311 | } | ||
312 | part { name: "button_events"; | ||
313 | type: RECT; | ||
314 | dragable { | ||
315 | events: "button"; | ||
316 | } | ||
317 | description { state: "default" 0.0; | ||
318 | rel1.to_x: "bg"; | ||
319 | rel1.offset: 0 0; | ||
320 | rel1.relative: 0.0 0.0; | ||
321 | rel2.to_x: "bg"; | ||
322 | rel2.offset: -1 -1; | ||
323 | rel2.relative: 1.0 1.0; | ||
324 | color: 0 0 0 0; | ||
325 | } | ||
326 | } | ||
327 | part { name: "onrect"; | ||
328 | type: IMAGE; | ||
329 | scale: 1; | ||
330 | clip_to: "clipper"; | ||
331 | mouse_events: 0; | ||
332 | description { state: "default" 0.0; | ||
333 | rel1.to: "button"; | ||
334 | rel1.relative: -5.0 0.0; | ||
335 | rel2.to: "button"; | ||
336 | rel2.relative: 0.5 1.0; | ||
337 | image.normal: "tog_base_on.png"; | ||
338 | } | ||
339 | description { state: "disabled" 0.0; | ||
340 | inherit: "default" 0.0; | ||
341 | image.normal: "tog_dis_base_on.png"; | ||
342 | } | ||
343 | } | ||
344 | part { name: "offrect"; | ||
345 | type: IMAGE; | ||
346 | scale: 1; | ||
347 | clip_to: "clipper"; | ||
348 | mouse_events: 0; | ||
349 | description { state: "default" 0.0; | ||
350 | rel1.to: "button"; | ||
351 | rel1.relative: 0.5 0.0; | ||
352 | rel2.to: "button"; | ||
353 | rel2.relative: 6.0 1.0; | ||
354 | image.normal: "tog_base_off.png"; | ||
355 | } | ||
356 | description { state: "disabled" 0.0; | ||
357 | inherit: "default" 0.0; | ||
358 | image.normal: "tog_dis_base_off.png"; | ||
359 | } | ||
360 | } | ||
361 | part { name: "elm.offtext"; | ||
362 | type: TEXT; | ||
363 | mouse_events: 0; | ||
364 | scale: 1; | ||
365 | clip_to: "clipper"; | ||
366 | description { state: "default" 0.0; | ||
367 | fixed: 1 1; | ||
368 | rel1.to_x: "button"; | ||
369 | rel1.relative: 1.0 0.0; | ||
370 | rel2.to_x: "offrect"; | ||
371 | color: 0 0 0 255; | ||
372 | text { | ||
373 | font: "Sans,Edje-Vera"; | ||
374 | size: 10; | ||
375 | min: 0 1; | ||
376 | align: 0.5 0.5; | ||
377 | text: "OFF"; | ||
378 | } | ||
379 | } | ||
380 | description { state: "disabled" 0.0; | ||
381 | inherit: "default" 0.0; | ||
382 | color: 128 128 128 128; | ||
383 | } | ||
384 | } | ||
385 | part { name: "elm.ontext"; | ||
386 | type: TEXT; | ||
387 | effect: SOFT_SHADOW; | ||
388 | mouse_events: 0; | ||
389 | scale: 1; | ||
390 | clip_to: "clipper"; | ||
391 | description { state: "default" 0.0; | ||
392 | fixed: 1 1; | ||
393 | rel1.to_x: "onrect"; | ||
394 | rel1.offset: 1 1; | ||
395 | rel2.to_x: "button"; | ||
396 | rel2.offset: 0 0; | ||
397 | rel2.relative: 0.0 1.0; | ||
398 | color: 224 224 224 255; | ||
399 | color3: 0 0 0 64; | ||
400 | text { | ||
401 | font: "Sans,Edje-Vera"; | ||
402 | size: 10; | ||
403 | min: 0 1; | ||
404 | align: 0.5 0.5; | ||
405 | text: "ON"; | ||
406 | } | ||
407 | } | ||
408 | description { state: "disabled" 0.0; | ||
409 | inherit: "default" 0.0; | ||
410 | color: 128 128 128 128; | ||
411 | color3: 0 0 0 24; | ||
412 | } | ||
413 | } | ||
414 | part { name: "conf_over"; | ||
415 | mouse_events: 0; | ||
416 | description { state: "default" 0.0; | ||
417 | rel1.offset: -1 -1; | ||
418 | rel1.to: "bg"; | ||
419 | rel2.offset: 0 0; | ||
420 | rel2.to: "bg"; | ||
421 | image { | ||
422 | normal: "shelf_inset.png"; | ||
423 | border: 7 7 7 7; | ||
424 | middle: 0; | ||
425 | } | ||
426 | fill.smooth : 0; | ||
427 | } | ||
428 | } | ||
429 | part { name: "button0"; | ||
430 | mouse_events: 0; | ||
431 | clip_to: "clipper"; | ||
432 | description { state: "default" 0.0; | ||
433 | rel1.to: "button2"; | ||
434 | rel1.offset: -4 -4; | ||
435 | rel2.to: "button2"; | ||
436 | rel2.offset: 3 3; | ||
437 | image { | ||
438 | normal: "bt_bases.png"; | ||
439 | border: 11 11 11 11; | ||
440 | } | ||
441 | image.middle: SOLID; | ||
442 | color: 255 255 255 128; | ||
443 | } | ||
444 | } | ||
445 | part { name: "button2"; | ||
446 | mouse_events: 0; | ||
447 | clip_to: "clipper"; | ||
448 | description { state: "default" 0.0; | ||
449 | rel1.to: "button"; | ||
450 | rel1.offset: -2 -2; | ||
451 | rel2.to: "button"; | ||
452 | rel2.offset: 1 1; | ||
453 | image { | ||
454 | normal: "bt_basew.png"; | ||
455 | border: 7 7 7 7; | ||
456 | } | ||
457 | image.middle: SOLID; | ||
458 | } | ||
459 | } | ||
460 | part { name: "button3"; | ||
461 | mouse_events: 0; | ||
462 | clip_to: "clipper"; | ||
463 | description { state: "default" 0.0; | ||
464 | rel1.to: "button2"; | ||
465 | rel2.to: "button2"; | ||
466 | rel2.relative: 1.0 0.5; | ||
467 | image { | ||
468 | normal: "bt_hilightw.png"; | ||
469 | border: 4 4 4 0; | ||
470 | } | ||
471 | } | ||
472 | } | ||
473 | part { name: "elm.swallow.content"; | ||
474 | type: SWALLOW; | ||
475 | description { state: "default" 0.0; | ||
476 | fixed: 1 0; | ||
477 | visible: 0; | ||
478 | align: 0.0 0.5; | ||
479 | rel1.offset: 4 4; | ||
480 | rel2.relative: 0.0 1.0; | ||
481 | rel2.offset: 3 -5; | ||
482 | } | ||
483 | description { state: "visible" 0.0; | ||
484 | inherit: "default" 0.0; | ||
485 | visible: 1; | ||
486 | aspect: 1.0 1.0; | ||
487 | rel2.offset: 4 -5; | ||
488 | } | ||
489 | description { state: "disabled" 0.0; | ||
490 | inherit: "default" 0.0; | ||
491 | color: 128 128 128 128; | ||
492 | } | ||
493 | description { state: "disabled_visible" 0.0; | ||
494 | inherit: "default" 0.0; | ||
495 | color: 128 128 128 128; | ||
496 | visible: 1; | ||
497 | aspect: 1.0 1.0; | ||
498 | } | ||
499 | } | ||
500 | part { name: "elm.text"; | ||
501 | type: TEXT; | ||
502 | mouse_events: 0; | ||
503 | scale: 1; | ||
504 | description { state: "default" 0.0; | ||
505 | visible: 0; | ||
506 | rel1.to_x: "elm.swallow.content"; | ||
507 | rel1.relative: 1.0 0.0; | ||
508 | rel1.offset: 0 4; | ||
509 | rel2.to_x: "bg"; | ||
510 | rel2.relative: 0.0 1.0; | ||
511 | rel2.offset: -5 -5; | ||
512 | color: 0 0 0 255; | ||
513 | text { | ||
514 | font: "Sans,Edje-Vera"; | ||
515 | size: 10; | ||
516 | min: 0 0; | ||
517 | align: 0.0 0.5; | ||
518 | } | ||
519 | } | ||
520 | description { state: "visible" 0.0; | ||
521 | inherit: "default" 0.0; | ||
522 | visible: 1; | ||
523 | text.min: 1 1; | ||
524 | } | ||
525 | description { state: "disabled" 0.0; | ||
526 | inherit: "default" 0.0; | ||
527 | color: 128 128 128 128; | ||
528 | } | ||
529 | description { state: "disabled_visible" 0.0; | ||
530 | inherit: "default" 0.0; | ||
531 | color: 128 128 128 128; | ||
532 | visible: 1; | ||
533 | text.min: 1 1; | ||
534 | } | ||
535 | } | ||
536 | part { name: "disabler"; | ||
537 | type: RECT; | ||
538 | description { state: "default" 0.0; | ||
539 | color: 0 0 0 0; | ||
540 | visible: 0; | ||
541 | } | ||
542 | description { state: "disabled" 0.0; | ||
543 | inherit: "default" 0.0; | ||
544 | visible: 1; | ||
545 | } | ||
546 | } | ||
547 | } | ||
548 | programs { | ||
549 | program { name: "drag_end"; | ||
550 | signal: "mouse,up,1"; | ||
551 | source: "button"; | ||
552 | script { | ||
553 | new Float:dx, Float:dy; | ||
554 | get_drag(PART:"button", dx, dy); | ||
555 | if (dx > 0.5) | ||
556 | { | ||
557 | set_drag(PART:"button", 1.0, 0.0); | ||
558 | } | ||
559 | else | ||
560 | { | ||
561 | set_drag(PART:"button", 0.0, 0.0); | ||
562 | } | ||
563 | if (((get_int(is_rtl) == 1) && (dx <= 0.5)) || | ||
564 | (get_int(is_rtl) == 0) && (dx > 0.5)) { | ||
565 | emit("elm,action,check,on", ""); | ||
566 | } | ||
567 | else { | ||
568 | emit("elm,action,check,off", ""); | ||
569 | } | ||
570 | |||
571 | } | ||
572 | } | ||
573 | program { name: "check_on"; | ||
574 | signal: "elm,state,check,on"; | ||
575 | source: "elm"; | ||
576 | script { | ||
577 | new Float:drag; | ||
578 | if (get_int(is_rtl) == 0) { | ||
579 | drag = 100.0; | ||
580 | } | ||
581 | else { | ||
582 | drag = 0.0; | ||
583 | } | ||
584 | set_drag(PART:"button", drag, 0.0); | ||
585 | } | ||
586 | } | ||
587 | program { name: "check_off"; | ||
588 | signal: "elm,state,check,off"; | ||
589 | source: "elm"; | ||
590 | script { | ||
591 | new Float:drag; | ||
592 | if (get_int(is_rtl) == 0) { | ||
593 | drag = 0.0; | ||
594 | } | ||
595 | else { | ||
596 | drag = 100.0; | ||
597 | } | ||
598 | set_drag(PART:"button", drag, 0.0); | ||
599 | } | ||
600 | } | ||
601 | program { name: "text_show"; | ||
602 | signal: "elm,state,text,visible"; | ||
603 | source: "elm"; | ||
604 | action: STATE_SET "visible" 0.0; | ||
605 | target: "elm.text"; | ||
606 | } | ||
607 | program { name: "text_hide"; | ||
608 | signal: "elm,state,text,hidden"; | ||
609 | source: "elm"; | ||
610 | action: STATE_SET "default" 0.0; | ||
611 | target: "elm.text"; | ||
612 | } | ||
613 | program { name: "icon_show"; | ||
614 | signal: "elm,state,icon,visible"; | ||
615 | source: "elm"; | ||
616 | action: STATE_SET "visible" 0.0; | ||
617 | target: "elm.swallow.content"; | ||
618 | } | ||
619 | program { name: "icon_hide"; | ||
620 | signal: "elm,state,icon,hidden"; | ||
621 | source: "elm"; | ||
622 | action: STATE_SET "default" 0.0; | ||
623 | target: "elm.swallow.content"; | ||
624 | } | ||
625 | program { name: "disable"; | ||
626 | signal: "elm,state,disabled"; | ||
627 | source: "elm"; | ||
628 | action: STATE_SET "disabled" 0.0; | ||
629 | target: "elm.offtext"; | ||
630 | target: "elm.ontext"; | ||
631 | target: "onrect"; | ||
632 | target: "offrect"; | ||
633 | target: "disabler"; | ||
634 | after: "disable_text"; | ||
635 | } | ||
636 | program { name: "disable_text"; | ||
637 | script { | ||
638 | new st[31]; | ||
639 | new Float:vl; | ||
640 | get_state(PART:"elm.text", st, 30, vl); | ||
641 | if (!strcmp(st, "visible")) | ||
642 | set_state(PART:"elm.text", "disabled_visible", 0.0); | ||
643 | else | ||
644 | set_state(PART:"elm.text", "disabled", 0.0); | ||
645 | |||
646 | get_state(PART:"elm.swallow.content", st, 30, vl); | ||
647 | if (!strcmp(st, "visible")) | ||
648 | set_state(PART:"elm.swallow.content", "disabled_visible", 0.0); | ||
649 | else | ||
650 | set_state(PART:"elm.swallow.content", "disabled", 0.0); | ||
651 | } | ||
652 | } | ||
653 | program { name: "enable"; | ||
654 | signal: "elm,state,enabled"; | ||
655 | source: "elm"; | ||
656 | action: STATE_SET "default" 0.0; | ||
657 | target: "disabler"; | ||
658 | target: "onrect"; | ||
659 | target: "offrect"; | ||
660 | after: "enable_text"; | ||
661 | } | ||
662 | program { name: "enable_text"; | ||
663 | script { | ||
664 | new st[31]; | ||
665 | new Float:vl; | ||
666 | get_state(PART:"elm.text", st, 30, vl); | ||
667 | if (!strcmp(st, "disabled_visible")) | ||
668 | set_state(PART:"elm.text", "visible", 0.0); | ||
669 | else | ||
670 | set_state(PART:"elm.text", "default", 0.0); | ||
671 | |||
672 | get_state(PART:"elm.swallow.content", st, 30, vl); | ||
673 | if (!strcmp(st, "visible")) | ||
674 | set_state(PART:"elm.swallow.content", "visible", 0.0); | ||
675 | else | ||
676 | set_state(PART:"elm.swallow.content", "default", 0.0); | ||
677 | } | ||
678 | } | ||
679 | program { name: "to_rtl"; | ||
680 | signal: "edje,state,rtl"; | ||
681 | source: "edje"; | ||
682 | script { | ||
683 | set_int(is_rtl, 1); | ||
684 | } | ||
685 | } | ||
686 | program { name: "to_ltr"; | ||
687 | signal: "edje,state,ltr"; | ||
688 | source: "edje"; | ||
689 | script { | ||
690 | set_int(is_rtl, 0); | ||
691 | } | ||
692 | } | ||
693 | } | ||
694 | } | ||
diff --git a/libraries/elementary/data/themes/widgets/clock.edc b/libraries/elementary/data/themes/widgets/clock.edc new file mode 100644 index 0000000..41390b1 --- /dev/null +++ b/libraries/elementary/data/themes/widgets/clock.edc | |||
@@ -0,0 +1,1216 @@ | |||
1 | group { name: "elm/clock/flipdigit/default"; | ||
2 | images { | ||
3 | image: "flip_base.png" COMP; | ||
4 | image: "flip_base_shad.png" COMP; | ||
5 | image: "flip_shad.png" COMP; | ||
6 | image: "flip_0t.png" COMP; | ||
7 | image: "flip_0b.png" COMP; | ||
8 | image: "flip_1t.png" COMP; | ||
9 | image: "flip_1b.png" COMP; | ||
10 | image: "flip_2t.png" COMP; | ||
11 | image: "flip_2b.png" COMP; | ||
12 | image: "flip_3t.png" COMP; | ||
13 | image: "flip_3b.png" COMP; | ||
14 | image: "flip_4t.png" COMP; | ||
15 | image: "flip_4b.png" COMP; | ||
16 | image: "flip_5t.png" COMP; | ||
17 | image: "flip_5b.png" COMP; | ||
18 | image: "flip_6t.png" COMP; | ||
19 | image: "flip_6b.png" COMP; | ||
20 | image: "flip_7t.png" COMP; | ||
21 | image: "flip_7b.png" COMP; | ||
22 | image: "flip_8t.png" COMP; | ||
23 | image: "flip_8b.png" COMP; | ||
24 | image: "flip_9t.png" COMP; | ||
25 | image: "flip_9b.png" COMP; | ||
26 | image: "arrow_up.png" COMP; | ||
27 | image: "arrow_down.png" COMP; | ||
28 | } | ||
29 | script { | ||
30 | public v0_cur, v0_pre, v0_lock, v0_next; | ||
31 | |||
32 | public animator2(val, Float:pos) { | ||
33 | new st1[11], st2[11], v; | ||
34 | |||
35 | v = get_int(v0_cur); | ||
36 | snprintf(st1, 10, "%ih", v); | ||
37 | snprintf(st2, 10, "%i", v); | ||
38 | set_tween_state(PART:"bot", pos, st1, 0.0, st2, 0.0); | ||
39 | set_tween_state(PART:"sh", pos, "half", 0.0, "full", 0.0); | ||
40 | if (pos >= 1.0) { | ||
41 | set_state(PART:"sh", "default", 0.0); | ||
42 | set_int(v0_lock, 0); | ||
43 | v = get_int(v0_next); | ||
44 | if (v >= 0) { | ||
45 | set_int(v0_next, -1); | ||
46 | message(MSG_INT, 1, v); | ||
47 | } | ||
48 | } | ||
49 | } | ||
50 | public animator1(val, Float:pos) { | ||
51 | new st1[11], st2[11], v; | ||
52 | |||
53 | v = get_int(v0_pre); | ||
54 | snprintf(st1, 10, "%i", v); | ||
55 | snprintf(st2, 10, "%ih", v); | ||
56 | set_tween_state(PART:"top", pos, st1, 0.0, st2, 0.0); | ||
57 | set_tween_state(PART:"sh", pos, "default", 0.0, "half", 0.0); | ||
58 | if (pos >= 1.0) anim(0.2, "animator2", val); | ||
59 | } | ||
60 | public message(Msg_Type:type, id, ...) { | ||
61 | if ((type == MSG_INT) && (id == 1)) { | ||
62 | new value, v, buf[11]; | ||
63 | |||
64 | value = getarg(2); | ||
65 | if (get_int(v0_lock) == 1) { | ||
66 | set_int(v0_next, value); | ||
67 | return; | ||
68 | } | ||
69 | v = get_int(v0_cur); | ||
70 | set_int(v0_pre, v); | ||
71 | set_int(v0_cur, value); | ||
72 | set_int(v0_lock, 1); | ||
73 | snprintf(buf, 10, "%i", get_int(v0_pre)); | ||
74 | set_state(PART:"bot0", buf, 0.0); | ||
75 | snprintf(buf, 10, "%ih", get_int(v0_cur)); | ||
76 | set_state(PART:"bot", buf, 0.0); | ||
77 | snprintf(buf, 10, "%i", get_int(v0_cur)); | ||
78 | set_state(PART:"top0", buf, 0.0); | ||
79 | snprintf(buf, 10, "%i", get_int(v0_pre)); | ||
80 | set_state(PART:"top", buf, 0.0); | ||
81 | set_state(PART:"sh", "default", 0.0); | ||
82 | anim(0.2, "animator1", 1); | ||
83 | } | ||
84 | } | ||
85 | } | ||
86 | parts { | ||
87 | part { name: "shad"; | ||
88 | mouse_events: 0; | ||
89 | description { state: "default" 0.0; | ||
90 | rel1.offset: -4 -4; | ||
91 | rel1.to: "base"; | ||
92 | rel2.offset: 3 3; | ||
93 | rel2.to: "base"; | ||
94 | image { | ||
95 | normal: "flip_base_shad.png"; | ||
96 | border: 8 8 8 8; | ||
97 | } | ||
98 | } | ||
99 | } | ||
100 | part { name: "base"; | ||
101 | scale: 1; | ||
102 | description { state: "default" 0.0; | ||
103 | rel1.offset: 4 4; | ||
104 | rel2.offset: -5 -5; | ||
105 | // FIXME 48x96 should be the native pixel design, right now | ||
106 | // its 80x160. fix int he artwork later | ||
107 | min: 24 48; | ||
108 | aspect: 0.5 0.5; | ||
109 | // max: 24 48; | ||
110 | image.normal: "flip_base.png"; | ||
111 | } | ||
112 | } | ||
113 | part { name: "b"; | ||
114 | type: RECT; | ||
115 | mouse_events: 1; | ||
116 | description { state: "default" 0.0; | ||
117 | visible: 0; | ||
118 | rel1.to: "base"; | ||
119 | rel1.relative: 0.0 0.5; | ||
120 | rel2.to: "base"; | ||
121 | color: 0 0 0 0; | ||
122 | } | ||
123 | description { state: "visible" 0.0; | ||
124 | inherit: "default" 0.0; | ||
125 | visible: 1; | ||
126 | } | ||
127 | } | ||
128 | part { name: "t"; | ||
129 | type: RECT; | ||
130 | mouse_events: 1; | ||
131 | description { state: "default" 0.0; | ||
132 | visible: 0; | ||
133 | rel1.to: "base"; | ||
134 | rel2.to: "base"; | ||
135 | rel2.relative: 1.0 0.5; | ||
136 | color: 0 0 0 0; | ||
137 | } | ||
138 | description { state: "visible" 0.0; | ||
139 | inherit: "default" 0.0; | ||
140 | visible: 1; | ||
141 | } | ||
142 | } | ||
143 | part { name: "bot0"; | ||
144 | mouse_events: 0; | ||
145 | description { state: "default" 0.0; | ||
146 | rel1.to: "b"; | ||
147 | rel2.to: "b"; | ||
148 | image.normal: "flip_0b.png"; | ||
149 | } | ||
150 | description { state: "0" 0.0; | ||
151 | inherit: "default" 0.0; | ||
152 | image.normal: "flip_0b.png"; | ||
153 | } | ||
154 | description { state: "1" 0.0; | ||
155 | inherit: "default" 0.0; | ||
156 | image.normal: "flip_1b.png"; | ||
157 | } | ||
158 | description { state: "2" 0.0; | ||
159 | inherit: "default" 0.0; | ||
160 | image.normal: "flip_2b.png"; | ||
161 | } | ||
162 | description { state: "3" 0.0; | ||
163 | inherit: "default" 0.0; | ||
164 | image.normal: "flip_3b.png"; | ||
165 | } | ||
166 | description { state: "4" 0.0; | ||
167 | inherit: "default" 0.0; | ||
168 | image.normal: "flip_4b.png"; | ||
169 | } | ||
170 | description { state: "5" 0.0; | ||
171 | inherit: "default" 0.0; | ||
172 | image.normal: "flip_5b.png"; | ||
173 | } | ||
174 | description { state: "6" 0.0; | ||
175 | inherit: "default" 0.0; | ||
176 | image.normal: "flip_6b.png"; | ||
177 | } | ||
178 | description { state: "7" 0.0; | ||
179 | inherit: "default" 0.0; | ||
180 | image.normal: "flip_7b.png"; | ||
181 | } | ||
182 | description { state: "8" 0.0; | ||
183 | inherit: "default" 0.0; | ||
184 | image.normal: "flip_8b.png"; | ||
185 | } | ||
186 | description { state: "9" 0.0; | ||
187 | inherit: "default" 0.0; | ||
188 | image.normal: "flip_9b.png"; | ||
189 | } | ||
190 | } | ||
191 | part { name: "sh"; | ||
192 | mouse_events: 0; | ||
193 | description { state: "default" 0.0; | ||
194 | rel1.to: "b"; | ||
195 | rel2.to: "b"; | ||
196 | rel2.relative: 1.0 0.0; | ||
197 | image.normal: "flip_shad.png"; | ||
198 | } | ||
199 | description { state: "half" 0.0; | ||
200 | inherit: "default" 0.0; | ||
201 | rel2.relative: 1.0 0.5; | ||
202 | } | ||
203 | description { state: "full" 0.0; | ||
204 | inherit: "default" 0.0; | ||
205 | rel2.relative: 1.0 1.0; | ||
206 | } | ||
207 | } | ||
208 | part { name: "bot"; | ||
209 | mouse_events: 0; | ||
210 | description { state: "default" 0.0; | ||
211 | visible: 1; | ||
212 | rel1.to: "b"; | ||
213 | rel2.to: "b"; | ||
214 | image.normal: "flip_0b.png"; | ||
215 | } | ||
216 | description { state: "0" 0.0; | ||
217 | inherit: "default" 0.0; | ||
218 | visible: 1; | ||
219 | rel2.relative: 1.0 1.0; | ||
220 | image.normal: "flip_0b.png"; | ||
221 | } | ||
222 | description { state: "0h" 0.0; | ||
223 | inherit: "default" 0.0; | ||
224 | visible: 0; | ||
225 | rel2.relative: 1.0 0.0; | ||
226 | image.normal: "flip_0b.png"; | ||
227 | } | ||
228 | description { state: "1" 0.0; | ||
229 | inherit: "default" 0.0; | ||
230 | visible: 1; | ||
231 | rel2.relative: 1.0 1.0; | ||
232 | image.normal: "flip_1b.png"; | ||
233 | } | ||
234 | description { state: "1h" 0.0; | ||
235 | inherit: "default" 0.0; | ||
236 | visible: 0; | ||
237 | rel2.relative: 1.0 0.0; | ||
238 | image.normal: "flip_1b.png"; | ||
239 | } | ||
240 | description { state: "2" 0.0; | ||
241 | inherit: "default" 0.0; | ||
242 | visible: 1; | ||
243 | rel2.relative: 1.0 1.0; | ||
244 | image.normal: "flip_2b.png"; | ||
245 | } | ||
246 | description { state: "2h" 0.0; | ||
247 | inherit: "default" 0.0; | ||
248 | visible: 0; | ||
249 | rel2.relative: 1.0 0.0; | ||
250 | image.normal: "flip_2b.png"; | ||
251 | } | ||
252 | description { state: "3" 0.0; | ||
253 | inherit: "default" 0.0; | ||
254 | visible: 1; | ||
255 | rel2.relative: 1.0 1.0; | ||
256 | image.normal: "flip_3b.png"; | ||
257 | } | ||
258 | description { state: "3h" 0.0; | ||
259 | inherit: "default" 0.0; | ||
260 | visible: 0; | ||
261 | rel2.relative: 1.0 0.0; | ||
262 | image.normal: "flip_3b.png"; | ||
263 | } | ||
264 | description { state: "4" 0.0; | ||
265 | inherit: "default" 0.0; | ||
266 | visible: 1; | ||
267 | rel2.relative: 1.0 1.0; | ||
268 | image.normal: "flip_4b.png"; | ||
269 | } | ||
270 | description { state: "4h" 0.0; | ||
271 | inherit: "default" 0.0; | ||
272 | visible: 0; | ||
273 | rel2.relative: 1.0 0.0; | ||
274 | image.normal: "flip_4b.png"; | ||
275 | } | ||
276 | description { state: "5" 0.0; | ||
277 | inherit: "default" 0.0; | ||
278 | visible: 1; | ||
279 | rel2.relative: 1.0 1.0; | ||
280 | image.normal: "flip_5b.png"; | ||
281 | } | ||
282 | description { state: "5h" 0.0; | ||
283 | inherit: "default" 0.0; | ||
284 | visible: 0; | ||
285 | rel2.relative: 1.0 0.0; | ||
286 | image.normal: "flip_5b.png"; | ||
287 | } | ||
288 | description { state: "6" 0.0; | ||
289 | inherit: "default" 0.0; | ||
290 | visible: 1; | ||
291 | rel2.relative: 1.0 1.0; | ||
292 | image.normal: "flip_6b.png"; | ||
293 | } | ||
294 | description { state: "6h" 0.0; | ||
295 | inherit: "default" 0.0; | ||
296 | visible: 0; | ||
297 | rel2.relative: 1.0 0.0; | ||
298 | image.normal: "flip_6b.png"; | ||
299 | } | ||
300 | description { state: "7" 0.0; | ||
301 | inherit: "default" 0.0; | ||
302 | visible: 1; | ||
303 | rel2.relative: 1.0 1.0; | ||
304 | image.normal: "flip_7b.png"; | ||
305 | } | ||
306 | description { state: "7h" 0.0; | ||
307 | inherit: "default" 0.0; | ||
308 | visible: 0; | ||
309 | rel2.relative: 1.0 0.0; | ||
310 | image.normal: "flip_7b.png"; | ||
311 | } | ||
312 | description { state: "8" 0.0; | ||
313 | inherit: "default" 0.0; | ||
314 | visible: 1; | ||
315 | rel2.relative: 1.0 1.0; | ||
316 | image.normal: "flip_8b.png"; | ||
317 | } | ||
318 | description { state: "8h" 0.0; | ||
319 | inherit: "default" 0.0; | ||
320 | visible: 0; | ||
321 | rel2.relative: 1.0 0.0; | ||
322 | image.normal: "flip_8b.png"; | ||
323 | } | ||
324 | description { state: "9" 0.0; | ||
325 | inherit: "default" 0.0; | ||
326 | visible: 1; | ||
327 | rel2.relative: 1.0 1.0; | ||
328 | image.normal: "flip_9b.png"; | ||
329 | } | ||
330 | description { state: "9h" 0.0; | ||
331 | inherit: "default" 0.0; | ||
332 | visible: 0; | ||
333 | rel2.relative: 1.0 0.0; | ||
334 | image.normal: "flip_9b.png"; | ||
335 | } | ||
336 | } | ||
337 | part { name: "top0"; | ||
338 | mouse_events: 0; | ||
339 | description { state: "default" 0.0; | ||
340 | rel1.to: "t"; | ||
341 | rel2.to: "t"; | ||
342 | image.normal: "flip_0t.png"; | ||
343 | } | ||
344 | description { state: "0" 0.0; | ||
345 | inherit: "default" 0.0; | ||
346 | image.normal: "flip_0t.png"; | ||
347 | } | ||
348 | description { state: "1" 0.0; | ||
349 | inherit: "default" 0.0; | ||
350 | image.normal: "flip_1t.png"; | ||
351 | } | ||
352 | description { state: "2" 0.0; | ||
353 | inherit: "default" 0.0; | ||
354 | image.normal: "flip_2t.png"; | ||
355 | } | ||
356 | description { state: "3" 0.0; | ||
357 | inherit: "default" 0.0; | ||
358 | image.normal: "flip_3t.png"; | ||
359 | } | ||
360 | description { state: "4" 0.0; | ||
361 | inherit: "default" 0.0; | ||
362 | image.normal: "flip_4t.png"; | ||
363 | } | ||
364 | description { state: "5" 0.0; | ||
365 | inherit: "default" 0.0; | ||
366 | image.normal: "flip_5t.png"; | ||
367 | } | ||
368 | description { state: "6" 0.0; | ||
369 | inherit: "default" 0.0; | ||
370 | image.normal: "flip_6t.png"; | ||
371 | } | ||
372 | description { state: "7" 0.0; | ||
373 | inherit: "default" 0.0; | ||
374 | image.normal: "flip_7t.png"; | ||
375 | } | ||
376 | description { state: "8" 0.0; | ||
377 | inherit: "default" 0.0; | ||
378 | image.normal: "flip_8t.png"; | ||
379 | } | ||
380 | description { state: "9" 0.0; | ||
381 | inherit: "default" 0.0; | ||
382 | image.normal: "flip_9t.png"; | ||
383 | } | ||
384 | } | ||
385 | part { name: "top"; | ||
386 | mouse_events: 0; | ||
387 | description { state: "default" 0.0; | ||
388 | visible: 1; | ||
389 | rel1.to: "t"; | ||
390 | rel2.to: "t"; | ||
391 | image.normal: "flip_0t.png"; | ||
392 | } | ||
393 | description { state: "0" 0.0; | ||
394 | inherit: "default" 0.0; | ||
395 | visible: 1; | ||
396 | rel1.relative: 0.0 0.0; | ||
397 | image.normal: "flip_0t.png"; | ||
398 | } | ||
399 | description { state: "0h" 0.0; | ||
400 | inherit: "default" 0.0; | ||
401 | color: 128 128 128 255; | ||
402 | visible: 0; | ||
403 | rel1.relative: 0.0 1.0; | ||
404 | image.normal: "flip_0t.png"; | ||
405 | } | ||
406 | description { state: "1" 0.0; | ||
407 | inherit: "default" 0.0; | ||
408 | visible: 1; | ||
409 | rel1.relative: 0.0 0.0; | ||
410 | image.normal: "flip_1t.png"; | ||
411 | } | ||
412 | description { state: "1h" 0.0; | ||
413 | inherit: "default" 0.0; | ||
414 | color: 128 128 128 255; | ||
415 | visible: 0; | ||
416 | rel1.relative: 0.0 1.0; | ||
417 | image.normal: "flip_1t.png"; | ||
418 | } | ||
419 | description { state: "2" 0.0; | ||
420 | inherit: "default" 0.0; | ||
421 | visible: 1; | ||
422 | rel1.relative: 0.0 0.0; | ||
423 | image.normal: "flip_2t.png"; | ||
424 | } | ||
425 | description { state: "2h" 0.0; | ||
426 | inherit: "default" 0.0; | ||
427 | color: 128 128 128 255; | ||
428 | visible: 0; | ||
429 | rel1.relative: 0.0 1.0; | ||
430 | image.normal: "flip_2t.png"; | ||
431 | } | ||
432 | description { state: "3" 0.0; | ||
433 | inherit: "default" 0.0; | ||
434 | visible: 1; | ||
435 | rel1.relative: 0.0 0.0; | ||
436 | image.normal: "flip_3t.png"; | ||
437 | } | ||
438 | description { state: "3h" 0.0; | ||
439 | inherit: "default" 0.0; | ||
440 | color: 128 128 128 255; | ||
441 | visible: 0; | ||
442 | rel1.relative: 0.0 1.0; | ||
443 | image.normal: "flip_3t.png"; | ||
444 | } | ||
445 | description { state: "4" 0.0; | ||
446 | inherit: "default" 0.0; | ||
447 | visible: 1; | ||
448 | rel1.relative: 0.0 0.0; | ||
449 | image.normal: "flip_4t.png"; | ||
450 | } | ||
451 | description { state: "4h" 0.0; | ||
452 | inherit: "default" 0.0; | ||
453 | color: 128 128 128 255; | ||
454 | visible: 0; | ||
455 | rel1.relative: 0.0 1.0; | ||
456 | image.normal: "flip_4t.png"; | ||
457 | } | ||
458 | description { state: "5" 0.0; | ||
459 | inherit: "default" 0.0; | ||
460 | visible: 1; | ||
461 | rel1.relative: 0.0 0.0; | ||
462 | image.normal: "flip_5t.png"; | ||
463 | } | ||
464 | description { state: "5h" 0.0; | ||
465 | inherit: "default" 0.0; | ||
466 | color: 128 128 128 255; | ||
467 | visible: 0; | ||
468 | rel1.relative: 0.0 1.0; | ||
469 | image.normal: "flip_5t.png"; | ||
470 | } | ||
471 | description { state: "6" 0.0; | ||
472 | inherit: "default" 0.0; | ||
473 | visible: 1; | ||
474 | rel1.relative: 0.0 0.0; | ||
475 | image.normal: "flip_6t.png"; | ||
476 | } | ||
477 | description { state: "6h" 0.0; | ||
478 | inherit: "default" 0.0; | ||
479 | color: 128 128 128 255; | ||
480 | visible: 0; | ||
481 | rel1.relative: 0.0 1.0; | ||
482 | image.normal: "flip_6t.png"; | ||
483 | } | ||
484 | description { state: "7" 0.0; | ||
485 | inherit: "default" 0.0; | ||
486 | visible: 1; | ||
487 | rel1.relative: 0.0 0.0; | ||
488 | image.normal: "flip_7t.png"; | ||
489 | } | ||
490 | description { state: "7h" 0.0; | ||
491 | inherit: "default" 0.0; | ||
492 | color: 128 128 128 255; | ||
493 | visible: 0; | ||
494 | rel1.relative: 0.0 1.0; | ||
495 | image.normal: "flip_7t.png"; | ||
496 | } | ||
497 | description { state: "8" 0.0; | ||
498 | inherit: "default" 0.0; | ||
499 | visible: 1; | ||
500 | rel1.relative: 0.0 0.0; | ||
501 | image.normal: "flip_8t.png"; | ||
502 | } | ||
503 | description { state: "8h" 0.0; | ||
504 | inherit: "default" 0.0; | ||
505 | color: 128 128 128 255; | ||
506 | visible: 0; | ||
507 | rel1.relative: 0.0 1.0; | ||
508 | image.normal: "flip_8t.png"; | ||
509 | } | ||
510 | description { state: "9" 0.0; | ||
511 | inherit: "default" 0.0; | ||
512 | visible: 1; | ||
513 | rel1.relative: 0.0 0.0; | ||
514 | image.normal: "flip_9t.png"; | ||
515 | } | ||
516 | description { state: "9h" 0.0; | ||
517 | inherit: "default" 0.0; | ||
518 | color: 128 128 128 255; | ||
519 | visible: 0; | ||
520 | rel1.relative: 0.0 1.0; | ||
521 | image.normal: "flip_9t.png"; | ||
522 | } | ||
523 | } | ||
524 | part { name: "atop"; | ||
525 | mouse_events: 0; | ||
526 | scale: 1; | ||
527 | description { state: "default" 0.0; | ||
528 | visible: 0; | ||
529 | min: 15 15; | ||
530 | max: 15 15; | ||
531 | align: 0.5 0.0; | ||
532 | rel1.to: "t"; | ||
533 | rel2.to: "t"; | ||
534 | image.normal: "arrow_up.png"; | ||
535 | } | ||
536 | description { state: "visible" 0.0; | ||
537 | inherit: "default" 0.0; | ||
538 | visible: 1; | ||
539 | } | ||
540 | } | ||
541 | part { name: "abot"; | ||
542 | mouse_events: 0; | ||
543 | scale: 1; | ||
544 | description { state: "default" 0.0; | ||
545 | visible: 0; | ||
546 | min: 15 15; | ||
547 | max: 15 15; | ||
548 | align: 0.5 1.0; | ||
549 | rel1.to: "b"; | ||
550 | rel2.to: "b"; | ||
551 | image.normal: "arrow_down.png"; | ||
552 | } | ||
553 | description { state: "visible" 0.0; | ||
554 | inherit: "default" 0.0; | ||
555 | visible: 1; | ||
556 | } | ||
557 | } | ||
558 | } | ||
559 | programs { | ||
560 | program { name: "load"; | ||
561 | signal: "load"; | ||
562 | source: ""; | ||
563 | script { | ||
564 | set_int(v0_cur, 0); | ||
565 | set_int(v0_pre, 0); | ||
566 | set_int(v0_lock, 0); | ||
567 | set_int(v0_next, -1); | ||
568 | } | ||
569 | } | ||
570 | program { name: "edit_on"; | ||
571 | signal: "elm,state,edit,on"; | ||
572 | source: "elm"; | ||
573 | action: STATE_SET "visible" 0.0; | ||
574 | target: "atop"; | ||
575 | target: "abot"; | ||
576 | target: "t"; | ||
577 | target: "b"; | ||
578 | } | ||
579 | program { name: "edit_off"; | ||
580 | signal: "elm,state,edit,off"; | ||
581 | source: "elm"; | ||
582 | action: STATE_SET "default" 0.0; | ||
583 | target: "atop"; | ||
584 | target: "abot"; | ||
585 | target: "t"; | ||
586 | target: "b"; | ||
587 | } | ||
588 | program { name: "up"; | ||
589 | signal: "mouse,down,1"; | ||
590 | source: "t"; | ||
591 | action: SIGNAL_EMIT "elm,action,up,start" ""; | ||
592 | } | ||
593 | program { name: "up,stop"; | ||
594 | signal: "mouse,up,1"; | ||
595 | source: "t"; | ||
596 | action: SIGNAL_EMIT "elm,action,up,stop" ""; | ||
597 | } | ||
598 | program { name: "down"; | ||
599 | signal: "mouse,down,1"; | ||
600 | source: "b"; | ||
601 | action: SIGNAL_EMIT "elm,action,down,start" ""; | ||
602 | } | ||
603 | program { name: "down,stop"; | ||
604 | signal: "mouse,up,1"; | ||
605 | source: "b"; | ||
606 | action: SIGNAL_EMIT "elm,action,down,stop" ""; | ||
607 | } | ||
608 | } | ||
609 | } | ||
610 | |||
611 | group { name: "elm/clock/flipampm/default"; | ||
612 | images { | ||
613 | image: "flip_base.png" COMP; | ||
614 | image: "flip_base_shad.png" COMP; | ||
615 | image: "flip_shad.png" COMP; | ||
616 | image: "flip_amt.png" COMP; | ||
617 | image: "flip_amb.png" COMP; | ||
618 | image: "flip_pmt.png" COMP; | ||
619 | image: "flip_pmb.png" COMP; | ||
620 | image: "arrow_up.png" COMP; | ||
621 | image: "arrow_down.png" COMP; | ||
622 | } | ||
623 | script { | ||
624 | public v0_cur, v0_pre, v0_lock, v0_next; | ||
625 | |||
626 | public animator2(val, Float:pos) { | ||
627 | new st1[11], st2[11], v; | ||
628 | |||
629 | v = get_int(v0_cur); | ||
630 | snprintf(st1, 10, "%ih", v); | ||
631 | snprintf(st2, 10, "%i", v); | ||
632 | set_tween_state(PART:"bot", pos, st1, 0.0, st2, 0.0); | ||
633 | set_tween_state(PART:"sh", pos, "half", 0.0, "full", 0.0); | ||
634 | if (pos >= 1.0) { | ||
635 | set_state(PART:"sh", "default", 0.0); | ||
636 | set_int(v0_lock, 0); | ||
637 | v = get_int(v0_next); | ||
638 | if (v >= 0) { | ||
639 | set_int(v0_next, -1); | ||
640 | message(MSG_INT, 1, v); | ||
641 | } | ||
642 | } | ||
643 | } | ||
644 | public animator1(val, Float:pos) { | ||
645 | new st1[11], st2[11], v; | ||
646 | |||
647 | v = get_int(v0_pre); | ||
648 | snprintf(st1, 10, "%i", v); | ||
649 | snprintf(st2, 10, "%ih", v); | ||
650 | set_tween_state(PART:"top", pos, st1, 0.0, st2, 0.0); | ||
651 | set_tween_state(PART:"sh", pos, "default", 0.0, "half", 0.0); | ||
652 | if (pos >= 1.0) anim(0.2, "animator2", val); | ||
653 | } | ||
654 | public message(Msg_Type:type, id, ...) { | ||
655 | if ((type == MSG_INT) && (id == 1)) { | ||
656 | new value, v, buf[11]; | ||
657 | |||
658 | value = getarg(2); | ||
659 | if (get_int(v0_lock) == 1) { | ||
660 | set_int(v0_next, value); | ||
661 | return; | ||
662 | } | ||
663 | v = get_int(v0_cur); | ||
664 | set_int(v0_pre, v); | ||
665 | set_int(v0_cur, value); | ||
666 | set_int(v0_lock, 1); | ||
667 | snprintf(buf, 10, "%i", get_int(v0_pre)); | ||
668 | set_state(PART:"bot0", buf, 0.0); | ||
669 | snprintf(buf, 10, "%ih", get_int(v0_cur)); | ||
670 | set_state(PART:"bot", buf, 0.0); | ||
671 | snprintf(buf, 10, "%i", get_int(v0_cur)); | ||
672 | set_state(PART:"top0", buf, 0.0); | ||
673 | snprintf(buf, 10, "%i", get_int(v0_pre)); | ||
674 | set_state(PART:"top", buf, 0.0); | ||
675 | set_state(PART:"sh", "default", 0.0); | ||
676 | anim(0.2, "animator1", 1); | ||
677 | } | ||
678 | } | ||
679 | } | ||
680 | parts { | ||
681 | part { name: "shad"; | ||
682 | mouse_events: 0; | ||
683 | description { state: "default" 0.0; | ||
684 | rel1.offset: -4 -4; | ||
685 | rel1.to: "base"; | ||
686 | rel2.offset: 3 3; | ||
687 | rel2.to: "base"; | ||
688 | image { | ||
689 | normal: "flip_base_shad.png"; | ||
690 | border: 8 8 8 8; | ||
691 | } | ||
692 | } | ||
693 | } | ||
694 | part { name: "base"; | ||
695 | mouse_events: 0; | ||
696 | scale: 1; | ||
697 | description { state: "default" 0.0; | ||
698 | rel1.offset: 4 4; | ||
699 | rel2.offset: -5 -5; | ||
700 | // FIXME 48x96 should be the native pixel design, right now | ||
701 | // its 80x160. fix int he artwork later | ||
702 | aspect: 0.5 0.5; | ||
703 | min: 24 48; | ||
704 | // max: 24 48; | ||
705 | image.normal: "flip_base.png"; | ||
706 | } | ||
707 | } | ||
708 | part { name: "b"; | ||
709 | type: RECT; | ||
710 | mouse_events: 1; | ||
711 | description { state: "default" 0.0; | ||
712 | rel1.to: "base"; | ||
713 | rel1.relative: 0.0 0.5; | ||
714 | rel2.to: "base"; | ||
715 | color: 0 0 0 0; | ||
716 | } | ||
717 | } | ||
718 | part { name: "t"; | ||
719 | type: RECT; | ||
720 | mouse_events: 1; | ||
721 | description { state: "default" 0.0; | ||
722 | rel1.to: "base"; | ||
723 | rel2.to: "base"; | ||
724 | rel2.relative: 1.0 0.5; | ||
725 | color: 0 0 0 0; | ||
726 | } | ||
727 | } | ||
728 | part { name: "bot0"; | ||
729 | mouse_events: 0; | ||
730 | description { state: "default" 0.0; | ||
731 | rel1.to: "b"; | ||
732 | rel2.to: "b"; | ||
733 | image.normal: "flip_amb.png"; | ||
734 | } | ||
735 | description { state: "0" 0.0; | ||
736 | inherit: "default" 0.0; | ||
737 | image.normal: "flip_amb.png"; | ||
738 | } | ||
739 | description { state: "1" 0.0; | ||
740 | inherit: "default" 0.0; | ||
741 | image.normal: "flip_pmb.png"; | ||
742 | } | ||
743 | } | ||
744 | part { name: "sh"; | ||
745 | mouse_events: 0; | ||
746 | description { state: "default" 0.0; | ||
747 | rel1.to: "b"; | ||
748 | rel2.to: "b"; | ||
749 | rel2.relative: 1.0 0.0; | ||
750 | image.normal: "flip_shad.png"; | ||
751 | } | ||
752 | description { state: "half" 0.0; | ||
753 | inherit: "default" 0.0; | ||
754 | rel2.relative: 1.0 0.5; | ||
755 | } | ||
756 | description { state: "full" 0.0; | ||
757 | inherit: "default" 0.0; | ||
758 | rel2.relative: 1.0 1.0; | ||
759 | } | ||
760 | } | ||
761 | part { name: "bot"; | ||
762 | mouse_events: 0; | ||
763 | description { state: "default" 0.0; | ||
764 | visible: 1; | ||
765 | rel1.to: "b"; | ||
766 | rel2.to: "b"; | ||
767 | image.normal: "flip_amb.png"; | ||
768 | } | ||
769 | description { state: "0" 0.0; | ||
770 | inherit: "default" 0.0; | ||
771 | visible: 1; | ||
772 | rel2.relative: 1.0 1.0; | ||
773 | image.normal: "flip_amb.png"; | ||
774 | } | ||
775 | description { state: "0h" 0.0; | ||
776 | inherit: "default" 0.0; | ||
777 | visible: 0; | ||
778 | rel2.relative: 1.0 0.0; | ||
779 | image.normal: "flip_amb.png"; | ||
780 | } | ||
781 | description { state: "1" 0.0; | ||
782 | inherit: "default" 0.0; | ||
783 | visible: 1; | ||
784 | rel2.relative: 1.0 1.0; | ||
785 | image.normal: "flip_pmb.png"; | ||
786 | } | ||
787 | description { state: "1h" 0.0; | ||
788 | inherit: "default" 0.0; | ||
789 | visible: 0; | ||
790 | rel2.relative: 1.0 0.0; | ||
791 | image.normal: "flip_pmb.png"; | ||
792 | } | ||
793 | } | ||
794 | part { name: "top0"; | ||
795 | mouse_events: 0; | ||
796 | description { state: "default" 0.0; | ||
797 | rel1.to: "t"; | ||
798 | rel2.to: "t"; | ||
799 | image.normal: "flip_amt.png"; | ||
800 | } | ||
801 | description { state: "0" 0.0; | ||
802 | inherit: "default" 0.0; | ||
803 | image.normal: "flip_amt.png"; | ||
804 | } | ||
805 | description { state: "1" 0.0; | ||
806 | inherit: "default" 0.0; | ||
807 | image.normal: "flip_pmt.png"; | ||
808 | } | ||
809 | } | ||
810 | part { name: "top"; | ||
811 | mouse_events: 0; | ||
812 | description { state: "default" 0.0; | ||
813 | visible: 1; | ||
814 | rel1.to: "t"; | ||
815 | rel2.to: "t"; | ||
816 | image.normal: "flip_amt.png"; | ||
817 | } | ||
818 | description { state: "0" 0.0; | ||
819 | inherit: "default" 0.0; | ||
820 | visible: 1; | ||
821 | rel1.relative: 0.0 0.0; | ||
822 | image.normal: "flip_amt.png"; | ||
823 | } | ||
824 | description { state: "0h" 0.0; | ||
825 | inherit: "default" 0.0; | ||
826 | color: 128 128 128 255; | ||
827 | visible: 0; | ||
828 | rel1.relative: 0.0 1.0; | ||
829 | image.normal: "flip_amt.png"; | ||
830 | } | ||
831 | description { state: "1" 0.0; | ||
832 | inherit: "default" 0.0; | ||
833 | visible: 1; | ||
834 | rel1.relative: 0.0 0.0; | ||
835 | image.normal: "flip_pmt.png"; | ||
836 | } | ||
837 | description { state: "1h" 0.0; | ||
838 | inherit: "default" 0.0; | ||
839 | color: 128 128 128 255; | ||
840 | visible: 0; | ||
841 | rel1.relative: 0.0 1.0; | ||
842 | image.normal: "flip_pmt.png"; | ||
843 | } | ||
844 | } | ||
845 | part { name: "atop"; | ||
846 | mouse_events: 0; | ||
847 | scale: 1; | ||
848 | description { state: "default" 0.0; | ||
849 | visible: 0; | ||
850 | min: 15 15; | ||
851 | max: 15 15; | ||
852 | align: 0.5 0.0; | ||
853 | rel1.to: "t"; | ||
854 | rel2.to: "t"; | ||
855 | image.normal: "arrow_up.png"; | ||
856 | } | ||
857 | description { state: "visible" 0.0; | ||
858 | inherit: "default" 0.0; | ||
859 | visible: 1; | ||
860 | } | ||
861 | } | ||
862 | part { name: "abot"; | ||
863 | mouse_events: 0; | ||
864 | scale: 1; | ||
865 | description { state: "default" 0.0; | ||
866 | visible: 0; | ||
867 | min: 15 15; | ||
868 | max: 15 15; | ||
869 | align: 0.5 1.0; | ||
870 | rel1.to: "b"; | ||
871 | rel2.to: "b"; | ||
872 | image.normal: "arrow_down.png"; | ||
873 | } | ||
874 | description { state: "visible" 0.0; | ||
875 | inherit: "default" 0.0; | ||
876 | visible: 1; | ||
877 | } | ||
878 | } | ||
879 | } | ||
880 | programs { | ||
881 | program { name: "load"; | ||
882 | signal: "load"; | ||
883 | source: ""; | ||
884 | script { | ||
885 | set_int(v0_cur, 0); | ||
886 | set_int(v0_pre, 0); | ||
887 | set_int(v0_lock, 0); | ||
888 | set_int(v0_next, -1); | ||
889 | } | ||
890 | } | ||
891 | program { name: "edit_on"; | ||
892 | signal: "elm,state,edit,on"; | ||
893 | source: "elm"; | ||
894 | action: STATE_SET "visible" 0.0; | ||
895 | target: "atop"; | ||
896 | target: "abot"; | ||
897 | } | ||
898 | /* | ||
899 | program { name: "edit_off"; | ||
900 | signal: "elm,state,edit,off"; | ||
901 | source: "elm"; | ||
902 | action: STATE_SET "default" 0.0; | ||
903 | target: "atop"; | ||
904 | target: "abot"; | ||
905 | } | ||
906 | */ | ||
907 | program { name: "up"; | ||
908 | signal: "mouse,down,1"; | ||
909 | source: "t"; | ||
910 | action: SIGNAL_EMIT "elm,action,up,start" ""; | ||
911 | } | ||
912 | program { name: "up,stop"; | ||
913 | signal: "mouse,up,1"; | ||
914 | source: "t"; | ||
915 | action: SIGNAL_EMIT "elm,action,up,stop" ""; | ||
916 | } | ||
917 | program { name: "down"; | ||
918 | signal: "mouse,down,1"; | ||
919 | source: "b"; | ||
920 | action: SIGNAL_EMIT "elm,action,down,start" ""; | ||
921 | } | ||
922 | program { name: "down,stop"; | ||
923 | signal: "mouse,up,1"; | ||
924 | source: "b"; | ||
925 | action: SIGNAL_EMIT "elm,action,down,stop" ""; | ||
926 | } | ||
927 | } | ||
928 | } | ||
929 | |||
930 | group { name: "elm/clock/base-all/default"; | ||
931 | parts { | ||
932 | part { name: "d0"; | ||
933 | type: SWALLOW; | ||
934 | description { state: "default" 0.0; | ||
935 | rel1.relative: 0.0000000 0.0; | ||
936 | rel2.relative: 0.1250000 1.0; | ||
937 | } | ||
938 | } | ||
939 | part { name: "d1"; | ||
940 | type: SWALLOW; | ||
941 | description { state: "default" 0.0; | ||
942 | rel1.relative: 0.1250000 0.0; | ||
943 | rel2.relative: 0.2500000 1.0; | ||
944 | } | ||
945 | } | ||
946 | part { name: "c0"; | ||
947 | type: TEXT; | ||
948 | mouse_events: 0; | ||
949 | scale: 1; | ||
950 | description { state: "default" 0.0; | ||
951 | rel1.relative: 0.2500000 0.0; | ||
952 | rel2.relative: 0.3125000 1.0; | ||
953 | color: 0 0 0 255; | ||
954 | text { | ||
955 | font: "Sans,Edje-Vera"; | ||
956 | text: ":"; | ||
957 | size: 10; | ||
958 | min: 1 1; | ||
959 | align: 0.5 0.5; | ||
960 | } | ||
961 | } | ||
962 | } | ||
963 | part { name: "d2"; | ||
964 | type: SWALLOW; | ||
965 | description { state: "default" 0.0; | ||
966 | rel1.relative: 0.3125000 0.0; | ||
967 | rel2.relative: 0.4375000 1.0; | ||
968 | } | ||
969 | } | ||
970 | part { name: "d3"; | ||
971 | type: SWALLOW; | ||
972 | description { state: "default" 0.0; | ||
973 | rel1.relative: 0.4375000 0.0; | ||
974 | rel2.relative: 0.5625000 1.0; | ||
975 | } | ||
976 | } | ||
977 | // (if seconds) | ||
978 | part { name: "c1"; | ||
979 | type: TEXT; | ||
980 | mouse_events: 0; | ||
981 | scale: 1; | ||
982 | description { state: "default" 0.0; | ||
983 | rel1.relative: 0.5625000 0.0; | ||
984 | rel2.relative: 0.6250000 1.0; | ||
985 | color: 0 0 0 255; | ||
986 | text { | ||
987 | font: "Sans,Edje-Vera"; | ||
988 | text: ":"; | ||
989 | size: 10; | ||
990 | min: 1 1; | ||
991 | align: 0.5 0.5; | ||
992 | } | ||
993 | } | ||
994 | } | ||
995 | // (if seconds) | ||
996 | part { name: "d4"; | ||
997 | type: SWALLOW; | ||
998 | description { state: "default" 0.0; | ||
999 | rel1.relative: 0.6250000 0.0; | ||
1000 | rel2.relative: 0.7500000 1.0; | ||
1001 | } | ||
1002 | } | ||
1003 | // (if seconds) | ||
1004 | part { name: "d5"; | ||
1005 | type: SWALLOW; | ||
1006 | description { state: "default" 0.0; | ||
1007 | rel1.relative: 0.7500000 0.0; | ||
1008 | rel2.relative: 0.8750000 1.0; | ||
1009 | } | ||
1010 | } | ||
1011 | // (if am_pm) | ||
1012 | part { name: "ampm"; | ||
1013 | type: SWALLOW; | ||
1014 | description { state: "default" 0.0; | ||
1015 | rel1.relative: 0.8750000 0.0; | ||
1016 | rel2.relative: 1.0 1.0; | ||
1017 | } | ||
1018 | } | ||
1019 | } | ||
1020 | } | ||
1021 | |||
1022 | /////////////////////////////////////////////////////////////////////////////// | ||
1023 | group { name: "elm/clock/base-seconds/default"; | ||
1024 | parts { | ||
1025 | part { name: "d0"; | ||
1026 | type: SWALLOW; | ||
1027 | description { state: "default" 0.0; | ||
1028 | rel1.relative: 0.000000000 0.0; | ||
1029 | rel2.relative: 0.142857143 1.0; | ||
1030 | } | ||
1031 | } | ||
1032 | part { name: "d1"; | ||
1033 | type: SWALLOW; | ||
1034 | description { state: "default" 0.0; | ||
1035 | rel1.relative: 0.142857143 0.0; | ||
1036 | rel2.relative: 0.285714286 1.0; | ||
1037 | } | ||
1038 | } | ||
1039 | part { name: "c0"; | ||
1040 | type: TEXT; | ||
1041 | mouse_events: 0; | ||
1042 | scale: 1; | ||
1043 | description { state: "default" 0.0; | ||
1044 | rel1.relative: 0.285714286 0.0; | ||
1045 | rel2.relative: 0.357142857 1.0; | ||
1046 | color: 0 0 0 255; | ||
1047 | text { | ||
1048 | font: "Sans,Edje-Vera"; | ||
1049 | text: ":"; | ||
1050 | size: 10; | ||
1051 | min: 1 1; | ||
1052 | align: 0.5 0.5; | ||
1053 | } | ||
1054 | } | ||
1055 | } | ||
1056 | part { name: "d2"; | ||
1057 | type: SWALLOW; | ||
1058 | description { state: "default" 0.0; | ||
1059 | rel1.relative: 0.357142857 0.0; | ||
1060 | rel2.relative: 0.500000000 1.0; | ||
1061 | } | ||
1062 | } | ||
1063 | part { name: "d3"; | ||
1064 | type: SWALLOW; | ||
1065 | description { state: "default" 0.0; | ||
1066 | rel1.relative: 0.500000000 0.0; | ||
1067 | rel2.relative: 0.642857143 1.0; | ||
1068 | } | ||
1069 | } | ||
1070 | // (if seconds) | ||
1071 | part { name: "c1"; | ||
1072 | type: TEXT; | ||
1073 | mouse_events: 0; | ||
1074 | scale: 1; | ||
1075 | description { state: "default" 0.0; | ||
1076 | rel1.relative: 0.642857143 0.0; | ||
1077 | rel2.relative: 0.714285714 1.0; | ||
1078 | color: 0 0 0 255; | ||
1079 | text { | ||
1080 | font: "Sans,Edje-Vera"; | ||
1081 | text: ":"; | ||
1082 | size: 10; | ||
1083 | min: 1 1; | ||
1084 | align: 0.5 0.5; | ||
1085 | } | ||
1086 | } | ||
1087 | } | ||
1088 | // (if seconds) | ||
1089 | part { name: "d4"; | ||
1090 | type: SWALLOW; | ||
1091 | description { state: "default" 0.0; | ||
1092 | rel1.relative: 0.714285714 0.0; | ||
1093 | rel2.relative: 0.857142857 1.0; | ||
1094 | } | ||
1095 | } | ||
1096 | // (if seconds) | ||
1097 | part { name: "d5"; | ||
1098 | type: SWALLOW; | ||
1099 | description { state: "default" 0.0; | ||
1100 | rel1.relative: 0.857142857 0.0; | ||
1101 | rel2.relative: 1.000000000 1.0; | ||
1102 | } | ||
1103 | } | ||
1104 | } | ||
1105 | } | ||
1106 | |||
1107 | /////////////////////////////////////////////////////////////////////////////// | ||
1108 | group { name: "elm/clock/base-am_pm/default"; | ||
1109 | parts { | ||
1110 | part { name: "d0"; | ||
1111 | type: SWALLOW; | ||
1112 | description { state: "default" 0.0; | ||
1113 | rel1.relative: 0.000000000 0.0; | ||
1114 | rel2.relative: 0.181818182 1.0; | ||
1115 | } | ||
1116 | } | ||
1117 | part { name: "d1"; | ||
1118 | type: SWALLOW; | ||
1119 | description { state: "default" 0.0; | ||
1120 | rel1.relative: 0.181818182 0.0; | ||
1121 | rel2.relative: 0.363636364 1.0; | ||
1122 | } | ||
1123 | } | ||
1124 | part { name: "c0"; | ||
1125 | type: TEXT; | ||
1126 | mouse_events: 0; | ||
1127 | scale: 1; | ||
1128 | description { state: "default" 0.0; | ||
1129 | rel1.relative: 0.363636364 0.0; | ||
1130 | rel2.relative: 0.454545455 1.0; | ||
1131 | color: 0 0 0 255; | ||
1132 | text { | ||
1133 | font: "Sans,Edje-Vera"; | ||
1134 | text: ":"; | ||
1135 | size: 10; | ||
1136 | min: 1 1; | ||
1137 | align: 0.5 0.5; | ||
1138 | } | ||
1139 | } | ||
1140 | } | ||
1141 | part { name: "d2"; | ||
1142 | type: SWALLOW; | ||
1143 | description { state: "default" 0.0; | ||
1144 | rel1.relative: 0.454545455 0.0; | ||
1145 | rel2.relative: 0.636363636 1.0; | ||
1146 | } | ||
1147 | } | ||
1148 | part { name: "d3"; | ||
1149 | type: SWALLOW; | ||
1150 | description { state: "default" 0.0; | ||
1151 | rel1.relative: 0.636363636 0.0; | ||
1152 | rel2.relative: 0.818181818 1.0; | ||
1153 | } | ||
1154 | } | ||
1155 | // (if am_pm) | ||
1156 | part { name: "ampm"; | ||
1157 | type: SWALLOW; | ||
1158 | description { state: "default" 0.0; | ||
1159 | rel1.relative: 0.818181818 0.0; | ||
1160 | rel2.relative: 1.0 1.0; | ||
1161 | } | ||
1162 | } | ||
1163 | } | ||
1164 | } | ||
1165 | |||
1166 | /////////////////////////////////////////////////////////////////////////////// | ||
1167 | group { name: "elm/clock/base/default"; | ||
1168 | parts { | ||
1169 | part { name: "d0"; | ||
1170 | type: SWALLOW; | ||
1171 | description { state: "default" 0.0; | ||
1172 | rel1.relative: 0.000000000 0.0; | ||
1173 | rel2.relative: 0.222222222 1.0; | ||
1174 | } | ||
1175 | } | ||
1176 | part { name: "d1"; | ||
1177 | type: SWALLOW; | ||
1178 | description { state: "default" 0.0; | ||
1179 | rel1.relative: 0.222222222 0.0; | ||
1180 | rel2.relative: 0.444444444 1.0; | ||
1181 | } | ||
1182 | } | ||
1183 | part { name: "c0"; | ||
1184 | type: TEXT; | ||
1185 | mouse_events: 0; | ||
1186 | scale: 1; | ||
1187 | description { state: "default" 0.0; | ||
1188 | rel1.relative: 0.444444444 0.0; | ||
1189 | rel2.relative: 0.555555556 1.0; | ||
1190 | color: 0 0 0 255; | ||
1191 | text { | ||
1192 | font: "Sans,Edje-Vera"; | ||
1193 | text: ":"; | ||
1194 | size: 10; | ||
1195 | min: 1 1; | ||
1196 | align: 0.5 0.5; | ||
1197 | } | ||
1198 | } | ||
1199 | } | ||
1200 | part { name: "d2"; | ||
1201 | type: SWALLOW; | ||
1202 | description { state: "default" 0.0; | ||
1203 | rel1.relative: 0.555555556 0.0; | ||
1204 | rel2.relative: 0.777777778 1.0; | ||
1205 | } | ||
1206 | } | ||
1207 | part { name: "d3"; | ||
1208 | type: SWALLOW; | ||
1209 | description { state: "default" 0.0; | ||
1210 | rel1.relative: 0.777777778 0.0; | ||
1211 | rel2.relative: 1.000000000 1.0; | ||
1212 | } | ||
1213 | } | ||
1214 | } | ||
1215 | } | ||
1216 | |||
diff --git a/libraries/elementary/data/themes/widgets/colorselector.edc b/libraries/elementary/data/themes/widgets/colorselector.edc new file mode 100644 index 0000000..5ae8d16 --- /dev/null +++ b/libraries/elementary/data/themes/widgets/colorselector.edc | |||
@@ -0,0 +1,401 @@ | |||
1 | /////////////////////////////////////////////////////////////////////////////// | ||
2 | group { | ||
3 | name: "elm/colorselector/palette/default"; | ||
4 | data.item: "horizontal_pad" "10"; | ||
5 | data.item: "vertical_pad" "10"; | ||
6 | parts { | ||
7 | part { name: "palette"; | ||
8 | type: SWALLOW; | ||
9 | scale: 1; | ||
10 | description { state: "default" 0.0; | ||
11 | align: 0.0 0.0; | ||
12 | rel1 { | ||
13 | relative: 0.0 0.0; | ||
14 | } | ||
15 | rel2 { | ||
16 | relative: 1.0 0.0; | ||
17 | } | ||
18 | } | ||
19 | } | ||
20 | part{ name: "bottom_padding"; | ||
21 | type: RECT; | ||
22 | scale: 1; | ||
23 | description { state: "default" 0.0; | ||
24 | visible: 0; | ||
25 | min: 0 20; | ||
26 | fixed: 0 1; | ||
27 | rel1.relative: 0.0 1.0; | ||
28 | rel1.to: "palette"; | ||
29 | rel2.to: "palette"; | ||
30 | align: 0.0 0.0; | ||
31 | } | ||
32 | description { state: "disabled" 0.0; | ||
33 | inherit: "default" 0.0; | ||
34 | min: 0 0; | ||
35 | } | ||
36 | } | ||
37 | part { name: "selector"; | ||
38 | type: SWALLOW; | ||
39 | scale: 1; | ||
40 | description { state: "default" 0.0; | ||
41 | align: 0.0 1.0; | ||
42 | rel1 { | ||
43 | relative: 0.0 1.0; | ||
44 | to: "bottom_padding"; | ||
45 | } | ||
46 | } | ||
47 | } | ||
48 | } | ||
49 | programs { | ||
50 | program { name: "palette"; | ||
51 | source: "elm"; | ||
52 | signal: "elm,state,palette"; | ||
53 | action: STATE_SET "disabled" 0.0; | ||
54 | target: "bottom_padding"; | ||
55 | } | ||
56 | program { name: "components"; | ||
57 | source: "elm"; | ||
58 | signal: "elm,state,components"; | ||
59 | action: STATE_SET "disabled" 0.0; | ||
60 | target: "bottom_padding"; | ||
61 | } | ||
62 | program { name: "both"; | ||
63 | source: "elm"; | ||
64 | signal: "elm,state,both"; | ||
65 | action: STATE_SET "default" 0.0; | ||
66 | target: "bottom_padding"; | ||
67 | } | ||
68 | |||
69 | } | ||
70 | } | ||
71 | |||
72 | group { name: "elm/colorselector/bg/default"; | ||
73 | parts { | ||
74 | part { name: "elm.colorbar_0"; | ||
75 | type: SWALLOW; | ||
76 | description { state: "default" 0.0; | ||
77 | min: 120 30; | ||
78 | rel1.relative: 0.0 0.00653594771; | ||
79 | rel2.relative: 1.0 0.254901961; | ||
80 | } | ||
81 | } | ||
82 | part { name: "elm.colorbar_1"; | ||
83 | type: SWALLOW; | ||
84 | description { state: "default" 0.0; | ||
85 | min: 120 30; | ||
86 | rel1.relative: 0.0 0.254901961; | ||
87 | rel2.relative: 1.0 0.503267974; | ||
88 | } | ||
89 | } | ||
90 | part { name: "elm.colorbar_2"; | ||
91 | type: SWALLOW; | ||
92 | description { state: "default" 0.0; | ||
93 | min: 120 30; | ||
94 | rel1.relative: 0.0 0.503267974; | ||
95 | rel2.relative: 1.0 0.751633987; | ||
96 | } | ||
97 | } | ||
98 | part { name: "elm.colorbar_3"; | ||
99 | type: SWALLOW; | ||
100 | description { state: "default" 0.0; | ||
101 | min: 120 30; | ||
102 | rel1.relative: 0.0 0.751633987; | ||
103 | rel2.relative: 1.0 1.0; | ||
104 | } | ||
105 | } | ||
106 | } | ||
107 | } | ||
108 | |||
109 | group { name: "elm/colorselector/base/default"; | ||
110 | parts { | ||
111 | part { name: "elm.bar_bg"; | ||
112 | type: SWALLOW; | ||
113 | mouse_events: 0; | ||
114 | description { state: "default" 0.0; | ||
115 | min: 60 22; | ||
116 | rel1 { | ||
117 | relative: 0.0 0.8; | ||
118 | to_x: "elm.arrow_bg"; | ||
119 | to_y: "elm.arrow_icon"; | ||
120 | offset: 0 0; | ||
121 | } | ||
122 | rel2 { | ||
123 | relative: 1.0 0.83; | ||
124 | to_x: "elm.arrow_bg"; | ||
125 | offset: 0 0; | ||
126 | } | ||
127 | } | ||
128 | } | ||
129 | part { name: "elm.bar"; | ||
130 | type: SWALLOW; | ||
131 | mouse_events: 0; | ||
132 | description { state: "default" 0.0; | ||
133 | rel1.to: "elm.bar_bg"; | ||
134 | rel2.to: "elm.bar_bg"; | ||
135 | } | ||
136 | } | ||
137 | part { name: "elm.arrow_bg"; | ||
138 | type: SWALLOW; | ||
139 | description { state: "default" 0.0; | ||
140 | rel1 { | ||
141 | relative: 1.0 0.17; | ||
142 | offset: 3 0; | ||
143 | to_x: "elm.l_button"; | ||
144 | } | ||
145 | rel2 { | ||
146 | relative: 0.0 0.83; | ||
147 | offset: -4 0; | ||
148 | to_x: "elm.r_button"; | ||
149 | } | ||
150 | } | ||
151 | } | ||
152 | part { name: "elm.arrow"; | ||
153 | type: RECT; | ||
154 | scale: 1; | ||
155 | description { state: "default" 0.0; | ||
156 | min: 1 1; | ||
157 | fixed: 1 1; | ||
158 | align: 0 0; | ||
159 | rel1 { | ||
160 | to_x: "elm.arrow_bg"; | ||
161 | } | ||
162 | rel2 { | ||
163 | relative: 0.0 0.17; | ||
164 | to_x: "elm.arrow_bg"; | ||
165 | } | ||
166 | color: 0 0 0 0; | ||
167 | visible: 0; | ||
168 | } | ||
169 | dragable { | ||
170 | confine: "elm.arrow_bg"; | ||
171 | x: 1 1 0; | ||
172 | y: 0 0 0; | ||
173 | } | ||
174 | } | ||
175 | part { name: "elm.arrow_icon"; | ||
176 | type: SWALLOW; | ||
177 | mouse_events: 0; | ||
178 | description { state: "default" 0.0; | ||
179 | min: 25 15; | ||
180 | max: 25 15; | ||
181 | fixed: 1 1; | ||
182 | align: 0.5 0; | ||
183 | rel1 { | ||
184 | to_x: "elm.arrow"; | ||
185 | } | ||
186 | rel2 { | ||
187 | relative: 1.0 0.0; | ||
188 | offset: 0 10; | ||
189 | to_x: "elm.arrow"; | ||
190 | } | ||
191 | } | ||
192 | } | ||
193 | part { name: "event"; | ||
194 | type: RECT; | ||
195 | description { state: "default" 0.0; | ||
196 | rel1 { | ||
197 | to: "elm.arrow_icon"; | ||
198 | } | ||
199 | rel2 { | ||
200 | to_x: "elm.arrow_icon"; | ||
201 | to_y: "elm.arrow_bg"; | ||
202 | offset: 0 0; | ||
203 | } | ||
204 | color: 0 0 0 0; | ||
205 | } | ||
206 | dragable { | ||
207 | events: "elm.arrow"; | ||
208 | } | ||
209 | } | ||
210 | part { name: "elm.l_button"; | ||
211 | type: SWALLOW; | ||
212 | scale: 1; | ||
213 | description { state: "default" 0.0; | ||
214 | min: 24 24; | ||
215 | fixed: 1 1; | ||
216 | rel1 { | ||
217 | relative: 0.0 0.0; | ||
218 | to_y: "elm.bar_bg"; | ||
219 | } | ||
220 | rel2 { | ||
221 | relative: 0.0 1.0; | ||
222 | to_y: "elm.bar_bg"; | ||
223 | } | ||
224 | align: 0.0 0.5; | ||
225 | } | ||
226 | } | ||
227 | part { name: "elm.r_button"; | ||
228 | type: SWALLOW; | ||
229 | scale: 1; | ||
230 | description { state: "default" 0.0; | ||
231 | min: 24 24; | ||
232 | fixed: 1 1; | ||
233 | rel1 { | ||
234 | relative: 1.0 0.0; | ||
235 | to_y: "elm.bar_bg"; | ||
236 | } | ||
237 | rel2 { | ||
238 | relative: 1.0 1.0; | ||
239 | to_y: "elm.bar_bg"; | ||
240 | } | ||
241 | align: 1.0 0.5; | ||
242 | } | ||
243 | } | ||
244 | } | ||
245 | } | ||
246 | |||
247 | group{ name: "elm/colorselector/image/colorbar_0/default"; | ||
248 | images { | ||
249 | image: "color_picker_color.png" COMP; | ||
250 | } | ||
251 | parts { | ||
252 | part { name: "colorbar_0_image"; | ||
253 | type: IMAGE; | ||
254 | description { state: "default" 0.0; | ||
255 | rel2.offset: -1 -1; | ||
256 | image.normal: "color_picker_color.png"; | ||
257 | } | ||
258 | } | ||
259 | } | ||
260 | } | ||
261 | |||
262 | group { name: "elm/colorselector/image/colorbar_1/default"; | ||
263 | images { | ||
264 | image: "color_picker_opacity.png" COMP; | ||
265 | } | ||
266 | parts { | ||
267 | part { name: "colorbar_1_image"; | ||
268 | type: IMAGE; | ||
269 | description { state: "default" 0.0; | ||
270 | rel2.offset: -1 -1; | ||
271 | image.normal: "color_picker_opacity.png"; | ||
272 | } | ||
273 | } | ||
274 | } | ||
275 | } | ||
276 | |||
277 | group { name: "elm/colorselector/image/colorbar_2/default"; | ||
278 | images { | ||
279 | image: "color_picker_brightness.png" COMP; | ||
280 | } | ||
281 | parts { | ||
282 | part { name: "colorbar_2_image"; | ||
283 | type: IMAGE; | ||
284 | description { state: "default" 0.0; | ||
285 | rel2.offset: -1 -1; | ||
286 | image.normal: "color_picker_brightness.png"; | ||
287 | } | ||
288 | } | ||
289 | } | ||
290 | } | ||
291 | |||
292 | group { name: "elm/colorselector/image/colorbar_3/default"; | ||
293 | images { | ||
294 | image: "color_picker_alpha.png" COMP; | ||
295 | } | ||
296 | parts { | ||
297 | part { name: "colorbar_3_image"; | ||
298 | type: IMAGE; | ||
299 | description { state: "default" 0.0; | ||
300 | rel2.offset: -1 -1; | ||
301 | image.normal: "color_picker_alpha.png"; | ||
302 | } | ||
303 | } | ||
304 | } | ||
305 | } | ||
306 | |||
307 | group { name: "elm/colorselector/bg_image/colorbar_3/default"; | ||
308 | images { | ||
309 | image: "color_picker_alpha_bg.png" COMP; | ||
310 | } | ||
311 | parts { | ||
312 | part { name: "colorbar_3_image"; | ||
313 | type: IMAGE; | ||
314 | description { state: "default" 0.0; | ||
315 | rel2.offset: -1 -1; | ||
316 | image.normal: "color_picker_alpha_bg.png"; | ||
317 | } | ||
318 | } | ||
319 | } | ||
320 | } | ||
321 | |||
322 | group { name: "elm/colorselector/arrow/default"; | ||
323 | images { | ||
324 | image: "icon_arrow_down.png" COMP; | ||
325 | } | ||
326 | parts { | ||
327 | part { name: "bg"; | ||
328 | type: RECT; | ||
329 | description { state: "default" 0.0; | ||
330 | color: 0 0 0 0; | ||
331 | } | ||
332 | } | ||
333 | part { name: "arrow_image"; | ||
334 | type: IMAGE; | ||
335 | description { state: "default" 0.0; | ||
336 | image.normal: "icon_arrow_down.png"; | ||
337 | } | ||
338 | } | ||
339 | } | ||
340 | } | ||
341 | |||
342 | group { name: "elm/colorselector/item/default"; | ||
343 | parts { | ||
344 | part { name: "color_bg"; | ||
345 | type: RECT; | ||
346 | scale: 1; | ||
347 | description { state: "default" 0.0; | ||
348 | min: 40 40; | ||
349 | } | ||
350 | } | ||
351 | part { name: "color_obj"; | ||
352 | type: SWALLOW; | ||
353 | scale: 1; | ||
354 | description { state: "default" 0.0; | ||
355 | rel1.to: "color_bg"; | ||
356 | rel2.to: "color_bg"; | ||
357 | } | ||
358 | } | ||
359 | part { name: "focus_color"; | ||
360 | scale: 1; | ||
361 | type: RECT; | ||
362 | description { state: "default" 0.0; | ||
363 | visible: 0; | ||
364 | min: 38 38; | ||
365 | rel1.to: "color_bg"; | ||
366 | rel2.to: "color_bg"; | ||
367 | color: 255 255 255 80; | ||
368 | } | ||
369 | description { state: "focused" 0.0; | ||
370 | inherit: "default" 0.0; | ||
371 | visible: 1; | ||
372 | } | ||
373 | } | ||
374 | } | ||
375 | programs { | ||
376 | program { name: "item_focus"; | ||
377 | source: "elm"; | ||
378 | signal: "elm,state,selected"; | ||
379 | action: STATE_SET "focused" 0.0; | ||
380 | target: "focus_color"; | ||
381 | } | ||
382 | program { name: "item_unfocus"; | ||
383 | source: "elm"; | ||
384 | signal: "elm,state,unselected"; | ||
385 | action: STATE_SET "default" 0.0; | ||
386 | target: "focus_color"; | ||
387 | } | ||
388 | } | ||
389 | } | ||
390 | |||
391 | group { name: "elm/colorselector/item/color/default"; | ||
392 | parts { | ||
393 | part { name: "color_rect"; | ||
394 | type: RECT; | ||
395 | scale: 1; | ||
396 | description{ state: "default" 0.0; | ||
397 | } | ||
398 | } | ||
399 | } | ||
400 | } | ||
401 | |||
diff --git a/libraries/elementary/data/themes/widgets/conformant.edc b/libraries/elementary/data/themes/widgets/conformant.edc new file mode 100644 index 0000000..373d41d --- /dev/null +++ b/libraries/elementary/data/themes/widgets/conformant.edc | |||
@@ -0,0 +1,53 @@ | |||
1 | group { name: "elm/conformant/base/default"; | ||
2 | parts { | ||
3 | part { name: "elm.swallow.indicator"; | ||
4 | type: SWALLOW; | ||
5 | description { state: "default" 0.0; | ||
6 | fixed: 0 1; | ||
7 | align: 0.0 0.0; | ||
8 | rel2.relative: 1.0 0.0; | ||
9 | } | ||
10 | } | ||
11 | part { name: "elm.swallow.content"; | ||
12 | type: SWALLOW; | ||
13 | description { state: "default" 0.0; | ||
14 | fixed: 0 1; | ||
15 | align: 0.5 0.5; | ||
16 | rel1.relative: 0.0 1.0; | ||
17 | rel1.to_y: "elm.swallow.indicator"; | ||
18 | rel2.relative: 1.0 0.0; | ||
19 | rel2.to_y: "elm.swallow.clipboard"; | ||
20 | } | ||
21 | } | ||
22 | part { name: "elm.swallow.clipboard"; | ||
23 | type: SWALLOW; | ||
24 | description { state: "default" 0.0; | ||
25 | fixed: 0 1; | ||
26 | align: 0.0 1.0; | ||
27 | rel1.relative: 0.0 0.0; | ||
28 | rel1.to_y: "elm.swallow.virtualkeypad"; | ||
29 | rel2.relative: 1.0 0.0; | ||
30 | rel2.to_y: "elm.swallow.virtualkeypad"; | ||
31 | } | ||
32 | } | ||
33 | part { name: "elm.swallow.virtualkeypad"; | ||
34 | type: SWALLOW; | ||
35 | description { state: "default" 0.0; | ||
36 | fixed: 0 1; | ||
37 | align: 0.0 1.0; | ||
38 | rel1.relative: 0.0 0.0; | ||
39 | rel1.to_y: "elm.swallow.softkey"; | ||
40 | rel2.relative: 1.0 0.0; | ||
41 | rel2.to_y: "elm.swallow.softkey"; | ||
42 | } | ||
43 | } | ||
44 | part { name: "elm.swallow.softkey"; | ||
45 | type: SWALLOW; | ||
46 | description { state: "default" 0.0; | ||
47 | fixed: 0 1; | ||
48 | align: 0.0 1.0; | ||
49 | rel1.relative: 0.0 1.0; | ||
50 | } | ||
51 | } | ||
52 | } | ||
53 | } | ||
diff --git a/libraries/elementary/data/themes/widgets/ctxpopup.edc b/libraries/elementary/data/themes/widgets/ctxpopup.edc new file mode 100644 index 0000000..c07990c --- /dev/null +++ b/libraries/elementary/data/themes/widgets/ctxpopup.edc | |||
@@ -0,0 +1,1119 @@ | |||
1 | group { name: "elm/scroller/base/ctxpopup"; | ||
2 | data { | ||
3 | item: "focus_highlight" "on"; | ||
4 | } | ||
5 | script { | ||
6 | public sbvis_v, sbvis_h, sbalways_v, sbalways_h, sbvis_timer; | ||
7 | public timer0(val) { | ||
8 | new v; | ||
9 | v = get_int(sbvis_v); | ||
10 | if (v) { | ||
11 | v = get_int(sbalways_v); | ||
12 | if(!v) { | ||
13 | emit("do-hide-vbar", ""); | ||
14 | set_int(sbvis_v, 0); | ||
15 | } | ||
16 | } | ||
17 | v = get_int(sbvis_h); | ||
18 | if (v) { | ||
19 | v = get_int(sbalways_h); | ||
20 | if(!v) { | ||
21 | emit("do-hide-hbar", ""); | ||
22 | set_int(sbvis_h, 0); | ||
23 | } | ||
24 | } | ||
25 | set_int(sbvis_timer, 0); | ||
26 | return 0; | ||
27 | } | ||
28 | } | ||
29 | images { | ||
30 | image: "bt_sm_base2.png" COMP; | ||
31 | image: "bt_sm_shine.png" COMP; | ||
32 | image: "bt_sm_hilight.png" COMP; | ||
33 | image: "sl_bt2_2.png" COMP; | ||
34 | } | ||
35 | parts { | ||
36 | part { name: "clipper"; | ||
37 | type: RECT; | ||
38 | mouse_events: 0; | ||
39 | scale: 1; | ||
40 | description { state: "default" 0.0; | ||
41 | } | ||
42 | } | ||
43 | part { name: "elm.swallow.content"; | ||
44 | clip_to: "clipper"; | ||
45 | type: SWALLOW; | ||
46 | scale: 1; | ||
47 | description { state: "default" 0.0; | ||
48 | align: 0.5 0.5; | ||
49 | } | ||
50 | } | ||
51 | part { name: "focus_highlight"; | ||
52 | mouse_events: 0; | ||
53 | description { state: "default" 0.0; | ||
54 | rel1.offset: -1 -1; | ||
55 | rel2.offset: 0 0; | ||
56 | image { normal: "sl_bt2_2.png"; | ||
57 | border: 7 7 7 7; | ||
58 | middle: 0; | ||
59 | } | ||
60 | fill.smooth : 0; | ||
61 | color: 200 155 0 0; | ||
62 | } | ||
63 | description { state: "enabled" 0.0; | ||
64 | inherit: "default" 0.0; | ||
65 | color: 200 155 0 255; | ||
66 | } | ||
67 | } | ||
68 | part { name: "sb_vbar_clip_master"; | ||
69 | type: RECT; | ||
70 | mouse_events: 0; | ||
71 | description { state: "default" 0.0; | ||
72 | } | ||
73 | description { state: "hidden" 0.0; | ||
74 | visible: 0; | ||
75 | color: 255 255 255 0; | ||
76 | } | ||
77 | } | ||
78 | part { name: "sb_vbar_clip"; | ||
79 | clip_to:"sb_vbar_clip_master"; | ||
80 | type: RECT; | ||
81 | mouse_events: 0; | ||
82 | scale: 1; | ||
83 | description { state: "default" 0.0; | ||
84 | align: 0.0 0.0; | ||
85 | rel2{ to:"clipper"; relative: 1.0 1.0; } | ||
86 | } | ||
87 | description { state: "hidden" 0.0; | ||
88 | visible: 0; | ||
89 | color: 255 255 255 0; | ||
90 | } | ||
91 | } | ||
92 | part { name: "sb_vbar"; | ||
93 | type: RECT; | ||
94 | mouse_events: 0; | ||
95 | scale: 1; | ||
96 | description { state: "default" 0.0; | ||
97 | fixed: 1 1; | ||
98 | visible: 0; | ||
99 | align: 1.0 0.0; | ||
100 | rel1{ to:"clipper"; relative: 1.0 0.0; } | ||
101 | rel2{ to:"clipper"; relative: 1.0 1.0; } | ||
102 | } | ||
103 | } | ||
104 | part { name: "elm.dragable.vbar"; | ||
105 | clip_to: "sb_vbar_clip"; | ||
106 | mouse_events: 0; | ||
107 | scale: 1; | ||
108 | dragable { | ||
109 | x: 0 0 0; | ||
110 | y: 1 1 0; | ||
111 | confine: "sb_vbar"; | ||
112 | } | ||
113 | description { state: "default" 0.0; | ||
114 | fixed: 1 1; | ||
115 | min: 10 17; | ||
116 | max: 10 99999; | ||
117 | rel1 { relative: 0.5 0.5; to: "sb_vbar"; } | ||
118 | rel2 { relative: 0.5 0.5; to: "sb_vbar"; } | ||
119 | image { normal: "bt_sm_base2.png"; | ||
120 | border: 6 6 6 6; | ||
121 | middle: SOLID; | ||
122 | } | ||
123 | } | ||
124 | } | ||
125 | part { name: "sb_vbar_over1"; | ||
126 | clip_to: "sb_vbar_clip"; | ||
127 | mouse_events: 0; | ||
128 | description { state: "default" 0.0; | ||
129 | rel1.to: "elm.dragable.vbar"; | ||
130 | rel2.relative: 1.0 0.5; | ||
131 | rel2.to: "elm.dragable.vbar"; | ||
132 | image { normal: "bt_sm_hilight.png"; | ||
133 | border: 6 6 6 0; | ||
134 | } | ||
135 | } | ||
136 | } | ||
137 | part { name: "sb_vbar_over2"; | ||
138 | clip_to: "sb_vbar_clip"; | ||
139 | mouse_events: 0; | ||
140 | description { state: "default" 0.0; | ||
141 | rel1.to: "elm.dragable.vbar"; | ||
142 | rel2.to: "elm.dragable.vbar"; | ||
143 | image { normal: "bt_sm_shine.png"; | ||
144 | border: 6 6 6 0; | ||
145 | } | ||
146 | } | ||
147 | } | ||
148 | part { name: "sb_hbar_clip_master"; | ||
149 | type: RECT; | ||
150 | mouse_events: 0; | ||
151 | description { state: "default" 0.0; | ||
152 | } | ||
153 | description { state: "hidden" 0.0; | ||
154 | visible: 0; | ||
155 | color: 255 255 255 0; | ||
156 | } | ||
157 | } | ||
158 | part { name: "sb_hbar_clip"; | ||
159 | clip_to: "sb_hbar_clip_master"; | ||
160 | type: RECT; | ||
161 | mouse_events: 0; | ||
162 | scale: 1; | ||
163 | description { state: "default" 0.0; | ||
164 | align: 0.0 0.0; | ||
165 | rel2{ to:"clipper"; relative: 1.0 1.0; } | ||
166 | } | ||
167 | description { state: "hidden" 0.0; | ||
168 | visible: 0; | ||
169 | color: 255 255 255 0; | ||
170 | } | ||
171 | } | ||
172 | part { name: "sb_hbar"; | ||
173 | type: RECT; | ||
174 | mouse_events: 0; | ||
175 | scale: 1; | ||
176 | description { state: "default" 0.0; | ||
177 | fixed: 1 1; | ||
178 | visible: 0; | ||
179 | align: 0.0 1.0; | ||
180 | rel1 { to:"clipper"; relative: 0.0 1.0; } | ||
181 | rel2 { to:"clipper"; relative: 1.0 1.0; } | ||
182 | } | ||
183 | } | ||
184 | part { name: "elm.dragable.hbar"; | ||
185 | clip_to: "sb_hbar_clip"; | ||
186 | mouse_events: 0; | ||
187 | scale: 1; | ||
188 | dragable { | ||
189 | x: 1 1 0; | ||
190 | y: 0 0 0; | ||
191 | confine: "sb_hbar"; | ||
192 | } | ||
193 | description { state: "default" 0.0; | ||
194 | min: 17 10; | ||
195 | max: 99999 10; | ||
196 | fixed: 1 1; | ||
197 | rel1 { relative: 0.5 0.5; to: "sb_hbar"; } | ||
198 | rel2 { relative: 0.5 0.5; to: "sb_hbar"; } | ||
199 | image { normal: "bt_sm_base2.png"; | ||
200 | border: 4 4 4 4; | ||
201 | middle: SOLID; | ||
202 | } | ||
203 | } | ||
204 | } | ||
205 | part { name: "sb_hbar_over1"; | ||
206 | clip_to: "sb_hbar_clip"; | ||
207 | mouse_events: 0; | ||
208 | description { state: "default" 0.0; | ||
209 | rel1.to: "elm.dragable.hbar"; | ||
210 | rel2.relative: 1.0 0.5; | ||
211 | rel2.to: "elm.dragable.hbar"; | ||
212 | image { normal: "bt_sm_hilight.png"; | ||
213 | border: 6 6 6 0; | ||
214 | } | ||
215 | } | ||
216 | } | ||
217 | part { name: "sb_hbar_over2"; | ||
218 | clip_to: "sb_hbar_clip"; | ||
219 | mouse_events: 0; | ||
220 | description { state: "default" 0.0; | ||
221 | rel1.to: "elm.dragable.hbar"; | ||
222 | rel2.to: "elm.dragable.hbar"; | ||
223 | image { normal: "bt_sm_shine.png"; | ||
224 | border: 6 6 6 0; | ||
225 | } | ||
226 | } | ||
227 | } | ||
228 | } | ||
229 | programs { | ||
230 | program { name: "load"; | ||
231 | signal: "load"; | ||
232 | source: ""; | ||
233 | script { | ||
234 | set_state(PART:"sb_vbar_clip", "hidden", 0.0); | ||
235 | set_state(PART:"sb_hbar_clip", "hidden", 0.0); | ||
236 | set_int(sbvis_v, 0); | ||
237 | set_int(sbvis_h, 0); | ||
238 | set_int(sbalways_v, 0); | ||
239 | set_int(sbalways_h, 0); | ||
240 | set_int(sbvis_timer, 0); | ||
241 | } | ||
242 | } | ||
243 | program { name: "vbar_show"; | ||
244 | signal: "elm,action,show,vbar"; | ||
245 | source: "elm"; | ||
246 | action: STATE_SET "default" 0.0; | ||
247 | target: "sb_vbar_clip_master"; | ||
248 | } | ||
249 | program { name: "vbar_hide"; | ||
250 | signal: "elm,action,hide,vbar"; | ||
251 | source: "elm"; | ||
252 | action: STATE_SET "hidden" 0.0; | ||
253 | target: "sb_vbar_clip_master"; | ||
254 | } | ||
255 | program { name: "vbar_show_always"; | ||
256 | signal: "elm,action,show_always,vbar"; | ||
257 | source: "elm"; | ||
258 | script { | ||
259 | new v; | ||
260 | v = get_int(sbvis_v); | ||
261 | v |= get_int(sbalways_v); | ||
262 | if (!v) { | ||
263 | set_int(sbalways_v, 1); | ||
264 | emit("do-show-vbar", ""); | ||
265 | set_int(sbvis_v, 1); | ||
266 | } | ||
267 | } | ||
268 | } | ||
269 | program { name: "vbar_show_notalways"; | ||
270 | signal: "elm,action,show_notalways,vbar"; | ||
271 | source: "elm"; | ||
272 | script { | ||
273 | new v; | ||
274 | v = get_int(sbalways_v); | ||
275 | if (v) { | ||
276 | set_int(sbalways_v, 0); | ||
277 | v = get_int(sbvis_v); | ||
278 | if (!v) { | ||
279 | emit("do-hide-vbar", ""); | ||
280 | set_int(sbvis_v, 0); | ||
281 | } | ||
282 | } | ||
283 | } | ||
284 | } | ||
285 | program { name: "sb_vbar_show"; | ||
286 | signal: "do-show-vbar"; | ||
287 | source: ""; | ||
288 | action: STATE_SET "default" 0.0; | ||
289 | transition: LINEAR 1.0; | ||
290 | target: "sb_vbar_clip"; | ||
291 | } | ||
292 | program { name: "sb_vbar_hide"; | ||
293 | signal: "do-hide-vbar"; | ||
294 | source: ""; | ||
295 | action: STATE_SET "hidden" 0.0; | ||
296 | transition: LINEAR 1.0; | ||
297 | target: "sb_vbar_clip"; | ||
298 | } | ||
299 | program { name: "hbar_show"; | ||
300 | signal: "elm,action,show,hbar"; | ||
301 | source: "elm"; | ||
302 | action: STATE_SET "default" 0.0; | ||
303 | target: "sb_hbar_clip_master"; | ||
304 | } | ||
305 | program { name: "hbar_hide"; | ||
306 | signal: "elm,action,hide,hbar"; | ||
307 | source: "elm"; | ||
308 | action: STATE_SET "hidden" 0.0; | ||
309 | target: "sb_hbar_clip_master"; | ||
310 | } | ||
311 | program { name: "hbar_show_always"; | ||
312 | signal: "elm,action,show_always,hbar"; | ||
313 | source: "elm"; | ||
314 | script { | ||
315 | new v; | ||
316 | v = get_int(sbvis_h); | ||
317 | v |= get_int(sbalways_h); | ||
318 | if (!v) { | ||
319 | set_int(sbalways_h, 1); | ||
320 | emit("do-show-hbar", ""); | ||
321 | set_int(sbvis_h, 1); | ||
322 | } | ||
323 | } | ||
324 | } | ||
325 | program { name: "hbar_show_notalways"; | ||
326 | signal: "elm,action,show_notalways,hbar"; | ||
327 | source: "elm"; | ||
328 | script { | ||
329 | new v; | ||
330 | v = get_int(sbalways_h); | ||
331 | if (v) { | ||
332 | set_int(sbalways_h, 0); | ||
333 | v = get_int(sbvis_h); | ||
334 | if (!v) { | ||
335 | emit("do-hide-hbar", ""); | ||
336 | set_int(sbvis_h, 0); | ||
337 | } | ||
338 | } | ||
339 | } | ||
340 | } | ||
341 | program { name: "sb_hbar_show"; | ||
342 | signal: "do-show-hbar"; | ||
343 | source: ""; | ||
344 | action: STATE_SET "default" 0.0; | ||
345 | transition: LINEAR 1.0; | ||
346 | target: "sb_hbar_clip"; | ||
347 | } | ||
348 | program { name: "sb_hbar_hide"; | ||
349 | signal: "do-hide-hbar"; | ||
350 | source: ""; | ||
351 | action: STATE_SET "hidden" 0.0; | ||
352 | transition: LINEAR 1.0; | ||
353 | target: "sb_hbar_clip"; | ||
354 | } | ||
355 | program { name: "scroll"; | ||
356 | signal: "elm,action,scroll"; | ||
357 | source: "elm"; | ||
358 | script { | ||
359 | new v; | ||
360 | v = get_int(sbvis_v); | ||
361 | v |= get_int(sbalways_v); | ||
362 | if (!v) { | ||
363 | emit("do-show-vbar", "") | ||
364 | set_int(sbvis_v, 1); | ||
365 | } | ||
366 | v = get_int(sbvis_h); | ||
367 | v |= get_int(sbalways_h); | ||
368 | if (!v) { | ||
369 | emit("do-show-hbar", ""); | ||
370 | set_int(sbvis_h, 1); | ||
371 | } | ||
372 | v = get_int(sbvis_timer); | ||
373 | if (v > 0) cancel_timer(v); | ||
374 | v = timer(1.0, "timer0", 0); | ||
375 | set_int(sbvis_timer, v); | ||
376 | } | ||
377 | } | ||
378 | program { name: "highlight_show"; | ||
379 | signal: "elm,action,focus_highlight,show"; | ||
380 | source: "elm"; | ||
381 | action: STATE_SET "enabled" 0.0; | ||
382 | transition: ACCELERATE 0.3; | ||
383 | target: "focus_highlight"; | ||
384 | } | ||
385 | program { name: "highlight_hide"; | ||
386 | signal: "elm,action,focus_highlight,hide"; | ||
387 | source: "elm"; | ||
388 | action: STATE_SET "default" 0.0; | ||
389 | transition: DECELERATE 0.3; | ||
390 | target: "focus_highlight"; | ||
391 | } | ||
392 | } | ||
393 | } | ||
394 | /////////////////////////////////////////////////////////////////////////////// | ||
395 | group { name: "elm/ctxpopup/bg/default"; | ||
396 | parts { | ||
397 | part { name: "ctxpopup_bg"; | ||
398 | type: RECT; | ||
399 | mouse_events: 1; | ||
400 | description { state: "default" 0.0; | ||
401 | color: 0 0 0 0; | ||
402 | } | ||
403 | description { state: "visible" 0.0; | ||
404 | inherit: "default" 0.0; | ||
405 | color: 0 0 0 64; | ||
406 | } | ||
407 | } | ||
408 | } | ||
409 | programs { | ||
410 | program { name: "clicked_event"; | ||
411 | signal: "mouse,clicked,1"; | ||
412 | source: "ctxpopup_bg"; | ||
413 | action: SIGNAL_EMIT "elm,action,click" ""; | ||
414 | } | ||
415 | program { name: "show"; | ||
416 | signal: "elm,state,show"; | ||
417 | source: "elm"; | ||
418 | action: STATE_SET "visible" 0.0; | ||
419 | target: "ctxpopup_bg"; | ||
420 | transition: LINEAR 0.25; | ||
421 | } | ||
422 | program { name: "hide"; | ||
423 | signal: "elm,state,hide"; | ||
424 | source: "elm"; | ||
425 | action: STATE_SET "default" 0.0; | ||
426 | target: "ctxpopup_bg"; | ||
427 | transition: LINEAR 0.25; | ||
428 | } | ||
429 | } | ||
430 | } | ||
431 | /////////////////////////////////////////////////////////////////////////////// | ||
432 | group { name: "elm/ctxpopup/base/default"; | ||
433 | images { | ||
434 | image: "bt_base2.png" COMP; | ||
435 | image: "bt_hilight.png" COMP; | ||
436 | image: "bt_shine.png" COMP; | ||
437 | } | ||
438 | parts { | ||
439 | part { name: "arrow_area_left"; | ||
440 | type: RECT; | ||
441 | mouse_events: 0; | ||
442 | clip_to: "ctxpopup_clip"; | ||
443 | description { state: "default" 0.0; | ||
444 | visible: 0; | ||
445 | min: 20 0; | ||
446 | fixed: 1 1; | ||
447 | align: 1 0.5; | ||
448 | rel1 { | ||
449 | to_y: "base"; | ||
450 | } | ||
451 | rel2 { | ||
452 | relative:0 1; | ||
453 | to:"base"; | ||
454 | } | ||
455 | } | ||
456 | } | ||
457 | part { name: "arrow_area_right"; | ||
458 | type: RECT; | ||
459 | mouse_events: 0; | ||
460 | clip_to: "ctxpopup_clip"; | ||
461 | description { state: "default" 0.0; | ||
462 | visible: 0; | ||
463 | min: 20 0; | ||
464 | fixed: 1 1; | ||
465 | align: 0 0.5; | ||
466 | rel1 { | ||
467 | relative: 1 0; | ||
468 | to:"base"; | ||
469 | } | ||
470 | rel2 { | ||
471 | to_y: "base"; | ||
472 | } | ||
473 | } | ||
474 | } | ||
475 | part { name: "arrow_area_up"; | ||
476 | type: RECT; | ||
477 | mouse_events: 0; | ||
478 | clip_to: "ctxpopup_clip"; | ||
479 | description { state: "default" 0.0; | ||
480 | visible: 0; | ||
481 | min: 0 20; | ||
482 | fixed: 1 1; | ||
483 | align: 0.5 1; | ||
484 | rel1 { | ||
485 | to_x: "base"; | ||
486 | } | ||
487 | rel2 { | ||
488 | relative: 1 0; | ||
489 | to:"base"; | ||
490 | } | ||
491 | } | ||
492 | } | ||
493 | part { name: "arrow_area_down"; | ||
494 | type: RECT; | ||
495 | mouse_events: 0; | ||
496 | clip_to: "ctxpopup_clip"; | ||
497 | description { state: "default" 0.0; | ||
498 | visible: 0; | ||
499 | min: 0 20; | ||
500 | fixed: 1 1; | ||
501 | align: 0.5 0; | ||
502 | rel1 { | ||
503 | relative: 0 1; | ||
504 | to:"base"; | ||
505 | } | ||
506 | rel2 { | ||
507 | to_x: "base"; | ||
508 | } | ||
509 | } | ||
510 | } | ||
511 | part { name: "elm.swallow.arrow_up"; | ||
512 | type: SWALLOW; | ||
513 | mouse_events: 0; | ||
514 | scale: 1; | ||
515 | clip_to: "ctxpopup_clip"; | ||
516 | dragable { | ||
517 | x: 1 1 0; | ||
518 | y: 1 1 0; | ||
519 | confine: "arrow_area_up"; | ||
520 | } | ||
521 | description { state: "default" 0.0; | ||
522 | min: 36 20; | ||
523 | fixed: 1 1; | ||
524 | visible: 1; | ||
525 | } | ||
526 | } | ||
527 | part { name: "elm.swallow.arrow_down"; | ||
528 | type: SWALLOW; | ||
529 | mouse_events: 0; | ||
530 | scale: 1; | ||
531 | clip_to: "ctxpopup_clip"; | ||
532 | dragable { | ||
533 | x: 1 1 0; | ||
534 | y: 1 1 0; | ||
535 | confine: "arrow_area_down"; | ||
536 | } | ||
537 | description { state: "default" 0.0; | ||
538 | min: 36 20; | ||
539 | fixed: 1 1; | ||
540 | visible: 1; | ||
541 | } | ||
542 | } | ||
543 | part { name: "elm.swallow.arrow_left"; | ||
544 | type: SWALLOW; | ||
545 | mouse_events: 0; | ||
546 | scale: 1; | ||
547 | clip_to: "ctxpopup_clip"; | ||
548 | dragable { | ||
549 | x: 1 1 0; | ||
550 | y: 1 1 0; | ||
551 | confine: "arrow_area_left"; | ||
552 | } | ||
553 | description { state: "default" 0.0; | ||
554 | min: 20 36; | ||
555 | fixed: 1 1; | ||
556 | visible: 1; | ||
557 | } | ||
558 | } | ||
559 | part { name: "elm.swallow.arrow_right"; | ||
560 | type: SWALLOW; | ||
561 | mouse_events: 0; | ||
562 | scale: 1; | ||
563 | clip_to: "ctxpopup_clip"; | ||
564 | dragable { | ||
565 | x: 1 1 0; | ||
566 | y: 1 1 0; | ||
567 | confine: "arrow_area_right"; | ||
568 | } | ||
569 | description { state: "default" 0.0; | ||
570 | min: 20 36; | ||
571 | fixed: 1 1; | ||
572 | visible: 1; | ||
573 | } | ||
574 | } | ||
575 | part { name: "base"; | ||
576 | scale: 1; | ||
577 | clip_to: "ctxpopup_clip"; | ||
578 | description { state: "default" 0.0; | ||
579 | rel1.offset: -3 -3; | ||
580 | rel2.offset: 3 3; | ||
581 | image { normal: "bt_base2.png"; | ||
582 | border: 7 7 7 7; | ||
583 | } | ||
584 | } | ||
585 | } | ||
586 | part { name: "over1"; | ||
587 | scale: 1; | ||
588 | clip_to: "ctxpopup_clip"; | ||
589 | description { state: "default" 0.0; | ||
590 | rel1.to: "base"; | ||
591 | rel2.to: "base"; | ||
592 | rel2.relative: 1.0 0.5; | ||
593 | image { normal: "bt_hilight.png"; | ||
594 | border: 7 7 7 0; | ||
595 | } | ||
596 | } | ||
597 | } | ||
598 | part { name: "over2"; | ||
599 | scale: 1; | ||
600 | clip_to: "ctxpopup_clip"; | ||
601 | description { state: "default" 0.0; | ||
602 | rel1.to: "base"; | ||
603 | rel2.to: "base"; | ||
604 | image { normal: "bt_shine.png"; | ||
605 | border: 7 7 7 7; | ||
606 | } | ||
607 | } | ||
608 | } | ||
609 | part { name: "elm.swallow.content"; | ||
610 | type: SWALLOW; | ||
611 | clip_to: "ctxpopup_clip"; | ||
612 | description { state: "default" 0.0; | ||
613 | rel1 { to:"base"; offset: 4 4; } | ||
614 | rel2 { to:"base"; offset: -5 -5; } | ||
615 | } | ||
616 | } | ||
617 | part { name: "ctxpopup_clip"; | ||
618 | type: RECT; | ||
619 | description { state: "default" 0.0; | ||
620 | color: 255 255 255 0; | ||
621 | rel1 { to:"base"; relative: 0 0; } | ||
622 | rel2 { to:"base"; relative: 0 1; } | ||
623 | } | ||
624 | description { state: "show_up" 0.0; | ||
625 | color: 255 255 255 0; | ||
626 | rel1 { to:"arrow_area_down"; relative: 0 1; } | ||
627 | rel2 { to:"arrow_area_down"; relative: 1 1; } | ||
628 | } | ||
629 | description { state: "show_left" 0.0; | ||
630 | color: 255 255 255 0; | ||
631 | rel1 { to:"arrow_area_right"; relative: 1 0; } | ||
632 | rel2 { to:"arrow_area_right"; relative: 1 1; } | ||
633 | } | ||
634 | description { state: "show_right" 0.0; | ||
635 | color: 255 255 255 0; | ||
636 | rel1 { to:"arrow_area_left"; relative: 0 0; } | ||
637 | rel2 { to:"arrow_area_left"; relative: 0 1; } | ||
638 | } | ||
639 | description { state: "show_down" 0.0; | ||
640 | color: 255 255 255 0; | ||
641 | rel1 { to:"arrow_area_up"; relative: 0 0; } | ||
642 | rel2 { to:"arrow_area_up"; relative: 1 0; } | ||
643 | } | ||
644 | description { state: "hide_up" 0.0; | ||
645 | color: 255 255 255 255; | ||
646 | rel1 { to:"arrow_area_down"; relative: 0 1; } | ||
647 | rel2 { to:"arrow_area_down"; relative: 1 1; } | ||
648 | } | ||
649 | description { state: "hide_left" 0.0; | ||
650 | color: 255 255 255 255; | ||
651 | rel1 { to:"arrow_area_right"; relative: 1 0; } | ||
652 | rel2 { to:"arrow_area_right"; relative: 1 1; } | ||
653 | } | ||
654 | description { state: "hide_right" 0.0; | ||
655 | color: 255 255 255 255; | ||
656 | rel1 { to:"arrow_area_left"; relative: 0 0; } | ||
657 | rel2 { to:"arrow_area_left"; relative: 0 1; } | ||
658 | } | ||
659 | description { state: "hide_down" 0.0; | ||
660 | color: 255 255 255 255; | ||
661 | rel1 { to:"arrow_area_up"; relative: 0 0; } | ||
662 | rel2 { to:"arrow_area_up"; relative: 1 0; } | ||
663 | } | ||
664 | description { state: "visible" 0.0; | ||
665 | color: 255 255 255 255; | ||
666 | rel1 { to_x:"arrow_area_left"; to_y:"arrow_area_up"; } | ||
667 | rel2 { to_x:"arrow_area_right"; to_y:"arrow_area_down"; } | ||
668 | } | ||
669 | } | ||
670 | } | ||
671 | programs { | ||
672 | program { name: "show"; | ||
673 | signal: "elm,state,show"; | ||
674 | source: "elm"; | ||
675 | action: STATE_SET "visible" 0.0; | ||
676 | transition: LINEAR 0.25; | ||
677 | target: "ctxpopup_clip"; | ||
678 | } | ||
679 | program { name: "show_up"; | ||
680 | signal: "elm,state,show,up"; | ||
681 | source: "elm"; | ||
682 | action: STATE_SET "show_up" 0.0; | ||
683 | transition: LINEAR 0.25; | ||
684 | target: "ctxpopup_clip"; | ||
685 | } | ||
686 | program { name: "show_left"; | ||
687 | signal: "elm,state,show,left"; | ||
688 | source: "elm"; | ||
689 | action: STATE_SET "show_left" 0.0; | ||
690 | transition: LINEAR 0.25; | ||
691 | target: "ctxpopup_clip"; | ||
692 | } | ||
693 | program { name: "show_right"; | ||
694 | signal: "elm,state,show,right"; | ||
695 | source: "elm"; | ||
696 | action: STATE_SET "show_right" 0.0; | ||
697 | transition: LINEAR 0.25; | ||
698 | target: "ctxpopup_clip"; | ||
699 | } | ||
700 | program { name: "show_down"; | ||
701 | signal: "elm,state,show,down"; | ||
702 | source: "elm"; | ||
703 | action: STATE_SET "show_down" 0.0; | ||
704 | transition: LINEAR 0.25; | ||
705 | target: "ctxpopup_clip"; | ||
706 | } | ||
707 | program { name: "hide_up"; | ||
708 | signal: "elm,state,hide,up"; | ||
709 | source: "elm"; | ||
710 | action: STATE_SET "hide_up" 0.0; | ||
711 | transition: LINEAR 0.25; | ||
712 | target: "ctxpopup_clip"; | ||
713 | after: "hide_finished"; | ||
714 | } | ||
715 | program { name: "hide_left"; | ||
716 | signal: "elm,state,hide,left"; | ||
717 | source: "elm"; | ||
718 | action: STATE_SET "hide_left" 0.0; | ||
719 | transition: LINEAR 0.25; | ||
720 | target: "ctxpopup_clip"; | ||
721 | after: "hide_finished"; | ||
722 | } | ||
723 | program { name: "hide_right"; | ||
724 | signal: "elm,state,hide,right"; | ||
725 | source: "elm"; | ||
726 | action: STATE_SET "hide_right" 0.0; | ||
727 | transition: LINEAR 0.25; | ||
728 | target: "ctxpopup_clip"; | ||
729 | after: "hide_finished"; | ||
730 | } | ||
731 | program { name: "hide_down"; | ||
732 | signal: "elm,state,hide,down"; | ||
733 | source: "elm"; | ||
734 | action: STATE_SET "hide_down" 0.0; | ||
735 | transition: LINEAR 0.25; | ||
736 | target: "ctxpopup_clip"; | ||
737 | after: "hide_finished"; | ||
738 | } | ||
739 | program { name: "hide_finished"; | ||
740 | action: SIGNAL_EMIT "elm,action,hide,finished" ""; | ||
741 | } | ||
742 | |||
743 | } | ||
744 | } | ||
745 | /////////////////////////////////////////////////////////////////////////////// | ||
746 | group { name: "elm/ctxpopup/arrow/default"; | ||
747 | images { | ||
748 | image: "ctxpopup_arrow_left.png" COMP; | ||
749 | image: "ctxpopup_arrow_right.png" COMP; | ||
750 | image: "ctxpopup_arrow_up.png" COMP; | ||
751 | image: "ctxpopup_arrow_down.png" COMP; | ||
752 | } | ||
753 | parts { | ||
754 | part { name: "ctxpopup_arrow"; | ||
755 | type: IMAGE; | ||
756 | scale: 1; | ||
757 | description { | ||
758 | state: "default" 0.0; | ||
759 | min: 36 36; | ||
760 | fixed: 1 1; | ||
761 | visible: 0; | ||
762 | align: 0.5 0.5; | ||
763 | } | ||
764 | description { | ||
765 | state: "left" 0.0; | ||
766 | min: 20 36; | ||
767 | fixed: 1 1; | ||
768 | align: 0.0 0.5; | ||
769 | rel1 { offset: 3 0; } | ||
770 | rel2 { offset: 2 -1; } | ||
771 | image { normal: "ctxpopup_arrow_left.png"; } | ||
772 | } | ||
773 | description { state: "right" 0.0; | ||
774 | min: 20 36; | ||
775 | fixed: 1 1; | ||
776 | align: 1.0 0.5; | ||
777 | rel1 { offset: -5 0; } | ||
778 | rel2 { offset: -6 -1; } | ||
779 | image { normal: "ctxpopup_arrow_right.png"; } | ||
780 | } | ||
781 | description { state: "top" 0.0; | ||
782 | min: 36 20; | ||
783 | fixed: 1 1; | ||
784 | align: 0.5 0.0; | ||
785 | rel1 { offset: 0 5; } | ||
786 | rel2 { offset: -1 4; } | ||
787 | image { normal: "ctxpopup_arrow_up.png"; } | ||
788 | } | ||
789 | description { state: "bottom" 0.0; | ||
790 | min: 36 20; | ||
791 | fixed: 1 1; | ||
792 | align: 0.5 1.0; | ||
793 | rel1 { offset: 0 -5; } | ||
794 | rel2 { offset: -1 -6; } | ||
795 | image { normal: "ctxpopup_arrow_down.png"; } | ||
796 | } | ||
797 | } | ||
798 | } | ||
799 | programs { | ||
800 | program { name: "enable_left_arrow"; | ||
801 | signal: "elm,state,left"; | ||
802 | source: "elm"; | ||
803 | action: STATE_SET "left" 0.0; | ||
804 | target: "ctxpopup_arrow"; | ||
805 | } | ||
806 | program { name: "enable_right_arrow"; | ||
807 | signal: "elm,state,right"; | ||
808 | source: "elm"; | ||
809 | action: STATE_SET "right" 0.0; | ||
810 | target: "ctxpopup_arrow"; | ||
811 | } | ||
812 | program { name: "enable_top_arrow"; | ||
813 | signal: "elm,state,top"; | ||
814 | source: "elm"; | ||
815 | action: STATE_SET "top" 0.0; | ||
816 | target: "ctxpopup_arrow"; | ||
817 | } | ||
818 | program { name: "enable_bottom_arrow"; | ||
819 | signal: "elm,state,bottom"; | ||
820 | source: "elm"; | ||
821 | action: STATE_SET "bottom" 0.0; | ||
822 | target: "ctxpopup_arrow"; | ||
823 | } | ||
824 | } | ||
825 | } | ||
826 | /////////////////////////////////////////////////////////////////////////////// | ||
827 | group { | ||
828 | name: "elm/ctxpopup/icon_text_style_item/default"; | ||
829 | alias: "elm/ctxpopup/text_style_item/default"; | ||
830 | alias: "elm/ctxpopup/icon_style_item/default"; | ||
831 | images { | ||
832 | image: "hoversel_entry_bg.png" COMP; | ||
833 | } | ||
834 | parts { | ||
835 | part { name: "event"; | ||
836 | mouse_events: 1; | ||
837 | description { state: "default" 0.0; | ||
838 | } | ||
839 | } | ||
840 | part { name: "bg"; | ||
841 | mouse_events: 0; | ||
842 | description { state: "default" 0.0; | ||
843 | rel1.offset: 2 2; | ||
844 | rel2.offset: -3 -3; | ||
845 | image { normal:"hoversel_entry_bg.png"; | ||
846 | border: 0 0 2 2; | ||
847 | } | ||
848 | fill.smooth: 0; | ||
849 | color: 255 255 255 0; | ||
850 | } | ||
851 | description { state: "clicked" 0.0; | ||
852 | inherit: "default" 0.0; | ||
853 | color: 255 255 255 255; | ||
854 | } | ||
855 | } | ||
856 | part { name: "elm.swallow.icon"; | ||
857 | type: SWALLOW; | ||
858 | clip_to: "disclip"; | ||
859 | scale: 1; | ||
860 | description { state: "default" 0.0; | ||
861 | min: 25 25; | ||
862 | max: 25 25; | ||
863 | align: 0 0.5; | ||
864 | aspect: 1.0 1.0; | ||
865 | rel1 { offset: 10 10; } | ||
866 | rel2 { offset: 0 -10; } | ||
867 | } | ||
868 | } | ||
869 | part { name: "elm.text"; | ||
870 | type: TEXT; | ||
871 | mouse_events: 0; | ||
872 | clip_to: "disclip"; | ||
873 | scale: 1; | ||
874 | description { state: "default" 0.0; | ||
875 | min: 1 40; | ||
876 | fixed: 0 1; | ||
877 | align: 0.5 0.5; | ||
878 | rel1 { relative: 1.0 0.0; to: "elm.swallow.icon"; offset: 10 0; } | ||
879 | rel2 { relative: 1.0 1.0; offset: -11 -1; } | ||
880 | color: 255 255 255 255; | ||
881 | text { | ||
882 | font: "Sans"; | ||
883 | size: 10; | ||
884 | align: 0.0 0.5; | ||
885 | min: 1 1; | ||
886 | } | ||
887 | } | ||
888 | description { state: "clicked" 0.0; | ||
889 | inherit: "default" 0.0; | ||
890 | color: 0 0 0 255; | ||
891 | } | ||
892 | } | ||
893 | part { name: "over1"; | ||
894 | mouse_events: 1; | ||
895 | repeat_events: 1; | ||
896 | ignore_flags: ON_HOLD; | ||
897 | description { state: "default" 0.0; | ||
898 | color: 255 255 255 0; | ||
899 | } | ||
900 | description { state: "clicked" 0.0; | ||
901 | inherit: "default" 0.0; | ||
902 | color: 255 255 255 255; | ||
903 | } | ||
904 | } | ||
905 | part { name: "over2"; | ||
906 | mouse_events: 1; | ||
907 | repeat_events: 1; | ||
908 | description { state: "default" 0.0; | ||
909 | color: 255 255 255 0; | ||
910 | } | ||
911 | description { state: "clicked" 0.0; | ||
912 | inherit: "default" 0.0; | ||
913 | color: 255 255 255 255; | ||
914 | } | ||
915 | } | ||
916 | part { name: "disclip"; | ||
917 | type: RECT; | ||
918 | description { state: "default" 0.0; | ||
919 | color: 255 255 255 255; | ||
920 | } | ||
921 | description { state: "enabled" 0.0; | ||
922 | color: 127 127 127 127; | ||
923 | } | ||
924 | } | ||
925 | part { name: "blocker"; | ||
926 | description { state: "default" 0.0; | ||
927 | visible: 0; | ||
928 | } | ||
929 | description { state: "enabled" 0.0; | ||
930 | visible: 1; | ||
931 | color: 0 0 0 0; | ||
932 | } | ||
933 | } | ||
934 | } | ||
935 | programs { | ||
936 | program { | ||
937 | name: "item_unclick"; | ||
938 | signal: "mouse,up,1"; | ||
939 | source: "over1"; | ||
940 | action: SIGNAL_EMIT "elm,action,click" ""; | ||
941 | } | ||
942 | program { name: "disable"; | ||
943 | signal: "elm,state,disabled"; | ||
944 | source: "elm"; | ||
945 | action: STATE_SET "enabled" 0.0; | ||
946 | target: "disclip"; | ||
947 | target: "blocker"; | ||
948 | } | ||
949 | program { name: "enable"; | ||
950 | signal: "elm,state,enabled"; | ||
951 | source: "elm"; | ||
952 | action: STATE_SET "default" 0.0; | ||
953 | target: "disclip"; | ||
954 | target: "blocker"; | ||
955 | } | ||
956 | program { name: "item_click2"; | ||
957 | signal: "mouse,down,1"; | ||
958 | source: "over2"; | ||
959 | script { | ||
960 | set_state(PART:"elm.text", "clicked", 0.0); | ||
961 | set_state(PART:"bg", "clicked", 0.0); | ||
962 | } | ||
963 | } | ||
964 | program { name: "item_unclick2"; | ||
965 | signal: "mouse,up,1"; | ||
966 | source: "over2"; | ||
967 | script { | ||
968 | set_state(PART:"elm.text", "default", 0.0); | ||
969 | set_state(PART:"bg", "default", 0.0); | ||
970 | } | ||
971 | } | ||
972 | } | ||
973 | } | ||
974 | /////////////////////////////////////////////////////////////////////////////// | ||
975 | group { | ||
976 | name: "elm/ctxpopup/item_compress/default"; | ||
977 | images { | ||
978 | image: "hoversel_entry_bg.png" COMP; | ||
979 | } | ||
980 | parts { | ||
981 | part { name: "event"; | ||
982 | mouse_events: 1; | ||
983 | description { state: "default" 0.0; | ||
984 | } | ||
985 | } | ||
986 | part { name: "bg"; | ||
987 | mouse_events: 0; | ||
988 | description { state: "default" 0.0; | ||
989 | rel1.offset: 2 2; | ||
990 | rel2.offset: -3 -3; | ||
991 | image { normal:"hoversel_entry_bg.png"; | ||
992 | border: 0 0 2 2; | ||
993 | } | ||
994 | fill.smooth: 0; | ||
995 | color: 255 255 255 0; | ||
996 | } | ||
997 | description { state: "clicked" 0.0; | ||
998 | inherit: "default" 0.0; | ||
999 | color: 255 255 255 255; | ||
1000 | } | ||
1001 | } | ||
1002 | part { name: "elm.swallow.icon"; | ||
1003 | type: SWALLOW; | ||
1004 | clip_to: "disclip"; | ||
1005 | scale: 1; | ||
1006 | description { state: "default" 0.0; | ||
1007 | min: 25 25; | ||
1008 | max: 25 25; | ||
1009 | align: 0 0.5; | ||
1010 | aspect: 1.0 1.0; | ||
1011 | rel1 { offset: 10 10; } | ||
1012 | rel2 { offset: 0 -10; } | ||
1013 | } | ||
1014 | } | ||
1015 | part { name: "elm.text"; | ||
1016 | type: TEXT; | ||
1017 | mouse_events: 0; | ||
1018 | clip_to: "disclip"; | ||
1019 | scale: 1; | ||
1020 | description { state: "default" 0.0; | ||
1021 | min: 1 40; | ||
1022 | fixed: 0 1; | ||
1023 | align: 0.5 0.5; | ||
1024 | rel1 { relative: 1.0 0.0; to: "elm.swallow.icon"; offset: 10 0; } | ||
1025 | rel2 { relative: 1.0 1.0; } | ||
1026 | color: 255 255 255 255; | ||
1027 | text { | ||
1028 | font: "Sans"; | ||
1029 | size: 10; | ||
1030 | min: 0 1; | ||
1031 | align: 0.0 0.5; | ||
1032 | } | ||
1033 | } | ||
1034 | description { state: "clicked" 0.0; | ||
1035 | inherit: "default" 0.0; | ||
1036 | color: 0 0 0 255; | ||
1037 | } | ||
1038 | } | ||
1039 | part { name: "over1"; | ||
1040 | mouse_events: 1; | ||
1041 | repeat_events: 1; | ||
1042 | ignore_flags: ON_HOLD; | ||
1043 | description { state: "default" 0.0; | ||
1044 | color: 255 255 255 0; | ||
1045 | } | ||
1046 | description { state: "clicked" 0.0; | ||
1047 | inherit: "default" 0.0; | ||
1048 | color: 255 255 255 255; | ||
1049 | } | ||
1050 | } | ||
1051 | part { name: "over2"; | ||
1052 | mouse_events: 1; | ||
1053 | repeat_events: 1; | ||
1054 | description { state: "default" 0.0; | ||
1055 | color: 255 255 255 0; | ||
1056 | } | ||
1057 | description { state: "clicked" 0.0; | ||
1058 | inherit: "default" 0.0; | ||
1059 | color: 255 255 255 255; | ||
1060 | } | ||
1061 | } | ||
1062 | part { name: "disclip"; | ||
1063 | type: RECT; | ||
1064 | description { state: "default" 0.0; | ||
1065 | color: 255 255 255 255; | ||
1066 | } | ||
1067 | description { state: "enabled" 0.0; | ||
1068 | color: 127 127 127 127; | ||
1069 | } | ||
1070 | } | ||
1071 | part { name: "blocker"; | ||
1072 | description { state: "default" 0.0; | ||
1073 | visible: 0; | ||
1074 | } | ||
1075 | description { state: "enabled" 0.0; | ||
1076 | visible: 1; | ||
1077 | color: 0 0 0 0; | ||
1078 | } | ||
1079 | } | ||
1080 | } | ||
1081 | programs { | ||
1082 | program { | ||
1083 | name: "item_unclick"; | ||
1084 | signal: "mouse,up,1"; | ||
1085 | source: "over1"; | ||
1086 | action: SIGNAL_EMIT "elm,action,click" ""; | ||
1087 | } | ||
1088 | program { name: "disable"; | ||
1089 | signal: "elm,state,disabled"; | ||
1090 | source: "elm"; | ||
1091 | action: STATE_SET "enabled" 0.0; | ||
1092 | target: "disclip"; | ||
1093 | target: "blocker"; | ||
1094 | } | ||
1095 | program { name: "enable"; | ||
1096 | signal: "elm,state,enabled"; | ||
1097 | source: "elm"; | ||
1098 | action: STATE_SET "default" 0.0; | ||
1099 | target: "disclip"; | ||
1100 | target: "blocker"; | ||
1101 | } | ||
1102 | program { name: "item_click2"; | ||
1103 | signal: "mouse,down,1"; | ||
1104 | source: "over2"; | ||
1105 | script { | ||
1106 | set_state(PART:"elm.text", "clicked", 0.0); | ||
1107 | set_state(PART:"bg", "clicked", 0.0); | ||
1108 | } | ||
1109 | } | ||
1110 | program { name: "item_unclick2"; | ||
1111 | signal: "mouse,up,1"; | ||
1112 | source: "over2"; | ||
1113 | script { | ||
1114 | set_state(PART:"elm.text", "default", 0.0); | ||
1115 | set_state(PART:"bg", "default", 0.0); | ||
1116 | } | ||
1117 | } | ||
1118 | } | ||
1119 | } | ||
diff --git a/libraries/elementary/data/themes/widgets/datetime.edc b/libraries/elementary/data/themes/widgets/datetime.edc new file mode 100644 index 0000000..fe68ab3 --- /dev/null +++ b/libraries/elementary/data/themes/widgets/datetime.edc | |||
@@ -0,0 +1,349 @@ | |||
1 | /////////////////////////////////////////////////////////////////////////////// | ||
2 | // datetime | ||
3 | /////////////////////////////////////////////////////////////////////////////// | ||
4 | |||
5 | #define DATETIME_FIELD(_pos) \ | ||
6 | part {\ | ||
7 | name: "field"#_pos; \ | ||
8 | type: SWALLOW; \ | ||
9 | scale: 1;\ | ||
10 | clip_to: "clipper";\ | ||
11 | description { state: "default" 0.0; \ | ||
12 | visible: 0;\ | ||
13 | min: 0 0;\ | ||
14 | align: 0.0 0.5;\ | ||
15 | fixed: 1 0;\ | ||
16 | rel1 {\ | ||
17 | relative: 1.0 0.0;\ | ||
18 | to: "separator"#_pos;\ | ||
19 | }\ | ||
20 | rel2 {\ | ||
21 | relative: 1.0 1.0;\ | ||
22 | to: "separator"#_pos;\ | ||
23 | }\ | ||
24 | }\ | ||
25 | description { state: "enable" 0.0;\ | ||
26 | inherit: "default" 0.0;\ | ||
27 | visible: 1;\ | ||
28 | min: 25 25;\ | ||
29 | }\ | ||
30 | }\ | ||
31 | programs{\ | ||
32 | program {\ | ||
33 | name: "field_"#_pos"enabled";\ | ||
34 | signal: "field"#_pos",enable";\ | ||
35 | source: "elm";\ | ||
36 | action: STATE_SET "enable" 0.0;\ | ||
37 | target: "field"#_pos;\ | ||
38 | }\ | ||
39 | program {\ | ||
40 | name: "field_"#_pos"disabled";\ | ||
41 | signal: "field"#_pos",disable";\ | ||
42 | source: "elm";\ | ||
43 | action: STATE_SET "default" 0.0;\ | ||
44 | target: "field"#_pos;\ | ||
45 | }\ | ||
46 | } | ||
47 | |||
48 | #define DATETIME_SEPARATOR(_pos,_after) \ | ||
49 | part {\ | ||
50 | name: "separator"#_pos; \ | ||
51 | type: TEXT;\ | ||
52 | scale: 1;\ | ||
53 | description {\ | ||
54 | state: "default" 0.0;\ | ||
55 | visible: 0;\ | ||
56 | min: 0 0;\ | ||
57 | align: 0.0 0.5;\ | ||
58 | fixed: 1 0;\ | ||
59 | rel1 {\ | ||
60 | relative: 1.0 0.0;\ | ||
61 | to: "field"#_after;\ | ||
62 | }\ | ||
63 | rel2 {\ | ||
64 | relative: 1.0 1.0;\ | ||
65 | to: "field"#_after;\ | ||
66 | }\ | ||
67 | color: 100 100 100 255;\ | ||
68 | text {\ | ||
69 | font: "SLP:style=Roman";\ | ||
70 | size: 13;\ | ||
71 | min: 1 0;\ | ||
72 | align: 0.2 0.5;\ | ||
73 | }\ | ||
74 | }\ | ||
75 | description { state: "enable" 0.0;\ | ||
76 | inherit: "default" 0.0;\ | ||
77 | visible: 1;\ | ||
78 | min: 13 25;\ | ||
79 | }\ | ||
80 | }\ | ||
81 | programs {\ | ||
82 | program {\ | ||
83 | name: "separator"#_pos",enabled";\ | ||
84 | signal: "field"#_after",enable";\ | ||
85 | source: "elm";\ | ||
86 | action: STATE_SET "enable" 0.0;\ | ||
87 | target: "separator"#_pos;\ | ||
88 | }\ | ||
89 | program {\ | ||
90 | name: "separator"#_pos",disabled";\ | ||
91 | signal: "field"#_after",disable";\ | ||
92 | source: "elm";\ | ||
93 | action: STATE_SET "default" 0.0;\ | ||
94 | target: "separator"#_pos;\ | ||
95 | }\ | ||
96 | } | ||
97 | |||
98 | |||
99 | group { name: "elm/datetime/base/default"; | ||
100 | parts { | ||
101 | part { | ||
102 | name: "bg"; | ||
103 | type: RECT; | ||
104 | scale: 1; | ||
105 | description { | ||
106 | state: "default" 0.0; | ||
107 | color: 0 0 0 0; | ||
108 | } | ||
109 | } | ||
110 | part { | ||
111 | name: "separator0"; | ||
112 | type: RECT; | ||
113 | scale: 1; | ||
114 | description { | ||
115 | state: "default" 0.0; | ||
116 | visible: 0; | ||
117 | min: 13 25; | ||
118 | align: 0.0 0.5; | ||
119 | fixed: 1 0; | ||
120 | rel2 { | ||
121 | relative: 0.0 1.0; | ||
122 | to: "bg"; | ||
123 | } | ||
124 | } | ||
125 | } | ||
126 | DATETIME_FIELD(0) | ||
127 | DATETIME_SEPARATOR(1,0) | ||
128 | DATETIME_FIELD(1) | ||
129 | DATETIME_SEPARATOR(2,1) | ||
130 | DATETIME_FIELD(2) | ||
131 | DATETIME_SEPARATOR(3,2) | ||
132 | DATETIME_FIELD(3) | ||
133 | DATETIME_SEPARATOR(4,3) | ||
134 | DATETIME_FIELD(4) | ||
135 | DATETIME_SEPARATOR(5,4) | ||
136 | DATETIME_FIELD(5) | ||
137 | DATETIME_SEPARATOR(6,5) | ||
138 | part { | ||
139 | name: "clipper"; | ||
140 | type: RECT; | ||
141 | description { state: "default" 0.0; | ||
142 | rel1 { | ||
143 | relative: 0.0 0.0; | ||
144 | to: "separator0"; | ||
145 | } | ||
146 | rel2 { | ||
147 | relative: 1.0 1.0; | ||
148 | to: "separator6"; | ||
149 | } | ||
150 | color: 255 255 255 255; | ||
151 | } | ||
152 | description { state: "enable" 0.0; | ||
153 | inherit: "default" 0.0; | ||
154 | color: 255 255 255 127; | ||
155 | } | ||
156 | } | ||
157 | part { | ||
158 | name: "disabler"; | ||
159 | type: RECT; | ||
160 | description { state: "default" 0.0; | ||
161 | color: 0 0 0 0; | ||
162 | visible: 0; | ||
163 | } | ||
164 | description { state: "visible" 0.0; | ||
165 | inherit: "default" 0.0; | ||
166 | visible: 1; | ||
167 | } | ||
168 | } | ||
169 | } | ||
170 | programs { | ||
171 | program { | ||
172 | name: "disble_datetime"; | ||
173 | signal: "elm,state,disabled"; | ||
174 | source: "elm"; | ||
175 | action: STATE_SET "visible" 0.0; | ||
176 | target: "disabler"; | ||
177 | target: "clipper"; | ||
178 | } | ||
179 | program { | ||
180 | name: "enable_datetime"; | ||
181 | signal: "elm,state,enabled"; | ||
182 | source: "elm"; | ||
183 | action: STATE_SET "default" 0.0; | ||
184 | target: "disabler"; | ||
185 | target: "clipper"; | ||
186 | } | ||
187 | } | ||
188 | }//end datetime group | ||
189 | |||
190 | /////////////////////////////////////////////////////////////////////////////// | ||
191 | // diskselector item : datetime style | ||
192 | /////////////////////////////////////////////////////////////////////////////// | ||
193 | group { name: "elm/diskselector/item/datetime/default"; | ||
194 | data { | ||
195 | item: "len_threshold" "10"; | ||
196 | item: "min_height" "-1"; | ||
197 | item: "min_width" "-1"; | ||
198 | } | ||
199 | parts { | ||
200 | part { | ||
201 | name: "elm.text"; | ||
202 | type: TEXT; | ||
203 | mouse_events: 0; | ||
204 | scale: 1; | ||
205 | description { | ||
206 | state: "default" 0.0; | ||
207 | min: 25 25; | ||
208 | fixed: 1 1; | ||
209 | align: 0.0 0.0; | ||
210 | color: 172 172 172 255; | ||
211 | visible: 1; | ||
212 | text { | ||
213 | font: "Sans,Edje-Vera"; | ||
214 | size: 13; | ||
215 | min: 1 1; | ||
216 | } | ||
217 | } | ||
218 | description { | ||
219 | state: "center_sel" 0.0; | ||
220 | inherit: "default" 0.0; | ||
221 | color: 255 255 255 255; | ||
222 | } | ||
223 | description { state: "left_side" 0.0; | ||
224 | inherit: "default" 0.0; | ||
225 | color: 152 152 152 255; | ||
226 | text.size: 10; | ||
227 | text.align: 0.2 0.5; | ||
228 | } | ||
229 | description { state: "left_side_sel" 0.0; | ||
230 | inherit: "default" 0.0; | ||
231 | color: 255 255 255 255; | ||
232 | text.size: 10; | ||
233 | text.align: 0.2 0.5; | ||
234 | } | ||
235 | description { state: "right_side" 0.0; | ||
236 | inherit: "default" 0.0; | ||
237 | color: 152 152 152 255; | ||
238 | text.size: 10; | ||
239 | text.align: 0.8 0.5; | ||
240 | } | ||
241 | description { state: "right_side_sel" 0.0; | ||
242 | inherit: "default" 0.0; | ||
243 | color: 255 255 255 255; | ||
244 | text.size: 10; | ||
245 | text.align: 0.8 0.5; | ||
246 | } | ||
247 | } | ||
248 | part { | ||
249 | name: "over1"; | ||
250 | mouse_events: 1; | ||
251 | repeat_events: 1; | ||
252 | ignore_flags: ON_HOLD; | ||
253 | description { | ||
254 | state: "default" 0.0; | ||
255 | } | ||
256 | } | ||
257 | } | ||
258 | programs { | ||
259 | script { | ||
260 | public field_pos; // center = 0,left = 1, right =2. | ||
261 | public field_selected; //field is selected(1) or not(0). | ||
262 | |||
263 | public update_state() { | ||
264 | new pos, is_sel; | ||
265 | pos = get_int(field_pos) | ||
266 | is_sel = get_int(field_selected); | ||
267 | |||
268 | if (is_sel == 1) | ||
269 | { | ||
270 | if (pos == 0) | ||
271 | set_state(PART:"elm.text", "center_sel", 0.0); | ||
272 | else if (pos == 1) | ||
273 | set_state(PART:"elm.text", "left_side_sel", 0.0); | ||
274 | else if (pos == 2) | ||
275 | set_state(PART:"elm.text", "right_side_sel", 0.0); | ||
276 | } | ||
277 | else if (is_sel == 0) | ||
278 | { | ||
279 | if (pos == 0) | ||
280 | set_state(PART:"elm.text", "default", 0.0); | ||
281 | else if (pos == 1) | ||
282 | set_state(PART:"elm.text", "left_side", 0.0); | ||
283 | else if (pos == 2) | ||
284 | set_state(PART:"elm.text", "right_side", 0.0); | ||
285 | } | ||
286 | } | ||
287 | } | ||
288 | program { | ||
289 | name: "selected_text"; | ||
290 | signal: "elm,state,selected"; | ||
291 | source: "elm"; | ||
292 | script { | ||
293 | set_int(field_selected, 1); | ||
294 | update_state(); | ||
295 | } | ||
296 | } | ||
297 | program { | ||
298 | name: "default_text"; | ||
299 | signal: "elm,state,default"; | ||
300 | source: "elm"; | ||
301 | script { | ||
302 | set_int(field_selected, 0); | ||
303 | update_state(); | ||
304 | } | ||
305 | } | ||
306 | program { name: "center_text"; | ||
307 | signal: "elm,state,center"; | ||
308 | source: "elm"; | ||
309 | script { | ||
310 | set_int(field_pos, 0); | ||
311 | update_state(); | ||
312 | } | ||
313 | } | ||
314 | program { name: "center_small_text"; | ||
315 | signal: "elm,state,center_small"; | ||
316 | source: "elm"; | ||
317 | script { | ||
318 | set_int(field_pos, 0); | ||
319 | update_state(); | ||
320 | } | ||
321 | } | ||
322 | program { name: "l_side_text"; | ||
323 | signal: "elm,state,left_side"; | ||
324 | source: "elm"; | ||
325 | script { | ||
326 | set_int(field_pos, 1); | ||
327 | update_state(); | ||
328 | } | ||
329 | } | ||
330 | program { name: "r_side_text"; | ||
331 | signal: "elm,state,right_side"; | ||
332 | source: "elm"; | ||
333 | script { | ||
334 | set_int(field_pos, 2); | ||
335 | update_state(); | ||
336 | } | ||
337 | } | ||
338 | program { | ||
339 | name: "field_click"; | ||
340 | signal: "mouse,clicked,1"; | ||
341 | source: "over1"; | ||
342 | action: SIGNAL_EMIT "elm,action,click" ""; | ||
343 | } | ||
344 | } | ||
345 | } | ||
346 | |||
347 | /////////////////////////////////////////////////////////////////////////////// | ||
348 | // end of datetime style | ||
349 | /////////////////////////////////////////////////////////////////////////////// | ||
diff --git a/libraries/elementary/data/themes/widgets/dayselector.edc b/libraries/elementary/data/themes/widgets/dayselector.edc new file mode 100644 index 0000000..fb140b7 --- /dev/null +++ b/libraries/elementary/data/themes/widgets/dayselector.edc | |||
@@ -0,0 +1,478 @@ | |||
1 | #define DAYSELECOR_DAY_POS_LEFT 1 | ||
2 | #define DAYSELECOR_DAY_POS_RIGHT 2 | ||
3 | #define DAYSELECOR_DAY_POS_MIDDLE 3 | ||
4 | #define DAYSELECOR_DAY_TYPE_WEEKDAY 1 | ||
5 | #define DAYSELECOR_DAY_TYPE_WEEKEND_DEFAULT 2 | ||
6 | #define DAYSELECOR_DAY_TYPE_WEEKEND_STYLE1 3 | ||
7 | #define DAYSELECOR_DAY_STATE_DEFAULT 1 | ||
8 | #define DAYSELECOR_DAY_STATE_PRESSED 2 | ||
9 | #define DAYSELECOR_DAY_STATE_SELECTED 3 | ||
10 | |||
11 | #define DAYSELECTOR_DAY(_pos, _after)\ | ||
12 | part {\ | ||
13 | name: "day"#_pos;\ | ||
14 | type: SWALLOW;\ | ||
15 | scale: 1;\ | ||
16 | clip_to: "clipper";\ | ||
17 | description { state: "default" 0.0;\ | ||
18 | visible: 0;\ | ||
19 | min: 0 0;\ | ||
20 | align: 0.0 0.5;\ | ||
21 | fixed: 1 0;\ | ||
22 | rel1 {\ | ||
23 | relative: 1.0 0.0;\ | ||
24 | to: "day"#_after;\ | ||
25 | offset: 1 0;\ | ||
26 | }\ | ||
27 | rel2 {\ | ||
28 | relative: 1.0 1.0;\ | ||
29 | to: "day"#_after;\ | ||
30 | }\ | ||
31 | }\ | ||
32 | description { state: "visible" 0.0;\ | ||
33 | inherit: "default" 0.0;\ | ||
34 | visible: 1;\ | ||
35 | min: 40 25;\ | ||
36 | }\ | ||
37 | }\ | ||
38 | programs{\ | ||
39 | program {\ | ||
40 | name: "day"#_pos"visible";\ | ||
41 | signal: "day"#_pos",visible";\ | ||
42 | source: "elm";\ | ||
43 | action: STATE_SET "visible" 0.0;\ | ||
44 | target: "day"#_pos;\ | ||
45 | }\ | ||
46 | program {\ | ||
47 | name: "day"#_pos"notvisible";\ | ||
48 | signal: "day"#_pos",default";\ | ||
49 | source: "elm";\ | ||
50 | action: STATE_SET "default" 0.0;\ | ||
51 | target: "day"#_pos;\ | ||
52 | }\ | ||
53 | } | ||
54 | |||
55 | group { | ||
56 | name: "elm/dayselector/base/default"; | ||
57 | parts { | ||
58 | part { | ||
59 | name: "bg"; | ||
60 | type: RECT; | ||
61 | mouse_events: 0; | ||
62 | clip_to: "clipper"; | ||
63 | description { | ||
64 | state: "default" 0.0; | ||
65 | rel1 { | ||
66 | relative: 0.5 0.0; | ||
67 | to: "day0"; | ||
68 | } | ||
69 | rel2 { | ||
70 | relative: 0.5 1.0; | ||
71 | to: "day6"; | ||
72 | } | ||
73 | color: 199 199 199 255; | ||
74 | } | ||
75 | } | ||
76 | part { | ||
77 | name: "day0"; | ||
78 | type: SWALLOW; | ||
79 | scale: 1; | ||
80 | clip_to: "clipper"; | ||
81 | description { | ||
82 | state: "default" 0.0; | ||
83 | visible: 0; | ||
84 | min: 0 0; | ||
85 | align: 0.0 0.5; | ||
86 | fixed: 1 0; | ||
87 | rel2.relative: 0.0 1.0; | ||
88 | } | ||
89 | description { | ||
90 | state: "visible" 0.0; | ||
91 | inherit: "default" 0.0; | ||
92 | visible: 1; | ||
93 | min: 40 25; | ||
94 | } | ||
95 | } | ||
96 | DAYSELECTOR_DAY(1, 0) | ||
97 | DAYSELECTOR_DAY(2, 1) | ||
98 | DAYSELECTOR_DAY(3, 2) | ||
99 | DAYSELECTOR_DAY(4, 3) | ||
100 | DAYSELECTOR_DAY(5, 4) | ||
101 | DAYSELECTOR_DAY(6, 5) | ||
102 | part { | ||
103 | name: "clipper"; | ||
104 | type: RECT; | ||
105 | description { | ||
106 | state: "default" 0.0; | ||
107 | rel1.to: "day0"; | ||
108 | rel2.to: "day6"; | ||
109 | color: 255 255 255 255; | ||
110 | } | ||
111 | description { | ||
112 | state: "visible" 0.0; | ||
113 | inherit: "default" 0.0; | ||
114 | color: 200 200 200 255; | ||
115 | } | ||
116 | } | ||
117 | part { | ||
118 | name: "disabler"; | ||
119 | type: RECT; | ||
120 | description { | ||
121 | state: "default" 0.0; | ||
122 | color: 0 0 0 0; | ||
123 | visible: 0; | ||
124 | } | ||
125 | description { | ||
126 | state: "visible" 0.0; | ||
127 | inherit: "default" 0.0; | ||
128 | visible: 1; | ||
129 | } | ||
130 | } | ||
131 | } | ||
132 | programs { | ||
133 | program { | ||
134 | name: "disble_dayselector"; | ||
135 | signal: "elm,state,disabled"; | ||
136 | source: "elm"; | ||
137 | action: STATE_SET "visible" 0.0; | ||
138 | target: "disabler"; | ||
139 | target: "clipper"; | ||
140 | } | ||
141 | program { | ||
142 | name: "enable_dayselector"; | ||
143 | signal: "elm,state,enabled"; | ||
144 | source: "elm"; | ||
145 | action: STATE_SET "default" 0.0; | ||
146 | target: "disabler"; | ||
147 | target: "clipper"; | ||
148 | } | ||
149 | program { | ||
150 | name: "day0_visible"; | ||
151 | signal: "day0,visible"; | ||
152 | source: "elm"; | ||
153 | action: STATE_SET "visible" 0.0; | ||
154 | target: "day0"; | ||
155 | } | ||
156 | program { | ||
157 | name: "day0_default"; | ||
158 | signal: "day0,default"; | ||
159 | source: "elm"; | ||
160 | action: STATE_SET "default" 0.0; | ||
161 | target: "day0"; | ||
162 | } | ||
163 | } | ||
164 | } | ||
165 | |||
166 | group { | ||
167 | name: "elm/check/base/dayselector/default"; | ||
168 | images { | ||
169 | image: "seg_single_normal.png" COMP; | ||
170 | image: "seg_left_normal.png" COMP; | ||
171 | image: "seg_left_pressed.png" COMP; | ||
172 | image: "seg_left_selected.png" COMP; | ||
173 | image: "seg_right_normal.png" COMP; | ||
174 | image: "seg_right_pressed.png" COMP; | ||
175 | image: "seg_right_selected.png" COMP; | ||
176 | image: "seg_middle_normal.png" COMP; | ||
177 | image: "seg_middle_pressed.png" COMP; | ||
178 | image: "seg_middle_selected.png" COMP; | ||
179 | } | ||
180 | script { | ||
181 | public check_pos; // Left, Right, Middle. | ||
182 | public check_type; // Weekday, Weekend. | ||
183 | public check_state = DAYSELECOR_DAY_STATE_DEFAULT; // Default, Pressed, Selected. | ||
184 | |||
185 | public check_bg_show() { | ||
186 | if(get_int(check_pos) == DAYSELECOR_DAY_POS_LEFT) { | ||
187 | if(get_int(check_state) == DAYSELECOR_DAY_STATE_DEFAULT) | ||
188 | set_state(PART:"bg", "default_left", 0.0); | ||
189 | else if(get_int(check_state) == DAYSELECOR_DAY_STATE_PRESSED) | ||
190 | set_state(PART:"bg", "pressed_left", 0.0); | ||
191 | else if(get_int(check_state) == DAYSELECOR_DAY_STATE_SELECTED) | ||
192 | set_state(PART:"bg", "selected_left", 0.0); | ||
193 | } | ||
194 | else if(get_int(check_pos) == DAYSELECOR_DAY_POS_RIGHT) { | ||
195 | if(get_int(check_state) == DAYSELECOR_DAY_STATE_DEFAULT) | ||
196 | set_state(PART:"bg", "default_right", 0.0); | ||
197 | else if(get_int(check_state) == DAYSELECOR_DAY_STATE_PRESSED) | ||
198 | set_state(PART:"bg", "pressed_right", 0.0); | ||
199 | else if(get_int(check_state) == DAYSELECOR_DAY_STATE_SELECTED) | ||
200 | set_state(PART:"bg", "selected_right", 0.0); | ||
201 | } | ||
202 | else if(get_int(check_pos) == DAYSELECOR_DAY_POS_MIDDLE) { | ||
203 | if(get_int(check_state) == DAYSELECOR_DAY_STATE_DEFAULT) | ||
204 | set_state(PART:"bg", "default_middle", 0.0); | ||
205 | else if(get_int(check_state) == DAYSELECOR_DAY_STATE_PRESSED) | ||
206 | set_state(PART:"bg", "pressed_middle", 0.0); | ||
207 | else if(get_int(check_state) == DAYSELECOR_DAY_STATE_SELECTED) | ||
208 | set_state(PART:"bg", "selected_middle", 0.0); | ||
209 | } | ||
210 | } | ||
211 | public check_text_show() { | ||
212 | if(get_int(check_state) == DAYSELECOR_DAY_STATE_SELECTED) | ||
213 | set_state(PART:"elm.text", "selected", 0.0); | ||
214 | else { | ||
215 | if(get_int(check_type) == DAYSELECOR_DAY_TYPE_WEEKDAY) | ||
216 | set_state(PART:"elm.text", "default", 0.0); | ||
217 | else if (get_int(check_type) == DAYSELECOR_DAY_TYPE_WEEKEND_DEFAULT) | ||
218 | set_state(PART:"elm.text", "weekend_default", 0.0); | ||
219 | else if (get_int(check_type) == DAYSELECOR_DAY_TYPE_WEEKEND_STYLE1) | ||
220 | set_state(PART:"elm.text", "weekend_style1", 0.0); | ||
221 | } | ||
222 | } | ||
223 | } | ||
224 | parts { | ||
225 | part { | ||
226 | name: "bg"; | ||
227 | mouse_events: 0; | ||
228 | scale: 1; | ||
229 | description { | ||
230 | state: "default" 0.0; | ||
231 | image { | ||
232 | normal: "seg_single_normal.png"; | ||
233 | border: 7 7 7 7; | ||
234 | border_scale: 1; | ||
235 | middle: 1; | ||
236 | } | ||
237 | } | ||
238 | description { state: "default_left" 0.0; | ||
239 | inherit: "default" 0.0; | ||
240 | image { | ||
241 | normal: "seg_left_normal.png"; | ||
242 | border: 6 1 7 7; | ||
243 | } | ||
244 | } | ||
245 | description { state: "default_right" 0.0; | ||
246 | inherit: "default" 0.0; | ||
247 | image { | ||
248 | normal: "seg_right_normal.png"; | ||
249 | border: 1 6 7 7; | ||
250 | } | ||
251 | } | ||
252 | description { state: "default_middle" 0.0; | ||
253 | inherit: "default" 0.0; | ||
254 | image { | ||
255 | normal: "seg_middle_normal.png"; | ||
256 | border: 2 2 2 2; | ||
257 | } | ||
258 | } | ||
259 | description { state: "pressed_left" 0.0; | ||
260 | inherit: "default" 0.0; | ||
261 | image { | ||
262 | normal: "seg_left_pressed.png"; | ||
263 | border: 6 1 7 7; | ||
264 | } | ||
265 | } | ||
266 | description { state: "pressed_right" 0.0; | ||
267 | inherit: "default" 0.0; | ||
268 | image { | ||
269 | normal: "seg_right_pressed.png"; | ||
270 | border: 1 6 7 7; | ||
271 | } | ||
272 | } | ||
273 | description { state: "pressed_middle" 0.0; | ||
274 | inherit: "default" 0.0; | ||
275 | image { | ||
276 | normal: "seg_middle_pressed.png"; | ||
277 | border: 1 1 2 2; | ||
278 | } | ||
279 | } | ||
280 | description { state: "selected_left" 0.0; | ||
281 | inherit: "default" 0.0; | ||
282 | image { | ||
283 | normal: "seg_left_selected.png"; | ||
284 | border: 6 3 7 7; | ||
285 | } | ||
286 | } | ||
287 | description { state: "selected_right" 0.0; | ||
288 | inherit: "default" 0.0; | ||
289 | image { | ||
290 | normal: "seg_right_selected.png"; | ||
291 | border: 3 6 7 7; | ||
292 | } | ||
293 | } | ||
294 | description { state: "selected_middle" 0.0; | ||
295 | inherit: "default" 0.0; | ||
296 | image { | ||
297 | normal: "seg_middle_selected.png"; | ||
298 | border: 3 3 3 3; | ||
299 | } | ||
300 | } | ||
301 | } | ||
302 | part { | ||
303 | name: "left_padding"; | ||
304 | type: RECT; | ||
305 | mouse_events: 0; | ||
306 | scale: 1; | ||
307 | description { state: "default" 0.0; | ||
308 | min: 5 0; | ||
309 | visible: 0; | ||
310 | fixed: 1 0; | ||
311 | align: 0.0 0.5; | ||
312 | rel2 { | ||
313 | relative: 0.0 1.0; | ||
314 | } | ||
315 | } | ||
316 | } | ||
317 | part { | ||
318 | name: "right_padding"; | ||
319 | type: RECT; | ||
320 | mouse_events: 0; | ||
321 | scale: 1; | ||
322 | description { state: "default" 0.0; | ||
323 | visible: 0; | ||
324 | min: 5 0; | ||
325 | fixed: 1 0; | ||
326 | align: 1.0 0.5; | ||
327 | rel1 { | ||
328 | relative: 1.0 0.0; | ||
329 | } | ||
330 | } | ||
331 | } | ||
332 | part { | ||
333 | name: "elm.text"; | ||
334 | type: TEXT; | ||
335 | mouse_events: 0; | ||
336 | scale: 1; | ||
337 | description { | ||
338 | state: "default" 0.0; | ||
339 | rel1 { | ||
340 | to: "left_padding"; | ||
341 | relative: 1.0 0.0; | ||
342 | } | ||
343 | rel2 { | ||
344 | to: "right_padding"; | ||
345 | relative: 0.0 1.0; | ||
346 | } | ||
347 | color: 224 224 224 255; | ||
348 | text { | ||
349 | font: "Sans,Edje-Vera"; | ||
350 | size: 20; | ||
351 | min: 1 1; | ||
352 | } | ||
353 | } | ||
354 | description { | ||
355 | state: "weekend_default" 0.0; | ||
356 | inherit: "default" 0.0; | ||
357 | color: 225 49 8 255; | ||
358 | } | ||
359 | description { | ||
360 | state: "weekend_style1" 0.0; | ||
361 | inherit: "default" 0.0; | ||
362 | color: 60 100 255 255; | ||
363 | } | ||
364 | description { | ||
365 | state: "selected" 0.0; | ||
366 | inherit: "default" 0.0; | ||
367 | color: 50 50 50 255; | ||
368 | } | ||
369 | } | ||
370 | part { | ||
371 | name: "events"; | ||
372 | type: RECT; | ||
373 | ignore_flags: ON_HOLD; | ||
374 | description { | ||
375 | state: "default" 0.0; | ||
376 | rel1.to: "bg"; | ||
377 | rel2.to: "bg"; | ||
378 | color: 0 0 0 0; | ||
379 | } | ||
380 | } | ||
381 | } | ||
382 | programs { | ||
383 | program { | ||
384 | name: "check,pressed"; | ||
385 | signal: "mouse,down,1"; | ||
386 | source: "events"; | ||
387 | script { | ||
388 | set_int(check_state, DAYSELECOR_DAY_STATE_PRESSED); | ||
389 | check_bg_show(); | ||
390 | } | ||
391 | } | ||
392 | program { | ||
393 | name: "check,toggle"; | ||
394 | signal: "mouse,up,1"; | ||
395 | source: "events"; | ||
396 | action: SIGNAL_EMIT "elm,action,check,toggle" ""; | ||
397 | } | ||
398 | program { | ||
399 | name: "check,on"; | ||
400 | signal: "elm,state,check,on"; | ||
401 | source: "elm"; | ||
402 | script { | ||
403 | set_int(check_state, DAYSELECOR_DAY_STATE_SELECTED); | ||
404 | check_bg_show(); | ||
405 | check_text_show(); | ||
406 | } | ||
407 | } | ||
408 | program { | ||
409 | name: "check,off"; | ||
410 | signal: "elm,state,check,off"; | ||
411 | source: "elm"; | ||
412 | script { | ||
413 | set_int(check_state, DAYSELECOR_DAY_STATE_DEFAULT); | ||
414 | check_bg_show(); | ||
415 | check_text_show(); | ||
416 | } | ||
417 | } | ||
418 | program { name: "check,left"; | ||
419 | signal: "elm,pos,check,left"; | ||
420 | source: "elm"; | ||
421 | script { | ||
422 | set_int(check_pos, DAYSELECOR_DAY_POS_LEFT); | ||
423 | check_bg_show(); | ||
424 | } | ||
425 | } | ||
426 | program { name: "check,right"; | ||
427 | signal: "elm,pos,check,right"; | ||
428 | source: "elm"; | ||
429 | script { | ||
430 | set_int(check_pos, DAYSELECOR_DAY_POS_RIGHT); | ||
431 | check_bg_show(); | ||
432 | } | ||
433 | } | ||
434 | program { name: "check,middle"; | ||
435 | signal: "elm,pos,check,middle"; | ||
436 | source: "elm"; | ||
437 | script { | ||
438 | set_int(check_pos, DAYSELECOR_DAY_POS_MIDDLE); | ||
439 | check_bg_show(); | ||
440 | } | ||
441 | } | ||
442 | program { name: "check,weekday"; | ||
443 | signal: "elm,type,weekday,default"; | ||
444 | source: ""; | ||
445 | script { | ||
446 | set_int(check_type, DAYSELECOR_DAY_TYPE_WEEKDAY); | ||
447 | check_text_show(); | ||
448 | } | ||
449 | } | ||
450 | program { name: "check,weekend,default"; | ||
451 | signal: "elm,type,weekend,default"; | ||
452 | source: ""; | ||
453 | script { | ||
454 | set_int(check_type, DAYSELECOR_DAY_TYPE_WEEKEND_DEFAULT); | ||
455 | check_text_show(); | ||
456 | } | ||
457 | } | ||
458 | program { name: "check,weekend,style1"; | ||
459 | signal: "elm,type,weekend,style1"; | ||
460 | source: ""; | ||
461 | script { | ||
462 | set_int(check_type, DAYSELECOR_DAY_TYPE_WEEKEND_STYLE1); | ||
463 | check_text_show(); | ||
464 | } | ||
465 | } | ||
466 | } | ||
467 | } | ||
468 | |||
469 | #undef DAYSELECOR_DAY_POS_LEFT | ||
470 | #undef DAYSELECOR_DAY_POS_RIGHT | ||
471 | #undef DAYSELECOR_DAY_POS_MIDDLE | ||
472 | #undef DAYSELECOR_DAY_TYPE_WEEKDAY | ||
473 | #undef DAYSELECOR_DAY_TYPE_WEEKEND_DEFAULT | ||
474 | #undef DAYSELECOR_DAY_TYPE_WEEKEND_STYLE1 | ||
475 | #undef DAYSELECOR_DAY_STATE_DEFAULT | ||
476 | #undef DAYSELECOR_DAY_STATE_PRESSED | ||
477 | #undef DAYSELECOR_DAY_STATE_SELECTED | ||
478 | #undef DAYSELECTOR_DAY | ||
diff --git a/libraries/elementary/data/themes/widgets/diskselector.edc b/libraries/elementary/data/themes/widgets/diskselector.edc new file mode 100644 index 0000000..97b3663 --- /dev/null +++ b/libraries/elementary/data/themes/widgets/diskselector.edc | |||
@@ -0,0 +1,185 @@ | |||
1 | group { name: "elm/diskselector/base/default"; | ||
2 | images { | ||
3 | image: "bar_shine.png" COMP; | ||
4 | } | ||
5 | |||
6 | parts { | ||
7 | part { name: "bg"; | ||
8 | type: RECT; | ||
9 | mouse_events: 0; | ||
10 | description { state: "default" 0.0; | ||
11 | color: 0 0 0 255; | ||
12 | } | ||
13 | } | ||
14 | part { name: "shine_left"; | ||
15 | mouse_events: 0; | ||
16 | description { state: "default" 0.0; | ||
17 | rel1.to: "bg"; | ||
18 | rel1.relative: -0.1 0; | ||
19 | rel2.to: "bg"; | ||
20 | rel2.relative: 0.1 1; | ||
21 | image.normal: "bar_shine.png"; | ||
22 | color: 255 255 255 120; | ||
23 | } | ||
24 | } | ||
25 | part { name: "shine_center"; | ||
26 | mouse_events: 0; | ||
27 | description { state: "default" 0.0; | ||
28 | rel1.to: "bg"; | ||
29 | rel1.relative: 0.2 0; | ||
30 | rel2.to: "bg"; | ||
31 | rel2.relative: 0.8 1; | ||
32 | image.normal: "bar_shine.png"; | ||
33 | color: 255 255 255 180; | ||
34 | } | ||
35 | } | ||
36 | part { name: "shine_right"; | ||
37 | mouse_events: 0; | ||
38 | description { state: "default" 0.0; | ||
39 | rel1.to: "bg"; | ||
40 | rel1.relative: 0.9 0; | ||
41 | rel2.to: "bg"; | ||
42 | rel2.relative: 1.1 1; | ||
43 | image.normal: "bar_shine.png"; | ||
44 | color: 255 255 255 120; | ||
45 | } | ||
46 | } | ||
47 | part { name: "clipper"; | ||
48 | type: RECT; | ||
49 | mouse_events: 0; | ||
50 | description { state: "default" 0.0; | ||
51 | rel1.to: "bg"; | ||
52 | rel2.to: "bg"; | ||
53 | rel1.offset: 2 2; | ||
54 | rel2.offset: -3 -3; | ||
55 | } | ||
56 | } | ||
57 | part { name: "elm.swallow.content"; | ||
58 | clip_to: "clipper"; | ||
59 | type: SWALLOW; | ||
60 | description { state: "default" 0.0; | ||
61 | rel1.to: "bg"; | ||
62 | rel2.to: "bg"; | ||
63 | } | ||
64 | } | ||
65 | } | ||
66 | } | ||
67 | |||
68 | group { name: "elm/diskselector/item/default"; | ||
69 | |||
70 | data { | ||
71 | item: "len_threshold" "14"; | ||
72 | item: "display_item_num" "3"; | ||
73 | item: "min_height" "-1"; | ||
74 | item: "min_width" "-1"; | ||
75 | } | ||
76 | |||
77 | parts { | ||
78 | part { name: "elm.swallow.icon"; | ||
79 | type: SWALLOW; | ||
80 | description { state: "default" 0.0; | ||
81 | fixed: 1 0; | ||
82 | align: 0.0 0.5; | ||
83 | rel1 { | ||
84 | relative: 0 0; | ||
85 | offset: 4 4; | ||
86 | } | ||
87 | rel2 { | ||
88 | relative: 0 1; | ||
89 | offset: 4 -5; | ||
90 | } | ||
91 | } | ||
92 | description { state: "show" 0.0; | ||
93 | inherit: "default" 0.0; | ||
94 | } | ||
95 | description { state: "default_small" 0.0; | ||
96 | inherit: "default" 0.0; | ||
97 | rel1.relative: 0 0.2; | ||
98 | rel2.relative: 0 0.8; | ||
99 | } | ||
100 | description { state: "left_side" 0.0; | ||
101 | inherit: "default" 0.0; | ||
102 | rel1.relative: 0 0.2; | ||
103 | rel2.relative: 0 0.8; | ||
104 | color: 255 255 255 160; | ||
105 | } | ||
106 | description { state: "right_side" 0.0; | ||
107 | inherit: "left_side" 0.0; | ||
108 | rel1.relative: 0.4 0.2; | ||
109 | rel2.relative: 0.4 0.8; | ||
110 | color: 255 255 255 160; | ||
111 | } | ||
112 | } | ||
113 | part { name: "elm.text"; | ||
114 | type: TEXT; | ||
115 | scale: 1; | ||
116 | description { state: "default" 0.0; | ||
117 | rel1.relative: 1 0.0; | ||
118 | rel1.to_x: "elm.swallow.icon"; | ||
119 | rel2.relative: 1.0 1.0; | ||
120 | color: 255 255 255 255; | ||
121 | visible: 0; | ||
122 | text { | ||
123 | font: "Sans,Edje-Vera"; | ||
124 | size: 13; | ||
125 | align: 0.5 0.5; | ||
126 | min: 0 1; | ||
127 | } | ||
128 | } | ||
129 | description { state: "show" 0.0; | ||
130 | inherit: "default" 0.0; | ||
131 | visible: 1; | ||
132 | } | ||
133 | description { state: "default_small" 0.0; | ||
134 | inherit: "default" 0.0; | ||
135 | visible: 1; | ||
136 | text.size: 10; | ||
137 | } | ||
138 | description { state: "left_side" 0.0; | ||
139 | inherit: "default" 0.0; | ||
140 | color: 172 172 172 255; | ||
141 | text.size: 10; | ||
142 | visible: 1; | ||
143 | text.align: 0.2 0.5; | ||
144 | } | ||
145 | description { state: "right_side" 0.0; | ||
146 | inherit: "default" 0.0; | ||
147 | color: 172 172 172 255; | ||
148 | visible: 1; | ||
149 | text.size: 10; | ||
150 | text.align: 0.8 0.5; | ||
151 | } | ||
152 | } | ||
153 | } | ||
154 | |||
155 | programs { | ||
156 | program { name: "center_text"; | ||
157 | signal: "elm,state,center"; | ||
158 | source: "elm"; | ||
159 | action: STATE_SET "show" 0.0; | ||
160 | target: "elm.text"; | ||
161 | target: "elm.swallow.icon"; | ||
162 | } | ||
163 | program { name: "center_small_text"; | ||
164 | signal: "elm,state,center_small"; | ||
165 | source: "elm"; | ||
166 | action: STATE_SET "default_small" 0.0; | ||
167 | target: "elm.text"; | ||
168 | target: "elm.swallow.icon"; | ||
169 | } | ||
170 | program { name: "l_side_text"; | ||
171 | signal: "elm,state,left_side"; | ||
172 | source: "elm"; | ||
173 | action: STATE_SET "left_side" 0.0; | ||
174 | target: "elm.text"; | ||
175 | target: "elm.swallow.icon"; | ||
176 | } | ||
177 | program { name: "r_side_text"; | ||
178 | signal: "elm,state,right_side"; | ||
179 | source: "elm"; | ||
180 | action: STATE_SET "right_side" 0.0; | ||
181 | target: "elm.text"; | ||
182 | target: "elm.swallow.icon"; | ||
183 | } | ||
184 | } | ||
185 | } | ||
diff --git a/libraries/elementary/data/themes/widgets/entry.edc b/libraries/elementary/data/themes/widgets/entry.edc new file mode 100644 index 0000000..6fbee9d --- /dev/null +++ b/libraries/elementary/data/themes/widgets/entry.edc | |||
@@ -0,0 +1,1396 @@ | |||
1 | group { name: "elm/scroller/entry/default"; | ||
2 | |||
3 | data { | ||
4 | item: "focus_highlight" "on"; | ||
5 | } | ||
6 | |||
7 | script { | ||
8 | public sbvis_v, sbvis_h, sbalways_v, sbalways_h, sbvis_timer; | ||
9 | public timer0(val) { | ||
10 | new v; | ||
11 | v = get_int(sbvis_v); | ||
12 | if (v) { | ||
13 | v = get_int(sbalways_v); | ||
14 | if (!v) { | ||
15 | emit("do-hide-vbar", ""); | ||
16 | set_int(sbvis_v, 0); | ||
17 | } | ||
18 | } | ||
19 | v = get_int(sbvis_h); | ||
20 | if (v) { | ||
21 | v = get_int(sbalways_h); | ||
22 | if (!v) { | ||
23 | emit("do-hide-hbar", ""); | ||
24 | set_int(sbvis_h, 0); | ||
25 | } | ||
26 | } | ||
27 | set_int(sbvis_timer, 0); | ||
28 | return 0; | ||
29 | } | ||
30 | } | ||
31 | images { | ||
32 | image: "shelf_inset.png" COMP; | ||
33 | image: "bt_sm_base2.png" COMP; | ||
34 | image: "bt_sm_shine.png" COMP; | ||
35 | image: "bt_sm_hilight.png" COMP; | ||
36 | image: "sl_bt2_2.png" COMP; | ||
37 | } | ||
38 | parts { | ||
39 | part { name: "bg"; | ||
40 | type: RECT; | ||
41 | description { state: "default" 0.0; | ||
42 | rel1.offset: 2 2; | ||
43 | rel2.offset: -3 -3; | ||
44 | color: 255 255 255 0; | ||
45 | } | ||
46 | } | ||
47 | part { name: "clipper"; | ||
48 | type: RECT; | ||
49 | mouse_events: 0; | ||
50 | description { state: "default" 0.0; | ||
51 | rel1.to: "bg"; | ||
52 | rel2.to: "bg"; | ||
53 | rel1.offset: 2 2; | ||
54 | rel2.offset: -3 -3; | ||
55 | } | ||
56 | } | ||
57 | part { name: "contentclipper"; | ||
58 | type: RECT; | ||
59 | mouse_events: 0; | ||
60 | clip_to: "clipper"; | ||
61 | description { state: "default" 0.0; | ||
62 | rel1.to: "elm.swallow.icon"; | ||
63 | rel1.relative: 1.0 0.0; | ||
64 | rel2.to: "elm.swallow.end"; | ||
65 | rel2.relative: 0.0 1.0; | ||
66 | } | ||
67 | } | ||
68 | part { name: "elm.swallow.icon"; | ||
69 | type: SWALLOW; | ||
70 | clip_to: "clipper"; | ||
71 | description { state: "default" 0.0; | ||
72 | fixed: 1 1; | ||
73 | rel1 { | ||
74 | to: "bg"; | ||
75 | relative: -1.0 0.0; | ||
76 | offset: 0 0; | ||
77 | } | ||
78 | rel2 { | ||
79 | to: "bg"; | ||
80 | relative: 0.0 1.0; | ||
81 | offset: -1 -1; | ||
82 | } | ||
83 | visible: 0; | ||
84 | } | ||
85 | description { state: "visible" 0.0; | ||
86 | fixed: 1 1; | ||
87 | align: 0.0 1.0; | ||
88 | rel1 { | ||
89 | to: "bg"; | ||
90 | relative: 0.0 0.0; | ||
91 | offset: 0 0; | ||
92 | } | ||
93 | rel2 { | ||
94 | to: "bg"; | ||
95 | relative: 0.0 1.0; | ||
96 | offset: -1 -1; | ||
97 | } | ||
98 | visible: 1; | ||
99 | } | ||
100 | } | ||
101 | part { name: "elm.swallow.end"; | ||
102 | type: SWALLOW; | ||
103 | clip_to: "clipper"; | ||
104 | description { state: "default" 0.0; | ||
105 | fixed: 1 1; | ||
106 | rel1 { | ||
107 | to: "bg"; | ||
108 | relative: 1.0 0.0; | ||
109 | offset: 0 0; | ||
110 | } | ||
111 | rel2 { | ||
112 | to: "bg"; | ||
113 | relative: 1.0 1.0; | ||
114 | offset: -1 -1; | ||
115 | } | ||
116 | visible: 0; | ||
117 | } | ||
118 | description { state: "visible" 0.0; | ||
119 | fixed: 1 1; | ||
120 | align: 1.0 1.0; | ||
121 | rel1 { | ||
122 | to: "bg"; | ||
123 | relative: 1.0 0.0; | ||
124 | offset: 0 0; | ||
125 | } | ||
126 | rel2 { | ||
127 | to: "bg"; | ||
128 | relative: 1.0 1.0; | ||
129 | offset: -1 -1; | ||
130 | } | ||
131 | visible: 1; | ||
132 | } | ||
133 | } | ||
134 | part { name: "elm.swallow.content"; | ||
135 | clip_to: "contentclipper"; | ||
136 | type: SWALLOW; | ||
137 | description { state: "default" 0.0; | ||
138 | rel1 { | ||
139 | to: "elm.swallow.icon"; | ||
140 | relative: 1.0 0.0; | ||
141 | offset: 4 4; | ||
142 | } | ||
143 | rel2 { | ||
144 | to: "elm.swallow.end"; | ||
145 | relative: 0.0 1.0; | ||
146 | offset: -5 -5; | ||
147 | } | ||
148 | } | ||
149 | } | ||
150 | part { name: "conf_over"; | ||
151 | mouse_events: 0; | ||
152 | description { state: "default" 0.0; | ||
153 | rel1.to: "bg"; | ||
154 | rel2.to: "bg"; | ||
155 | image { | ||
156 | normal: "shelf_inset.png"; | ||
157 | border: 7 7 7 7; | ||
158 | middle: 0; | ||
159 | } | ||
160 | fill.smooth : 0; | ||
161 | } | ||
162 | description { state: "enabled" 0.0; | ||
163 | inherit: "default" 0.0; | ||
164 | color: 200 155 0 255; | ||
165 | } | ||
166 | } | ||
167 | part { name: "focus_highlight"; | ||
168 | mouse_events: 0; | ||
169 | description { state: "default" 0.0; | ||
170 | rel1.offset: -1 -1; | ||
171 | rel2.offset: 0 0; | ||
172 | image { | ||
173 | normal: "sl_bt2_2.png"; | ||
174 | border: 7 7 7 7; | ||
175 | middle: 0; | ||
176 | } | ||
177 | fill.smooth : 0; | ||
178 | color: 200 155 0 0; | ||
179 | } | ||
180 | description { state: "enabled" 0.0; | ||
181 | inherit: "default" 0.0; | ||
182 | color: 200 155 0 255; | ||
183 | } | ||
184 | } | ||
185 | part { name: "sb_vbar_clip_master"; | ||
186 | type: RECT; | ||
187 | mouse_events: 0; | ||
188 | description { state: "default" 0.0; | ||
189 | } | ||
190 | description { state: "hidden" 0.0; | ||
191 | visible: 0; | ||
192 | color: 255 255 255 0; | ||
193 | } | ||
194 | } | ||
195 | part { name: "sb_vbar_clip"; | ||
196 | clip_to: "sb_vbar_clip_master"; | ||
197 | type: RECT; | ||
198 | mouse_events: 0; | ||
199 | description { state: "default" 0.0; | ||
200 | } | ||
201 | description { state: "hidden" 0.0; | ||
202 | visible: 0; | ||
203 | color: 255 255 255 0; | ||
204 | } | ||
205 | } | ||
206 | part { name: "sb_vbar"; | ||
207 | type: RECT; | ||
208 | mouse_events: 0; | ||
209 | description { state: "default" 0.0; | ||
210 | fixed: 1 1; | ||
211 | visible: 0; | ||
212 | min: 10 17; | ||
213 | align: 1.0 0.0; | ||
214 | rel1 { | ||
215 | relative: 0.0 0.0; | ||
216 | offset: -2 2; | ||
217 | to_y: "elm.swallow.content"; | ||
218 | to_x: "elm.swallow.end"; | ||
219 | } | ||
220 | rel2 { | ||
221 | relative: 0.0 0.0; | ||
222 | offset: -2 -1; | ||
223 | to_y: "sb_hbar"; | ||
224 | to_x: "elm.swallow.end"; | ||
225 | } | ||
226 | } | ||
227 | } | ||
228 | part { name: "elm.dragable.vbar"; | ||
229 | clip_to: "sb_vbar_clip"; | ||
230 | mouse_events: 0; | ||
231 | dragable { | ||
232 | x: 0 0 0; | ||
233 | y: 1 1 0; | ||
234 | confine: "sb_vbar"; | ||
235 | } | ||
236 | description { state: "default" 0.0; | ||
237 | fixed: 1 1; | ||
238 | min: 10 17; | ||
239 | max: 10 99999; | ||
240 | rel1 { | ||
241 | relative: 0.5 0.5; | ||
242 | offset: 0 0; | ||
243 | to: "sb_vbar"; | ||
244 | } | ||
245 | rel2 { | ||
246 | relative: 0.5 0.5; | ||
247 | offset: 0 0; | ||
248 | to: "sb_vbar"; | ||
249 | } | ||
250 | image { | ||
251 | normal: "bt_sm_base2.png"; | ||
252 | border: 6 6 6 6; | ||
253 | middle: SOLID; | ||
254 | } | ||
255 | } | ||
256 | } | ||
257 | part { name: "sb_vbar_over1"; | ||
258 | clip_to: "sb_vbar_clip"; | ||
259 | mouse_events: 0; | ||
260 | description { state: "default" 0.0; | ||
261 | rel1.to: "elm.dragable.vbar"; | ||
262 | rel2.relative: 1.0 0.5; | ||
263 | rel2.to: "elm.dragable.vbar"; | ||
264 | image { | ||
265 | normal: "bt_sm_hilight.png"; | ||
266 | border: 6 6 6 0; | ||
267 | } | ||
268 | } | ||
269 | } | ||
270 | part { name: "sb_vbar_over2"; | ||
271 | clip_to: "sb_vbar_clip"; | ||
272 | mouse_events: 0; | ||
273 | description { state: "default" 0.0; | ||
274 | rel1.to: "elm.dragable.vbar"; | ||
275 | rel2.to: "elm.dragable.vbar"; | ||
276 | image { | ||
277 | normal: "bt_sm_shine.png"; | ||
278 | border: 6 6 6 0; | ||
279 | } | ||
280 | } | ||
281 | } | ||
282 | |||
283 | part { name: "sb_hbar_clip_master"; | ||
284 | type: RECT; | ||
285 | mouse_events: 0; | ||
286 | description { state: "default" 0.0; | ||
287 | } | ||
288 | description { state: "hidden" 0.0; | ||
289 | visible: 0; | ||
290 | color: 255 255 255 0; | ||
291 | } | ||
292 | } | ||
293 | part { name: "sb_hbar_clip"; | ||
294 | clip_to: "sb_hbar_clip_master"; | ||
295 | type: RECT; | ||
296 | mouse_events: 0; | ||
297 | description { state: "default" 0.0; | ||
298 | } | ||
299 | description { state: "hidden" 0.0; | ||
300 | visible: 0; | ||
301 | color: 255 255 255 0; | ||
302 | } | ||
303 | } | ||
304 | part { name: "sb_hbar"; | ||
305 | type: RECT; | ||
306 | mouse_events: 0; | ||
307 | description { state: "default" 0.0; | ||
308 | fixed: 1 1; | ||
309 | visible: 0; | ||
310 | min: 17 10; | ||
311 | align: 0.0 1.0; | ||
312 | rel1 { | ||
313 | relative: 0.0 1.0; | ||
314 | offset: 2 0; | ||
315 | to_x: "elm.swallow.content"; | ||
316 | to_y: "elm.swallow.content"; | ||
317 | } | ||
318 | rel2 { | ||
319 | relative: 0.0 1.0; | ||
320 | offset: -1 -1; | ||
321 | to_x: "sb_vbar"; | ||
322 | to_y: "elm.swallow.content"; | ||
323 | } | ||
324 | } | ||
325 | } | ||
326 | part { name: "elm.dragable.hbar"; | ||
327 | clip_to: "sb_hbar_clip"; | ||
328 | mouse_events: 0; | ||
329 | dragable { | ||
330 | x: 1 1 0; | ||
331 | y: 0 0 0; | ||
332 | confine: "sb_hbar"; | ||
333 | } | ||
334 | description { state: "default" 0.0; | ||
335 | fixed: 1 1; | ||
336 | min: 17 10; | ||
337 | max: 99999 10; | ||
338 | rel1 { | ||
339 | relative: 0.5 0.5; | ||
340 | offset: 0 0; | ||
341 | to: "sb_hbar"; | ||
342 | } | ||
343 | rel2 { | ||
344 | relative: 0.5 0.5; | ||
345 | offset: 0 0; | ||
346 | to: "sb_hbar"; | ||
347 | } | ||
348 | image { | ||
349 | normal: "bt_sm_base2.png"; | ||
350 | border: 4 4 4 4; | ||
351 | middle: SOLID; | ||
352 | } | ||
353 | } | ||
354 | } | ||
355 | part { name: "sb_hbar_over1"; | ||
356 | clip_to: "sb_hbar_clip"; | ||
357 | mouse_events: 0; | ||
358 | description { state: "default" 0.0; | ||
359 | rel1.to: "elm.dragable.hbar"; | ||
360 | rel2.relative: 1.0 0.5; | ||
361 | rel2.to: "elm.dragable.hbar"; | ||
362 | image { | ||
363 | normal: "bt_sm_hilight.png"; | ||
364 | border: 4 4 4 0; | ||
365 | } | ||
366 | } | ||
367 | } | ||
368 | part { name: "sb_hbar_over2"; | ||
369 | clip_to: "sb_hbar_clip"; | ||
370 | mouse_events: 0; | ||
371 | description { state: "default" 0.0; | ||
372 | rel1.to: "elm.dragable.hbar"; | ||
373 | rel2.to: "elm.dragable.hbar"; | ||
374 | image { | ||
375 | normal: "bt_sm_shine.png"; | ||
376 | border: 4 4 4 0; | ||
377 | } | ||
378 | } | ||
379 | } | ||
380 | } | ||
381 | programs { | ||
382 | program { name: "load"; | ||
383 | signal: "load"; | ||
384 | source: ""; | ||
385 | script { | ||
386 | set_state(PART:"sb_hbar_clip", "hidden", 0.0); | ||
387 | set_state(PART:"sb_vbar_clip", "hidden", 0.0); | ||
388 | set_int(sbvis_h, 0); | ||
389 | set_int(sbvis_v, 0); | ||
390 | set_int(sbalways_v, 0); | ||
391 | set_int(sbalways_h, 0); | ||
392 | set_int(sbvis_timer, 0); | ||
393 | } | ||
394 | } | ||
395 | program { name: "icon_show"; | ||
396 | signal: "elm,action,show,icon"; | ||
397 | source: "elm"; | ||
398 | action: STATE_SET "visible" 0.0; | ||
399 | target: "elm.swallow.icon"; | ||
400 | } | ||
401 | program { name: "icon_hide"; | ||
402 | signal: "elm,action,hide,icon"; | ||
403 | source: "elm"; | ||
404 | action: STATE_SET "default" 0.0; | ||
405 | target: "elm.swallow.icon"; | ||
406 | } | ||
407 | program { name: "end_show"; | ||
408 | signal: "elm,action,show,end"; | ||
409 | source: "elm"; | ||
410 | action: STATE_SET "visible" 0.0; | ||
411 | target: "elm.swallow.end"; | ||
412 | } | ||
413 | program { name: "end_hide"; | ||
414 | signal: "elm,action,hide,end"; | ||
415 | source: "elm"; | ||
416 | action: STATE_SET "default" 0.0; | ||
417 | target: "elm.swallow.end"; | ||
418 | } | ||
419 | program { name: "vbar_show"; | ||
420 | signal: "elm,action,show,vbar"; | ||
421 | source: "elm"; | ||
422 | action: STATE_SET "default" 0.0; | ||
423 | target: "sb_vbar_clip_master"; | ||
424 | } | ||
425 | program { name: "vbar_hide"; | ||
426 | signal: "elm,action,hide,vbar"; | ||
427 | source: "elm"; | ||
428 | action: STATE_SET "hidden" 0.0; | ||
429 | target: "sb_vbar_clip_master"; | ||
430 | } | ||
431 | program { name: "vbar_show_always"; | ||
432 | signal: "elm,action,show_always,vbar"; | ||
433 | source: "elm"; | ||
434 | script { | ||
435 | new v; | ||
436 | v = get_int(sbvis_v); | ||
437 | v |= get_int(sbalways_v); | ||
438 | if (!v) { | ||
439 | set_int(sbalways_v, 1); | ||
440 | emit("do-show-vbar", ""); | ||
441 | set_int(sbvis_v, 1); | ||
442 | } | ||
443 | } | ||
444 | } | ||
445 | program { name: "vbar_show_notalways"; | ||
446 | signal: "elm,action,show_notalways,vbar"; | ||
447 | source: "elm"; | ||
448 | script { | ||
449 | new v; | ||
450 | v = get_int(sbalways_v); | ||
451 | if (v) { | ||
452 | set_int(sbalways_v, 0); | ||
453 | v = get_int(sbvis_v); | ||
454 | if (!v) { | ||
455 | emit("do-hide-vbar", ""); | ||
456 | set_int(sbvis_v, 0); | ||
457 | } | ||
458 | } | ||
459 | } | ||
460 | } | ||
461 | program { name: "sb_vbar_show"; | ||
462 | signal: "do-show-vbar"; | ||
463 | source: ""; | ||
464 | action: STATE_SET "default" 0.0; | ||
465 | transition: LINEAR 0.5; | ||
466 | target: "sb_vbar_clip"; | ||
467 | } | ||
468 | program { name: "sb_vbar_hide"; | ||
469 | signal: "do-hide-vbar"; | ||
470 | source: ""; | ||
471 | action: STATE_SET "hidden" 0.0; | ||
472 | transition: LINEAR 0.5; | ||
473 | target: "sb_vbar_clip"; | ||
474 | } | ||
475 | |||
476 | program { name: "hbar_show"; | ||
477 | signal: "elm,action,show,hbar"; | ||
478 | source: "elm"; | ||
479 | action: STATE_SET "default" 0.0; | ||
480 | target: "sb_hbar_clip_master"; | ||
481 | } | ||
482 | program { name: "hbar_hide"; | ||
483 | signal: "elm,action,hide,hbar"; | ||
484 | source: "elm"; | ||
485 | action: STATE_SET "hidden" 0.0; | ||
486 | target: "sb_hbar_clip_master"; | ||
487 | } | ||
488 | program { name: "hbar_show_always"; | ||
489 | signal: "elm,action,show_always,hbar"; | ||
490 | source: "elm"; | ||
491 | script { | ||
492 | new v; | ||
493 | v = get_int(sbvis_h); | ||
494 | v |= get_int(sbalways_h); | ||
495 | if (!v) { | ||
496 | set_int(sbalways_h, 1); | ||
497 | emit("do-show-hbar", ""); | ||
498 | set_int(sbvis_h, 1); | ||
499 | } | ||
500 | } | ||
501 | } | ||
502 | program { name: "hbar_show_notalways"; | ||
503 | signal: "elm,action,show_notalways,hbar"; | ||
504 | source: "elm"; | ||
505 | script { | ||
506 | new v; | ||
507 | v = get_int(sbalways_h); | ||
508 | if (v) { | ||
509 | set_int(sbalways_h, 0); | ||
510 | v = get_int(sbvis_h); | ||
511 | if (!v) { | ||
512 | emit("do-hide-hbar", ""); | ||
513 | set_int(sbvis_h, 0); | ||
514 | } | ||
515 | } | ||
516 | } | ||
517 | } | ||
518 | program { name: "sb_hbar_show"; | ||
519 | signal: "do-show-hbar"; | ||
520 | source: ""; | ||
521 | action: STATE_SET "default" 0.0; | ||
522 | transition: LINEAR 0.5; | ||
523 | target: "sb_hbar_clip"; | ||
524 | } | ||
525 | program { name: "sb_hbar_hide"; | ||
526 | signal: "do-hide-hbar"; | ||
527 | source: ""; | ||
528 | action: STATE_SET "hidden" 0.0; | ||
529 | transition: LINEAR 0.5; | ||
530 | target: "sb_hbar_clip"; | ||
531 | } | ||
532 | |||
533 | program { name: "scroll"; | ||
534 | signal: "elm,action,scroll"; | ||
535 | source: "elm"; | ||
536 | script { | ||
537 | new v; | ||
538 | v = get_int(sbvis_v); | ||
539 | v |= get_int(sbalways_v); | ||
540 | if (!v) { | ||
541 | emit("do-show-vbar", ""); | ||
542 | set_int(sbvis_v, 1); | ||
543 | } | ||
544 | v = get_int(sbvis_h); | ||
545 | v |= get_int(sbalways_h); | ||
546 | if (!v) { | ||
547 | emit("do-show-hbar", ""); | ||
548 | set_int(sbvis_h, 1); | ||
549 | } | ||
550 | v = get_int(sbvis_timer); | ||
551 | if (v > 0) cancel_timer(v); | ||
552 | v = timer(1.0, "timer0", 0); | ||
553 | set_int(sbvis_timer, v); | ||
554 | } | ||
555 | } | ||
556 | |||
557 | program { name: "highlight_show"; | ||
558 | signal: "elm,action,focus_highlight,show"; | ||
559 | source: "elm"; | ||
560 | action: STATE_SET "enabled" 0.0; | ||
561 | transition: ACCELERATE 0.3; | ||
562 | target: "focus_highlight"; | ||
563 | target: "conf_over"; | ||
564 | } | ||
565 | program { name: "highlight_hide"; | ||
566 | signal: "elm,action,focus_highlight,hide"; | ||
567 | source: "elm"; | ||
568 | action: STATE_SET "default" 0.0; | ||
569 | transition: DECELERATE 0.3; | ||
570 | target: "focus_highlight"; | ||
571 | target: "conf_over"; | ||
572 | } | ||
573 | } | ||
574 | } | ||
575 | |||
576 | /////////////////////////////////////////////////////////////////////////////// | ||
577 | // emoticon images from: | ||
578 | // Tanya - Latvia | ||
579 | // http://lazycrazy.deviantart.com/ | ||
580 | // http://lazycrazy.deviantart.com/art/Very-Emotional-Emoticons-144461621 | ||
581 | group { name: "elm/entry/emoticon/angry/default"; images.image: | ||
582 | "emo-angry.png" COMP; parts { part { name: "icon"; mouse_events: 0; description { state: "default" 0.0; max: 64 64; image.normal: | ||
583 | "emo-angry.png"; } } } } | ||
584 | group { name: "elm/entry/emoticon/angry-shout/default"; images.image: | ||
585 | "emo-angry-shout.png" COMP; parts { part { name: "icon"; mouse_events: 0; description { state: "default" 0.0; max: 64 64; image.normal: | ||
586 | "emo-angry-shout.png"; } } } } | ||
587 | group { name: "elm/entry/emoticon/crazy-laugh/default"; images.image: | ||
588 | "emo-crazy-laugh.png" COMP; parts { part { name: "icon"; mouse_events: 0; description { state: "default" 0.0; max: 64 64; image.normal: | ||
589 | "emo-crazy-laugh.png"; } } } } | ||
590 | group { name: "elm/entry/emoticon/evil-laugh/default"; images.image: | ||
591 | "emo-evil-laugh.png" COMP; parts { part { name: "icon"; mouse_events: 0; description { state: "default" 0.0; max: 64 64; image.normal: | ||
592 | "emo-evil-laugh.png"; } } } } | ||
593 | group { name: "elm/entry/emoticon/evil/default"; images.image: | ||
594 | "emo-evil.png" COMP; parts { part { name: "icon"; mouse_events: 0; description { state: "default" 0.0; max: 64 64; image.normal: | ||
595 | "emo-evil.png"; } } } } | ||
596 | group { name: "elm/entry/emoticon/goggle-smile/default"; images.image: | ||
597 | "emo-goggle-smile.png" COMP; parts { part { name: "icon"; mouse_events: 0; description { state: "default" 0.0; max: 64 64; image.normal: | ||
598 | "emo-goggle-smile.png"; } } } } | ||
599 | group { name: "elm/entry/emoticon/grumpy/default"; images.image: | ||
600 | "emo-grumpy.png" COMP; parts { part { name: "icon"; mouse_events: 0; description { state: "default" 0.0; max: 64 64; image.normal: | ||
601 | "emo-grumpy.png"; } } } } | ||
602 | group { name: "elm/entry/emoticon/grumpy-smile/default"; images.image: | ||
603 | "emo-grumpy-smile.png" COMP; parts { part { name: "icon"; mouse_events: 0; description { state: "default" 0.0; max: 64 64; image.normal: | ||
604 | "emo-grumpy-smile.png"; } } } } | ||
605 | group { name: "elm/entry/emoticon/guilty/default"; images.image: | ||
606 | "emo-guilty.png" COMP; parts { part { name: "icon"; mouse_events: 0; description { state: "default" 0.0; max: 64 64; image.normal: | ||
607 | "emo-guilty.png"; } } } } | ||
608 | group { name: "elm/entry/emoticon/guilty-smile/default"; images.image: | ||
609 | "emo-guilty-smile.png" COMP; parts { part { name: "icon"; mouse_events: 0; description { state: "default" 0.0; max: 64 64; image.normal: | ||
610 | "emo-guilty-smile.png"; } } } } | ||
611 | group { name: "elm/entry/emoticon/haha/default"; images.image: | ||
612 | "emo-haha.png" COMP; parts { part { name: "icon"; mouse_events: 0; description { state: "default" 0.0; max: 64 64; image.normal: | ||
613 | "emo-haha.png"; } } } } | ||
614 | group { name: "elm/entry/emoticon/half-smile/default"; images.image: | ||
615 | "emo-half-smile.png" COMP; parts { part { name: "icon"; mouse_events: 0; description { state: "default" 0.0; max: 64 64; image.normal: | ||
616 | "emo-half-smile.png"; } } } } | ||
617 | group { name: "elm/entry/emoticon/happy-panting/default"; images.image: | ||
618 | "emo-happy-panting.png" COMP; parts { part { name: "icon"; mouse_events: 0; description { state: "default" 0.0; max: 64 64; image.normal: | ||
619 | "emo-happy-panting.png"; } } } } | ||
620 | group { name: "elm/entry/emoticon/happy/default"; images.image: | ||
621 | "emo-happy.png" COMP; parts { part { name: "icon"; mouse_events: 0; description { state: "default" 0.0; max: 64 64; image.normal: | ||
622 | "emo-happy.png"; } } } } | ||
623 | group { name: "elm/entry/emoticon/indifferent/default"; images.image: | ||
624 | "emo-indifferent.png" COMP; parts { part { name: "icon"; mouse_events: 0; description { state: "default" 0.0; max: 64 64; image.normal: | ||
625 | "emo-indifferent.png"; } } } } | ||
626 | group { name: "elm/entry/emoticon/kiss/default"; images.image: | ||
627 | "emo-kiss.png" COMP; parts { part { name: "icon"; mouse_events: 0; description { state: "default" 0.0; max: 64 64; image.normal: | ||
628 | "emo-kiss.png"; } } } } | ||
629 | group { name: "elm/entry/emoticon/knowing-grin/default"; images.image: | ||
630 | "emo-knowing-grin.png" COMP; parts { part { name: "icon"; mouse_events: 0; description { state: "default" 0.0; max: 64 64; image.normal: | ||
631 | "emo-knowing-grin.png"; } } } } | ||
632 | group { name: "elm/entry/emoticon/laugh/default"; images.image: | ||
633 | "emo-laugh.png" COMP; parts { part { name: "icon"; mouse_events: 0; description { state: "default" 0.0; max: 64 64; image.normal: | ||
634 | "emo-laugh.png"; } } } } | ||
635 | group { name: "elm/entry/emoticon/little-bit-sorry/default"; images.image: | ||
636 | "emo-little-bit-sorry.png" COMP; parts { part { name: "icon"; mouse_events: 0; description { state: "default" 0.0; max: 64 64; image.normal: | ||
637 | "emo-little-bit-sorry.png"; } } } } | ||
638 | group { name: "elm/entry/emoticon/love-lots/default"; images.image: | ||
639 | "emo-love-lots.png" COMP; parts { part { name: "icon"; mouse_events: 0; description { state: "default" 0.0; max: 64 64; image.normal: | ||
640 | "emo-love-lots.png"; } } } } | ||
641 | group { name: "elm/entry/emoticon/love/default"; images.image: | ||
642 | "emo-love.png" COMP; parts { part { name: "icon"; mouse_events: 0; description { state: "default" 0.0; max: 64 64; image.normal: | ||
643 | "emo-love.png"; } } } } | ||
644 | group { name: "elm/entry/emoticon/minimal-smile/default"; images.image: | ||
645 | "emo-minimal-smile.png" COMP; parts { part { name: "icon"; mouse_events: 0; description { state: "default" 0.0; max: 64 64; image.normal: | ||
646 | "emo-minimal-smile.png"; } } } } | ||
647 | group { name: "elm/entry/emoticon/not-happy/default"; images.image: | ||
648 | "emo-not-happy.png" COMP; parts { part { name: "icon"; mouse_events: 0; description { state: "default" 0.0; max: 64 64; image.normal: | ||
649 | "emo-not-happy.png"; } } } } | ||
650 | group { name: "elm/entry/emoticon/not-impressed/default"; images.image: | ||
651 | "emo-not-impressed.png" COMP; parts { part { name: "icon"; mouse_events: 0; description { state: "default" 0.0; max: 64 64; image.normal: | ||
652 | "emo-not-impressed.png"; } } } } | ||
653 | group { name: "elm/entry/emoticon/omg/default"; images.image: | ||
654 | "emo-omg.png" COMP; parts { part { name: "icon"; mouse_events: 0; description { state: "default" 0.0; max: 64 64; image.normal: | ||
655 | "emo-omg.png"; } } } } | ||
656 | group { name: "elm/entry/emoticon/opensmile/default"; images.image: | ||
657 | "emo-opensmile.png" COMP; parts { part { name: "icon"; mouse_events: 0; description { state: "default" 0.0; max: 64 64; image.normal: | ||
658 | "emo-opensmile.png"; } } } } | ||
659 | group { name: "elm/entry/emoticon/smile/default"; images.image: | ||
660 | "emo-smile.png" COMP; parts { part { name: "icon"; mouse_events: 0; description { state: "default" 0.0; max: 64 64; image.normal: | ||
661 | "emo-smile.png"; } } } } | ||
662 | group { name: "elm/entry/emoticon/sorry/default"; images.image: | ||
663 | "emo-sorry.png" COMP; parts { part { name: "icon"; mouse_events: 0; description { state: "default" 0.0; max: 64 64; image.normal: | ||
664 | "emo-sorry.png"; } } } } | ||
665 | group { name: "elm/entry/emoticon/squint-laugh/default"; images.image: | ||
666 | "emo-squint-laugh.png" COMP; parts { part { name: "icon"; mouse_events: 0; description { state: "default" 0.0; max: 64 64; image.normal: | ||
667 | "emo-squint-laugh.png"; } } } } | ||
668 | group { name: "elm/entry/emoticon/surprised/default"; images.image: | ||
669 | "emo-surprised.png" COMP; parts { part { name: "icon"; mouse_events: 0; description { state: "default" 0.0; max: 64 64; image.normal: | ||
670 | "emo-surprised.png"; } } } } | ||
671 | group { name: "elm/entry/emoticon/suspicious/default"; images.image: | ||
672 | "emo-suspicious.png" COMP; parts { part { name: "icon"; mouse_events: 0; description { state: "default" 0.0; max: 64 64; image.normal: | ||
673 | "emo-suspicious.png"; } } } } | ||
674 | group { name: "elm/entry/emoticon/tongue-dangling/default"; images.image: | ||
675 | "emo-tongue-dangling.png" COMP; parts { part { name: "icon"; mouse_events: 0; description { state: "default" 0.0; max: 64 64; image.normal: | ||
676 | "emo-tongue-dangling.png"; } } } } | ||
677 | group { name: "elm/entry/emoticon/tongue-poke/default"; images.image: | ||
678 | "emo-tongue-poke.png" COMP; parts { part { name: "icon"; mouse_events: 0; description { state: "default" 0.0; max: 64 64; image.normal: | ||
679 | "emo-tongue-poke.png"; } } } } | ||
680 | group { name: "elm/entry/emoticon/uh/default"; images.image: | ||
681 | "emo-uh.png" COMP; parts { part { name: "icon"; mouse_events: 0; description { state: "default" 0.0; max: 64 64; image.normal: | ||
682 | "emo-uh.png"; } } } } | ||
683 | group { name: "elm/entry/emoticon/unhappy/default"; images.image: | ||
684 | "emo-unhappy.png" COMP; parts { part { name: "icon"; mouse_events: 0; description { state: "default" 0.0; max: 64 64; image.normal: | ||
685 | "emo-unhappy.png"; } } } } | ||
686 | group { name: "elm/entry/emoticon/very-sorry/default"; images.image: | ||
687 | "emo-very-sorry.png" COMP; parts { part { name: "icon"; mouse_events: 0; description { state: "default" 0.0; max: 64 64; image.normal: | ||
688 | "emo-very-sorry.png"; } } } } | ||
689 | group { name: "elm/entry/emoticon/what/default"; images.image: | ||
690 | "emo-what.png" COMP; parts { part { name: "icon"; mouse_events: 0; description { state: "default" 0.0; max: 64 64; image.normal: | ||
691 | "emo-what.png"; } } } } | ||
692 | group { name: "elm/entry/emoticon/wink/default"; images.image: | ||
693 | "emo-wink.png" COMP; parts { part { name: "icon"; mouse_events: 0; description { state: "default" 0.0; max: 64 64; image.normal: | ||
694 | "emo-wink.png"; } } } } | ||
695 | group { name: "elm/entry/emoticon/worried/default"; images.image: | ||
696 | "emo-worried.png" COMP; parts { part { name: "icon"; mouse_events: 0; description { state: "default" 0.0; max: 64 64; image.normal: | ||
697 | "emo-worried.png"; } } } } | ||
698 | group { name: "elm/entry/emoticon/wtf/default"; images.image: | ||
699 | "emo-wtf.png" COMP; parts { part { name: "icon"; mouse_events: 0; description { state: "default" 0.0; max: 64 64; image.normal: | ||
700 | "emo-wtf.png"; } } } } | ||
701 | //------------------------------------------------------------ | ||
702 | group { name: "elm/entry/base/default"; | ||
703 | styles | ||
704 | { | ||
705 | style { name: "entry_textblock_style"; | ||
706 | base: "font=Sans font_size=10 color=#000 wrap=word text_class=entry left_margin=4 right_margin=4"; | ||
707 | tag: "em" "+ font_style=Oblique"; | ||
708 | tag: "link" "+ color=#800 underline=on underline_color=#8008"; | ||
709 | tag: "hilight" "+ font_weight=Bold"; | ||
710 | tag: "preedit" "+ underline=on underline_color=#000"; | ||
711 | tag: "preedit_sel" "+ backing=on backing_color=#000 color=#FFFFFF"; | ||
712 | } | ||
713 | style { name: "entry_textblock_disabled_style"; | ||
714 | base: "font=Sans font_size=10 color=#00000080 wrap=word text_class=entry left_margin=4 right_margin=4"; | ||
715 | tag: "em" "+ font_style=Oblique"; | ||
716 | tag: "link" "+ color=#00000080 underline=on underline_color=#00000080"; | ||
717 | tag: "hilight" "+ font_weight=Bold"; | ||
718 | tag: "preedit" "+ underline=on underline_color=#000"; | ||
719 | tag: "preedit_sel" "+ backing=on backing_color=#000 color=#FFFFFF"; | ||
720 | } | ||
721 | style { name: "entry_textblock_guide_style"; | ||
722 | base: "font=Sans font_size=10 color=#00000040 wrap=word text_class=entry left_margin=4 right_margin=4 ellipsis=0.0"; | ||
723 | tag: "em" "+ font_style=Oblique"; | ||
724 | tag: "hilight" "+ font_weight=Bold"; | ||
725 | } | ||
726 | } | ||
727 | data { | ||
728 | // item: context_menu_orientation "horizontal"; | ||
729 | } | ||
730 | parts { | ||
731 | part { name: "elm.guide"; | ||
732 | type: TEXTBLOCK; | ||
733 | mouse_events: 0; | ||
734 | scale: 1; | ||
735 | description { state: "default" 0.0; | ||
736 | rel1.to: "elm.text"; | ||
737 | rel2.to: "elm.text"; | ||
738 | text { | ||
739 | style: "entry_textblock_guide_style"; | ||
740 | min: 0 1; | ||
741 | align: 0.0 0.0; | ||
742 | } | ||
743 | } | ||
744 | description { state: "hidden" 0.0; | ||
745 | inherit: "default" 0.0; | ||
746 | visible: 0; | ||
747 | } | ||
748 | } | ||
749 | part { name: "elm.text"; | ||
750 | type: TEXTBLOCK; | ||
751 | mouse_events: 1; | ||
752 | scale: 1; | ||
753 | entry_mode: EDITABLE; | ||
754 | select_mode: EXPLICIT; | ||
755 | multiline: 1; | ||
756 | source: "elm/entry/selection/default"; // selection under | ||
757 | // source2: "X"; // selection over | ||
758 | // source3: "X"; // cursor under | ||
759 | source4: "elm/entry/cursor/default"; // cursorover | ||
760 | source5: "elm/entry/anchor/default"; // anchor under | ||
761 | // source6: "X"; // anchor over | ||
762 | description { state: "default" 0.0; | ||
763 | /* we gotta use 0 0 here, because of scrolled entries */ | ||
764 | fixed: 0 0; | ||
765 | text { | ||
766 | style: "entry_textblock_style"; | ||
767 | min: 0 1; | ||
768 | align: 0.0 0.0; | ||
769 | } | ||
770 | } | ||
771 | description { state: "disabled" 0.0; | ||
772 | inherit: "default" 0.0; | ||
773 | text { | ||
774 | style: "entry_textblock_disabled_style"; | ||
775 | min: 0 1; | ||
776 | } | ||
777 | } | ||
778 | } | ||
779 | } | ||
780 | programs { | ||
781 | program { name: "focus"; | ||
782 | signal: "load"; | ||
783 | source: ""; | ||
784 | action: FOCUS_SET; | ||
785 | target: "elm.text"; | ||
786 | } | ||
787 | program { name: "disable"; | ||
788 | signal: "elm,state,disabled"; | ||
789 | source: "elm"; | ||
790 | action: STATE_SET "disabled" 0.0; | ||
791 | target: "elm.text"; | ||
792 | } | ||
793 | program { name: "enable"; | ||
794 | signal: "elm,state,enabled"; | ||
795 | source: "elm"; | ||
796 | action: STATE_SET "default" 0.0; | ||
797 | target: "elm.text"; | ||
798 | } | ||
799 | program { name: "gdisable"; | ||
800 | signal: "elm,guide,disabled"; | ||
801 | source: "elm"; | ||
802 | action: STATE_SET "hidden" 0.0; | ||
803 | target: "elm.guide"; | ||
804 | } | ||
805 | program { name: "genable"; | ||
806 | signal: "elm,guide,enabled"; | ||
807 | source: "elm"; | ||
808 | action: STATE_SET "default" 0.0; | ||
809 | target: "elm.guide"; | ||
810 | } | ||
811 | } | ||
812 | } | ||
813 | |||
814 | group { name: "elm/entry/base-mixedwrap/default"; | ||
815 | inherit: "elm/entry/base/default"; | ||
816 | styles | ||
817 | { | ||
818 | style { name: "entry_textblock_style_mixedwrap"; | ||
819 | base: "font=Sans font_size=10 color=#000 wrap=mixed text_class=entry left_margin=4 right_margin=4"; | ||
820 | tag: "em" "+ font_style=Oblique"; | ||
821 | tag: "link" "+ color=#800 underline=on underline_color=#8008"; | ||
822 | tag: "hilight" "+ font_weight=Bold"; | ||
823 | tag: "preedit" "+ underline=on underline_color=#000"; | ||
824 | tag: "preedit_sel" "+ backing=on backing_color=#000 color=#FFFFFF"; | ||
825 | } | ||
826 | style { name: "entry_textblock_disabled_style_mixedwrap"; | ||
827 | base: "font=Sans font_size=10 color=#00000080 wrap=char text_class=entry left_margin=4 right_margin=4"; | ||
828 | tag: "em" "+ font_style=Oblique"; | ||
829 | tag: "link" "+ color=#00000080 underline=on underline_color=#00000080"; | ||
830 | tag: "hilight" "+ font_weight=Bold"; | ||
831 | tag: "preedit" "+ underline=on underline_color=#000"; | ||
832 | tag: "preedit_sel" "+ backing=on backing_color=#000 color=#FFFFFF"; | ||
833 | } | ||
834 | style { name: "entry_textblock_guide_style_mixedwrap"; | ||
835 | base: "font=Sans font_size=10 color=#00000040 wrap=mixed text_class=entry left_margin=4 right_margin=4 ellipsis=0.0"; | ||
836 | tag: "em" "+ font_style=Oblique"; | ||
837 | tag: "hilight" "+ font_weight=Bold"; | ||
838 | } | ||
839 | } | ||
840 | parts { | ||
841 | part { name: "elm.guide"; | ||
842 | type: TEXTBLOCK; | ||
843 | mouse_events: 0; | ||
844 | scale: 1; | ||
845 | description { state: "default" 0.0; | ||
846 | rel1.to: "elm.text"; | ||
847 | rel2.to: "elm.text"; | ||
848 | text { | ||
849 | style: "entry_textblock_guide_style_mixedwrap"; | ||
850 | min: 0 1; | ||
851 | align: 0.0 0.0; | ||
852 | } | ||
853 | } | ||
854 | description { state: "hidden" 0.0; | ||
855 | inherit: "default" 0.0; | ||
856 | visible: 0; | ||
857 | } | ||
858 | } | ||
859 | part { name: "elm.text"; | ||
860 | description { state: "default" 0.0; | ||
861 | fixed: 1 0; | ||
862 | text { | ||
863 | style: "entry_textblock_style_mixedwrap"; | ||
864 | min: 0 1; | ||
865 | align: 0.0 0.0; | ||
866 | } | ||
867 | } | ||
868 | description { state: "disabled" 0.0; | ||
869 | inherit: "default" 0.0; | ||
870 | text { | ||
871 | style: "entry_textblock_disabled_style_mixedwrap"; | ||
872 | min: 0 1; | ||
873 | } | ||
874 | } | ||
875 | } | ||
876 | } | ||
877 | } | ||
878 | |||
879 | group { name: "elm/entry/base-charwrap/default"; | ||
880 | inherit: "elm/entry/base/default"; | ||
881 | styles | ||
882 | { | ||
883 | style { name: "entry_textblock_style_charwrap"; | ||
884 | base: "font=Sans font_size=10 color=#000 wrap=char text_class=entry left_margin=4 right_margin=4"; | ||
885 | tag: "em" "+ font_style=Oblique"; | ||
886 | tag: "link" "+ color=#800 underline=on underline_color=#8008"; | ||
887 | tag: "hilight" "+ font_weight=Bold"; | ||
888 | tag: "preedit" "+ underline=on underline_color=#000"; | ||
889 | tag: "preedit_sel" "+ backing=on backing_color=#000 color=#FFFFFF"; | ||
890 | } | ||
891 | style { name: "entry_textblock_disabled_style_charwrap"; | ||
892 | base: "font=Sans font_size=10 color=#00000080 wrap=char text_class=entry left_margin=4 right_margin=4"; | ||
893 | tag: "em" "+ font_style=Oblique"; | ||
894 | tag: "link" "+ color=#00000080 underline=on underline_color=#00000080"; | ||
895 | tag: "hilight" "+ font_weight=Bold"; | ||
896 | tag: "preedit" "+ underline=on underline_color=#000"; | ||
897 | tag: "preedit_sel" "+ backing=on backing_color=#000 color=#FFFFFF"; | ||
898 | } | ||
899 | style { name: "entry_textblock_guide_style_charwrap"; | ||
900 | base: "font=Sans font_size=10 color=#00000040 wrap=char text_class=entry left_margin=4 right_margin=4 ellipsis=0.0"; | ||
901 | tag: "em" "+ font_style=Oblique"; | ||
902 | tag: "hilight" "+ font_weight=Bold"; | ||
903 | } | ||
904 | } | ||
905 | parts { | ||
906 | part { name: "elm.guide"; | ||
907 | type: TEXTBLOCK; | ||
908 | mouse_events: 0; | ||
909 | scale: 1; | ||
910 | description { state: "default" 0.0; | ||
911 | rel1.to: "elm.text"; | ||
912 | rel2.to: "elm.text"; | ||
913 | text { | ||
914 | style: "entry_textblock_guide_style_charwrap"; | ||
915 | min: 0 1; | ||
916 | align: 0.0 0.0; | ||
917 | } | ||
918 | } | ||
919 | description { state: "hidden" 0.0; | ||
920 | inherit: "default" 0.0; | ||
921 | visible: 0; | ||
922 | } | ||
923 | } | ||
924 | part { name: "elm.text"; | ||
925 | description { state: "default" 0.0; | ||
926 | fixed: 1 0; | ||
927 | text { | ||
928 | style: "entry_textblock_style_charwrap"; | ||
929 | min: 0 1; | ||
930 | align: 0.0 0.0; | ||
931 | } | ||
932 | } | ||
933 | description { state: "disabled" 0.0; | ||
934 | inherit: "default" 0.0; | ||
935 | text { | ||
936 | style: "entry_textblock_disabled_style_charwrap"; | ||
937 | min: 0 1; | ||
938 | } | ||
939 | } | ||
940 | } | ||
941 | } | ||
942 | } | ||
943 | |||
944 | group { name: "elm/entry/base-nowrap/default"; | ||
945 | inherit: "elm/entry/base/default"; | ||
946 | parts { | ||
947 | part { name: "elm.guide"; | ||
948 | type: TEXTBLOCK; | ||
949 | mouse_events: 0; | ||
950 | scale: 1; | ||
951 | description { state: "default" 0.0; | ||
952 | rel1.to: "elm.text"; | ||
953 | rel2.to: "elm.text"; | ||
954 | text { | ||
955 | style: "entry_textblock_guide_style"; | ||
956 | min: 0 1; | ||
957 | align: 0.0 0.0; | ||
958 | } | ||
959 | } | ||
960 | description { state: "hidden" 0.0; | ||
961 | inherit: "default" 0.0; | ||
962 | visible: 0; | ||
963 | } | ||
964 | } | ||
965 | part { name: "elm.text"; | ||
966 | description { state: "default" 0.0; | ||
967 | text { | ||
968 | style: "entry_textblock_style"; | ||
969 | min: 1 1; | ||
970 | align: 0.0 0.0; | ||
971 | } | ||
972 | } | ||
973 | description { state: "disabled" 0.0; | ||
974 | inherit: "default" 0.0; | ||
975 | text { | ||
976 | style: "entry_textblock_disabled_style"; | ||
977 | min: 0 1; | ||
978 | } | ||
979 | } | ||
980 | } | ||
981 | } | ||
982 | } | ||
983 | |||
984 | group { name: "elm/entry/base-single/default"; | ||
985 | inherit: "elm/entry/base/default"; | ||
986 | styles | ||
987 | { | ||
988 | style { name: "entry_single_textblock_style"; | ||
989 | base: "font=Sans font_size=10 color=#000 wrap=none text_class=entry left_margin=4 right_margin=4"; | ||
990 | tag: "em" "+ font_style=Oblique"; | ||
991 | tag: "link" "+ color=#800 underline=on underline_color=#8008"; | ||
992 | tag: "hilight" "+ font_weight=Bold"; | ||
993 | tag: "preedit" "+ underline=on underline_color=#000"; | ||
994 | tag: "preedit_sel" "+ backing=on backing_color=#000 color=#FFFFFF"; | ||
995 | } | ||
996 | style { name: "entry_single_textblock_disabled_style"; | ||
997 | base: "font=Sans font_size=10 color=#00000080 wrap=none text_class=entry left_margin=4 right_margin=4"; | ||
998 | tag: "em" "+ font_style=Oblique"; | ||
999 | tag: "link" "+ color=#00000080 underline=on underline_color=#00000080"; | ||
1000 | tag: "hilight" "+ font_weight=Bold"; | ||
1001 | tag: "preedit" "+ underline=on underline_color=#000"; | ||
1002 | tag: "preedit_sel" "+ backing=on backing_color=#000 color=#FFFFFF"; | ||
1003 | } | ||
1004 | style { name: "entry_single_textblock_guide_style"; | ||
1005 | base: "font=Sans font_size=10 color=#00000080 wrap=none text_class=entry left_margin=4 right_margin=4 ellipsis=0.0"; | ||
1006 | tag: "em" "+ font_style=Oblique"; | ||
1007 | tag: "hilight" "+ font_weight=Bold"; | ||
1008 | } | ||
1009 | } | ||
1010 | parts { | ||
1011 | part { name: "elm.guide"; | ||
1012 | type: TEXTBLOCK; | ||
1013 | mouse_events: 0; | ||
1014 | scale: 1; | ||
1015 | description { state: "default" 0.0; | ||
1016 | rel1.to: "elm.text"; | ||
1017 | rel2.to: "elm.text"; | ||
1018 | text { | ||
1019 | style: "entry_single_textblock_guide_style"; | ||
1020 | min: 0 1; | ||
1021 | align: 0.0 0.0; | ||
1022 | } | ||
1023 | } | ||
1024 | description { state: "hidden" 0.0; | ||
1025 | inherit: "default" 0.0; | ||
1026 | visible: 0; | ||
1027 | } | ||
1028 | } | ||
1029 | part { name: "elm.text"; | ||
1030 | multiline: 0; | ||
1031 | description { state: "default" 0.0; | ||
1032 | text { | ||
1033 | style: "entry_single_textblock_style"; | ||
1034 | min: 1 1; | ||
1035 | max: 0 0; | ||
1036 | align: 0.0 0.5; | ||
1037 | } | ||
1038 | } | ||
1039 | description { state: "disabled" 0.0; | ||
1040 | inherit: "default" 0.0; | ||
1041 | text { | ||
1042 | style: "entry_single_textblock_disabled_style"; | ||
1043 | } | ||
1044 | } | ||
1045 | } | ||
1046 | } | ||
1047 | } | ||
1048 | |||
1049 | group { name: "elm/entry/base-single-noedit/default"; | ||
1050 | inherit: "elm/entry/base/default"; | ||
1051 | parts { | ||
1052 | part { name: "elm.text"; | ||
1053 | entry_mode: PLAIN; | ||
1054 | multiline: 0; | ||
1055 | source: "elm/entry/selection/default"; // selection under | ||
1056 | source4: ""; // cursorover | ||
1057 | source5: "elm/entry/anchor/default"; // anchor under | ||
1058 | description { state: "default" 0.0; | ||
1059 | text { | ||
1060 | style: "entry_single_textblock_style"; | ||
1061 | min: 1 1; | ||
1062 | max: 0 0; | ||
1063 | align: 0.0 0.5; | ||
1064 | } | ||
1065 | } | ||
1066 | description { state: "disabled" 0.0; | ||
1067 | inherit: "default" 0.0; | ||
1068 | text { | ||
1069 | style: "entry_single_textblock_disabled_style"; | ||
1070 | } | ||
1071 | } | ||
1072 | } | ||
1073 | } | ||
1074 | } | ||
1075 | |||
1076 | group { name: "elm/entry/base-noedit/default"; | ||
1077 | inherit: "elm/entry/base/default"; | ||
1078 | parts { | ||
1079 | part { name: "elm.text"; | ||
1080 | entry_mode: PLAIN; | ||
1081 | source: "elm/entry/selection/default"; // selection under | ||
1082 | source4: ""; // cursorover | ||
1083 | source5: "elm/entry/anchor/default"; // anchor under | ||
1084 | description { state: "default" 0.0; | ||
1085 | fixed: 1 0; | ||
1086 | text { | ||
1087 | style: "entry_textblock_style"; | ||
1088 | min: 0 1; | ||
1089 | align: 0.0 0.0; | ||
1090 | } | ||
1091 | } | ||
1092 | description { state: "disabled" 0.0; | ||
1093 | inherit: "default" 0.0; | ||
1094 | text { | ||
1095 | style: "entry_textblock_disabled_style"; | ||
1096 | } | ||
1097 | } | ||
1098 | } | ||
1099 | } | ||
1100 | } | ||
1101 | |||
1102 | group { name: "elm/entry/base-noedit-mixedwrap/default"; | ||
1103 | inherit: "elm/entry/base/default"; | ||
1104 | parts { | ||
1105 | part { name: "elm.text"; | ||
1106 | entry_mode: PLAIN; | ||
1107 | source: "elm/entry/selection/default"; // selection under | ||
1108 | source4: ""; // cursorover | ||
1109 | source5: "elm/entry/anchor/default"; // anchor under | ||
1110 | description { state: "default" 0.0; | ||
1111 | fixed: 1 0; | ||
1112 | text { | ||
1113 | style: "entry_textblock_style_mixedwrap"; | ||
1114 | min: 0 1; | ||
1115 | align: 0.0 0.0; | ||
1116 | } | ||
1117 | } | ||
1118 | description { state: "disabled" 0.0; | ||
1119 | inherit: "default" 0.0; | ||
1120 | text { | ||
1121 | style: "entry_textblock_disabled_style_mixedwrap"; | ||
1122 | } | ||
1123 | } | ||
1124 | } | ||
1125 | } | ||
1126 | } | ||
1127 | |||
1128 | group { name: "elm/entry/base-noedit-charwrap/default"; | ||
1129 | inherit: "elm/entry/base/default"; | ||
1130 | parts { | ||
1131 | part { name: "elm.text"; | ||
1132 | entry_mode: PLAIN; | ||
1133 | source: "elm/entry/selection/default"; // selection under | ||
1134 | source4: ""; // cursorover | ||
1135 | source5: "elm/entry/anchor/default"; // anchor under | ||
1136 | description { state: "default" 0.0; | ||
1137 | fixed: 1 0; | ||
1138 | text { | ||
1139 | style: "entry_textblock_style_charwrap"; | ||
1140 | min: 0 1; | ||
1141 | align: 0.0 0.0; | ||
1142 | } | ||
1143 | } | ||
1144 | description { state: "disabled" 0.0; | ||
1145 | inherit: "default" 0.0; | ||
1146 | text { | ||
1147 | style: "entry_textblock_disabled_style_charwrap"; | ||
1148 | } | ||
1149 | } | ||
1150 | } | ||
1151 | } | ||
1152 | } | ||
1153 | |||
1154 | group { name: "elm/entry/base-nowrap-noedit/default"; | ||
1155 | inherit: "elm/entry/base/default"; | ||
1156 | parts { | ||
1157 | part { name: "elm.text"; | ||
1158 | entry_mode: PLAIN; | ||
1159 | source: "elm/entry/selection/default"; // selection under | ||
1160 | source4: ""; // cursorover | ||
1161 | source5: "elm/entry/anchor/default"; // anchor under | ||
1162 | description { state: "default" 0.0; | ||
1163 | text { | ||
1164 | style: "entry_textblock_style"; | ||
1165 | min: 1 1; | ||
1166 | align: 0.0 0.0; | ||
1167 | } | ||
1168 | } | ||
1169 | description { state: "disabled" 0.0; | ||
1170 | inherit: "default" 0.0; | ||
1171 | text { | ||
1172 | style: "entry_textblock_disabled_style"; | ||
1173 | } | ||
1174 | } | ||
1175 | } | ||
1176 | } | ||
1177 | } | ||
1178 | |||
1179 | group { name: "elm/entry/base-password/default"; | ||
1180 | inherit: "elm/entry/base/default"; | ||
1181 | parts { | ||
1182 | part { name: "elm.guide"; | ||
1183 | type: TEXTBLOCK; | ||
1184 | mouse_events: 0; | ||
1185 | scale: 1; | ||
1186 | description { state: "default" 0.0; | ||
1187 | rel1.to: "elm.text"; | ||
1188 | rel2.to: "elm.text"; | ||
1189 | text { | ||
1190 | style: "entry_single_textblock_guide_style"; | ||
1191 | min: 0 1; | ||
1192 | align: 0.0 0.0; | ||
1193 | } | ||
1194 | } | ||
1195 | description { state: "hidden" 0.0; | ||
1196 | inherit: "default" 0.0; | ||
1197 | visible: 0; | ||
1198 | } | ||
1199 | } | ||
1200 | part { name: "elm.text"; | ||
1201 | entry_mode: PASSWORD; | ||
1202 | multiline: 0; | ||
1203 | source: "elm/entry/selection/default"; // selection under | ||
1204 | source4: "elm/entry/cursor/default"; // cursorover | ||
1205 | source5: "elm/entry/anchor/default"; // anchor under | ||
1206 | description { state: "default" 0.0; | ||
1207 | text { | ||
1208 | style: "entry_single_textblock_style"; | ||
1209 | repch: "*"; | ||
1210 | min: 1 1; | ||
1211 | max: 0 0; | ||
1212 | align: 0.0 0.5; | ||
1213 | } | ||
1214 | } | ||
1215 | description { state: "disabled" 0.0; | ||
1216 | inherit: "default" 0.0; | ||
1217 | text { | ||
1218 | style: "entry_single_textblock_disabled_style"; | ||
1219 | } | ||
1220 | } | ||
1221 | } | ||
1222 | } | ||
1223 | } | ||
1224 | |||
1225 | group { name: "elm/entry/cursor/default"; | ||
1226 | images { | ||
1227 | image: "cur_box.png" COMP; | ||
1228 | image: "cur_hi.png" COMP; | ||
1229 | image: "cur_shad.png" COMP; | ||
1230 | image: "cur_shine.png" COMP; | ||
1231 | image: "cur_glow.png" COMP; | ||
1232 | } | ||
1233 | parts { | ||
1234 | part { name: "clip2"; | ||
1235 | type: RECT; | ||
1236 | mouse_events: 0; | ||
1237 | description { state: "default" 0.0; | ||
1238 | rel1.to: "clip"; | ||
1239 | rel2.to: "clip"; | ||
1240 | visible: 0; | ||
1241 | } | ||
1242 | description { state: "focused" 0.0; | ||
1243 | inherit: "default" 0.0; | ||
1244 | visible: 1; | ||
1245 | } | ||
1246 | } | ||
1247 | part { name: "clip"; | ||
1248 | type: RECT; | ||
1249 | mouse_events: 0; | ||
1250 | clip_to: "clip2"; | ||
1251 | description { state: "default" 0.0; | ||
1252 | rel1.offset: -10 0; | ||
1253 | rel2.offset: 9 9; | ||
1254 | } | ||
1255 | description { state: "hidden" 0.0; | ||
1256 | inherit: "default" 0.0; | ||
1257 | visible: 0; | ||
1258 | } | ||
1259 | } | ||
1260 | part { name: "bg"; | ||
1261 | mouse_events: 0; | ||
1262 | clip_to: "clip"; | ||
1263 | description { state: "default" 0.0; | ||
1264 | rel1.to: "base"; | ||
1265 | rel1.offset: -2 0; | ||
1266 | rel2.to: "base"; | ||
1267 | rel2.offset: 1 1; | ||
1268 | image.border: 2 2 2 2; | ||
1269 | image.normal: "cur_shad.png"; | ||
1270 | } | ||
1271 | } | ||
1272 | part { name: "base"; | ||
1273 | mouse_events: 0; | ||
1274 | scale: 1; | ||
1275 | clip_to: "clip"; | ||
1276 | description { state: "default" 0.0; | ||
1277 | min: 2 2; | ||
1278 | align: 0.5 1.0; | ||
1279 | rel1.relative: 0.0 1.0; | ||
1280 | rel1.offset: 0 -1; | ||
1281 | rel2.relative: 1.0 1.0; | ||
1282 | rel2.offset: -1 -1; | ||
1283 | image.normal: "cur_box.png"; | ||
1284 | } | ||
1285 | } | ||
1286 | part { name: "hi"; | ||
1287 | mouse_events: 0; | ||
1288 | clip_to: "clip"; | ||
1289 | description { state: "default" 0.0; | ||
1290 | rel1.to: "base"; | ||
1291 | rel2.to: "base"; | ||
1292 | rel2.relative: 1.0 0.5; | ||
1293 | image.normal: "cur_hi.png"; | ||
1294 | } | ||
1295 | } | ||
1296 | part { name: "shine"; | ||
1297 | mouse_events: 0; | ||
1298 | clip_to: "clip"; | ||
1299 | clip_to: "clip2"; | ||
1300 | description { state: "default" 0.0; | ||
1301 | rel1.to: "base"; | ||
1302 | rel2.to: "base"; | ||
1303 | rel2.relative: 1.0 0.75; | ||
1304 | image.border: 2 2 1 0; | ||
1305 | image.normal: "cur_shine.png"; | ||
1306 | fill.smooth: 0; | ||
1307 | } | ||
1308 | } | ||
1309 | part { name: "glow"; | ||
1310 | mouse_events: 0; | ||
1311 | clip_to: "clip2"; | ||
1312 | description { state: "default" 0.0; | ||
1313 | rel1.to: "base"; | ||
1314 | rel1.relative: 0.0 -2.0; | ||
1315 | rel1.offset: -2 0; | ||
1316 | rel2.to: "base"; | ||
1317 | rel2.relative: 1.0 0.0; | ||
1318 | rel2.offset: 1 1; | ||
1319 | image.border: 2 2 0 4; | ||
1320 | image.normal: "cur_glow.png"; | ||
1321 | fill.smooth: 0; | ||
1322 | } | ||
1323 | description { state: "hidden" 0.0; | ||
1324 | inherit: "default" 0.0; | ||
1325 | color: 255 255 255 0; | ||
1326 | } | ||
1327 | } | ||
1328 | } | ||
1329 | programs { | ||
1330 | program { name: "show"; | ||
1331 | signal: "show"; | ||
1332 | source: ""; | ||
1333 | action: STATE_SET "hidden" 0.0; | ||
1334 | in: 1.0 0.0; | ||
1335 | transition: DECELERATE 2.0; | ||
1336 | target: "glow"; | ||
1337 | after: "show2"; | ||
1338 | } | ||
1339 | program { name: "show2"; | ||
1340 | action: STATE_SET "hidden" 0.0; | ||
1341 | in: 0.2 0.0; | ||
1342 | target: "clip"; | ||
1343 | after: "show3"; | ||
1344 | } | ||
1345 | program { name: "show3"; | ||
1346 | action: STATE_SET "default" 0.0; | ||
1347 | in: 0.5 0.0; | ||
1348 | target: "clip"; | ||
1349 | after: "show4"; | ||
1350 | } | ||
1351 | program { name: "show4"; | ||
1352 | action: STATE_SET "default" 0.0; | ||
1353 | in: 0.5 0.0; | ||
1354 | transition: DECELERATE 0.5; | ||
1355 | target: "glow"; | ||
1356 | after: "show"; | ||
1357 | } | ||
1358 | program { name: "focused"; | ||
1359 | signal: "elm,action,focus"; | ||
1360 | source: "elm"; | ||
1361 | action: STATE_SET "focused" 0.0; | ||
1362 | target: "clip2"; | ||
1363 | } | ||
1364 | program { name: "unfocused"; | ||
1365 | signal: "elm,action,unfocus"; | ||
1366 | source: "elm"; | ||
1367 | action: STATE_SET "default" 0.0; | ||
1368 | target: "clip2"; | ||
1369 | } | ||
1370 | } | ||
1371 | } | ||
1372 | |||
1373 | group { name: "elm/entry/selection/default"; | ||
1374 | parts { | ||
1375 | part { name: "bg"; | ||
1376 | type: RECT; | ||
1377 | mouse_events: 0; | ||
1378 | description { state: "default" 0.0; | ||
1379 | color: 128 128 128 128; | ||
1380 | } | ||
1381 | } | ||
1382 | } | ||
1383 | } | ||
1384 | |||
1385 | group { name: "elm/entry/anchor/default"; | ||
1386 | parts { | ||
1387 | part { name: "bg"; | ||
1388 | type: RECT; | ||
1389 | mouse_events: 0; | ||
1390 | description { state: "default" 0.0; | ||
1391 | color: 128 0 0 64; | ||
1392 | } | ||
1393 | } | ||
1394 | } | ||
1395 | } | ||
1396 | |||
diff --git a/libraries/elementary/data/themes/widgets/fileselector.edc b/libraries/elementary/data/themes/widgets/fileselector.edc new file mode 100644 index 0000000..9013a09 --- /dev/null +++ b/libraries/elementary/data/themes/widgets/fileselector.edc | |||
@@ -0,0 +1,160 @@ | |||
1 | group { name: "elm/entry/path/separator/default"; | ||
2 | images.image: "arrow_right.png" COMP; | ||
3 | parts { | ||
4 | part { name: "icon"; | ||
5 | mouse_events: 0; | ||
6 | description { state: "default" 0.0; | ||
7 | image.normal: "arrow_right.png"; | ||
8 | max: 64 64; | ||
9 | aspect: 1.0 1.0; | ||
10 | } | ||
11 | } | ||
12 | } | ||
13 | } | ||
14 | |||
15 | group { name: "elm/fileselector/base/default"; | ||
16 | data { | ||
17 | item: "path_separator" "<item relsize=16x16 vsize=full href=path/separator></item>"; | ||
18 | } | ||
19 | parts { | ||
20 | part { name: "elm.swallow.up"; | ||
21 | type: SWALLOW; | ||
22 | description { state: "default" 0.0; | ||
23 | align: 0.0 0.0; | ||
24 | min: 10 10; | ||
25 | fixed: 1 1; | ||
26 | rel2 { | ||
27 | relative: 0.0 0.0; | ||
28 | offset: 0 0; | ||
29 | } | ||
30 | } | ||
31 | } | ||
32 | part { name: "elm.swallow.home"; | ||
33 | type: SWALLOW; | ||
34 | description { state: "default" 0.0; | ||
35 | align: 0.0 0.0; | ||
36 | min: 10 10; | ||
37 | fixed: 1 1; | ||
38 | rel1 { | ||
39 | to: "elm.swallow.up"; | ||
40 | relative: 1.0 0.0; | ||
41 | offset: 5 0; | ||
42 | } | ||
43 | rel2 { | ||
44 | to: "elm.swallow.up"; | ||
45 | relative: 1.0 1.0; | ||
46 | offset: 20 -1; | ||
47 | } | ||
48 | } | ||
49 | } | ||
50 | part { name: "elm.swallow.files"; | ||
51 | type: SWALLOW; | ||
52 | description { state: "default" 0.0; | ||
53 | align: 1.0 0.0; | ||
54 | min: 10 10; | ||
55 | fixed: 1 1; | ||
56 | rel1 { | ||
57 | to_y: "elm.swallow.home"; | ||
58 | relative: 0.0 1.0; | ||
59 | offset: 0 0; | ||
60 | } | ||
61 | rel2 { | ||
62 | to_y: "elm.swallow.path"; | ||
63 | relative: 1.0 0.0; | ||
64 | offset: -1 -1; | ||
65 | } | ||
66 | } | ||
67 | } | ||
68 | part { name: "elm.swallow.path"; | ||
69 | type: SWALLOW; | ||
70 | description { state: "default" 0.0; | ||
71 | align: 0.5 1.0; | ||
72 | fixed: 1 1; | ||
73 | rel1 { | ||
74 | to_y: "elm.swallow.filename"; | ||
75 | relative: 0.0 0.0; | ||
76 | offset: 0 -1; | ||
77 | } | ||
78 | rel2 { | ||
79 | to_y: "elm.swallow.filename"; | ||
80 | relative: 1.0 0.0; | ||
81 | offset: -1 -1; | ||
82 | } | ||
83 | } | ||
84 | } | ||
85 | part { name: "elm.swallow.filename"; | ||
86 | type: SWALLOW; | ||
87 | description { state: "default" 0.0; | ||
88 | align: 0.5 1.0; | ||
89 | fixed: 1 1; | ||
90 | rel1 { | ||
91 | to_y: "elm.swallow.ok"; | ||
92 | relative: 0.0 0.0; | ||
93 | offset: 0 -1; | ||
94 | } | ||
95 | rel2 { | ||
96 | to_y: "elm.swallow.ok"; | ||
97 | relative: 1.0 0.0; | ||
98 | offset: -1 -1; | ||
99 | } | ||
100 | } | ||
101 | } | ||
102 | part { name: "elm.swallow.cancel"; | ||
103 | type: SWALLOW; | ||
104 | description { state: "default" 0.0; | ||
105 | align: 1.0 1.0; | ||
106 | fixed: 1 1; | ||
107 | rel1 { | ||
108 | to: "elm.swallow.ok"; | ||
109 | relative: 0.0 0.0; | ||
110 | offset: -3 0; | ||
111 | } | ||
112 | rel2 { | ||
113 | to: "elm.swallow.ok"; | ||
114 | relative: 0.0 1.0; | ||
115 | offset: -3 -1; | ||
116 | } | ||
117 | } | ||
118 | } | ||
119 | part { name: "elm.swallow.ok"; | ||
120 | type: SWALLOW; | ||
121 | description { state: "default" 0.0; | ||
122 | align: 1.0 1.0; | ||
123 | fixed: 1 1; | ||
124 | rel1 { | ||
125 | relative: 1.0 1.0; | ||
126 | offset: -1 -1; | ||
127 | } | ||
128 | } | ||
129 | } | ||
130 | } | ||
131 | } | ||
132 | |||
133 | group { name: "elm/fileselector_entry/base/default"; | ||
134 | parts { | ||
135 | part { name: "elm.swallow.entry"; | ||
136 | type: SWALLOW; | ||
137 | description { state: "default" 0.0; | ||
138 | align: 0.0 0.0; | ||
139 | min: 50 10; | ||
140 | rel2 { to_x: "elm.swallow.button"; | ||
141 | relative: 0.0 1.0; | ||
142 | offset: -1 -1; | ||
143 | } | ||
144 | } | ||
145 | } | ||
146 | part { name: "elm.swallow.button"; | ||
147 | type: SWALLOW; | ||
148 | description { state: "default" 0.0; | ||
149 | align: 1.0 0.0; | ||
150 | min: 10 10; | ||
151 | fixed: 1 1; | ||
152 | rel1 { | ||
153 | relative: 1.0 0.0; | ||
154 | offset: -21 0; | ||
155 | } | ||
156 | } | ||
157 | } | ||
158 | } | ||
159 | } | ||
160 | |||
diff --git a/libraries/elementary/data/themes/widgets/flipselector.edc b/libraries/elementary/data/themes/widgets/flipselector.edc new file mode 100644 index 0000000..39c3117 --- /dev/null +++ b/libraries/elementary/data/themes/widgets/flipselector.edc | |||
@@ -0,0 +1,538 @@ | |||
1 | #define FLIP_PICKER_MAX_LEN (50) | ||
2 | #define FLIP_PICKER_MAX_LEN_STR "50" | ||
3 | |||
4 | group { name: "elm/flipselector/base/default"; | ||
5 | images { | ||
6 | image: "flip_base.png" COMP; | ||
7 | image: "flip_base_shad.png" COMP; | ||
8 | image: "flip_shad.png" COMP; | ||
9 | image: "arrow_up.png" COMP; | ||
10 | image: "arrow_down.png" COMP; | ||
11 | image: "flip_t.png" COMP; | ||
12 | image: "flip_b.png" COMP; | ||
13 | } | ||
14 | |||
15 | data { | ||
16 | item: "max_len" FLIP_PICKER_MAX_LEN_STR; | ||
17 | } | ||
18 | |||
19 | //FIXME: quick successive clicks on, say, up, lead to nastiness | ||
20 | script { | ||
21 | public cur, prev, next, lock; | ||
22 | |||
23 | public animator_bottom_down(val, Float:pos) { | ||
24 | new tmp[FLIP_PICKER_MAX_LEN]; | ||
25 | |||
26 | set_tween_state(PART:"elm.bottom", pos, "shrink", 0.0, "default", 0.0); | ||
27 | set_tween_state(PART:"bottom_sheet", pos, "shrink", 0.0, "default", | ||
28 | 0.0); | ||
29 | set_tween_state(PART:"shadow", pos, "half", 0.0, "full", | ||
30 | 0.0); | ||
31 | |||
32 | if (pos >= 1.0) { | ||
33 | set_state(PART:"shadow", "default", 0.0); | ||
34 | set_int(lock, 0); | ||
35 | |||
36 | fetch_str(next, 0, tmp, FLIP_PICKER_MAX_LEN); | ||
37 | if (strncmp(tmp, "", FLIP_PICKER_MAX_LEN) != 0) { | ||
38 | replace_str(next, 0, ""); | ||
39 | message(MSG_STRING, 1, tmp); | ||
40 | } | ||
41 | } | ||
42 | } | ||
43 | |||
44 | public animator_top_down(val, Float:pos) { | ||
45 | set_tween_state(PART:"elm.top", pos, "default", 0.0, "shrink", 0.0); | ||
46 | set_tween_state(PART:"top_sheet", pos, "default", 0.0, "shrink", | ||
47 | 0.0); | ||
48 | set_tween_state(PART:"shadow", pos, "default", 0.0, "half", | ||
49 | 0.0); | ||
50 | |||
51 | if (pos >= 1.0) | ||
52 | anim(0.2, "animator_bottom_down", val); | ||
53 | } | ||
54 | |||
55 | public animator_bottom_up(val, Float:pos) { | ||
56 | set_tween_state(PART:"elm.bottom", pos, "default", 0.0, "shrink", 0.0); | ||
57 | set_tween_state(PART:"bottom_sheet", pos, "default", 0.0, "shrink", | ||
58 | 0.0); | ||
59 | set_tween_state(PART:"shadow", pos, "full", 0.0, "half", | ||
60 | 0.0); | ||
61 | |||
62 | if (pos >= 1.0) | ||
63 | anim(0.2, "animator_top_up", val); | ||
64 | } | ||
65 | |||
66 | public animator_top_up(val, Float:pos) { | ||
67 | new tmp[FLIP_PICKER_MAX_LEN]; | ||
68 | |||
69 | set_tween_state(PART:"elm.top", pos, "shrink", 0.0, "default", 0.0); | ||
70 | set_tween_state(PART:"top_sheet", pos, "shrink", 0.0, "default", | ||
71 | 0.0); | ||
72 | set_tween_state(PART:"shadow", pos, "half", 0.0, "default", | ||
73 | 0.0); | ||
74 | |||
75 | if (pos >= 1.0) { | ||
76 | set_state(PART:"shadow", "default", 0.0); | ||
77 | set_int(lock, 0); | ||
78 | |||
79 | fetch_str(next, 0, tmp, FLIP_PICKER_MAX_LEN); | ||
80 | if (strncmp(tmp, "", FLIP_PICKER_MAX_LEN) != 0) { | ||
81 | replace_str(next, 0, ""); | ||
82 | message(MSG_STRING, 2, tmp); | ||
83 | } | ||
84 | } | ||
85 | } | ||
86 | |||
87 | public message(Msg_Type:type, id, ...) { | ||
88 | /* flip down */ | ||
89 | if ((type == MSG_STRING) && (id == 1)) { | ||
90 | new value[FLIP_PICKER_MAX_LEN], tmp[FLIP_PICKER_MAX_LEN]; | ||
91 | |||
92 | snprintf(value, FLIP_PICKER_MAX_LEN, "%s", getarg(2)); | ||
93 | |||
94 | if (get_int(lock) == 1) { | ||
95 | replace_str(next, 0, value); | ||
96 | return; | ||
97 | } | ||
98 | |||
99 | fetch_str(cur, 0, tmp, FLIP_PICKER_MAX_LEN); | ||
100 | |||
101 | set_text(PART:"bottom_b", tmp); | ||
102 | |||
103 | set_state(PART:"elm.top", "shrink", 0.0); | ||
104 | set_text(PART:"elm.top", tmp); | ||
105 | set_state(PART:"elm.top", "default", 0.0); | ||
106 | set_text(PART:"elm.top", tmp); | ||
107 | |||
108 | replace_str(prev, 0, tmp); | ||
109 | |||
110 | set_state(PART:"elm.bottom", "default", 0.0); | ||
111 | set_text(PART:"elm.bottom", value); | ||
112 | set_state(PART:"elm.bottom", "shrink", 0.0); | ||
113 | set_text(PART:"elm.bottom", value); | ||
114 | |||
115 | set_text(PART:"top_b", value); | ||
116 | |||
117 | replace_str(cur, 0, value); | ||
118 | |||
119 | set_state(PART:"bottom_sheet", "shrink", 0.0); | ||
120 | set_state(PART:"top_sheet", "default", 0.0); | ||
121 | |||
122 | set_int(lock, 1); | ||
123 | set_state(PART:"shadow", "default", 0.0); | ||
124 | anim(0.2, "animator_top_down", 1); | ||
125 | } | ||
126 | |||
127 | /* flip up */ | ||
128 | if ((type == MSG_STRING) && (id == 2)) { | ||
129 | new value[FLIP_PICKER_MAX_LEN], tmp[FLIP_PICKER_MAX_LEN]; | ||
130 | |||
131 | snprintf(value, FLIP_PICKER_MAX_LEN, "%s", getarg(2)); | ||
132 | |||
133 | if (get_int(lock) == 1) { | ||
134 | replace_str(next, 0, value); | ||
135 | return; | ||
136 | } | ||
137 | |||
138 | fetch_str(cur, 0, tmp, FLIP_PICKER_MAX_LEN); | ||
139 | |||
140 | set_text(PART:"top_b", tmp); | ||
141 | |||
142 | set_state(PART:"elm.bottom", "shrink", 0.0); | ||
143 | set_text(PART:"elm.bottom", tmp); | ||
144 | set_state(PART:"elm.bottom", "default", 0.0); | ||
145 | set_text(PART:"elm.bottom", tmp); | ||
146 | |||
147 | replace_str(prev, 0, tmp); | ||
148 | |||
149 | set_state(PART:"elm.top", "default", 0.0); | ||
150 | set_text(PART:"elm.top", value); | ||
151 | set_state(PART:"elm.top", "shrink", 0.0); | ||
152 | set_text(PART:"elm.top", value); | ||
153 | |||
154 | set_text(PART:"bottom_b", value); | ||
155 | |||
156 | replace_str(cur, 0, value); | ||
157 | |||
158 | set_state(PART:"bottom_sheet", "default", 0.0); | ||
159 | set_state(PART:"top_sheet", "shrink", 0.0); | ||
160 | |||
161 | set_int(lock, 1); | ||
162 | set_state(PART:"shadow", "full", 0.0); | ||
163 | anim(0.2, "animator_bottom_up", 1); | ||
164 | } | ||
165 | } | ||
166 | } | ||
167 | |||
168 | parts { | ||
169 | part { name: "shad"; | ||
170 | mouse_events: 0; | ||
171 | description { state: "default" 0.0; | ||
172 | rel1.offset: -4 -4; | ||
173 | rel1.to: "base"; | ||
174 | rel2.offset: 3 3; | ||
175 | rel2.to: "base"; | ||
176 | image { | ||
177 | normal: "flip_base_shad.png"; | ||
178 | border: 8 8 8 8; | ||
179 | } | ||
180 | } | ||
181 | } | ||
182 | |||
183 | part { name: "base"; | ||
184 | scale: 1; | ||
185 | description { state: "default" 0.0; | ||
186 | rel1.offset: 4 4; | ||
187 | rel2.offset: -5 -5; | ||
188 | min: 24 48; | ||
189 | image.normal: "flip_base.png"; | ||
190 | } | ||
191 | } | ||
192 | |||
193 | part { name: "b"; | ||
194 | type: RECT; | ||
195 | mouse_events: 1; | ||
196 | description { state: "default" 0.0; | ||
197 | rel1.to: "base"; | ||
198 | rel1.relative: 0.0 0.5; | ||
199 | rel2.to: "base"; | ||
200 | color: 0 0 0 0; | ||
201 | } | ||
202 | description { state: "hidden" 0.0; | ||
203 | inherit: "default" 0.0; | ||
204 | visible: 0; | ||
205 | } | ||
206 | } | ||
207 | |||
208 | part { name: "t"; | ||
209 | type: RECT; | ||
210 | mouse_events: 1; | ||
211 | description { state: "default" 0.0; | ||
212 | rel1.to: "base"; | ||
213 | rel2.to: "base"; | ||
214 | rel2.relative: 1.0 0.5; | ||
215 | color: 0 0 0 0; | ||
216 | } | ||
217 | description { state: "hidden" 0.0; | ||
218 | inherit: "default" 0.0; | ||
219 | visible: 0; | ||
220 | } | ||
221 | } | ||
222 | |||
223 | part { name: "bottom_sheet_static"; | ||
224 | mouse_events: 0; | ||
225 | description { state: "default" 0.0; | ||
226 | visible: 1; | ||
227 | rel1.to: "b"; | ||
228 | rel2.to: "b"; | ||
229 | image.normal: "flip_b.png"; | ||
230 | } | ||
231 | } | ||
232 | |||
233 | part { name: "bottom_b"; | ||
234 | mouse_events: 0; | ||
235 | clip_to: "bottom_clipper"; | ||
236 | type: TEXT; | ||
237 | scale: 1; | ||
238 | description { state: "default" 0.0; | ||
239 | rel1.to: "base"; | ||
240 | rel2.to: "base"; | ||
241 | color: 0 0 0 255; | ||
242 | color2: 0 0 0 255; | ||
243 | text { | ||
244 | font: "Sans:style=Bold,Edje-Vera-Bold"; | ||
245 | size: 30; | ||
246 | min: 1 1; | ||
247 | align: 0.5 0.5; | ||
248 | } | ||
249 | } | ||
250 | } | ||
251 | |||
252 | part { name: "shadow"; | ||
253 | mouse_events: 0; | ||
254 | description { state: "default" 0.0; | ||
255 | rel1.to: "b"; | ||
256 | rel2.to: "b"; | ||
257 | rel2.relative: 1.0 0.0; | ||
258 | image.normal: "flip_shad.png"; | ||
259 | } | ||
260 | description { state: "half" 0.0; | ||
261 | inherit: "default" 0.0; | ||
262 | rel2.relative: 1.0 0.5; | ||
263 | } | ||
264 | description { state: "full" 0.0; | ||
265 | inherit: "default" 0.0; | ||
266 | rel2.relative: 1.0 1.0; | ||
267 | } | ||
268 | } | ||
269 | |||
270 | part { name: "bottom_sheet"; | ||
271 | mouse_events: 0; | ||
272 | description { state: "default" 0.0; | ||
273 | visible: 1; | ||
274 | rel1.to: "b"; | ||
275 | rel2.to: "b"; | ||
276 | image.normal: "flip_b.png"; | ||
277 | } | ||
278 | description { state: "shrink" 0.0; | ||
279 | inherit: "default" 0.0; | ||
280 | visible: 0; | ||
281 | rel2.relative: 1.0 0.0; | ||
282 | } | ||
283 | } | ||
284 | |||
285 | part { name: "elm.bottom"; | ||
286 | mouse_events: 0; | ||
287 | clip_to: "bottom_clipper"; | ||
288 | type: TEXT; | ||
289 | scale: 1; | ||
290 | description { state: "default" 0.0; | ||
291 | rel1.to: "base"; | ||
292 | rel2.to: "base"; | ||
293 | color: 0 0 0 255; | ||
294 | color2: 0 0 0 255; | ||
295 | text { | ||
296 | font: "Sans:style=Bold,Edje-Vera-Bold"; | ||
297 | size: 30; | ||
298 | min: 1 1; | ||
299 | align: 0.5 0.5; | ||
300 | } | ||
301 | } | ||
302 | description { state: "shrink" 0.0; | ||
303 | inherit: "default" 0.0; | ||
304 | color: 128 128 128 255; | ||
305 | visible: 0; | ||
306 | rel2.relative: 1.0 0.5; /* FIXME: same visual effect? --> MAP! */ | ||
307 | } | ||
308 | } | ||
309 | |||
310 | part { name: "top_sheet_static"; | ||
311 | mouse_events: 0; | ||
312 | description { state: "default" 0.0; | ||
313 | visible: 1; | ||
314 | rel1.to: "t"; | ||
315 | rel2.to: "t"; | ||
316 | image.normal: "flip_t.png"; | ||
317 | } | ||
318 | } | ||
319 | |||
320 | part { name: "top_b"; | ||
321 | mouse_events: 0; | ||
322 | clip_to: "top_clipper"; | ||
323 | type: TEXT; | ||
324 | scale: 1; | ||
325 | description { state: "default" 0.0; | ||
326 | rel1.to: "base"; | ||
327 | rel2.to: "base"; | ||
328 | color: 0 0 0 255; | ||
329 | color2: 0 0 0 255; | ||
330 | text { | ||
331 | font: "Sans:style=Bold,Edje-Vera-Bold"; | ||
332 | size: 30; | ||
333 | min: 1 1; | ||
334 | align: 0.5 0.5; | ||
335 | source: "elm.top"; | ||
336 | } | ||
337 | } | ||
338 | } | ||
339 | |||
340 | part { name: "top_sheet"; | ||
341 | mouse_events: 0; | ||
342 | description { state: "default" 0.0; | ||
343 | visible: 1; | ||
344 | rel1.to: "t"; | ||
345 | rel2.to: "t"; | ||
346 | image.normal: "flip_t.png"; | ||
347 | } | ||
348 | description { state: "shrink" 0.0; | ||
349 | inherit: "default" 0.0; | ||
350 | color: 128 128 128 255; | ||
351 | visible: 0; | ||
352 | rel1.relative: 0.0 1.0; | ||
353 | } | ||
354 | } | ||
355 | |||
356 | part { name: "elm.top"; | ||
357 | mouse_events: 0; | ||
358 | clip_to: "top_clipper"; | ||
359 | type: TEXT; | ||
360 | scale: 1; | ||
361 | description { state: "default" 0.0; | ||
362 | rel1.to: "base"; | ||
363 | rel2.to: "base"; | ||
364 | color: 0 0 0 255; | ||
365 | color2: 0 0 0 255; | ||
366 | text { | ||
367 | font: "Sans:style=Bold,Edje-Vera-Bold"; | ||
368 | size: 30; | ||
369 | min: 1 1; | ||
370 | align: 0.5 0.5; | ||
371 | } | ||
372 | } | ||
373 | description { state: "shrink" 0.0; | ||
374 | inherit: "default" 0.0; | ||
375 | visible: 0; | ||
376 | rel1.relative: 0.0 0.5; | ||
377 | } | ||
378 | } | ||
379 | |||
380 | part { name: "arrow_top"; | ||
381 | mouse_events: 0; | ||
382 | clip_to: "disclip"; | ||
383 | scale: 1; | ||
384 | description { state: "default" 0.0; | ||
385 | min: 15 15; | ||
386 | max: 15 15; | ||
387 | align: 0.5 0.0; | ||
388 | rel1.to: "t"; | ||
389 | rel2.to: "t"; | ||
390 | image.normal: "arrow_up.png"; | ||
391 | } | ||
392 | description { state: "hidden" 0.0; | ||
393 | inherit: "default" 0.0; | ||
394 | visible: 0; | ||
395 | } | ||
396 | } | ||
397 | part { name: "arrow_bottom"; | ||
398 | mouse_events: 0; | ||
399 | clip_to: "disclip"; | ||
400 | scale: 1; | ||
401 | description { state: "default" 0.0; | ||
402 | min: 15 15; | ||
403 | max: 15 15; | ||
404 | align: 0.5 1.0; | ||
405 | rel1.to: "b"; | ||
406 | rel2.to: "b"; | ||
407 | image.normal: "arrow_down.png"; | ||
408 | } | ||
409 | description { state: "hidden" 0.0; | ||
410 | inherit: "default" 0.0; | ||
411 | visible: 0; | ||
412 | } | ||
413 | } | ||
414 | |||
415 | part { | ||
416 | type: RECT; | ||
417 | mouse_events: 0; | ||
418 | name: "top_clipper"; | ||
419 | clip_to: "disclip"; | ||
420 | description { | ||
421 | state: "default" 0.0; | ||
422 | rel1.to: "t"; | ||
423 | rel2.to: "t"; | ||
424 | visible: 1; | ||
425 | } | ||
426 | } | ||
427 | |||
428 | part { | ||
429 | type: RECT; | ||
430 | mouse_events: 0; | ||
431 | name: "bottom_clipper"; | ||
432 | clip_to: "disclip"; | ||
433 | description { | ||
434 | state: "default" 0.0; | ||
435 | rel1.to: "b"; | ||
436 | rel2.to: "b"; | ||
437 | visible: 1; | ||
438 | } | ||
439 | } | ||
440 | |||
441 | part { | ||
442 | type: RECT; | ||
443 | name: "disclip"; | ||
444 | description { | ||
445 | state: "default" 0.0; | ||
446 | color: 255 255 255 255; | ||
447 | } | ||
448 | description { | ||
449 | state: "enabled" 0.0; | ||
450 | color: 100 100 100 100; | ||
451 | } | ||
452 | } | ||
453 | |||
454 | part { | ||
455 | type: RECT; | ||
456 | name: "event_blocker"; | ||
457 | description { | ||
458 | state: "default" 0.0; | ||
459 | color: 0 0 0 0; | ||
460 | visible: 0; | ||
461 | } | ||
462 | description { | ||
463 | state: "enabled" 0.0; | ||
464 | inherit: "default" 0.0; | ||
465 | visible: 1; | ||
466 | } | ||
467 | } | ||
468 | |||
469 | } | ||
470 | |||
471 | programs { | ||
472 | program { name: "load"; | ||
473 | signal: "load"; | ||
474 | source: ""; | ||
475 | script { | ||
476 | append_str(cur, ""); | ||
477 | append_str(prev, ""); | ||
478 | append_str(next, ""); | ||
479 | set_int(lock, 0); | ||
480 | } | ||
481 | } | ||
482 | |||
483 | program { name: "hide_arrows"; | ||
484 | signal: "elm,state,button,hidden"; | ||
485 | source: "elm"; | ||
486 | action: STATE_SET "hidden" 0.0; | ||
487 | target: "arrow_top"; | ||
488 | target: "arrow_bottom"; | ||
489 | target: "t"; | ||
490 | target: "b"; | ||
491 | } | ||
492 | |||
493 | program { name: "show_arrows"; | ||
494 | signal: "elm,state,button,visible"; | ||
495 | source: "elm"; | ||
496 | action: STATE_SET "default" 0.0; | ||
497 | target: "arrow_top"; | ||
498 | target: "arrow_bottom"; | ||
499 | target: "t"; | ||
500 | target: "b"; | ||
501 | } | ||
502 | |||
503 | program { name: "up"; | ||
504 | signal: "mouse,down,1"; | ||
505 | source: "t"; | ||
506 | action: SIGNAL_EMIT "elm,action,up,start" ""; | ||
507 | } | ||
508 | program { name: "up,stop"; | ||
509 | signal: "mouse,up,1"; | ||
510 | source: "t"; | ||
511 | action: SIGNAL_EMIT "elm,action,up,stop" ""; | ||
512 | } | ||
513 | program { name: "down"; | ||
514 | signal: "mouse,down,1"; | ||
515 | source: "b"; | ||
516 | action: SIGNAL_EMIT "elm,action,down,start" ""; | ||
517 | } | ||
518 | program { name: "down,stop"; | ||
519 | signal: "mouse,up,1"; | ||
520 | source: "b"; | ||
521 | action: SIGNAL_EMIT "elm,action,down,stop" ""; | ||
522 | } | ||
523 | program { name: "disable"; | ||
524 | signal: "elm,state,disabled"; | ||
525 | source: "elm"; | ||
526 | action: STATE_SET "enabled" 0.0; | ||
527 | target: "disclip"; | ||
528 | target: "event_blocker"; | ||
529 | } | ||
530 | program { name: "enable"; | ||
531 | signal: "elm,state,enabled"; | ||
532 | source: "elm"; | ||
533 | action: STATE_SET "default" 0.0; | ||
534 | target: "disclip"; | ||
535 | target: "event_blocker"; | ||
536 | } | ||
537 | } | ||
538 | } | ||
diff --git a/libraries/elementary/data/themes/widgets/frame.edc b/libraries/elementary/data/themes/widgets/frame.edc new file mode 100644 index 0000000..07937fb --- /dev/null +++ b/libraries/elementary/data/themes/widgets/frame.edc | |||
@@ -0,0 +1,380 @@ | |||
1 | group { name: "elm/frame/base/default"; | ||
2 | images { | ||
3 | image: "frame_1.png" COMP; | ||
4 | image: "frame_2.png" COMP; | ||
5 | image: "dia_grad.png" COMP; | ||
6 | } | ||
7 | parts { | ||
8 | part { name: "base0"; | ||
9 | mouse_events: 0; | ||
10 | description { state: "default" 0.0; | ||
11 | image.normal: "dia_grad.png"; | ||
12 | rel1.to: "over"; | ||
13 | rel2.to: "over"; | ||
14 | fill { | ||
15 | smooth: 0; | ||
16 | size { | ||
17 | relative: 0.0 1.0; | ||
18 | offset: 64 0; | ||
19 | } | ||
20 | } | ||
21 | } | ||
22 | } | ||
23 | part { name: "base"; | ||
24 | mouse_events: 0; | ||
25 | description { state: "default" 0.0; | ||
26 | rel2.to: "elm.swallow.content"; | ||
27 | rel2.offset: 9 9; | ||
28 | image { | ||
29 | normal: "frame_2.png"; | ||
30 | border: 5 5 32 26; | ||
31 | middle: 0; | ||
32 | } | ||
33 | fill.smooth : 0; | ||
34 | } | ||
35 | } | ||
36 | part { name: "elm.text"; | ||
37 | type: TEXT; | ||
38 | mouse_events: 0; | ||
39 | scale: 1; | ||
40 | description { state: "default" 0.0; | ||
41 | align: 0.0 0.0; | ||
42 | fixed: 0 1; | ||
43 | rel1 { | ||
44 | relative: 0.0 0.0; | ||
45 | offset: 6 6; | ||
46 | } | ||
47 | rel2 { | ||
48 | relative: 1.0 0.0; | ||
49 | offset: -7 6; | ||
50 | } | ||
51 | color: 0 0 0 64; | ||
52 | text { | ||
53 | font: "Sans:style=Bold,Edje-Vera-Bold"; | ||
54 | size: 10; | ||
55 | min: 1 1; | ||
56 | max: 1 1; | ||
57 | align: 0.0 0.0; | ||
58 | } | ||
59 | } | ||
60 | } | ||
61 | part { name: "over"; | ||
62 | mouse_events: 0; | ||
63 | description { state: "default" 0.0; | ||
64 | min: 2 2; | ||
65 | rel1.offset: 4 4; | ||
66 | rel2.to: "clip"; | ||
67 | rel2.offset: 5 5; | ||
68 | image { | ||
69 | normal: "frame_1.png"; | ||
70 | border: 2 2 28 22; | ||
71 | middle: 0; | ||
72 | } | ||
73 | fill.smooth : 0; | ||
74 | } | ||
75 | } | ||
76 | part { | ||
77 | name: "clip"; | ||
78 | type: RECT; | ||
79 | description { | ||
80 | state: "default" 0.0; | ||
81 | rel1 { | ||
82 | to_y: "elm.text"; | ||
83 | relative: 0.0 1.0; | ||
84 | offset: 8 2; | ||
85 | } | ||
86 | rel2.offset: -9 -9; | ||
87 | } | ||
88 | } | ||
89 | part { name: "elm.swallow.content"; | ||
90 | type: SWALLOW; | ||
91 | clip_to: "clip"; | ||
92 | description { state: "default" 0.0; | ||
93 | align: 0.0 1.0; | ||
94 | rel1 { | ||
95 | to_y: "elm.text"; | ||
96 | relative: 0.0 1.0; | ||
97 | offset: 8 2; | ||
98 | } | ||
99 | rel2.offset: -9 -9; | ||
100 | } | ||
101 | description { state: "collapsed" 0.0; | ||
102 | inherit: "default" 0.0; | ||
103 | minmul: 1.0 0.0; | ||
104 | } | ||
105 | } | ||
106 | part { name: "event"; | ||
107 | type: RECT; | ||
108 | mouse_events: 1; | ||
109 | ignore_flags: ON_HOLD; | ||
110 | description { state: "default" 0.0; | ||
111 | color: 0 0 0 0; | ||
112 | rel1.to_y: "elm.text"; | ||
113 | rel2.to_y: "elm.text"; | ||
114 | } | ||
115 | } | ||
116 | } | ||
117 | programs { | ||
118 | program { name: "collapse"; | ||
119 | action: STATE_SET "collapsed" 0.0; | ||
120 | target: "elm.swallow.content"; | ||
121 | transition: BOUNCE 0.5 1.0 3; | ||
122 | after: "signal"; | ||
123 | } | ||
124 | program { name: "expand"; | ||
125 | action: STATE_SET "default" 0.0; | ||
126 | target: "elm.swallow.content"; | ||
127 | transition: BOUNCE 0.5 1.0 3; | ||
128 | after: "signal"; | ||
129 | } | ||
130 | program { name: "click"; | ||
131 | signal: "mouse,up,1"; | ||
132 | source: "event"; | ||
133 | action: SIGNAL_EMIT "elm,action,click" "elm"; | ||
134 | } | ||
135 | program { name: "toggle"; | ||
136 | signal: "elm,action,toggle"; | ||
137 | source: "elm"; | ||
138 | script { | ||
139 | new st[31]; | ||
140 | new Float:vl; | ||
141 | get_state(PART:"elm.swallow.content", st, 30, vl); | ||
142 | if (!strcmp(st, "default")) | ||
143 | run_program(PROGRAM:"collapse"); | ||
144 | else | ||
145 | run_program(PROGRAM:"expand"); | ||
146 | } | ||
147 | } | ||
148 | program { name: "switch"; | ||
149 | signal: "elm,action,switch"; | ||
150 | source: "elm"; | ||
151 | script { | ||
152 | new st[31]; | ||
153 | new Float:vl; | ||
154 | get_state(PART:"elm.swallow.content", st, 30, vl); | ||
155 | if (!strcmp(st, "default")) | ||
156 | set_state(PART:"elm.swallow.content", "collapsed", 0.0); | ||
157 | else | ||
158 | set_state(PART:"elm.swallow.content", "default", 0.0); | ||
159 | } | ||
160 | } | ||
161 | program { name: "signal"; | ||
162 | action: SIGNAL_EMIT "elm,anim,done" "elm"; | ||
163 | } | ||
164 | } | ||
165 | } | ||
166 | |||
167 | group { name: "elm/frame/base/pad_small"; | ||
168 | parts { | ||
169 | part { name: "b0"; | ||
170 | mouse_events: 0; | ||
171 | type: RECT; | ||
172 | scale: 1; | ||
173 | description { state: "default" 0.0; | ||
174 | visible: 0; | ||
175 | min: 4 4; | ||
176 | max: 4 4; | ||
177 | align: 0.0 0.0; | ||
178 | } | ||
179 | } | ||
180 | part { name: "b1"; | ||
181 | mouse_events: 0; | ||
182 | type: RECT; | ||
183 | scale: 1; | ||
184 | description { state: "default" 0.0; | ||
185 | visible: 0; | ||
186 | min: 4 4; | ||
187 | max: 4 4; | ||
188 | align: 1.0 1.0; | ||
189 | } | ||
190 | } | ||
191 | part { name: "elm.swallow.content"; | ||
192 | type: SWALLOW; | ||
193 | description { state: "default" 0.0; | ||
194 | rel1 { | ||
195 | to: "b0"; | ||
196 | relative: 1.0 1.0; | ||
197 | offset: 0 0; | ||
198 | } | ||
199 | rel2 { | ||
200 | to: "b1"; | ||
201 | relative: 0.0 0.0; | ||
202 | offset: -1 -1; | ||
203 | } | ||
204 | } | ||
205 | } | ||
206 | } | ||
207 | } | ||
208 | |||
209 | group { name: "elm/frame/base/pad_medium"; | ||
210 | parts { | ||
211 | part { name: "b0"; | ||
212 | mouse_events: 0; | ||
213 | type: RECT; | ||
214 | scale: 1; | ||
215 | description { state: "default" 0.0; | ||
216 | visible: 0; | ||
217 | min: 8 8; | ||
218 | max: 8 8; | ||
219 | align: 0.0 0.0; | ||
220 | } | ||
221 | } | ||
222 | part { name: "b1"; | ||
223 | mouse_events: 0; | ||
224 | type: RECT; | ||
225 | scale: 1; | ||
226 | description { state: "default" 0.0; | ||
227 | visible: 0; | ||
228 | min: 8 8; | ||
229 | max: 8 8; | ||
230 | align: 1.0 1.0; | ||
231 | } | ||
232 | } | ||
233 | part { name: "elm.swallow.content"; | ||
234 | type: SWALLOW; | ||
235 | description { state: "default" 0.0; | ||
236 | rel1 { | ||
237 | to: "b0"; | ||
238 | relative: 1.0 1.0; | ||
239 | offset: 0 0; | ||
240 | } | ||
241 | rel2 { | ||
242 | to: "b1"; | ||
243 | relative: 0.0 0.0; | ||
244 | offset: -1 -1; | ||
245 | } | ||
246 | } | ||
247 | } | ||
248 | } | ||
249 | } | ||
250 | |||
251 | group { name: "elm/frame/base/pad_large"; | ||
252 | parts { | ||
253 | part { name: "b0"; | ||
254 | mouse_events: 0; | ||
255 | type: RECT; | ||
256 | scale: 1; | ||
257 | description { state: "default" 0.0; | ||
258 | visible: 0; | ||
259 | min: 16 16; | ||
260 | max: 16 16; | ||
261 | align: 0.0 0.0; | ||
262 | } | ||
263 | } | ||
264 | part { name: "b1"; | ||
265 | mouse_events: 0; | ||
266 | type: RECT; | ||
267 | scale: 1; | ||
268 | description { state: "default" 0.0; | ||
269 | visible: 0; | ||
270 | min: 16 16; | ||
271 | max: 16 16; | ||
272 | align: 1.0 1.0; | ||
273 | } | ||
274 | } | ||
275 | part { name: "elm.swallow.content"; | ||
276 | type: SWALLOW; | ||
277 | description { state: "default" 0.0; | ||
278 | rel1 { | ||
279 | to: "b0"; | ||
280 | relative: 1.0 1.0; | ||
281 | offset: 0 0; | ||
282 | } | ||
283 | rel2 { | ||
284 | to: "b1"; | ||
285 | relative: 0.0 0.0; | ||
286 | offset: -1 -1; | ||
287 | } | ||
288 | } | ||
289 | } | ||
290 | } | ||
291 | } | ||
292 | |||
293 | group { name: "elm/frame/base/pad_huge"; | ||
294 | parts { | ||
295 | part { name: "b0"; | ||
296 | mouse_events: 0; | ||
297 | type: RECT; | ||
298 | scale: 1; | ||
299 | description { state: "default" 0.0; | ||
300 | visible: 0; | ||
301 | min: 32 32; | ||
302 | max: 32 32; | ||
303 | align: 0.0 0.0; | ||
304 | } | ||
305 | } | ||
306 | part { name: "b1"; | ||
307 | mouse_events: 0; | ||
308 | type: RECT; | ||
309 | scale: 1; | ||
310 | description { state: "default" 0.0; | ||
311 | visible: 0; | ||
312 | min: 32 32; | ||
313 | max: 32 32; | ||
314 | align: 1.0 1.0; | ||
315 | } | ||
316 | } | ||
317 | part { name: "elm.swallow.content"; | ||
318 | type: SWALLOW; | ||
319 | description { state: "default" 0.0; | ||
320 | rel1 { | ||
321 | to: "b0"; | ||
322 | relative: 1.0 1.0; | ||
323 | offset: 0 0; | ||
324 | } | ||
325 | rel2 { | ||
326 | to: "b1"; | ||
327 | relative: 0.0 0.0; | ||
328 | offset: -1 -1; | ||
329 | } | ||
330 | } | ||
331 | } | ||
332 | } | ||
333 | } | ||
334 | |||
335 | group { name: "elm/frame/base/outdent_top"; | ||
336 | images { | ||
337 | image: "outdent-top.png" COMP; | ||
338 | } | ||
339 | parts { | ||
340 | part { name: "base0"; | ||
341 | mouse_events: 0; | ||
342 | description { state: "default" 0.0; | ||
343 | image.normal: "outdent-top.png"; | ||
344 | image.border: 0 0 0 13; | ||
345 | fill.smooth: 0; | ||
346 | } | ||
347 | } | ||
348 | part { name: "elm.swallow.content"; | ||
349 | type: SWALLOW; | ||
350 | description { state: "default" 0.0; | ||
351 | rel1.offset: 2 2; | ||
352 | rel2.offset: -3 -13; | ||
353 | } | ||
354 | } | ||
355 | } | ||
356 | } | ||
357 | |||
358 | group { name: "elm/frame/base/outdent_bottom"; | ||
359 | images { | ||
360 | image: "outdent-bottom.png" COMP; | ||
361 | } | ||
362 | parts { | ||
363 | part { name: "base0"; | ||
364 | mouse_events: 0; | ||
365 | description { state: "default" 0.0; | ||
366 | image.normal: "outdent-bottom.png"; | ||
367 | image.border: 0 0 13 0; | ||
368 | fill.smooth: 0; | ||
369 | } | ||
370 | } | ||
371 | part { name: "elm.swallow.content"; | ||
372 | type: SWALLOW; | ||
373 | description { state: "default" 0.0; | ||
374 | rel1.offset: 2 12; | ||
375 | rel2.offset: -3 -3; | ||
376 | } | ||
377 | } | ||
378 | } | ||
379 | } | ||
380 | |||
diff --git a/libraries/elementary/data/themes/widgets/gengrid.edc b/libraries/elementary/data/themes/widgets/gengrid.edc new file mode 100644 index 0000000..44b02f6 --- /dev/null +++ b/libraries/elementary/data/themes/widgets/gengrid.edc | |||
@@ -0,0 +1,1474 @@ | |||
1 | group { name: "elm/gengrid/item/default/default"; | ||
2 | data.item: "texts" "elm.text"; | ||
3 | data.item: "contents" "elm.swallow.icon elm.swallow.end"; | ||
4 | images { | ||
5 | image: "bt_sm_base1.png" COMP; | ||
6 | image: "bt_sm_shine.png" COMP; | ||
7 | image: "bt_sm_hilight.png" COMP; | ||
8 | image: "ilist_1.png" COMP; | ||
9 | image: "ilist_item_shadow.png" COMP; | ||
10 | } | ||
11 | parts { | ||
12 | part { name: "event"; | ||
13 | type: RECT; | ||
14 | repeat_events: 1; | ||
15 | description { | ||
16 | state: "default" 0.0; | ||
17 | color: 0 0 0 0; | ||
18 | } | ||
19 | } | ||
20 | part { name: "reorder_bg"; | ||
21 | mouse_events: 0; | ||
22 | description { state: "default" 0.0; | ||
23 | visible: 0; | ||
24 | color: 255 255 255 0; | ||
25 | rel1 { | ||
26 | relative: 0.0 0.0; | ||
27 | offset: -10 -10; | ||
28 | } | ||
29 | rel2 { | ||
30 | relative: 1.0 1.0; | ||
31 | offset: 12 12; | ||
32 | } | ||
33 | image { | ||
34 | normal: "bt_bases.png"; | ||
35 | border: 6 6 6 6; | ||
36 | } | ||
37 | } | ||
38 | description { state: "enabled" 0.0; | ||
39 | inherit: "default" 0.0; | ||
40 | visible: 1; | ||
41 | color: 255 255 255 255; | ||
42 | } | ||
43 | } | ||
44 | part { name: "base_sh"; | ||
45 | mouse_events: 0; | ||
46 | description { state: "default" 0.0; | ||
47 | align: 0.0 0.0; | ||
48 | min: 0 10; | ||
49 | fixed: 1 1; | ||
50 | rel1 { | ||
51 | to: "base"; | ||
52 | relative: 0.0 1.0; | ||
53 | offset: 0 0; | ||
54 | } | ||
55 | rel2 { | ||
56 | to: "base"; | ||
57 | relative: 1.0 1.0; | ||
58 | offset: -1 0; | ||
59 | } | ||
60 | image { | ||
61 | normal: "ilist_item_shadow.png"; | ||
62 | } | ||
63 | fill.smooth: 0; | ||
64 | } | ||
65 | } | ||
66 | part { name: "base"; | ||
67 | mouse_events: 0; | ||
68 | description { state: "default" 0.0; | ||
69 | image { | ||
70 | normal: "ilist_1.png"; | ||
71 | border: 2 2 2 2; | ||
72 | } | ||
73 | fill.smooth: 0; | ||
74 | } | ||
75 | } | ||
76 | part { name: "bg"; | ||
77 | clip_to: "disclip"; | ||
78 | mouse_events: 0; | ||
79 | description { state: "default" 0.0; | ||
80 | visible: 0; | ||
81 | color: 255 255 255 0; | ||
82 | rel1 { | ||
83 | relative: 0.0 0.0; | ||
84 | offset: -5 -5; | ||
85 | } | ||
86 | rel2 { | ||
87 | relative: 1.0 1.0; | ||
88 | offset: 4 4; | ||
89 | } | ||
90 | image { | ||
91 | normal: "bt_sm_base1.png"; | ||
92 | border: 6 6 6 6; | ||
93 | } | ||
94 | image.middle: SOLID; | ||
95 | } | ||
96 | description { state: "selected" 0.0; | ||
97 | inherit: "default" 0.0; | ||
98 | visible: 1; | ||
99 | color: 255 255 255 255; | ||
100 | rel1 { | ||
101 | relative: 0.0 0.0; | ||
102 | offset: -2 -2; | ||
103 | } | ||
104 | rel2 { | ||
105 | relative: 1.0 1.0; | ||
106 | offset: 1 1; | ||
107 | } | ||
108 | } | ||
109 | } | ||
110 | part { name: "elm.swallow.pad"; | ||
111 | type: SWALLOW; | ||
112 | description { state: "default" 0.0; | ||
113 | fixed: 1 0; | ||
114 | align: 0.0 0.5; | ||
115 | rel1 { | ||
116 | relative: 0.0 1.0; | ||
117 | offset: 0 -10; | ||
118 | } | ||
119 | rel2 { | ||
120 | to_y: "elm.text"; | ||
121 | relative: 0.0 0.0; | ||
122 | offset: -1 -1; | ||
123 | } | ||
124 | } | ||
125 | } | ||
126 | part { name: "elm.swallow.icon"; | ||
127 | clip_to: "disclip"; | ||
128 | type: SWALLOW; | ||
129 | description { state: "default" 0.0; | ||
130 | fixed: 1 0; | ||
131 | align: 0.5 0.5; | ||
132 | rel1 { | ||
133 | relative: 0.0 0.0; | ||
134 | offset: -1 4; | ||
135 | } | ||
136 | rel2 { | ||
137 | to_y: "elm.swallow.pad"; | ||
138 | relative: 1.0 0.0; | ||
139 | offset: -1 -5; | ||
140 | } | ||
141 | } | ||
142 | } | ||
143 | part { name: "elm.swallow.end"; | ||
144 | clip_to: "disclip"; | ||
145 | type: SWALLOW; | ||
146 | description { state: "default" 0.0; | ||
147 | fixed: 1 0; | ||
148 | align: 1.0 0.0; | ||
149 | aspect: 1.0 1.0; | ||
150 | aspect_preference: HORIZONTAL; | ||
151 | rel1 { | ||
152 | relative: 1.0 0.0; | ||
153 | offset: -5 -5; | ||
154 | } | ||
155 | rel2 { | ||
156 | relative: 1.0 1.0; | ||
157 | offset: 5 5; | ||
158 | } | ||
159 | } | ||
160 | } | ||
161 | part { name: "elm.text"; | ||
162 | clip_to: "disclip"; | ||
163 | type: TEXT; | ||
164 | effect: SOFT_SHADOW; | ||
165 | mouse_events: 0; | ||
166 | scale: 1; | ||
167 | description { state: "default" 0.0; | ||
168 | rel1 { | ||
169 | relative: 0.0 1.0; | ||
170 | offset: 0 0; | ||
171 | } | ||
172 | rel2 { | ||
173 | relative: 1.0 1.0; | ||
174 | offset: -5 -5; | ||
175 | } | ||
176 | color: 0 0 0 255; | ||
177 | color3: 0 0 0 0; | ||
178 | text { | ||
179 | font: "Sans"; | ||
180 | size: 10; | ||
181 | min: 0 1; | ||
182 | align: 0.5 0.0; | ||
183 | text_class: "grid_item"; | ||
184 | } | ||
185 | } | ||
186 | description { state: "selected" 0.0; | ||
187 | inherit: "default" 0.0; | ||
188 | color: 224 224 224 255; | ||
189 | color3: 0 0 0 64; | ||
190 | } | ||
191 | } | ||
192 | part { name: "fg1"; | ||
193 | clip_to: "disclip"; | ||
194 | mouse_events: 0; | ||
195 | description { state: "default" 0.0; | ||
196 | visible: 0; | ||
197 | color: 255 255 255 0; | ||
198 | rel1.to: "bg"; | ||
199 | rel2.relative: 1.0 0.5; | ||
200 | rel2.to: "bg"; | ||
201 | image { | ||
202 | normal: "bt_sm_hilight.png"; | ||
203 | border: 6 6 6 0; | ||
204 | } | ||
205 | } | ||
206 | description { state: "selected" 0.0; | ||
207 | inherit: "default" 0.0; | ||
208 | visible: 1; | ||
209 | color: 255 255 255 255; | ||
210 | } | ||
211 | } | ||
212 | part { name: "fg2"; | ||
213 | clip_to: "disclip"; | ||
214 | mouse_events: 0; | ||
215 | description { state: "default" 0.0; | ||
216 | visible: 0; | ||
217 | color: 255 255 255 0; | ||
218 | rel1.to: "bg"; | ||
219 | rel2.to: "bg"; | ||
220 | image { | ||
221 | normal: "bt_sm_shine.png"; | ||
222 | border: 6 6 6 0; | ||
223 | } | ||
224 | } | ||
225 | description { state: "selected" 0.0; | ||
226 | inherit: "default" 0.0; | ||
227 | visible: 1; | ||
228 | color: 255 255 255 255; | ||
229 | } | ||
230 | } | ||
231 | part { name: "disclip"; | ||
232 | type: RECT; | ||
233 | description { state: "default" 0.0; | ||
234 | rel1.to: "bg"; | ||
235 | rel2.to: "bg"; | ||
236 | } | ||
237 | description { state: "disabled" 0.0; | ||
238 | inherit: "default" 0.0; | ||
239 | color: 255 255 255 64; | ||
240 | } | ||
241 | } | ||
242 | } | ||
243 | programs { | ||
244 | // signal: elm,state,%s,active | ||
245 | // a "check" item named %s went active | ||
246 | // signal: elm,state,%s,passive | ||
247 | // a "check" item named %s went passive | ||
248 | // default is passive | ||
249 | program { name: "go_active"; | ||
250 | signal: "elm,state,selected"; | ||
251 | source: "elm"; | ||
252 | action: STATE_SET "selected" 0.0; | ||
253 | target: "bg"; | ||
254 | target: "fg1"; | ||
255 | target: "fg2"; | ||
256 | target: "elm.text"; | ||
257 | } | ||
258 | program { name: "go_passive"; | ||
259 | signal: "elm,state,unselected"; | ||
260 | source: "elm"; | ||
261 | action: STATE_SET "default" 0.0; | ||
262 | target: "bg"; | ||
263 | target: "fg1"; | ||
264 | target: "fg2"; | ||
265 | target: "elm.text"; | ||
266 | transition: LINEAR 0.1; | ||
267 | } | ||
268 | program { name: "go_disabled"; | ||
269 | signal: "elm,state,disabled"; | ||
270 | source: "elm"; | ||
271 | action: STATE_SET "disabled" 0.0; | ||
272 | target: "disclip"; | ||
273 | } | ||
274 | program { name: "go_enabled"; | ||
275 | signal: "elm,state,enabled"; | ||
276 | source: "elm"; | ||
277 | action: STATE_SET "default" 0.0; | ||
278 | target: "disclip"; | ||
279 | } | ||
280 | program { name: "go_reorder_disabled"; | ||
281 | signal: "elm,state,reorder,disabled"; | ||
282 | source: "elm"; | ||
283 | action: STATE_SET "default" 0.0; | ||
284 | target: "reorder_bg"; | ||
285 | transition: DECELERATE 0.5; | ||
286 | } | ||
287 | program { name: "go_reorder_enabled"; | ||
288 | signal: "elm,state,reorder,enabled"; | ||
289 | source: "elm"; | ||
290 | action: STATE_SET "enabled" 0.0; | ||
291 | target: "reorder_bg"; | ||
292 | transition: DECELERATE 0.5; | ||
293 | } | ||
294 | } | ||
295 | } | ||
296 | group { name: "elm/gengrid/item/default_style/default"; | ||
297 | styles | ||
298 | { | ||
299 | style { name: "gengrid_style"; | ||
300 | base: "font=Sans font_size=10 align=left valign=0.5 color=#000 text_class=grid_item"; | ||
301 | tag: "br" "\n"; | ||
302 | tag: "ps" "ps"; | ||
303 | tag: "hilight" "+ font_weight=Bold"; | ||
304 | tag: "b" "+ font_weight=Bold"; | ||
305 | tag: "tab" "\t"; | ||
306 | } | ||
307 | style { name: "gengrid_selected_style"; | ||
308 | base: "font=Sans font_size=10 align=left valign=0.5 color=#fff text_class=grid_item"; | ||
309 | tag: "br" "\n"; | ||
310 | tag: "ps" "ps"; | ||
311 | tag: "hilight" "+ font_weight=Bold"; | ||
312 | tag: "b" "+ font_weight=Bold"; | ||
313 | tag: "tab" "\t"; | ||
314 | } | ||
315 | } | ||
316 | data.item: "texts" "elm.text"; | ||
317 | data.item: "contents" "elm.swallow.icon elm.swallow.end"; | ||
318 | images { | ||
319 | image: "bt_sm_base1.png" COMP; | ||
320 | image: "bt_sm_shine.png" COMP; | ||
321 | image: "bt_sm_hilight.png" COMP; | ||
322 | image: "ilist_1.png" COMP; | ||
323 | image: "ilist_item_shadow.png" COMP; | ||
324 | } | ||
325 | parts { | ||
326 | part { name: "event"; | ||
327 | type: RECT; | ||
328 | repeat_events: 1; | ||
329 | description { state: "default" 0.0; | ||
330 | color: 0 0 0 0; | ||
331 | } | ||
332 | } | ||
333 | part { name: "base_sh"; | ||
334 | mouse_events: 0; | ||
335 | description { state: "default" 0.0; | ||
336 | align: 0.0 0.0; | ||
337 | min: 0 10; | ||
338 | fixed: 1 1; | ||
339 | rel1 { | ||
340 | to: "base"; | ||
341 | relative: 0.0 1.0; | ||
342 | offset: 0 0; | ||
343 | } | ||
344 | rel2 { | ||
345 | to: "base"; | ||
346 | relative: 1.0 1.0; | ||
347 | offset: -1 0; | ||
348 | } | ||
349 | image { | ||
350 | normal: "ilist_item_shadow.png"; | ||
351 | } | ||
352 | fill.smooth: 0; | ||
353 | } | ||
354 | } | ||
355 | part { name: "base"; | ||
356 | mouse_events: 0; | ||
357 | description { state: "default" 0.0; | ||
358 | min: 16 28; | ||
359 | image { | ||
360 | normal: "ilist_1.png"; | ||
361 | border: 2 2 2 2; | ||
362 | } | ||
363 | fill.smooth: 0; | ||
364 | } | ||
365 | } | ||
366 | part { name: "bg"; | ||
367 | clip_to: "disclip"; | ||
368 | mouse_events: 0; | ||
369 | description { state: "default" 0.0; | ||
370 | visible: 0; | ||
371 | color: 255 255 255 0; | ||
372 | rel1 { | ||
373 | relative: 0.0 0.0; | ||
374 | offset: -5 -5; | ||
375 | } | ||
376 | rel2 { | ||
377 | relative: 1.0 1.0; | ||
378 | offset: 4 4; | ||
379 | } | ||
380 | image { | ||
381 | normal: "bt_sm_base1.png"; | ||
382 | border: 6 6 6 6; | ||
383 | } | ||
384 | image.middle: SOLID; | ||
385 | } | ||
386 | description { state: "selected" 0.0; | ||
387 | inherit: "default" 0.0; | ||
388 | visible: 1; | ||
389 | color: 255 255 255 255; | ||
390 | rel1 { | ||
391 | relative: 0.0 0.0; | ||
392 | offset: -2 -2; | ||
393 | } | ||
394 | rel2 { | ||
395 | relative: 1.0 1.0; | ||
396 | offset: 1 1; | ||
397 | } | ||
398 | } | ||
399 | } | ||
400 | part { name: "elm.swallow.pad"; | ||
401 | type: SWALLOW; | ||
402 | description { state: "default" 0.0; | ||
403 | fixed: 1 0; | ||
404 | align: 0.0 0.5; | ||
405 | rel1 { | ||
406 | relative: 0.0 0.0; | ||
407 | offset: 4 4; | ||
408 | } | ||
409 | rel2 { | ||
410 | relative: 0.0 1.0; | ||
411 | offset: 4 -5; | ||
412 | } | ||
413 | } | ||
414 | } | ||
415 | part { name: "elm.swallow.icon"; | ||
416 | clip_to: "disclip"; | ||
417 | type: SWALLOW; | ||
418 | description { state: "default" 0.0; | ||
419 | fixed: 1 0; | ||
420 | align: 0.0 0.5; | ||
421 | rel1 { | ||
422 | to_x: "elm.swallow.pad"; | ||
423 | relative: 1.0 0.0; | ||
424 | offset: -1 4; | ||
425 | } | ||
426 | rel2 { | ||
427 | to_x: "elm.swallow.pad"; | ||
428 | relative: 1.0 1.0; | ||
429 | offset: -1 -5; | ||
430 | } | ||
431 | } | ||
432 | } | ||
433 | part { name: "elm.swallow.end"; | ||
434 | clip_to: "disclip"; | ||
435 | type: SWALLOW; | ||
436 | description { state: "default" 0.0; | ||
437 | fixed: 1 0; | ||
438 | align: 1.0 0.5; | ||
439 | aspect: 1.0 1.0; | ||
440 | aspect_preference: VERTICAL; | ||
441 | rel1 { | ||
442 | relative: 1.0 0.0; | ||
443 | offset: -5 4; | ||
444 | } | ||
445 | rel2 { | ||
446 | relative: 1.0 1.0; | ||
447 | offset: -5 -5; | ||
448 | } | ||
449 | } | ||
450 | } | ||
451 | part { name: "elm.text"; | ||
452 | clip_to: "disclip"; | ||
453 | type: TEXTBLOCK; | ||
454 | mouse_events: 0; | ||
455 | scale: 1; | ||
456 | description { | ||
457 | state: "default" 0.0; | ||
458 | align: 0.0 0.5; | ||
459 | fixed: 0 1; | ||
460 | rel1 { | ||
461 | to_x: "elm.swallow.icon"; | ||
462 | to_y: "base"; | ||
463 | relative: 1.0 0.5; | ||
464 | offset: 0 4; | ||
465 | } | ||
466 | rel2 { | ||
467 | to_x: "elm.swallow.end"; | ||
468 | to_y: "base"; | ||
469 | relative: 0.0 0.5; | ||
470 | offset: -1 -5; | ||
471 | } | ||
472 | text { | ||
473 | style: "gengrid_style"; | ||
474 | min: 1 1; | ||
475 | } | ||
476 | } | ||
477 | description { state: "selected" 0.0; | ||
478 | inherit: "default" 0.0; | ||
479 | text { | ||
480 | style: "gengrid_selected_style"; | ||
481 | } | ||
482 | } | ||
483 | } | ||
484 | part { name: "fg1"; | ||
485 | clip_to: "disclip"; | ||
486 | mouse_events: 0; | ||
487 | description { state: "default" 0.0; | ||
488 | visible: 0; | ||
489 | color: 255 255 255 0; | ||
490 | rel1.to: "bg"; | ||
491 | rel2.relative: 1.0 0.5; | ||
492 | rel2.to: "bg"; | ||
493 | image { | ||
494 | normal: "bt_sm_hilight.png"; | ||
495 | border: 6 6 6 0; | ||
496 | } | ||
497 | } | ||
498 | description { state: "selected" 0.0; | ||
499 | inherit: "default" 0.0; | ||
500 | visible: 1; | ||
501 | color: 255 255 255 255; | ||
502 | } | ||
503 | } | ||
504 | part { name: "fg2"; | ||
505 | clip_to: "disclip"; | ||
506 | mouse_events: 0; | ||
507 | description { state: "default" 0.0; | ||
508 | visible: 0; | ||
509 | color: 255 255 255 0; | ||
510 | rel1.to: "bg"; | ||
511 | rel2.to: "bg"; | ||
512 | image { | ||
513 | normal: "bt_sm_shine.png"; | ||
514 | border: 6 6 6 0; | ||
515 | } | ||
516 | } | ||
517 | description { state: "selected" 0.0; | ||
518 | inherit: "default" 0.0; | ||
519 | visible: 1; | ||
520 | color: 255 255 255 255; | ||
521 | } | ||
522 | } | ||
523 | part { name: "disclip"; | ||
524 | type: RECT; | ||
525 | description { state: "default" 0.0; | ||
526 | rel1.to: "bg"; | ||
527 | rel2.to: "bg"; | ||
528 | } | ||
529 | description { state: "disabled" 0.0; | ||
530 | inherit: "default" 0.0; | ||
531 | color: 255 255 255 64; | ||
532 | } | ||
533 | } | ||
534 | } | ||
535 | programs { | ||
536 | // signal: elm,state,%s,active | ||
537 | // a "check" item named %s went active | ||
538 | // signal: elm,state,%s,passive | ||
539 | // a "check" item named %s went passive | ||
540 | // default is passive | ||
541 | program { name: "go_active"; | ||
542 | signal: "elm,state,selected"; | ||
543 | source: "elm"; | ||
544 | action: STATE_SET "selected" 0.0; | ||
545 | target: "bg"; | ||
546 | target: "fg1"; | ||
547 | target: "fg2"; | ||
548 | target: "elm.text"; | ||
549 | } | ||
550 | program { name: "go_passive"; | ||
551 | signal: "elm,state,unselected"; | ||
552 | source: "elm"; | ||
553 | action: STATE_SET "default" 0.0; | ||
554 | target: "bg"; | ||
555 | target: "fg1"; | ||
556 | target: "fg2"; | ||
557 | target: "elm.text"; | ||
558 | transition: LINEAR 0.1; | ||
559 | } | ||
560 | program { name: "go_disabled"; | ||
561 | signal: "elm,state,disabled"; | ||
562 | source: "elm"; | ||
563 | action: STATE_SET "disabled" 0.0; | ||
564 | target: "disclip"; | ||
565 | } | ||
566 | program { name: "go_enabled"; | ||
567 | signal: "elm,state,enabled"; | ||
568 | source: "elm"; | ||
569 | action: STATE_SET "default" 0.0; | ||
570 | target: "disclip"; | ||
571 | } | ||
572 | } | ||
573 | } | ||
574 | |||
575 | group { name: "elm/gengrid/item/up/default"; | ||
576 | data.item: "texts" "elm.text"; | ||
577 | images { | ||
578 | image: "bt_sm_base1.png" COMP; | ||
579 | image: "bt_sm_shine.png" COMP; | ||
580 | image: "bt_sm_hilight.png" COMP; | ||
581 | image: "arrow_up.png" COMP; | ||
582 | } | ||
583 | parts { | ||
584 | part { name: "event"; | ||
585 | type: RECT; | ||
586 | repeat_events: 1; | ||
587 | description { state: "default" 0.0; | ||
588 | color: 0 0 0 0; | ||
589 | } | ||
590 | } | ||
591 | part { name: "bg"; | ||
592 | clip_to: "disclip"; | ||
593 | mouse_events: 0; | ||
594 | description { state: "default" 0.0; | ||
595 | visible: 0; | ||
596 | color: 255 255 255 0; | ||
597 | rel1.offset: -3 -3; | ||
598 | rel2.offset: 2 2; | ||
599 | image { normal: "bt_sm_base1.png"; | ||
600 | border: 6 6 6 6; | ||
601 | middle: SOLID; | ||
602 | } | ||
603 | } | ||
604 | description { state: "selected" 0.0; | ||
605 | inherit: "default" 0.0; | ||
606 | visible: 1; | ||
607 | color: 255 255 255 255; | ||
608 | } | ||
609 | } | ||
610 | part { name: "image"; | ||
611 | type: IMAGE; | ||
612 | mouse_events: 0; | ||
613 | description { state: "default" 0.0; | ||
614 | aspect_preference: BOTH; | ||
615 | aspect: 1.0 1.0; | ||
616 | image.normal: "arrow_up.png"; | ||
617 | rel2 { | ||
618 | to_y: "elm.text"; | ||
619 | relative: 1.0 0.0; | ||
620 | offset: -1 -2; | ||
621 | } | ||
622 | } | ||
623 | } | ||
624 | part { name: "elm.text"; | ||
625 | clip_to: "disclip"; | ||
626 | type: TEXT; | ||
627 | effect: SOFT_SHADOW; | ||
628 | mouse_events: 0; | ||
629 | scale: 1; | ||
630 | description { state: "default" 0.0; | ||
631 | rel1 { | ||
632 | relative: 0.0 1.0; | ||
633 | offset: 20 -25; | ||
634 | } | ||
635 | rel2 { | ||
636 | relative: 1.0 1.0; | ||
637 | offset: -21 -3; | ||
638 | } | ||
639 | color: 0 0 0 255; | ||
640 | color3: 0 0 0 0; | ||
641 | text { | ||
642 | font: "Sans"; | ||
643 | size: 10; | ||
644 | min: 0 1; | ||
645 | align: 0.5 0.0; | ||
646 | text_class: "grid_item"; | ||
647 | } | ||
648 | } | ||
649 | description { state: "selected" 0.0; | ||
650 | inherit: "default" 0.0; | ||
651 | color: 224 224 224 255; | ||
652 | color3: 0 0 0 64; | ||
653 | } | ||
654 | } | ||
655 | part { name: "fg1"; | ||
656 | clip_to: "disclip"; | ||
657 | mouse_events: 0; | ||
658 | description { state: "default" 0.0; | ||
659 | visible: 0; | ||
660 | color: 255 255 255 0; | ||
661 | rel1.offset: -3 -3; | ||
662 | rel2 { | ||
663 | relative: 1.0 0.5; | ||
664 | offset: 2 -1; | ||
665 | } | ||
666 | image { | ||
667 | normal: "bt_sm_hilight.png"; | ||
668 | border: 6 6 6 0; | ||
669 | } | ||
670 | } | ||
671 | description { state: "selected" 0.0; | ||
672 | inherit: "default" 0.0; | ||
673 | visible: 1; | ||
674 | color: 255 255 255 255; | ||
675 | } | ||
676 | } | ||
677 | part { name: "fg2"; | ||
678 | clip_to: "disclip"; | ||
679 | mouse_events: 0; | ||
680 | description { state: "default" 0.0; | ||
681 | visible: 0; | ||
682 | color: 255 255 255 0; | ||
683 | rel1.offset: -3 -3; | ||
684 | rel2.offset: 2 2; | ||
685 | image { | ||
686 | normal: "bt_sm_shine.png"; | ||
687 | border: 6 6 6 0; | ||
688 | } | ||
689 | } | ||
690 | description { state: "selected" 0.0; | ||
691 | inherit: "default" 0.0; | ||
692 | visible: 1; | ||
693 | color: 255 255 255 255; | ||
694 | } | ||
695 | } | ||
696 | part { name: "disclip"; | ||
697 | type: RECT; | ||
698 | description { state: "default" 0.0; | ||
699 | rel1.to: "bg"; | ||
700 | rel2.to: "bg"; | ||
701 | } | ||
702 | description { state: "disabled" 0.0; | ||
703 | inherit: "default" 0.0; | ||
704 | color: 255 255 255 64; | ||
705 | } | ||
706 | } | ||
707 | } | ||
708 | programs { | ||
709 | program { name: "go_active"; | ||
710 | signal: "elm,state,selected"; | ||
711 | source: "elm"; | ||
712 | action: STATE_SET "selected" 0.0; | ||
713 | target: "bg"; | ||
714 | target: "fg1"; | ||
715 | target: "fg2"; | ||
716 | target: "elm.text"; | ||
717 | } | ||
718 | program { name: "go_passive"; | ||
719 | signal: "elm,state,unselected"; | ||
720 | source: "elm"; | ||
721 | action: STATE_SET "default" 0.0; | ||
722 | target: "bg"; | ||
723 | target: "fg1"; | ||
724 | target: "fg2"; | ||
725 | target: "elm.text"; | ||
726 | transition: LINEAR 0.1; | ||
727 | } | ||
728 | program { name: "go_disabled"; | ||
729 | signal: "elm,state,disabled"; | ||
730 | source: "elm"; | ||
731 | action: STATE_SET "disabled" 0.0; | ||
732 | target: "disclip"; | ||
733 | } | ||
734 | program { name: "go_enabled"; | ||
735 | signal: "elm,state,enabled"; | ||
736 | source: "elm"; | ||
737 | action: STATE_SET "default" 0.0; | ||
738 | target: "disclip"; | ||
739 | } | ||
740 | } | ||
741 | } | ||
742 | |||
743 | group { name: "elm/gengrid/item/album-preview/default"; | ||
744 | data.item: "texts" "elm.text"; | ||
745 | data.item: "contents" "elm.swallow.icon.1 elm.swallow.icon.2 elm.swallow.icon.3 elm.swallow.icon.4"; | ||
746 | data.item: "states" "have_files"; | ||
747 | images { | ||
748 | image: "bt_sm_base1.png" COMP; | ||
749 | image: "bt_sm_shine.png" COMP; | ||
750 | image: "bt_sm_hilight.png" COMP; | ||
751 | image: "icon_folder.png" COMP; | ||
752 | } | ||
753 | parts { | ||
754 | part { name: "event"; | ||
755 | type: RECT; | ||
756 | repeat_events: 1; | ||
757 | description { state: "default" 0.0; | ||
758 | color: 0 0 0 0; | ||
759 | } | ||
760 | } | ||
761 | part { name: "bg"; | ||
762 | clip_to: "disclip"; | ||
763 | mouse_events: 0; | ||
764 | description { state: "default" 0.0; | ||
765 | visible: 0; | ||
766 | color: 255 255 255 0; | ||
767 | rel1.offset: -3 -3; | ||
768 | rel2.offset: 2 2; | ||
769 | image { | ||
770 | normal: "bt_sm_base1.png"; | ||
771 | border: 6 6 6 6; | ||
772 | middle: SOLID; | ||
773 | } | ||
774 | } | ||
775 | description { state: "selected" 0.0; | ||
776 | inherit: "default" 0.0; | ||
777 | visible: 1; | ||
778 | color: 255 255 255 255; | ||
779 | } | ||
780 | } | ||
781 | part { name: "image"; | ||
782 | type: IMAGE; | ||
783 | mouse_events: 0; | ||
784 | description { state: "default" 0.0; | ||
785 | aspect_preference: BOTH; | ||
786 | aspect: 1.0 1.0; | ||
787 | image.normal: "icon_folder.png"; | ||
788 | rel2 { | ||
789 | to_y: "elm.text"; | ||
790 | relative: 1.0 0.0; | ||
791 | offset: -1 -2; | ||
792 | } | ||
793 | } | ||
794 | } | ||
795 | part { name: "have-files-clipper"; | ||
796 | type: RECT; | ||
797 | description { state: "default" 0.0; | ||
798 | color: 255 255 255 0; | ||
799 | visible: 0; | ||
800 | } | ||
801 | description { state: "visible" 0.0; | ||
802 | inherit: "default" 0.0; | ||
803 | color: 255 255 255 255; | ||
804 | visible: 1; | ||
805 | } | ||
806 | } | ||
807 | part { name: "icon_box_margin"; | ||
808 | type: RECT; | ||
809 | mouse_events: 0; | ||
810 | clip_to: "have-files-clipper"; | ||
811 | description { state: "default" 0.0; | ||
812 | color: 0 0 0 255; | ||
813 | rel1 { | ||
814 | to: "icon_box"; | ||
815 | offset: -1 -1; | ||
816 | } | ||
817 | rel2 { | ||
818 | to: "icon_box"; | ||
819 | offset: 0 0; | ||
820 | } | ||
821 | } | ||
822 | } | ||
823 | part { name: "icon_box"; | ||
824 | type: RECT; | ||
825 | mouse_events: 0; | ||
826 | clip_to: "have-files-clipper"; | ||
827 | description { state: "default" 0.0; | ||
828 | color: 255 255 255 255; | ||
829 | align: 1.0 1.0; | ||
830 | min: 32 32; | ||
831 | rel1 { | ||
832 | relative: 0.25 0.25; | ||
833 | offset: 0 0; | ||
834 | } | ||
835 | rel2 { | ||
836 | relative: 1.0 0.0; | ||
837 | offset: -11 -4; | ||
838 | to_y: "elm.text"; | ||
839 | } | ||
840 | } | ||
841 | } | ||
842 | part { name: "elm.swallow.icon.1"; | ||
843 | type: SWALLOW; | ||
844 | mouse_events: 0; | ||
845 | clip_to: "have-files-clipper"; | ||
846 | description { state: "default" 0.0; | ||
847 | rel1 { | ||
848 | relative: 0.0 0.0; | ||
849 | to: "icon_box"; | ||
850 | } | ||
851 | rel2 { | ||
852 | relative: 0.5 0.5; | ||
853 | offset: -1 -1; | ||
854 | to: "icon_box"; | ||
855 | } | ||
856 | } | ||
857 | } | ||
858 | part { name: "elm.swallow.icon.2"; | ||
859 | type: SWALLOW; | ||
860 | mouse_events: 0; | ||
861 | clip_to: "have-files-clipper"; | ||
862 | description { state: "default" 0.0; | ||
863 | rel1 { | ||
864 | relative: 0.5 0.0; | ||
865 | to: "icon_box"; | ||
866 | } | ||
867 | rel2 { | ||
868 | relative: 1.0 0.5; | ||
869 | offset: -1 -1; | ||
870 | to: "icon_box"; | ||
871 | } | ||
872 | } | ||
873 | } | ||
874 | part { name: "elm.swallow.icon.3"; | ||
875 | type: SWALLOW; | ||
876 | mouse_events: 0; | ||
877 | clip_to: "have-files-clipper"; | ||
878 | description { state: "default" 0.0; | ||
879 | rel1 { | ||
880 | relative: 0.0 0.5; | ||
881 | to: "icon_box"; | ||
882 | } | ||
883 | rel2 { | ||
884 | relative: 0.5 1.0; | ||
885 | offset: -1 -1; | ||
886 | to: "icon_box"; | ||
887 | } | ||
888 | } | ||
889 | } | ||
890 | part { name: "elm.swallow.icon.4"; | ||
891 | type: SWALLOW; | ||
892 | mouse_events: 0; | ||
893 | clip_to: "have-files-clipper"; | ||
894 | description { state: "default" 0.0; | ||
895 | rel1 { | ||
896 | relative: 0.5 0.5; | ||
897 | to: "icon_box"; | ||
898 | } | ||
899 | rel2 { | ||
900 | relative: 1.0 1.0; | ||
901 | offset: -1 -1; | ||
902 | to: "icon_box"; | ||
903 | } | ||
904 | } | ||
905 | } | ||
906 | part { name: "elm.text"; | ||
907 | clip_to: "disclip"; | ||
908 | type: TEXT; | ||
909 | effect: SOFT_SHADOW; | ||
910 | mouse_events: 0; | ||
911 | scale: 1; | ||
912 | description { state: "default" 0.0; | ||
913 | rel1 { | ||
914 | relative: 0.0 1.0; | ||
915 | offset: 20 -30; | ||
916 | } | ||
917 | rel2 { | ||
918 | relative: 1.0 1.0; | ||
919 | offset: -21 -15; | ||
920 | } | ||
921 | color: 0 0 0 255; | ||
922 | color3: 0 0 0 0; | ||
923 | text { | ||
924 | font: "Sans"; | ||
925 | size: 10; | ||
926 | min: 0 1; | ||
927 | align: 0.5 0.0; | ||
928 | text_class: "grid_item"; | ||
929 | } | ||
930 | } | ||
931 | description { state: "selected" 0.0; | ||
932 | inherit: "default" 0.0; | ||
933 | color: 255 255 255 255; | ||
934 | } | ||
935 | } | ||
936 | part { name: "fg1"; | ||
937 | clip_to: "disclip"; | ||
938 | mouse_events: 0; | ||
939 | description { state: "default" 0.0; | ||
940 | visible: 0; | ||
941 | color: 255 255 255 0; | ||
942 | rel1.offset: -3 -3; | ||
943 | rel2 { | ||
944 | relative: 1.0 0.5; | ||
945 | offset: 2 -1; | ||
946 | } | ||
947 | image { | ||
948 | normal: "bt_sm_hilight.png"; | ||
949 | border: 6 6 6 0; | ||
950 | } | ||
951 | } | ||
952 | description { state: "selected" 0.0; | ||
953 | inherit: "default" 0.0; | ||
954 | visible: 1; | ||
955 | color: 255 255 255 255; | ||
956 | } | ||
957 | } | ||
958 | part { name: "fg2"; | ||
959 | clip_to: "disclip"; | ||
960 | mouse_events: 0; | ||
961 | description { state: "default" 0.0; | ||
962 | visible: 0; | ||
963 | color: 255 255 255 0; | ||
964 | rel1.offset: -3 -3; | ||
965 | rel2.offset: 2 2; | ||
966 | image { | ||
967 | normal: "bt_sm_shine.png"; | ||
968 | border: 6 6 6 0; | ||
969 | } | ||
970 | } | ||
971 | description { state: "selected" 0.0; | ||
972 | inherit: "default" 0.0; | ||
973 | visible: 1; | ||
974 | color: 255 255 255 255; | ||
975 | } | ||
976 | } | ||
977 | part { name: "disclip"; | ||
978 | type: RECT; | ||
979 | description { state: "default" 0.0; | ||
980 | rel1.to: "bg"; | ||
981 | rel2.to: "bg"; | ||
982 | } | ||
983 | description { state: "disabled" 0.0; | ||
984 | inherit: "default" 0.0; | ||
985 | color: 255 255 255 64; | ||
986 | } | ||
987 | } | ||
988 | } | ||
989 | programs { | ||
990 | program { name: "go_active"; | ||
991 | signal: "elm,state,selected"; | ||
992 | source: "elm"; | ||
993 | action: STATE_SET "selected" 0.0; | ||
994 | target: "bg"; | ||
995 | target: "fg1"; | ||
996 | target: "fg2"; | ||
997 | target: "elm.text"; | ||
998 | } | ||
999 | program { name: "go_passive"; | ||
1000 | signal: "elm,state,unselected"; | ||
1001 | source: "elm"; | ||
1002 | action: STATE_SET "default" 0.0; | ||
1003 | target: "bg"; | ||
1004 | target: "fg1"; | ||
1005 | target: "fg2"; | ||
1006 | target: "elm.text"; | ||
1007 | transition: LINEAR 0.1; | ||
1008 | } | ||
1009 | program { name: "go_disabled"; | ||
1010 | signal: "elm,state,disabled"; | ||
1011 | source: "elm"; | ||
1012 | action: STATE_SET "disabled" 0.0; | ||
1013 | target: "disclip"; | ||
1014 | } | ||
1015 | program { name: "go_enabled"; | ||
1016 | signal: "elm,state,enabled"; | ||
1017 | source: "elm"; | ||
1018 | action: STATE_SET "default" 0.0; | ||
1019 | target: "disclip"; | ||
1020 | } | ||
1021 | program { | ||
1022 | signal: "elm,state,have_files,active"; | ||
1023 | source: "elm"; | ||
1024 | action: STATE_SET "visible" 0.0; | ||
1025 | target: "have-files-clipper"; | ||
1026 | } | ||
1027 | } | ||
1028 | } | ||
1029 | |||
1030 | group { name: "elm/gengrid/item/thumb/default"; | ||
1031 | data { | ||
1032 | item: "contents" "elm.swallow.icon"; | ||
1033 | item: "texts" "elm.text"; | ||
1034 | } | ||
1035 | images { | ||
1036 | image: "bt_sm_base1.png" COMP; | ||
1037 | image: "bt_sm_shine.png" COMP; | ||
1038 | image: "bt_sm_hilight.png" COMP; | ||
1039 | image: "thumb_shadow.png" COMP; | ||
1040 | } | ||
1041 | parts { | ||
1042 | part { name: "event"; | ||
1043 | type: RECT; | ||
1044 | repeat_events: 1; | ||
1045 | description { state: "default" 0.0; | ||
1046 | color: 0 0 0 0; | ||
1047 | } | ||
1048 | } | ||
1049 | part { name: "bg"; | ||
1050 | mouse_events: 0; | ||
1051 | description { state: "default" 0.0; | ||
1052 | visible: 0; | ||
1053 | color: 255 255 255 0; | ||
1054 | rel1.offset: -3 -3; | ||
1055 | rel2.offset: 2 2; | ||
1056 | image { | ||
1057 | normal: "bt_sm_base1.png"; | ||
1058 | border: 6 6 6 6; | ||
1059 | middle: SOLID; | ||
1060 | } | ||
1061 | } | ||
1062 | description { state: "selected" 0.0; | ||
1063 | inherit: "default" 0.0; | ||
1064 | visible: 1; | ||
1065 | color: 255 255 255 255; | ||
1066 | } | ||
1067 | } | ||
1068 | part { name: "border-shadow"; | ||
1069 | type: IMAGE; | ||
1070 | mouse_events: 0; | ||
1071 | description { state: "default" 0.0; | ||
1072 | rel1 { | ||
1073 | to: "elm.swallow.icon"; | ||
1074 | offset: -18 -18; | ||
1075 | } | ||
1076 | rel2 { | ||
1077 | to_x: "elm.swallow.icon"; | ||
1078 | to_y: "elm.text"; | ||
1079 | offset: 17 17; | ||
1080 | } | ||
1081 | image { | ||
1082 | normal: "thumb_shadow.png"; | ||
1083 | border: 17 17 17 17; | ||
1084 | middle: NONE; | ||
1085 | } | ||
1086 | } | ||
1087 | } | ||
1088 | part { name: "border"; | ||
1089 | type: RECT; | ||
1090 | mouse_events: 0; | ||
1091 | description { state: "default" 0.0; | ||
1092 | rel1 { | ||
1093 | to: "border-shadow"; | ||
1094 | offset: 16 16; | ||
1095 | } | ||
1096 | rel2 { | ||
1097 | to: "border-shadow"; | ||
1098 | offset: -15 -15; | ||
1099 | } | ||
1100 | } | ||
1101 | } | ||
1102 | part { name: "elm.swallow.icon"; | ||
1103 | type: SWALLOW; | ||
1104 | mouse_events: 0; | ||
1105 | description { state: "default" 0.0; | ||
1106 | aspect_preference: BOTH; | ||
1107 | aspect: 1.0 1.0; | ||
1108 | rel1.offset: 0 8; | ||
1109 | rel2 { | ||
1110 | to_y: "elm.text"; | ||
1111 | relative: 1.0 0.0; | ||
1112 | offset: -1 -2; | ||
1113 | } | ||
1114 | } | ||
1115 | } | ||
1116 | part { name: "elm.text"; | ||
1117 | type: TEXT; | ||
1118 | effect: SOFT_SHADOW; | ||
1119 | mouse_events: 0; | ||
1120 | scale: 1; | ||
1121 | description { state: "default" 0.0; | ||
1122 | color: 0 0 0 255; | ||
1123 | color3: 0 0 0 0; | ||
1124 | align: 0.5 1.0; | ||
1125 | rel1 { | ||
1126 | relative: 0.0 1.0; | ||
1127 | offset: 20 -30; | ||
1128 | } | ||
1129 | rel2 { | ||
1130 | relative: 1.0 1.0; | ||
1131 | offset: -21 -15; | ||
1132 | } | ||
1133 | text { | ||
1134 | font: "Sans"; | ||
1135 | size: 10; | ||
1136 | min: 0 1; | ||
1137 | align: 0.5 0.0; | ||
1138 | text_class: "grid_item"; | ||
1139 | } | ||
1140 | } | ||
1141 | } | ||
1142 | part { name: "fg1"; | ||
1143 | mouse_events: 0; | ||
1144 | description { state: "default" 0.0; | ||
1145 | visible: 0; | ||
1146 | color: 255 255 255 0; | ||
1147 | rel1.offset: -3 -3; | ||
1148 | rel2 { | ||
1149 | relative: 1.0 0.5; | ||
1150 | offset: 2 -1; | ||
1151 | } | ||
1152 | image { | ||
1153 | normal: "bt_sm_hilight.png"; | ||
1154 | border: 6 6 6 0; | ||
1155 | } | ||
1156 | } | ||
1157 | description { state: "selected" 0.0; | ||
1158 | inherit: "default" 0.0; | ||
1159 | visible: 1; | ||
1160 | color: 255 255 255 255; | ||
1161 | } | ||
1162 | } | ||
1163 | part { name: "fg2"; | ||
1164 | mouse_events: 0; | ||
1165 | description { state: "default" 0.0; | ||
1166 | visible: 0; | ||
1167 | color: 255 255 255 0; | ||
1168 | rel1.offset: -3 -3; | ||
1169 | rel2.offset: 2 2; | ||
1170 | image { | ||
1171 | image: "bt_sm_shine.png"; | ||
1172 | border: 6 6 6 0; | ||
1173 | } | ||
1174 | } | ||
1175 | description { state: "selected" 0.0; | ||
1176 | inherit: "default" 0.0; | ||
1177 | visible: 1; | ||
1178 | color: 255 255 255 255; | ||
1179 | } | ||
1180 | } | ||
1181 | } | ||
1182 | programs { | ||
1183 | program { | ||
1184 | signal: "elm,state,selected"; | ||
1185 | source: "elm"; | ||
1186 | action: STATE_SET "selected" 0.0; | ||
1187 | target: "bg"; | ||
1188 | target: "fg1"; | ||
1189 | target: "fg2"; | ||
1190 | } | ||
1191 | program { | ||
1192 | signal: "elm,state,unselected"; | ||
1193 | source: "elm"; | ||
1194 | action: STATE_SET "default" 0.0; | ||
1195 | target: "bg"; | ||
1196 | target: "fg1"; | ||
1197 | target: "fg2"; | ||
1198 | transition: LINEAR 0.1; | ||
1199 | } | ||
1200 | } | ||
1201 | } | ||
1202 | group { name: "elm/gengrid/item/group_index/default"; | ||
1203 | data.item: "selectraise" "on"; | ||
1204 | data.item: "texts" "elm.text"; | ||
1205 | data.item: "contents" "elm.swallow.icon elm.swallow.end"; | ||
1206 | // data.item: "states" ""; | ||
1207 | images { | ||
1208 | image: "bt_sm_base1.png" COMP; | ||
1209 | image: "bt_sm_shine.png" COMP; | ||
1210 | image: "bt_sm_hilight.png" COMP; | ||
1211 | image: "ilist_item_shadow.png" COMP; | ||
1212 | image: "group_index.png" COMP; | ||
1213 | } | ||
1214 | parts { | ||
1215 | part { | ||
1216 | name: "event"; | ||
1217 | type: RECT; | ||
1218 | repeat_events: 0; | ||
1219 | description { | ||
1220 | state: "default" 0.0; | ||
1221 | color: 0 0 0 0; | ||
1222 | } | ||
1223 | } | ||
1224 | part { | ||
1225 | name: "base_sh"; | ||
1226 | mouse_events: 0; | ||
1227 | description { | ||
1228 | state: "default" 0.0; | ||
1229 | align: 0.0 0.0; | ||
1230 | min: 0 10; | ||
1231 | fixed: 1 1; | ||
1232 | rel1 { | ||
1233 | to: "base"; | ||
1234 | relative: 0.0 1.0; | ||
1235 | offset: 0 0; | ||
1236 | } | ||
1237 | rel2 { | ||
1238 | to: "base"; | ||
1239 | relative: 1.0 1.0; | ||
1240 | offset: -1 0; | ||
1241 | } | ||
1242 | image { | ||
1243 | normal: "ilist_item_shadow.png"; | ||
1244 | } | ||
1245 | fill.smooth: 0; | ||
1246 | } | ||
1247 | } | ||
1248 | part { | ||
1249 | name: "base"; | ||
1250 | mouse_events: 0; | ||
1251 | description { | ||
1252 | state: "default" 0.0; | ||
1253 | image { | ||
1254 | normal: "group_index.png"; | ||
1255 | border: 2 2 2 2; | ||
1256 | } | ||
1257 | fill.smooth: 0; | ||
1258 | } | ||
1259 | } | ||
1260 | part { name: "bg"; | ||
1261 | clip_to: "disclip"; | ||
1262 | mouse_events: 0; | ||
1263 | description { state: "default" 0.0; | ||
1264 | visible: 0; | ||
1265 | color: 255 255 255 0; | ||
1266 | rel1 { | ||
1267 | relative: 0.0 0.0; | ||
1268 | offset: -5 -5; | ||
1269 | } | ||
1270 | rel2 { | ||
1271 | relative: 1.0 1.0; | ||
1272 | offset: 4 4; | ||
1273 | } | ||
1274 | image { | ||
1275 | normal: "bt_sm_base1.png"; | ||
1276 | border: 6 6 6 6; | ||
1277 | } | ||
1278 | image.middle: SOLID; | ||
1279 | } | ||
1280 | description { state: "selected" 0.0; | ||
1281 | inherit: "default" 0.0; | ||
1282 | visible: 1; | ||
1283 | color: 255 255 255 255; | ||
1284 | rel1 { | ||
1285 | relative: 0.0 0.0; | ||
1286 | offset: -2 -2; | ||
1287 | } | ||
1288 | rel2 { | ||
1289 | relative: 1.0 1.0; | ||
1290 | offset: 1 1; | ||
1291 | } | ||
1292 | } | ||
1293 | } | ||
1294 | part { name: "elm.swallow.pad"; | ||
1295 | type: SWALLOW; | ||
1296 | description { state: "default" 0.0; | ||
1297 | fixed: 1 0; | ||
1298 | align: 0.0 0.5; | ||
1299 | rel1 { | ||
1300 | relative: 0.0 0.0; | ||
1301 | offset: 4 4; | ||
1302 | } | ||
1303 | rel2 { | ||
1304 | relative: 0.0 1.0; | ||
1305 | offset: 4 -5; | ||
1306 | } | ||
1307 | } | ||
1308 | } | ||
1309 | part { name: "elm.swallow.icon"; | ||
1310 | clip_to: "disclip"; | ||
1311 | type: SWALLOW; | ||
1312 | description { state: "default" 0.0; | ||
1313 | fixed: 1 0; | ||
1314 | align: 0.0 0.5; | ||
1315 | rel1 { | ||
1316 | to_x: "elm.swallow.pad"; | ||
1317 | relative: 1.0 0.0; | ||
1318 | offset: -1 4; | ||
1319 | } | ||
1320 | rel2 { | ||
1321 | to_x: "elm.swallow.pad"; | ||
1322 | relative: 1.0 1.0; | ||
1323 | offset: -1 -5; | ||
1324 | } | ||
1325 | } | ||
1326 | } | ||
1327 | part { name: "elm.swallow.end"; | ||
1328 | clip_to: "disclip"; | ||
1329 | type: SWALLOW; | ||
1330 | description { state: "default" 0.0; | ||
1331 | fixed: 1 0; | ||
1332 | align: 1.0 0.5; | ||
1333 | aspect: 1.0 1.0; | ||
1334 | aspect_preference: VERTICAL; | ||
1335 | rel1 { | ||
1336 | relative: 1.0 0.0; | ||
1337 | offset: -5 4; | ||
1338 | } | ||
1339 | rel2 { | ||
1340 | relative: 1.0 1.0; | ||
1341 | offset: -5 -5; | ||
1342 | } | ||
1343 | } | ||
1344 | } | ||
1345 | part { name: "elm.text"; | ||
1346 | clip_to: "disclip"; | ||
1347 | type: TEXT; | ||
1348 | effect: SOFT_SHADOW; | ||
1349 | mouse_events: 0; | ||
1350 | scale: 1; | ||
1351 | description { | ||
1352 | state: "default" 0.0; | ||
1353 | // min: 16 16; | ||
1354 | rel1 { | ||
1355 | to_x: "elm.swallow.icon"; | ||
1356 | relative: 1.0 0.0; | ||
1357 | offset: 0 4; | ||
1358 | } | ||
1359 | rel2 { | ||
1360 | to_x: "elm.swallow.end"; | ||
1361 | relative: 0.0 1.0; | ||
1362 | offset: -1 -5; | ||
1363 | } | ||
1364 | color: 0 0 0 255; | ||
1365 | color3: 0 0 0 0; | ||
1366 | text { | ||
1367 | font: "Sans"; | ||
1368 | size: 10; | ||
1369 | min: 1 1; | ||
1370 | // min: 0 1; | ||
1371 | align: -1.0 0.5; | ||
1372 | text_class: "list_item"; | ||
1373 | } | ||
1374 | } | ||
1375 | description { state: "selected" 0.0; | ||
1376 | inherit: "default" 0.0; | ||
1377 | color: 224 224 224 255; | ||
1378 | color3: 0 0 0 64; | ||
1379 | } | ||
1380 | } | ||
1381 | part { name: "fg1"; | ||
1382 | clip_to: "disclip"; | ||
1383 | mouse_events: 0; | ||
1384 | description { state: "default" 0.0; | ||
1385 | visible: 0; | ||
1386 | color: 255 255 255 0; | ||
1387 | rel1.to: "bg"; | ||
1388 | rel2.relative: 1.0 0.5; | ||
1389 | rel2.to: "bg"; | ||
1390 | image { | ||
1391 | normal: "bt_sm_hilight.png"; | ||
1392 | border: 6 6 6 0; | ||
1393 | } | ||
1394 | } | ||
1395 | description { state: "selected" 0.0; | ||
1396 | inherit: "default" 0.0; | ||
1397 | visible: 1; | ||
1398 | color: 255 255 255 255; | ||
1399 | } | ||
1400 | } | ||
1401 | part { name: "fg2"; | ||
1402 | clip_to: "disclip"; | ||
1403 | mouse_events: 0; | ||
1404 | description { state: "default" 0.0; | ||
1405 | visible: 0; | ||
1406 | color: 255 255 255 0; | ||
1407 | rel1.to: "bg"; | ||
1408 | rel2.to: "bg"; | ||
1409 | image { | ||
1410 | normal: "bt_sm_shine.png"; | ||
1411 | border: 6 6 6 0; | ||
1412 | } | ||
1413 | } | ||
1414 | description { state: "selected" 0.0; | ||
1415 | inherit: "default" 0.0; | ||
1416 | visible: 1; | ||
1417 | color: 255 255 255 255; | ||
1418 | } | ||
1419 | } | ||
1420 | part { name: "disclip"; | ||
1421 | type: RECT; | ||
1422 | description { state: "default" 0.0; | ||
1423 | rel1.to: "bg"; | ||
1424 | rel2.to: "bg"; | ||
1425 | } | ||
1426 | description { state: "disabled" 0.0; | ||
1427 | inherit: "default" 0.0; | ||
1428 | color: 255 255 255 64; | ||
1429 | } | ||
1430 | } | ||
1431 | } | ||
1432 | programs { | ||
1433 | // signal: elm,state,%s,active | ||
1434 | // a "check" item named %s went active | ||
1435 | // signal: elm,state,%s,passive | ||
1436 | // a "check" item named %s went passive | ||
1437 | // default is passive | ||
1438 | program { | ||
1439 | name: "go_active"; | ||
1440 | signal: "elm,state,selected"; | ||
1441 | source: "elm"; | ||
1442 | action: STATE_SET "selected" 0.0; | ||
1443 | target: "bg"; | ||
1444 | target: "fg1"; | ||
1445 | target: "fg2"; | ||
1446 | target: "elm.text"; | ||
1447 | } | ||
1448 | program { | ||
1449 | name: "go_passive"; | ||
1450 | signal: "elm,state,unselected"; | ||
1451 | source: "elm"; | ||
1452 | action: STATE_SET "default" 0.0; | ||
1453 | target: "bg"; | ||
1454 | target: "fg1"; | ||
1455 | target: "fg2"; | ||
1456 | target: "elm.text"; | ||
1457 | transition: LINEAR 0.1; | ||
1458 | } | ||
1459 | program { | ||
1460 | name: "go_disabled"; | ||
1461 | signal: "elm,state,disabled"; | ||
1462 | source: "elm"; | ||
1463 | action: STATE_SET "disabled" 0.0; | ||
1464 | target: "disclip"; | ||
1465 | } | ||
1466 | program { | ||
1467 | name: "go_enabled"; | ||
1468 | signal: "elm,state,enabled"; | ||
1469 | source: "elm"; | ||
1470 | action: STATE_SET "default" 0.0; | ||
1471 | target: "disclip"; | ||
1472 | } | ||
1473 | } | ||
1474 | } | ||
diff --git a/libraries/elementary/data/themes/widgets/genlist.edc b/libraries/elementary/data/themes/widgets/genlist.edc new file mode 100644 index 0000000..a831d9f --- /dev/null +++ b/libraries/elementary/data/themes/widgets/genlist.edc | |||
@@ -0,0 +1,10192 @@ | |||
1 | group { name: "elm/genlist/item/default/default"; | ||
2 | data.item: "selectraise" "on"; | ||
3 | data.item: "texts" "elm.text"; | ||
4 | data.item: "contents" "elm.swallow.icon elm.swallow.end"; | ||
5 | data.item: "treesize" "20"; | ||
6 | data.item: "flips" "elm.text.flip"; | ||
7 | // data.item: "states" ""; | ||
8 | images { | ||
9 | image: "bt_sm_base1.png" COMP; | ||
10 | image: "bt_sm_shine.png" COMP; | ||
11 | image: "bt_sm_hilight.png" COMP; | ||
12 | image: "ilist_1.png" COMP; | ||
13 | image: "ilist_2.png" COMP; | ||
14 | image: "ilist_item_shadow.png" COMP; | ||
15 | } | ||
16 | parts { | ||
17 | part { | ||
18 | name: "event"; | ||
19 | type: RECT; | ||
20 | repeat_events: 1; | ||
21 | description { | ||
22 | state: "default" 0.0; | ||
23 | color: 0 0 0 0; | ||
24 | } | ||
25 | } | ||
26 | part { name: "reorder_bg"; | ||
27 | mouse_events: 0; | ||
28 | description { state: "default" 0.0; | ||
29 | visible: 0; | ||
30 | color: 255 255 255 0; | ||
31 | rel1 { | ||
32 | relative: 0.0 0.0; | ||
33 | offset: -7 -7; | ||
34 | } | ||
35 | rel2 { | ||
36 | relative: 1.0 1.0; | ||
37 | offset: 9 9; | ||
38 | } | ||
39 | image { | ||
40 | normal: "bt_bases.png"; | ||
41 | border: 6 6 6 6; | ||
42 | } | ||
43 | } | ||
44 | description { state: "enabled" 0.0; | ||
45 | inherit: "default" 0.0; | ||
46 | visible: 1; | ||
47 | color: 255 255 255 255; | ||
48 | } | ||
49 | } | ||
50 | part { | ||
51 | name: "base_sh"; | ||
52 | mouse_events: 0; | ||
53 | description { | ||
54 | state: "default" 0.0; | ||
55 | align: 0.0 0.0; | ||
56 | min: 0 10; | ||
57 | fixed: 1 1; | ||
58 | rel1 { | ||
59 | to: "base"; | ||
60 | relative: 0.0 1.0; | ||
61 | offset: 0 0; | ||
62 | } | ||
63 | rel2 { | ||
64 | to: "base"; | ||
65 | relative: 1.0 1.0; | ||
66 | offset: -1 0; | ||
67 | } | ||
68 | image { | ||
69 | normal: "ilist_item_shadow.png"; | ||
70 | } | ||
71 | fill.smooth: 0; | ||
72 | } | ||
73 | description { | ||
74 | state: "default" 1.0; | ||
75 | inherit: "default" 0.0; | ||
76 | visible: 0; | ||
77 | } | ||
78 | } | ||
79 | part { | ||
80 | name: "base"; | ||
81 | mouse_events: 0; | ||
82 | description { | ||
83 | state: "default" 0.0; | ||
84 | image { | ||
85 | normal: "ilist_1.png"; | ||
86 | border: 2 2 2 2; | ||
87 | } | ||
88 | fill.smooth: 0; | ||
89 | } | ||
90 | description { | ||
91 | state: "default" 1.0; | ||
92 | inherit: "default" 0.0; | ||
93 | image.normal: "ilist_2.png"; | ||
94 | } | ||
95 | } | ||
96 | part { name: "bg"; | ||
97 | clip_to: "disclip"; | ||
98 | mouse_events: 0; | ||
99 | description { state: "default" 0.0; | ||
100 | visible: 0; | ||
101 | color: 255 255 255 0; | ||
102 | rel1 { | ||
103 | relative: 0.0 0.0; | ||
104 | offset: -5 -5; | ||
105 | } | ||
106 | rel2 { | ||
107 | relative: 1.0 1.0; | ||
108 | offset: 4 4; | ||
109 | } | ||
110 | image { | ||
111 | normal: "bt_sm_base1.png"; | ||
112 | border: 6 6 6 6; | ||
113 | } | ||
114 | image.middle: SOLID; | ||
115 | } | ||
116 | description { state: "default" 1.0; | ||
117 | inherit: "default" 0.0; | ||
118 | } | ||
119 | description { state: "selected" 0.0; | ||
120 | inherit: "default" 0.0; | ||
121 | visible: 1; | ||
122 | color: 255 255 255 255; | ||
123 | rel1 { | ||
124 | relative: 0.0 0.0; | ||
125 | offset: -2 -2; | ||
126 | } | ||
127 | rel2 { | ||
128 | relative: 1.0 1.0; | ||
129 | offset: 1 1; | ||
130 | } | ||
131 | } | ||
132 | description { | ||
133 | state: "selected" 1.0; | ||
134 | inherit: "selected" 0.0; | ||
135 | } | ||
136 | } | ||
137 | part { name: "elm.swallow.pad"; | ||
138 | type: SWALLOW; | ||
139 | description { state: "default" 0.0; | ||
140 | fixed: 1 0; | ||
141 | align: 0.0 0.5; | ||
142 | rel1 { | ||
143 | relative: 0.0 0.0; | ||
144 | offset: 4 4; | ||
145 | } | ||
146 | rel2 { | ||
147 | relative: 0.0 1.0; | ||
148 | offset: 4 -5; | ||
149 | } | ||
150 | } | ||
151 | } | ||
152 | part { name: "elm.swallow.icon"; | ||
153 | clip_to: "disclip"; | ||
154 | type: SWALLOW; | ||
155 | description { state: "default" 0.0; | ||
156 | fixed: 1 0; | ||
157 | align: 0.0 0.5; | ||
158 | rel1 { | ||
159 | to_x: "elm.swallow.pad"; | ||
160 | relative: 1.0 0.0; | ||
161 | offset: -1 4; | ||
162 | } | ||
163 | rel2 { | ||
164 | to_x: "elm.swallow.pad"; | ||
165 | relative: 1.0 1.0; | ||
166 | offset: -1 -5; | ||
167 | } | ||
168 | } | ||
169 | description { state: "flip_enabled" 0.0; | ||
170 | inherit: "default" 0.0; | ||
171 | visible: 0; | ||
172 | } | ||
173 | } | ||
174 | part { name: "elm.swallow.end"; | ||
175 | clip_to: "disclip"; | ||
176 | type: SWALLOW; | ||
177 | description { state: "default" 0.0; | ||
178 | fixed: 1 0; | ||
179 | align: 1.0 0.5; | ||
180 | aspect: 1.0 1.0; | ||
181 | aspect_preference: VERTICAL; | ||
182 | rel1 { | ||
183 | relative: 1.0 0.0; | ||
184 | offset: -5 4; | ||
185 | } | ||
186 | rel2 { | ||
187 | relative: 1.0 1.0; | ||
188 | offset: -5 -5; | ||
189 | } | ||
190 | } | ||
191 | description { state: "flip_enabled" 0.0; | ||
192 | inherit: "default" 0.0; | ||
193 | visible: 0; | ||
194 | } | ||
195 | } | ||
196 | part { name: "elm.text"; | ||
197 | clip_to: "disclip"; | ||
198 | type: TEXT; | ||
199 | effect: SOFT_SHADOW; | ||
200 | mouse_events: 0; | ||
201 | scale: 1; | ||
202 | description { | ||
203 | state: "default" 0.0; | ||
204 | // min: 16 16; | ||
205 | rel1 { | ||
206 | to_x: "elm.swallow.icon"; | ||
207 | relative: 1.0 0.0; | ||
208 | offset: 0 4; | ||
209 | } | ||
210 | rel2 { | ||
211 | to_x: "elm.swallow.end"; | ||
212 | relative: 0.0 1.0; | ||
213 | offset: -1 -5; | ||
214 | } | ||
215 | color: 0 0 0 255; | ||
216 | color3: 0 0 0 0; | ||
217 | text { | ||
218 | font: "Sans"; | ||
219 | size: 10; | ||
220 | min: 1 1; | ||
221 | // min: 0 1; | ||
222 | align: -1.0 0.5; | ||
223 | text_class: "list_item"; | ||
224 | } | ||
225 | } | ||
226 | description { state: "selected" 0.0; | ||
227 | inherit: "default" 0.0; | ||
228 | color: 224 224 224 255; | ||
229 | color3: 0 0 0 64; | ||
230 | } | ||
231 | description { state: "flip_enabled" 0.0; | ||
232 | inherit: "default" 0.0; | ||
233 | visible: 0; | ||
234 | } | ||
235 | } | ||
236 | part { name: "elm.text.flip"; | ||
237 | clip_to: "disclip"; | ||
238 | type: SWALLOW; | ||
239 | scale: 1; | ||
240 | description { state: "default" 0.0; | ||
241 | visible: 0; | ||
242 | rel1.to_y: "elm.text"; | ||
243 | rel2.to_y: "elm.text"; | ||
244 | } | ||
245 | description { state: "flip_enabled" 0.0; | ||
246 | inherit: "default" 0.0; | ||
247 | visible: 1; | ||
248 | } | ||
249 | } | ||
250 | part { name: "fg1"; | ||
251 | clip_to: "disclip"; | ||
252 | mouse_events: 0; | ||
253 | description { state: "default" 0.0; | ||
254 | visible: 0; | ||
255 | color: 255 255 255 0; | ||
256 | rel1.to: "bg"; | ||
257 | rel2.relative: 1.0 0.5; | ||
258 | rel2.to: "bg"; | ||
259 | image { | ||
260 | normal: "bt_sm_hilight.png"; | ||
261 | border: 6 6 6 0; | ||
262 | } | ||
263 | } | ||
264 | description { state: "selected" 0.0; | ||
265 | inherit: "default" 0.0; | ||
266 | visible: 1; | ||
267 | color: 255 255 255 255; | ||
268 | } | ||
269 | description { | ||
270 | state: "selected" 1.0; | ||
271 | inherit: "default" 0.0; | ||
272 | visible: 1; | ||
273 | color: 255 255 255 255; | ||
274 | } | ||
275 | } | ||
276 | part { name: "fg2"; | ||
277 | clip_to: "disclip"; | ||
278 | mouse_events: 0; | ||
279 | description { state: "default" 0.0; | ||
280 | visible: 0; | ||
281 | color: 255 255 255 0; | ||
282 | rel1.to: "bg"; | ||
283 | rel2.to: "bg"; | ||
284 | image { | ||
285 | normal: "bt_sm_shine.png"; | ||
286 | border: 6 6 6 0; | ||
287 | } | ||
288 | } | ||
289 | description { state: "selected" 0.0; | ||
290 | inherit: "default" 0.0; | ||
291 | visible: 1; | ||
292 | color: 255 255 255 255; | ||
293 | } | ||
294 | description { | ||
295 | state: "selected" 1.0; | ||
296 | inherit: "default" 0.0; | ||
297 | visible: 1; | ||
298 | color: 255 255 255 255; | ||
299 | } | ||
300 | } | ||
301 | part { name: "disclip"; | ||
302 | type: RECT; | ||
303 | description { state: "default" 0.0; | ||
304 | rel1.to: "bg"; | ||
305 | rel2.to: "bg"; | ||
306 | } | ||
307 | description { state: "disabled" 0.0; | ||
308 | inherit: "default" 0.0; | ||
309 | color: 255 255 255 64; | ||
310 | } | ||
311 | } | ||
312 | } | ||
313 | programs { | ||
314 | // signal: elm,state,%s,active | ||
315 | // a "check" item named %s went active | ||
316 | // signal: elm,state,%s,passive | ||
317 | // a "check" item named %s went passive | ||
318 | // default is passive | ||
319 | program { | ||
320 | name: "odd"; | ||
321 | signal: "elm,state,odd"; | ||
322 | source: "elm"; | ||
323 | action: STATE_SET "default" 1.0; | ||
324 | target: "base_sh"; | ||
325 | target: "base"; | ||
326 | } | ||
327 | program { | ||
328 | name: "even"; | ||
329 | signal: "elm,state,even"; | ||
330 | source: "elm"; | ||
331 | action: STATE_SET "default" 0.0; | ||
332 | target: "base_sh"; | ||
333 | target: "base"; | ||
334 | } | ||
335 | program { | ||
336 | name: "go_active"; | ||
337 | signal: "elm,state,selected"; | ||
338 | source: "elm"; | ||
339 | script { | ||
340 | new st[31]; | ||
341 | new Float:vl; | ||
342 | get_state(PART:"base", st, 30, vl); | ||
343 | set_state(PART:"bg", "selected", vl); | ||
344 | set_state(PART:"fg1", "selected", vl); | ||
345 | set_state(PART:"fg2", "selected", vl); | ||
346 | set_state(PART:"elm.text", "selected", vl); | ||
347 | } | ||
348 | } | ||
349 | program { | ||
350 | name: "go_passive"; | ||
351 | signal: "elm,state,unselected"; | ||
352 | source: "elm"; | ||
353 | script { | ||
354 | new st[31]; | ||
355 | new Float:vl; | ||
356 | get_state(PART:"base", st, 30, vl); | ||
357 | set_state(PART:"bg", "default", vl); | ||
358 | set_state(PART:"fg1", "default", vl); | ||
359 | set_state(PART:"fg2", "default", vl); | ||
360 | set_state(PART:"elm.text", "default", vl); | ||
361 | } | ||
362 | } | ||
363 | program { | ||
364 | name: "go_disabled"; | ||
365 | signal: "elm,state,disabled"; | ||
366 | source: "elm"; | ||
367 | action: STATE_SET "disabled" 0.0; | ||
368 | target: "disclip"; | ||
369 | } | ||
370 | program { | ||
371 | name: "go_enabled"; | ||
372 | signal: "elm,state,enabled"; | ||
373 | source: "elm"; | ||
374 | action: STATE_SET "default" 0.0; | ||
375 | target: "disclip"; | ||
376 | } | ||
377 | program { | ||
378 | name: "go_reorder_disabled"; | ||
379 | signal: "elm,state,reorder,disabled"; | ||
380 | source: "elm"; | ||
381 | action: STATE_SET "default" 0.0; | ||
382 | target: "reorder_bg"; | ||
383 | transition: DECELERATE 0.5; | ||
384 | } | ||
385 | program { | ||
386 | name: "go_reorder_enabled"; | ||
387 | signal: "elm,state,reorder,enabled"; | ||
388 | source: "elm"; | ||
389 | action: STATE_SET "enabled" 0.0; | ||
390 | target: "reorder_bg"; | ||
391 | transition: DECELERATE 0.5; | ||
392 | } | ||
393 | program { name: "flip_enabled"; | ||
394 | signal: "elm,state,flip,enabled"; | ||
395 | source: "elm"; | ||
396 | action: STATE_SET "flip_enabled" 0.0; | ||
397 | target: "elm.text"; | ||
398 | target: "elm.text.flip"; | ||
399 | target: "elm.swallow.icon"; | ||
400 | target: "elm.swallow.end"; | ||
401 | } | ||
402 | program { name: "flip_disabled"; | ||
403 | signal: "elm,state,flip,disabled"; | ||
404 | source: "elm"; | ||
405 | action: STATE_SET "default" 0.0; | ||
406 | target: "elm.text"; | ||
407 | target: "elm.text.flip"; | ||
408 | target: "elm.swallow.icon"; | ||
409 | target: "elm.swallow.end"; | ||
410 | } | ||
411 | } | ||
412 | } | ||
413 | group { name: "elm/genlist/item/group_index/default"; | ||
414 | alias: "elm/genlist/item_compress/group_index/default"; | ||
415 | data.item: "selectraise" "on"; | ||
416 | data.item: "texts" "elm.text"; | ||
417 | data.item: "contents" "elm.swallow.icon elm.swallow.end"; | ||
418 | data.item: "treesize" "20"; | ||
419 | // data.item: "states" ""; | ||
420 | images { | ||
421 | image: "bt_sm_base1.png" COMP; | ||
422 | image: "bt_sm_shine.png" COMP; | ||
423 | image: "bt_sm_hilight.png" COMP; | ||
424 | image: "ilist_item_shadow.png" COMP; | ||
425 | image: "group_index.png" COMP; | ||
426 | } | ||
427 | parts { | ||
428 | part { | ||
429 | name: "event"; | ||
430 | type: RECT; | ||
431 | repeat_events: 0; | ||
432 | description { | ||
433 | state: "default" 0.0; | ||
434 | color: 0 0 0 0; | ||
435 | } | ||
436 | } | ||
437 | part { | ||
438 | name: "base_sh"; | ||
439 | mouse_events: 0; | ||
440 | description { | ||
441 | state: "default" 0.0; | ||
442 | align: 0.0 0.0; | ||
443 | min: 0 10; | ||
444 | fixed: 1 1; | ||
445 | rel1 { | ||
446 | to: "base"; | ||
447 | relative: 0.0 1.0; | ||
448 | offset: 0 0; | ||
449 | } | ||
450 | rel2 { | ||
451 | to: "base"; | ||
452 | relative: 1.0 1.0; | ||
453 | offset: -1 0; | ||
454 | } | ||
455 | image { | ||
456 | normal: "ilist_item_shadow.png"; | ||
457 | } | ||
458 | fill.smooth: 0; | ||
459 | } | ||
460 | } | ||
461 | part { | ||
462 | name: "base"; | ||
463 | mouse_events: 0; | ||
464 | description { | ||
465 | state: "default" 0.0; | ||
466 | image { | ||
467 | normal: "group_index.png"; | ||
468 | border: 2 2 2 2; | ||
469 | } | ||
470 | fill.smooth: 0; | ||
471 | } | ||
472 | } | ||
473 | part { name: "bg"; | ||
474 | clip_to: "disclip"; | ||
475 | mouse_events: 0; | ||
476 | description { state: "default" 0.0; | ||
477 | visible: 0; | ||
478 | color: 255 255 255 0; | ||
479 | rel1 { | ||
480 | relative: 0.0 0.0; | ||
481 | offset: -5 -5; | ||
482 | } | ||
483 | rel2 { | ||
484 | relative: 1.0 1.0; | ||
485 | offset: 4 4; | ||
486 | } | ||
487 | image { | ||
488 | normal: "bt_sm_base1.png"; | ||
489 | border: 6 6 6 6; | ||
490 | } | ||
491 | image.middle: SOLID; | ||
492 | } | ||
493 | description { state: "selected" 0.0; | ||
494 | inherit: "default" 0.0; | ||
495 | visible: 1; | ||
496 | color: 255 255 255 255; | ||
497 | rel1 { | ||
498 | relative: 0.0 0.0; | ||
499 | offset: -2 -2; | ||
500 | } | ||
501 | rel2 { | ||
502 | relative: 1.0 1.0; | ||
503 | offset: 1 1; | ||
504 | } | ||
505 | } | ||
506 | } | ||
507 | part { name: "elm.swallow.pad"; | ||
508 | type: SWALLOW; | ||
509 | description { state: "default" 0.0; | ||
510 | fixed: 1 0; | ||
511 | align: 0.0 0.5; | ||
512 | rel1 { | ||
513 | relative: 0.0 0.0; | ||
514 | offset: 4 4; | ||
515 | } | ||
516 | rel2 { | ||
517 | relative: 0.0 1.0; | ||
518 | offset: 4 -5; | ||
519 | } | ||
520 | } | ||
521 | } | ||
522 | part { name: "elm.swallow.icon"; | ||
523 | clip_to: "disclip"; | ||
524 | type: SWALLOW; | ||
525 | description { state: "default" 0.0; | ||
526 | fixed: 1 0; | ||
527 | align: 0.0 0.5; | ||
528 | rel1 { | ||
529 | to_x: "elm.swallow.pad"; | ||
530 | relative: 1.0 0.0; | ||
531 | offset: -1 4; | ||
532 | } | ||
533 | rel2 { | ||
534 | to_x: "elm.swallow.pad"; | ||
535 | relative: 1.0 1.0; | ||
536 | offset: -1 -5; | ||
537 | } | ||
538 | } | ||
539 | } | ||
540 | part { name: "elm.swallow.end"; | ||
541 | clip_to: "disclip"; | ||
542 | type: SWALLOW; | ||
543 | description { state: "default" 0.0; | ||
544 | fixed: 1 0; | ||
545 | align: 1.0 0.5; | ||
546 | aspect: 1.0 1.0; | ||
547 | aspect_preference: VERTICAL; | ||
548 | rel1 { | ||
549 | relative: 1.0 0.0; | ||
550 | offset: -5 4; | ||
551 | } | ||
552 | rel2 { | ||
553 | relative: 1.0 1.0; | ||
554 | offset: -5 -5; | ||
555 | } | ||
556 | } | ||
557 | } | ||
558 | part { name: "elm.text"; | ||
559 | clip_to: "disclip"; | ||
560 | type: TEXT; | ||
561 | effect: SOFT_SHADOW; | ||
562 | mouse_events: 0; | ||
563 | scale: 1; | ||
564 | description { | ||
565 | state: "default" 0.0; | ||
566 | // min: 16 16; | ||
567 | rel1 { | ||
568 | to_x: "elm.swallow.icon"; | ||
569 | relative: 1.0 0.0; | ||
570 | offset: 0 4; | ||
571 | } | ||
572 | rel2 { | ||
573 | to_x: "elm.swallow.end"; | ||
574 | relative: 0.0 1.0; | ||
575 | offset: -1 -5; | ||
576 | } | ||
577 | color: 0 0 0 255; | ||
578 | color3: 0 0 0 0; | ||
579 | text { | ||
580 | font: "Sans"; | ||
581 | size: 10; | ||
582 | min: 1 1; | ||
583 | // min: 0 1; | ||
584 | align: -1.0 0.5; | ||
585 | text_class: "list_item"; | ||
586 | } | ||
587 | } | ||
588 | description { state: "selected" 0.0; | ||
589 | inherit: "default" 0.0; | ||
590 | color: 224 224 224 255; | ||
591 | color3: 0 0 0 64; | ||
592 | } | ||
593 | } | ||
594 | part { name: "fg1"; | ||
595 | clip_to: "disclip"; | ||
596 | mouse_events: 0; | ||
597 | description { state: "default" 0.0; | ||
598 | visible: 0; | ||
599 | color: 255 255 255 0; | ||
600 | rel1.to: "bg"; | ||
601 | rel2.relative: 1.0 0.5; | ||
602 | rel2.to: "bg"; | ||
603 | image { | ||
604 | normal: "bt_sm_hilight.png"; | ||
605 | border: 6 6 6 0; | ||
606 | } | ||
607 | } | ||
608 | description { state: "selected" 0.0; | ||
609 | inherit: "default" 0.0; | ||
610 | visible: 1; | ||
611 | color: 255 255 255 255; | ||
612 | } | ||
613 | } | ||
614 | part { name: "fg2"; | ||
615 | clip_to: "disclip"; | ||
616 | mouse_events: 0; | ||
617 | description { state: "default" 0.0; | ||
618 | visible: 0; | ||
619 | color: 255 255 255 0; | ||
620 | rel1.to: "bg"; | ||
621 | rel2.to: "bg"; | ||
622 | image { | ||
623 | normal: "bt_sm_shine.png"; | ||
624 | border: 6 6 6 0; | ||
625 | } | ||
626 | } | ||
627 | description { state: "selected" 0.0; | ||
628 | inherit: "default" 0.0; | ||
629 | visible: 1; | ||
630 | color: 255 255 255 255; | ||
631 | } | ||
632 | } | ||
633 | part { name: "disclip"; | ||
634 | type: RECT; | ||
635 | description { state: "default" 0.0; | ||
636 | rel1.to: "bg"; | ||
637 | rel2.to: "bg"; | ||
638 | } | ||
639 | description { state: "disabled" 0.0; | ||
640 | inherit: "default" 0.0; | ||
641 | color: 255 255 255 64; | ||
642 | } | ||
643 | } | ||
644 | } | ||
645 | programs { | ||
646 | // signal: elm,state,%s,active | ||
647 | // a "check" item named %s went active | ||
648 | // signal: elm,state,%s,passive | ||
649 | // a "check" item named %s went passive | ||
650 | // default is passive | ||
651 | program { | ||
652 | name: "go_active"; | ||
653 | signal: "elm,state,selected"; | ||
654 | source: "elm"; | ||
655 | action: STATE_SET "selected" 0.0; | ||
656 | target: "bg"; | ||
657 | target: "fg1"; | ||
658 | target: "fg2"; | ||
659 | target: "elm.text"; | ||
660 | } | ||
661 | program { | ||
662 | name: "go_passive"; | ||
663 | signal: "elm,state,unselected"; | ||
664 | source: "elm"; | ||
665 | action: STATE_SET "default" 0.0; | ||
666 | target: "bg"; | ||
667 | target: "fg1"; | ||
668 | target: "fg2"; | ||
669 | target: "elm.text"; | ||
670 | transition: LINEAR 0.1; | ||
671 | } | ||
672 | program { | ||
673 | name: "go_disabled"; | ||
674 | signal: "elm,state,disabled"; | ||
675 | source: "elm"; | ||
676 | action: STATE_SET "disabled" 0.0; | ||
677 | target: "disclip"; | ||
678 | } | ||
679 | program { | ||
680 | name: "go_enabled"; | ||
681 | signal: "elm,state,enabled"; | ||
682 | source: "elm"; | ||
683 | action: STATE_SET "default" 0.0; | ||
684 | target: "disclip"; | ||
685 | } | ||
686 | } | ||
687 | } | ||
688 | group { name: "elm/genlist/item_compress/message/default"; | ||
689 | data.item: "selectraise" "on"; | ||
690 | data.item: "texts" "elm.title.1 elm.title.2 elm.text"; | ||
691 | // data.item: "contents" "elm.swallow.icon elm.swallow.end"; | ||
692 | data.item: "treesize" "20"; | ||
693 | // data.item: "states" ""; | ||
694 | images { | ||
695 | image: "bt_sm_base1.png" COMP; | ||
696 | image: "bt_sm_shine.png" COMP; | ||
697 | image: "bt_sm_hilight.png" COMP; | ||
698 | image: "ilist_1.png" COMP; | ||
699 | image: "ilist_2.png" COMP; | ||
700 | image: "ilist_item_shadow.png" COMP; | ||
701 | } | ||
702 | styles { | ||
703 | style { name: "genlist_textblock_style"; | ||
704 | base: "font=Sans font_size=10 color=#000 wrap=char text_class=list_item"; | ||
705 | tag: "br" "\n"; | ||
706 | tag: "ps" "ps"; | ||
707 | tag: "tab" "\t"; | ||
708 | } | ||
709 | style { name: "genlist_textblock_style2"; | ||
710 | base: "font=Sans font_size=10 color=#fff wrap=char text_class=list_item"; | ||
711 | tag: "br" "\n"; | ||
712 | tag: "ps" "ps"; | ||
713 | tag: "tab" "\t"; | ||
714 | } | ||
715 | } | ||
716 | parts { | ||
717 | part { | ||
718 | name: "event"; | ||
719 | type: RECT; | ||
720 | repeat_events: 1; | ||
721 | description { | ||
722 | state: "default" 0.0; | ||
723 | color: 0 0 0 0; | ||
724 | } | ||
725 | } | ||
726 | part { | ||
727 | name: "base_sh"; | ||
728 | mouse_events: 0; | ||
729 | description { | ||
730 | state: "default" 0.0; | ||
731 | align: 0.0 0.0; | ||
732 | min: 0 10; | ||
733 | fixed: 1 1; | ||
734 | rel1 { | ||
735 | to: "base"; | ||
736 | relative: 0.0 1.0; | ||
737 | offset: 0 0; | ||
738 | } | ||
739 | rel2 { | ||
740 | to: "base"; | ||
741 | relative: 1.0 1.0; | ||
742 | offset: -1 0; | ||
743 | } | ||
744 | image { | ||
745 | normal: "ilist_item_shadow.png"; | ||
746 | } | ||
747 | fill.smooth: 0; | ||
748 | } | ||
749 | description { | ||
750 | state: "default" 1.0; | ||
751 | inherit: "default" 0.0; | ||
752 | visible: 0; | ||
753 | } | ||
754 | } | ||
755 | part { | ||
756 | name: "base"; | ||
757 | mouse_events: 0; | ||
758 | description { | ||
759 | state: "default" 0.0; | ||
760 | image { | ||
761 | normal: "ilist_1.png"; | ||
762 | border: 2 2 2 2; | ||
763 | } | ||
764 | fill.smooth: 0; | ||
765 | } | ||
766 | description { | ||
767 | state: "default" 1.0; | ||
768 | inherit: "default" 0.0; | ||
769 | image.normal: "ilist_2.png"; | ||
770 | } | ||
771 | } | ||
772 | part { name: "bg"; | ||
773 | clip_to: "disclip"; | ||
774 | mouse_events: 0; | ||
775 | description { state: "default" 0.0; | ||
776 | visible: 0; | ||
777 | color: 255 255 255 0; | ||
778 | rel1 { | ||
779 | relative: 0.0 0.0; | ||
780 | offset: -5 -5; | ||
781 | } | ||
782 | rel2 { | ||
783 | relative: 1.0 1.0; | ||
784 | offset: 4 4; | ||
785 | } | ||
786 | image { | ||
787 | normal: "bt_sm_base1.png"; | ||
788 | border: 6 6 6 6; | ||
789 | } | ||
790 | image.middle: SOLID; | ||
791 | } | ||
792 | description { state: "selected" 0.0; | ||
793 | inherit: "default" 0.0; | ||
794 | visible: 1; | ||
795 | color: 255 255 255 255; | ||
796 | rel1 { | ||
797 | relative: 0.0 0.0; | ||
798 | offset: -2 -2; | ||
799 | } | ||
800 | rel2 { | ||
801 | relative: 1.0 1.0; | ||
802 | offset: 1 1; | ||
803 | } | ||
804 | } | ||
805 | } | ||
806 | part { name: "elm.title.1"; | ||
807 | clip_to: "disclip"; | ||
808 | type: TEXT; | ||
809 | effect: SOFT_SHADOW; | ||
810 | mouse_events: 0; | ||
811 | scale: 1; | ||
812 | description { | ||
813 | state: "default" 0.0; | ||
814 | fixed: 0 1; | ||
815 | // min: 16 16; | ||
816 | rel1 { | ||
817 | relative: 0.0 0.0; | ||
818 | offset: 4 4; | ||
819 | } | ||
820 | rel2 { | ||
821 | relative: 1.0 0.0; | ||
822 | offset: -5 4; | ||
823 | } | ||
824 | color: 0 0 0 255; | ||
825 | color3: 0 0 0 0; | ||
826 | align: 0.0 0.0; | ||
827 | text { | ||
828 | font: "Sans"; | ||
829 | size: 10; | ||
830 | min: 0 1; | ||
831 | // min: 1 1; | ||
832 | align: 0.0 0.0; | ||
833 | text_class: "list_item"; | ||
834 | } | ||
835 | } | ||
836 | description { state: "selected" 0.0; | ||
837 | inherit: "default" 0.0; | ||
838 | color: 224 224 224 255; | ||
839 | color3: 0 0 0 64; | ||
840 | } | ||
841 | } | ||
842 | part { name: "elm.title.2"; | ||
843 | clip_to: "disclip"; | ||
844 | type: TEXT; | ||
845 | effect: SOFT_SHADOW; | ||
846 | mouse_events: 0; | ||
847 | scale: 1; | ||
848 | description { | ||
849 | state: "default" 0.0; | ||
850 | fixed: 0 1; | ||
851 | // min: 16 16; | ||
852 | rel1 { | ||
853 | to_y: "elm.title.1"; | ||
854 | relative: 0.0 1.0; | ||
855 | offset: 4 0; | ||
856 | } | ||
857 | rel2 { | ||
858 | to_y: "elm.title.1"; | ||
859 | relative: 1.0 1.0; | ||
860 | offset: -5 0; | ||
861 | } | ||
862 | color: 0 0 0 255; | ||
863 | color3: 0 0 0 0; | ||
864 | align: 0.0 0.0; | ||
865 | text { | ||
866 | font: "Sans"; | ||
867 | size: 10; | ||
868 | min: 0 1; | ||
869 | // min: 1 1; | ||
870 | align: 0.0 0.0; | ||
871 | text_class: "list_item"; | ||
872 | } | ||
873 | } | ||
874 | description { state: "selected" 0.0; | ||
875 | inherit: "default" 0.0; | ||
876 | color: 224 224 224 255; | ||
877 | color3: 0 0 0 64; | ||
878 | } | ||
879 | } | ||
880 | part { name: "elm.text"; | ||
881 | clip_to: "disclip"; | ||
882 | type: TEXTBLOCK; | ||
883 | mouse_events: 0; | ||
884 | scale: 1; | ||
885 | description { | ||
886 | state: "default" 0.0; | ||
887 | // fixed: 0 1; | ||
888 | // min: 16 16; | ||
889 | rel1 { | ||
890 | to_y: "elm.title.2"; | ||
891 | relative: 0.0 1.0; | ||
892 | offset: 4 0; | ||
893 | } | ||
894 | rel2 { | ||
895 | relative: 1.0 1.0; | ||
896 | offset: -5 -5; | ||
897 | } | ||
898 | align: 0.0 0.0; | ||
899 | text { | ||
900 | style: "genlist_textblock_style"; | ||
901 | min: 0 1; | ||
902 | // min: 1 1; | ||
903 | align: 0.0 0.0; | ||
904 | } | ||
905 | } | ||
906 | description { state: "selected" 0.0; | ||
907 | inherit: "default" 0.0; | ||
908 | text { | ||
909 | style: "genlist_textblock_style2"; | ||
910 | } | ||
911 | } | ||
912 | } | ||
913 | part { name: "fg1"; | ||
914 | clip_to: "disclip"; | ||
915 | mouse_events: 0; | ||
916 | description { state: "default" 0.0; | ||
917 | visible: 0; | ||
918 | color: 255 255 255 0; | ||
919 | rel1.to: "bg"; | ||
920 | rel2.relative: 1.0 0.5; | ||
921 | rel2.to: "bg"; | ||
922 | image { | ||
923 | normal: "bt_sm_hilight.png"; | ||
924 | border: 6 6 6 0; | ||
925 | } | ||
926 | } | ||
927 | description { state: "selected" 0.0; | ||
928 | inherit: "default" 0.0; | ||
929 | visible: 1; | ||
930 | color: 255 255 255 255; | ||
931 | } | ||
932 | } | ||
933 | part { name: "fg2"; | ||
934 | clip_to: "disclip"; | ||
935 | mouse_events: 0; | ||
936 | description { state: "default" 0.0; | ||
937 | visible: 0; | ||
938 | color: 255 255 255 0; | ||
939 | rel1.to: "bg"; | ||
940 | rel2.to: "bg"; | ||
941 | image { | ||
942 | normal: "bt_sm_shine.png"; | ||
943 | border: 6 6 6 0; | ||
944 | } | ||
945 | } | ||
946 | description { state: "selected" 0.0; | ||
947 | inherit: "default" 0.0; | ||
948 | visible: 1; | ||
949 | color: 255 255 255 255; | ||
950 | } | ||
951 | } | ||
952 | part { name: "disclip"; | ||
953 | type: RECT; | ||
954 | description { state: "default" 0.0; | ||
955 | rel1.to: "bg"; | ||
956 | rel2.to: "bg"; | ||
957 | } | ||
958 | description { state: "disabled" 0.0; | ||
959 | inherit: "default" 0.0; | ||
960 | color: 255 255 255 64; | ||
961 | } | ||
962 | } | ||
963 | } | ||
964 | programs { | ||
965 | // signal: elm,state,%s,active | ||
966 | // a "check" item named %s went active | ||
967 | // signal: elm,state,%s,passive | ||
968 | // a "check" item named %s went passive | ||
969 | // default is passive | ||
970 | program { | ||
971 | name: "odd"; | ||
972 | signal: "elm,state,odd"; | ||
973 | source: "elm"; | ||
974 | action: STATE_SET "default" 1.0; | ||
975 | target: "base_sh"; | ||
976 | target: "base"; | ||
977 | } | ||
978 | program { | ||
979 | name: "even"; | ||
980 | signal: "elm,state,even"; | ||
981 | source: "elm"; | ||
982 | action: STATE_SET "default" 0.0; | ||
983 | target: "base_sh"; | ||
984 | target: "base"; | ||
985 | } | ||
986 | program { | ||
987 | name: "go_active"; | ||
988 | signal: "elm,state,selected"; | ||
989 | source: "elm"; | ||
990 | action: STATE_SET "selected" 0.0; | ||
991 | target: "bg"; | ||
992 | target: "fg1"; | ||
993 | target: "fg2"; | ||
994 | target: "elm.title.1"; | ||
995 | target: "elm.title.2"; | ||
996 | target: "elm.text"; | ||
997 | } | ||
998 | program { | ||
999 | name: "go_passive"; | ||
1000 | signal: "elm,state,unselected"; | ||
1001 | source: "elm"; | ||
1002 | action: STATE_SET "default" 0.0; | ||
1003 | target: "bg"; | ||
1004 | target: "fg1"; | ||
1005 | target: "fg2"; | ||
1006 | target: "elm.title.1"; | ||
1007 | target: "elm.title.2"; | ||
1008 | target: "elm.text"; | ||
1009 | transition: LINEAR 0.1; | ||
1010 | } | ||
1011 | program { | ||
1012 | name: "go_disabled"; | ||
1013 | signal: "elm,state,disabled"; | ||
1014 | source: "elm"; | ||
1015 | action: STATE_SET "disabled" 0.0; | ||
1016 | target: "disclip"; | ||
1017 | } | ||
1018 | program { | ||
1019 | name: "go_enabled"; | ||
1020 | signal: "elm,state,enabled"; | ||
1021 | source: "elm"; | ||
1022 | action: STATE_SET "default" 0.0; | ||
1023 | target: "disclip"; | ||
1024 | } | ||
1025 | } | ||
1026 | } | ||
1027 | |||
1028 | group { name: "elm/genlist/item_compress/default/default"; | ||
1029 | inherit: "elm/genlist/item/default/default"; | ||
1030 | data.item: "texts" "elm.text"; | ||
1031 | parts { | ||
1032 | part { name: "elm.text"; | ||
1033 | description { state: "default" 0.0; | ||
1034 | text { | ||
1035 | min: 0 1; | ||
1036 | } | ||
1037 | } | ||
1038 | } | ||
1039 | } | ||
1040 | } | ||
1041 | |||
1042 | group { name: "elm/genlist/tree/default/default"; | ||
1043 | data.item: "selectraise" "on"; | ||
1044 | data.item: "texts" "elm.text"; | ||
1045 | data.item: "contents" "elm.swallow.icon elm.swallow.end"; | ||
1046 | data.item: "treesize" "20"; | ||
1047 | // data.item: "states" ""; | ||
1048 | images { | ||
1049 | image: "bt_sm_base1.png" COMP; | ||
1050 | image: "bt_sm_shine.png" COMP; | ||
1051 | image: "bt_sm_hilight.png" COMP; | ||
1052 | image: "ilist_1.png" COMP; | ||
1053 | image: "ilist_2.png" COMP; | ||
1054 | image: "ilist_item_shadow.png" COMP; | ||
1055 | image: "icon_arrow_left.png" COMP; | ||
1056 | image: "icon_arrow_right.png" COMP; | ||
1057 | image: "icon_arrow_down.png" COMP; | ||
1058 | } | ||
1059 | parts { | ||
1060 | part { | ||
1061 | name: "event"; | ||
1062 | type: RECT; | ||
1063 | repeat_events: 1; | ||
1064 | description { | ||
1065 | state: "default" 0.0; | ||
1066 | color: 0 0 0 0; | ||
1067 | } | ||
1068 | } | ||
1069 | part { name: "reorder_bg"; | ||
1070 | mouse_events: 0; | ||
1071 | description { state: "default" 0.0; | ||
1072 | visible: 0; | ||
1073 | color: 255 255 255 0; | ||
1074 | rel1 { | ||
1075 | relative: 0.0 0.0; | ||
1076 | offset: -7 -7; | ||
1077 | } | ||
1078 | rel2 { | ||
1079 | relative: 1.0 1.0; | ||
1080 | offset: 9 9; | ||
1081 | } | ||
1082 | image { | ||
1083 | normal: "bt_bases.png"; | ||
1084 | border: 6 6 6 6; | ||
1085 | } | ||
1086 | } | ||
1087 | description { state: "enabled" 0.0; | ||
1088 | inherit: "default" 0.0; | ||
1089 | visible: 1; | ||
1090 | color: 255 255 255 255; | ||
1091 | } | ||
1092 | } | ||
1093 | part { | ||
1094 | name: "base_sh"; | ||
1095 | mouse_events: 0; | ||
1096 | description { | ||
1097 | state: "default" 0.0; | ||
1098 | align: 0.0 0.0; | ||
1099 | min: 0 10; | ||
1100 | fixed: 1 1; | ||
1101 | rel1 { | ||
1102 | to: "base"; | ||
1103 | relative: 0.0 1.0; | ||
1104 | offset: 0 0; | ||
1105 | } | ||
1106 | rel2 { | ||
1107 | to: "base"; | ||
1108 | relative: 1.0 1.0; | ||
1109 | offset: -1 0; | ||
1110 | } | ||
1111 | image { | ||
1112 | normal: "ilist_item_shadow.png"; | ||
1113 | } | ||
1114 | fill.smooth: 0; | ||
1115 | } | ||
1116 | description { | ||
1117 | state: "default" 1.0; | ||
1118 | inherit: "default" 0.0; | ||
1119 | visible: 0; | ||
1120 | } | ||
1121 | } | ||
1122 | part { | ||
1123 | name: "base"; | ||
1124 | mouse_events: 0; | ||
1125 | description { | ||
1126 | state: "default" 0.0; | ||
1127 | image { | ||
1128 | normal: "ilist_1.png"; | ||
1129 | border: 2 2 2 2; | ||
1130 | } | ||
1131 | fill.smooth: 0; | ||
1132 | } | ||
1133 | description { | ||
1134 | state: "default" 1.0; | ||
1135 | inherit: "default" 0.0; | ||
1136 | image.normal: "ilist_2.png"; | ||
1137 | } | ||
1138 | } | ||
1139 | part { name: "bg"; | ||
1140 | clip_to: "disclip"; | ||
1141 | mouse_events: 0; | ||
1142 | description { state: "default" 0.0; | ||
1143 | visible: 0; | ||
1144 | color: 255 255 255 0; | ||
1145 | rel1 { | ||
1146 | relative: 0.0 0.0; | ||
1147 | offset: -5 -5; | ||
1148 | } | ||
1149 | rel2 { | ||
1150 | relative: 1.0 1.0; | ||
1151 | offset: 4 4; | ||
1152 | } | ||
1153 | image { | ||
1154 | normal: "bt_sm_base1.png"; | ||
1155 | border: 6 6 6 6; | ||
1156 | } | ||
1157 | image.middle: SOLID; | ||
1158 | } | ||
1159 | description { state: "selected" 0.0; | ||
1160 | inherit: "default" 0.0; | ||
1161 | visible: 1; | ||
1162 | color: 255 255 255 255; | ||
1163 | rel1 { | ||
1164 | relative: 0.0 0.0; | ||
1165 | offset: -2 -2; | ||
1166 | } | ||
1167 | rel2 { | ||
1168 | relative: 1.0 1.0; | ||
1169 | offset: 1 1; | ||
1170 | } | ||
1171 | } | ||
1172 | } | ||
1173 | part { name: "elm.swallow.pad"; | ||
1174 | type: SWALLOW; | ||
1175 | description { state: "default" 0.0; | ||
1176 | fixed: 1 0; | ||
1177 | align: 0.0 0.5; | ||
1178 | rel1 { | ||
1179 | relative: 0.0 0.0; | ||
1180 | offset: 4 4; | ||
1181 | } | ||
1182 | rel2 { | ||
1183 | relative: 0.0 1.0; | ||
1184 | offset: 4 -5; | ||
1185 | } | ||
1186 | } | ||
1187 | } | ||
1188 | part { name: "arrow"; | ||
1189 | clip_to: "disclip"; | ||
1190 | ignore_flags: ON_HOLD; | ||
1191 | description { state: "default" 0.0; | ||
1192 | fixed: 1 0; | ||
1193 | align: 0.0 0.5; | ||
1194 | aspect: 1.0 1.0; | ||
1195 | rel1 { | ||
1196 | to_x: "elm.swallow.pad"; | ||
1197 | relative: 1.0 0.0; | ||
1198 | offset: -1 4; | ||
1199 | } | ||
1200 | rel2 { | ||
1201 | to_x: "elm.swallow.pad"; | ||
1202 | relative: 1.0 1.0; | ||
1203 | offset: -1 -5; | ||
1204 | } | ||
1205 | image.normal: "icon_arrow_right.png"; | ||
1206 | } | ||
1207 | description { state: "default" 0.1; | ||
1208 | inherit: "default" 0.0; | ||
1209 | image.normal: "icon_arrow_left.png"; | ||
1210 | } | ||
1211 | description { state: "active" 0.0; | ||
1212 | inherit: "default" 0.0; | ||
1213 | image.normal: "icon_arrow_down.png"; | ||
1214 | } | ||
1215 | description { state: "active" 0.1; | ||
1216 | inherit: "default" 0.0; | ||
1217 | image.normal: "icon_arrow_down.png"; | ||
1218 | } | ||
1219 | } | ||
1220 | part { name: "elm.swallow.icon"; | ||
1221 | clip_to: "disclip"; | ||
1222 | type: SWALLOW; | ||
1223 | description { state: "default" 0.0; | ||
1224 | fixed: 1 0; | ||
1225 | align: 0.0 0.5; | ||
1226 | rel1 { | ||
1227 | to_x: "arrow"; | ||
1228 | relative: 1.0 0.0; | ||
1229 | offset: 4 4; | ||
1230 | } | ||
1231 | rel2 { | ||
1232 | to_x: "arrow"; | ||
1233 | relative: 1.0 1.0; | ||
1234 | offset: 4 -5; | ||
1235 | } | ||
1236 | } | ||
1237 | } | ||
1238 | part { name: "elm.swallow.end"; | ||
1239 | clip_to: "disclip"; | ||
1240 | type: SWALLOW; | ||
1241 | description { state: "default" 0.0; | ||
1242 | fixed: 1 0; | ||
1243 | align: 1.0 0.5; | ||
1244 | aspect: 1.0 1.0; | ||
1245 | aspect_preference: VERTICAL; | ||
1246 | rel1 { | ||
1247 | relative: 1.0 0.0; | ||
1248 | offset: -5 4; | ||
1249 | } | ||
1250 | rel2 { | ||
1251 | relative: 1.0 1.0; | ||
1252 | offset: -5 -5; | ||
1253 | } | ||
1254 | } | ||
1255 | } | ||
1256 | part { name: "elm.text"; | ||
1257 | clip_to: "disclip"; | ||
1258 | type: TEXT; | ||
1259 | effect: SOFT_SHADOW; | ||
1260 | mouse_events: 0; | ||
1261 | scale: 1; | ||
1262 | description { | ||
1263 | state: "default" 0.0; | ||
1264 | // min: 16 16; | ||
1265 | rel1 { | ||
1266 | to_x: "elm.swallow.icon"; | ||
1267 | relative: 1.0 0.0; | ||
1268 | offset: 0 4; | ||
1269 | } | ||
1270 | rel2 { | ||
1271 | to_x: "elm.swallow.end"; | ||
1272 | relative: 0.0 1.0; | ||
1273 | offset: -1 -5; | ||
1274 | } | ||
1275 | color: 0 0 0 255; | ||
1276 | color3: 0 0 0 0; | ||
1277 | text { | ||
1278 | font: "Sans"; | ||
1279 | size: 10; | ||
1280 | min: 1 1; | ||
1281 | // min: 0 1; | ||
1282 | align: -1.0 0.5; | ||
1283 | text_class: "list_item"; | ||
1284 | } | ||
1285 | } | ||
1286 | description { state: "selected" 0.0; | ||
1287 | inherit: "default" 0.0; | ||
1288 | color: 224 224 224 255; | ||
1289 | color3: 0 0 0 64; | ||
1290 | } | ||
1291 | } | ||
1292 | part { name: "fg1"; | ||
1293 | clip_to: "disclip"; | ||
1294 | mouse_events: 0; | ||
1295 | description { state: "default" 0.0; | ||
1296 | visible: 0; | ||
1297 | color: 255 255 255 0; | ||
1298 | rel1.to: "bg"; | ||
1299 | rel2.relative: 1.0 0.5; | ||
1300 | rel2.to: "bg"; | ||
1301 | image { | ||
1302 | normal: "bt_sm_hilight.png"; | ||
1303 | border: 6 6 6 0; | ||
1304 | } | ||
1305 | } | ||
1306 | description { state: "selected" 0.0; | ||
1307 | inherit: "default" 0.0; | ||
1308 | visible: 1; | ||
1309 | color: 255 255 255 255; | ||
1310 | } | ||
1311 | } | ||
1312 | part { name: "fg2"; | ||
1313 | clip_to: "disclip"; | ||
1314 | mouse_events: 0; | ||
1315 | description { state: "default" 0.0; | ||
1316 | visible: 0; | ||
1317 | color: 255 255 255 0; | ||
1318 | rel1.to: "bg"; | ||
1319 | rel2.to: "bg"; | ||
1320 | image { | ||
1321 | normal: "bt_sm_shine.png"; | ||
1322 | border: 6 6 6 0; | ||
1323 | } | ||
1324 | } | ||
1325 | description { state: "selected" 0.0; | ||
1326 | inherit: "default" 0.0; | ||
1327 | visible: 1; | ||
1328 | color: 255 255 255 255; | ||
1329 | } | ||
1330 | } | ||
1331 | part { name: "disclip"; | ||
1332 | type: RECT; | ||
1333 | description { state: "default" 0.0; | ||
1334 | rel1.to: "bg"; | ||
1335 | rel2.to: "bg"; | ||
1336 | } | ||
1337 | description { state: "disabled" 0.0; | ||
1338 | inherit: "default" 0.0; | ||
1339 | color: 255 255 255 64; | ||
1340 | } | ||
1341 | } | ||
1342 | } | ||
1343 | programs { | ||
1344 | // signal: elm,state,%s,active | ||
1345 | // a "check" item named %s went active | ||
1346 | // signal: elm,state,%s,passive | ||
1347 | // a "check" item named %s went passive | ||
1348 | // default is passive | ||
1349 | program { | ||
1350 | name: "odd"; | ||
1351 | signal: "elm,state,odd"; | ||
1352 | source: "elm"; | ||
1353 | action: STATE_SET "default" 1.0; | ||
1354 | target: "base_sh"; | ||
1355 | target: "base"; | ||
1356 | } | ||
1357 | program { | ||
1358 | name: "even"; | ||
1359 | signal: "elm,state,even"; | ||
1360 | source: "elm"; | ||
1361 | action: STATE_SET "default" 0.0; | ||
1362 | target: "base_sh"; | ||
1363 | target: "base"; | ||
1364 | } | ||
1365 | program { | ||
1366 | name: "go_active"; | ||
1367 | signal: "elm,state,selected"; | ||
1368 | source: "elm"; | ||
1369 | action: STATE_SET "selected" 0.0; | ||
1370 | target: "bg"; | ||
1371 | target: "fg1"; | ||
1372 | target: "fg2"; | ||
1373 | target: "elm.text"; | ||
1374 | } | ||
1375 | program { | ||
1376 | name: "go_passive"; | ||
1377 | signal: "elm,state,unselected"; | ||
1378 | source: "elm"; | ||
1379 | action: STATE_SET "default" 0.0; | ||
1380 | target: "bg"; | ||
1381 | target: "fg1"; | ||
1382 | target: "fg2"; | ||
1383 | target: "elm.text"; | ||
1384 | transition: LINEAR 0.1; | ||
1385 | } | ||
1386 | program { | ||
1387 | name: "go_disabled"; | ||
1388 | signal: "elm,state,disabled"; | ||
1389 | source: "elm"; | ||
1390 | action: STATE_SET "disabled" 0.0; | ||
1391 | target: "disclip"; | ||
1392 | } | ||
1393 | program { | ||
1394 | name: "go_enabled"; | ||
1395 | signal: "elm,state,enabled"; | ||
1396 | source: "elm"; | ||
1397 | action: STATE_SET "default" 0.0; | ||
1398 | target: "disclip"; | ||
1399 | } | ||
1400 | program { | ||
1401 | name: "go_reorder_disabled"; | ||
1402 | signal: "elm,state,reorder,disabled"; | ||
1403 | source: "elm"; | ||
1404 | action: STATE_SET "default" 0.0; | ||
1405 | target: "reorder_bg"; | ||
1406 | transition: DECELERATE 0.5; | ||
1407 | } | ||
1408 | program { | ||
1409 | name: "go_reorder_enabled"; | ||
1410 | signal: "elm,state,reorder,enabled"; | ||
1411 | source: "elm"; | ||
1412 | action: STATE_SET "enabled" 0.0; | ||
1413 | target: "reorder_bg"; | ||
1414 | transition: DECELERATE 0.5; | ||
1415 | } | ||
1416 | program { | ||
1417 | name: "expand"; | ||
1418 | signal: "mouse,up,1"; | ||
1419 | source: "arrow"; | ||
1420 | action: SIGNAL_EMIT "elm,action,expand,toggle" "elm"; | ||
1421 | } | ||
1422 | program { | ||
1423 | name: "go_expanded"; | ||
1424 | signal: "elm,state,expanded"; | ||
1425 | source: "elm"; | ||
1426 | script { | ||
1427 | new st[31]; | ||
1428 | new Float:vl; | ||
1429 | get_state(PART:"arrow", st, 30, vl); | ||
1430 | set_state(PART:"arrow", "active", vl); | ||
1431 | } | ||
1432 | } | ||
1433 | program { | ||
1434 | name: "go_contracted"; | ||
1435 | signal: "elm,state,contracted"; | ||
1436 | source: "elm"; | ||
1437 | script { | ||
1438 | new st[31]; | ||
1439 | new Float:vl; | ||
1440 | get_state(PART:"arrow", st, 30, vl); | ||
1441 | set_state(PART:"arrow", "default", vl); | ||
1442 | } | ||
1443 | } | ||
1444 | program { name: "to_rtl"; | ||
1445 | signal: "edje,state,rtl"; | ||
1446 | source: "edje"; | ||
1447 | script { | ||
1448 | new st[31]; | ||
1449 | new Float:vl; | ||
1450 | get_state(PART:"arrow", st, 30, vl); | ||
1451 | if (vl == 0.0) { | ||
1452 | set_state(PART:"arrow", st, 0.1); | ||
1453 | } | ||
1454 | } | ||
1455 | } | ||
1456 | program { name: "to_ltr"; | ||
1457 | signal: "edje,state,ltr"; | ||
1458 | source: "edje"; | ||
1459 | script { | ||
1460 | new st[31]; | ||
1461 | new Float:vl; | ||
1462 | get_state(PART:"arrow", st, 30, vl); | ||
1463 | if (vl == 0.1) { | ||
1464 | set_state(PART:"arrow", st, 0.0); | ||
1465 | } | ||
1466 | } | ||
1467 | } | ||
1468 | } | ||
1469 | } | ||
1470 | group { name: "elm/genlist/tree_compress/default/default"; | ||
1471 | data.item: "stacking" "above"; | ||
1472 | data.item: "selectraise" "on"; | ||
1473 | data.item: "texts" "elm.text"; | ||
1474 | data.item: "contents" "elm.swallow.icon elm.swallow.end"; | ||
1475 | data.item: "treesize" "20"; | ||
1476 | // data.item: "states" ""; | ||
1477 | images { | ||
1478 | image: "bt_sm_base1.png" COMP; | ||
1479 | image: "bt_sm_shine.png" COMP; | ||
1480 | image: "bt_sm_hilight.png" COMP; | ||
1481 | image: "ilist_1.png" COMP; | ||
1482 | image: "ilist_item_shadow.png" COMP; | ||
1483 | image: "icon_arrow_left.png" COMP; | ||
1484 | image: "icon_arrow_right.png" COMP; | ||
1485 | image: "icon_arrow_down.png" COMP; | ||
1486 | } | ||
1487 | parts { | ||
1488 | part { | ||
1489 | name: "event"; | ||
1490 | type: RECT; | ||
1491 | repeat_events: 1; | ||
1492 | description { | ||
1493 | state: "default" 0.0; | ||
1494 | color: 0 0 0 0; | ||
1495 | } | ||
1496 | } | ||
1497 | part { | ||
1498 | name: "base_sh"; | ||
1499 | mouse_events: 0; | ||
1500 | description { | ||
1501 | state: "default" 0.0; | ||
1502 | align: 0.0 0.0; | ||
1503 | min: 0 10; | ||
1504 | fixed: 1 1; | ||
1505 | rel1 { | ||
1506 | to: "base"; | ||
1507 | relative: 0.0 1.0; | ||
1508 | offset: 0 0; | ||
1509 | } | ||
1510 | rel2 { | ||
1511 | to: "base"; | ||
1512 | relative: 1.0 1.0; | ||
1513 | offset: -1 0; | ||
1514 | } | ||
1515 | image { | ||
1516 | normal: "ilist_item_shadow.png"; | ||
1517 | } | ||
1518 | fill.smooth: 0; | ||
1519 | } | ||
1520 | description { | ||
1521 | state: "default" 1.0; | ||
1522 | inherit: "default" 0.0; | ||
1523 | visible: 0; | ||
1524 | } | ||
1525 | } | ||
1526 | part { | ||
1527 | name: "base"; | ||
1528 | mouse_events: 0; | ||
1529 | description { | ||
1530 | state: "default" 0.0; | ||
1531 | image { | ||
1532 | normal: "ilist_1.png"; | ||
1533 | border: 2 2 2 2; | ||
1534 | } | ||
1535 | fill.smooth: 0; | ||
1536 | } | ||
1537 | description { | ||
1538 | state: "default" 1.0; | ||
1539 | inherit: "default" 0.0; | ||
1540 | image.normal: "ilist_2.png"; | ||
1541 | } | ||
1542 | } | ||
1543 | part { name: "bg"; | ||
1544 | clip_to: "disclip"; | ||
1545 | mouse_events: 0; | ||
1546 | description { state: "default" 0.0; | ||
1547 | visible: 0; | ||
1548 | color: 255 255 255 0; | ||
1549 | rel1 { | ||
1550 | relative: 0.0 0.0; | ||
1551 | offset: -5 -5; | ||
1552 | } | ||
1553 | rel2 { | ||
1554 | relative: 1.0 1.0; | ||
1555 | offset: 4 4; | ||
1556 | } | ||
1557 | image { | ||
1558 | normal: "bt_sm_base1.png"; | ||
1559 | border: 6 6 6 6; | ||
1560 | } | ||
1561 | image.middle: SOLID; | ||
1562 | } | ||
1563 | description { state: "selected" 0.0; | ||
1564 | inherit: "default" 0.0; | ||
1565 | visible: 1; | ||
1566 | color: 255 255 255 255; | ||
1567 | rel1 { | ||
1568 | relative: 0.0 0.0; | ||
1569 | offset: -2 -2; | ||
1570 | } | ||
1571 | rel2 { | ||
1572 | relative: 1.0 1.0; | ||
1573 | offset: 1 1; | ||
1574 | } | ||
1575 | } | ||
1576 | } | ||
1577 | part { name: "elm.swallow.pad"; | ||
1578 | type: SWALLOW; | ||
1579 | description { state: "default" 0.0; | ||
1580 | fixed: 1 0; | ||
1581 | align: 0.0 0.5; | ||
1582 | rel1 { | ||
1583 | relative: 0.0 0.0; | ||
1584 | offset: 4 4; | ||
1585 | } | ||
1586 | rel2 { | ||
1587 | relative: 0.0 1.0; | ||
1588 | offset: 4 -5; | ||
1589 | } | ||
1590 | } | ||
1591 | } | ||
1592 | part { name: "arrow"; | ||
1593 | clip_to: "disclip"; | ||
1594 | ignore_flags: ON_HOLD; | ||
1595 | description { state: "default" 0.0; | ||
1596 | fixed: 1 0; | ||
1597 | align: 0.0 0.5; | ||
1598 | aspect: 1.0 1.0; | ||
1599 | rel1 { | ||
1600 | to_x: "elm.swallow.pad"; | ||
1601 | relative: 1.0 0.0; | ||
1602 | offset: -1 4; | ||
1603 | } | ||
1604 | rel2 { | ||
1605 | to_x: "elm.swallow.pad"; | ||
1606 | relative: 1.0 1.0; | ||
1607 | offset: -1 -5; | ||
1608 | } | ||
1609 | image.normal: "icon_arrow_right.png"; | ||
1610 | } | ||
1611 | description { state: "default" 0.1; | ||
1612 | inherit: "default" 0.0; | ||
1613 | image.normal: "icon_arrow_left.png"; | ||
1614 | } | ||
1615 | description { state: "active" 0.0; | ||
1616 | inherit: "default" 0.0; | ||
1617 | image.normal: "icon_arrow_down.png"; | ||
1618 | } | ||
1619 | description { state: "active" 0.1; | ||
1620 | inherit: "default" 0.0; | ||
1621 | image.normal: "icon_arrow_down.png"; | ||
1622 | } | ||
1623 | } | ||
1624 | part { name: "elm.swallow.icon"; | ||
1625 | clip_to: "disclip"; | ||
1626 | type: SWALLOW; | ||
1627 | description { state: "default" 0.0; | ||
1628 | fixed: 1 0; | ||
1629 | align: 0.0 0.5; | ||
1630 | rel1 { | ||
1631 | to_x: "arrow"; | ||
1632 | relative: 1.0 0.0; | ||
1633 | offset: 4 4; | ||
1634 | } | ||
1635 | rel2 { | ||
1636 | to_x: "arrow"; | ||
1637 | relative: 1.0 1.0; | ||
1638 | offset: 4 -5; | ||
1639 | } | ||
1640 | } | ||
1641 | } | ||
1642 | part { name: "elm.swallow.end"; | ||
1643 | clip_to: "disclip"; | ||
1644 | type: SWALLOW; | ||
1645 | description { state: "default" 0.0; | ||
1646 | fixed: 1 0; | ||
1647 | align: 1.0 0.5; | ||
1648 | aspect: 1.0 1.0; | ||
1649 | aspect_preference: VERTICAL; | ||
1650 | rel1 { | ||
1651 | relative: 1.0 0.0; | ||
1652 | offset: -5 4; | ||
1653 | } | ||
1654 | rel2 { | ||
1655 | relative: 1.0 1.0; | ||
1656 | offset: -5 -5; | ||
1657 | } | ||
1658 | } | ||
1659 | } | ||
1660 | part { name: "elm.text"; | ||
1661 | clip_to: "disclip"; | ||
1662 | type: TEXT; | ||
1663 | effect: SOFT_SHADOW; | ||
1664 | mouse_events: 0; | ||
1665 | scale: 1; | ||
1666 | description { | ||
1667 | state: "default" 0.0; | ||
1668 | // min: 16 16; | ||
1669 | rel1 { | ||
1670 | to_x: "elm.swallow.icon"; | ||
1671 | relative: 1.0 0.0; | ||
1672 | offset: 0 4; | ||
1673 | } | ||
1674 | rel2 { | ||
1675 | to_x: "elm.swallow.end"; | ||
1676 | relative: 0.0 1.0; | ||
1677 | offset: -1 -5; | ||
1678 | } | ||
1679 | color: 0 0 0 255; | ||
1680 | color3: 0 0 0 0; | ||
1681 | text { | ||
1682 | font: "Sans"; | ||
1683 | size: 10; | ||
1684 | // min: 1 1; | ||
1685 | min: 0 1; | ||
1686 | align: 0.0 0.5; | ||
1687 | text_class: "list_item"; | ||
1688 | } | ||
1689 | } | ||
1690 | description { state: "selected" 0.0; | ||
1691 | inherit: "default" 0.0; | ||
1692 | color: 224 224 224 255; | ||
1693 | color3: 0 0 0 64; | ||
1694 | } | ||
1695 | } | ||
1696 | part { name: "fg1"; | ||
1697 | clip_to: "disclip"; | ||
1698 | mouse_events: 0; | ||
1699 | description { state: "default" 0.0; | ||
1700 | visible: 0; | ||
1701 | color: 255 255 255 0; | ||
1702 | rel1.to: "bg"; | ||
1703 | rel2.relative: 1.0 0.5; | ||
1704 | rel2.to: "bg"; | ||
1705 | image { | ||
1706 | normal: "bt_sm_hilight.png"; | ||
1707 | border: 6 6 6 0; | ||
1708 | } | ||
1709 | } | ||
1710 | description { state: "selected" 0.0; | ||
1711 | inherit: "default" 0.0; | ||
1712 | visible: 1; | ||
1713 | color: 255 255 255 255; | ||
1714 | } | ||
1715 | } | ||
1716 | part { name: "fg2"; | ||
1717 | clip_to: "disclip"; | ||
1718 | mouse_events: 0; | ||
1719 | description { state: "default" 0.0; | ||
1720 | visible: 0; | ||
1721 | color: 255 255 255 0; | ||
1722 | rel1.to: "bg"; | ||
1723 | rel2.to: "bg"; | ||
1724 | image { | ||
1725 | normal: "bt_sm_shine.png"; | ||
1726 | border: 6 6 6 0; | ||
1727 | } | ||
1728 | } | ||
1729 | description { state: "selected" 0.0; | ||
1730 | inherit: "default" 0.0; | ||
1731 | visible: 1; | ||
1732 | color: 255 255 255 255; | ||
1733 | } | ||
1734 | } | ||
1735 | part { name: "disclip"; | ||
1736 | type: RECT; | ||
1737 | description { state: "default" 0.0; | ||
1738 | rel1.to: "bg"; | ||
1739 | rel2.to: "bg"; | ||
1740 | } | ||
1741 | description { state: "disabled" 0.0; | ||
1742 | inherit: "default" 0.0; | ||
1743 | color: 255 255 255 64; | ||
1744 | } | ||
1745 | } | ||
1746 | } | ||
1747 | programs { | ||
1748 | // signal: elm,state,%s,active | ||
1749 | // a "check" item named %s went active | ||
1750 | // signal: elm,state,%s,passive | ||
1751 | // a "check" item named %s went passive | ||
1752 | // default is passive | ||
1753 | program { | ||
1754 | name: "odd"; | ||
1755 | signal: "elm,state,odd"; | ||
1756 | source: "elm"; | ||
1757 | action: STATE_SET "default" 1.0; | ||
1758 | target: "base_sh"; | ||
1759 | target: "base"; | ||
1760 | } | ||
1761 | program { | ||
1762 | name: "even"; | ||
1763 | signal: "elm,state,even"; | ||
1764 | source: "elm"; | ||
1765 | action: STATE_SET "default" 0.0; | ||
1766 | target: "base_sh"; | ||
1767 | target: "base"; | ||
1768 | } | ||
1769 | program { | ||
1770 | name: "go_active"; | ||
1771 | signal: "elm,state,selected"; | ||
1772 | source: "elm"; | ||
1773 | action: STATE_SET "selected" 0.0; | ||
1774 | target: "bg"; | ||
1775 | target: "fg1"; | ||
1776 | target: "fg2"; | ||
1777 | target: "elm.text"; | ||
1778 | } | ||
1779 | program { | ||
1780 | name: "go_passive"; | ||
1781 | signal: "elm,state,unselected"; | ||
1782 | source: "elm"; | ||
1783 | action: STATE_SET "default" 0.0; | ||
1784 | target: "bg"; | ||
1785 | target: "fg1"; | ||
1786 | target: "fg2"; | ||
1787 | target: "elm.text"; | ||
1788 | transition: LINEAR 0.1; | ||
1789 | } | ||
1790 | program { | ||
1791 | name: "go_disabled"; | ||
1792 | signal: "elm,state,disabled"; | ||
1793 | source: "elm"; | ||
1794 | action: STATE_SET "disabled" 0.0; | ||
1795 | target: "disclip"; | ||
1796 | } | ||
1797 | program { | ||
1798 | name: "go_enabled"; | ||
1799 | signal: "elm,state,enabled"; | ||
1800 | source: "elm"; | ||
1801 | action: STATE_SET "default" 0.0; | ||
1802 | target: "disclip"; | ||
1803 | } | ||
1804 | program { | ||
1805 | name: "expand"; | ||
1806 | signal: "mouse,up,1"; | ||
1807 | source: "arrow"; | ||
1808 | action: SIGNAL_EMIT "elm,action,expand,toggle" "elm"; | ||
1809 | } | ||
1810 | program { | ||
1811 | name: "go_expanded"; | ||
1812 | signal: "elm,state,expanded"; | ||
1813 | source: "elm"; | ||
1814 | script { | ||
1815 | new st[31]; | ||
1816 | new Float:vl; | ||
1817 | get_state(PART:"arrow", st, 30, vl); | ||
1818 | set_state(PART:"arrow", "active", vl); | ||
1819 | } | ||
1820 | } | ||
1821 | program { | ||
1822 | name: "go_contracted"; | ||
1823 | signal: "elm,state,contracted"; | ||
1824 | source: "elm"; | ||
1825 | script { | ||
1826 | new st[31]; | ||
1827 | new Float:vl; | ||
1828 | get_state(PART:"arrow", st, 30, vl); | ||
1829 | set_state(PART:"arrow", "default", vl); | ||
1830 | } | ||
1831 | } | ||
1832 | program { name: "to_rtl"; | ||
1833 | signal: "edje,state,rtl"; | ||
1834 | source: "edje"; | ||
1835 | script { | ||
1836 | new st[31]; | ||
1837 | new Float:vl; | ||
1838 | get_state(PART:"arrow", st, 30, vl); | ||
1839 | if (vl == 0.0) { | ||
1840 | set_state(PART:"arrow", st, 0.1); | ||
1841 | } | ||
1842 | } | ||
1843 | } | ||
1844 | program { name: "to_ltr"; | ||
1845 | signal: "edje,state,ltr"; | ||
1846 | source: "edje"; | ||
1847 | script { | ||
1848 | new st[31]; | ||
1849 | new Float:vl; | ||
1850 | get_state(PART:"arrow", st, 30, vl); | ||
1851 | if (vl == 0.1) { | ||
1852 | set_state(PART:"arrow", st, 0.0); | ||
1853 | } | ||
1854 | } | ||
1855 | } | ||
1856 | } | ||
1857 | } | ||
1858 | group { name: "elm/genlist/item/default_style/default"; | ||
1859 | styles | ||
1860 | { | ||
1861 | style { name: "genlist_style"; | ||
1862 | base: "font=Sans font_size=10 align=left valign=0.5 color=#000 text_class=list_item"; | ||
1863 | tag: "br" "\n"; | ||
1864 | tag: "ps" "ps"; | ||
1865 | tag: "hilight" "+ font_weight=Bold"; | ||
1866 | tag: "b" "+ font_weight=Bold"; | ||
1867 | tag: "tab" "\t"; | ||
1868 | } | ||
1869 | style { name: "genlist_selected_style"; | ||
1870 | base: "font=Sans font_size=10 align=left valign=0.5 color=#fff text_class=list_item"; | ||
1871 | tag: "br" "\n"; | ||
1872 | tag: "ps" "ps"; | ||
1873 | tag: "hilight" "+ font_weight=Bold"; | ||
1874 | tag: "b" "+ font_weight=Bold"; | ||
1875 | tag: "tab" "\t"; | ||
1876 | } | ||
1877 | } | ||
1878 | data.item: "stacking" "above"; | ||
1879 | data.item: "selectraise" "on"; | ||
1880 | data.item: "texts" "elm.text"; | ||
1881 | data.item: "contents" "elm.swallow.icon elm.swallow.end"; | ||
1882 | data.item: "treesize" "20"; | ||
1883 | images { | ||
1884 | image: "bt_sm_base1.png" COMP; | ||
1885 | image: "bt_sm_shine.png" COMP; | ||
1886 | image: "bt_sm_hilight.png" COMP; | ||
1887 | image: "ilist_1.png" COMP; | ||
1888 | image: "ilist_item_shadow.png" COMP; | ||
1889 | } | ||
1890 | parts { | ||
1891 | part { | ||
1892 | name: "event"; | ||
1893 | type: RECT; | ||
1894 | repeat_events: 1; | ||
1895 | description { | ||
1896 | state: "default" 0.0; | ||
1897 | color: 0 0 0 0; | ||
1898 | } | ||
1899 | } | ||
1900 | part { | ||
1901 | name: "base_sh"; | ||
1902 | mouse_events: 0; | ||
1903 | description { | ||
1904 | state: "default" 0.0; | ||
1905 | align: 0.0 0.0; | ||
1906 | min: 0 10; | ||
1907 | fixed: 1 1; | ||
1908 | rel1 { | ||
1909 | to: "base"; | ||
1910 | relative: 0.0 1.0; | ||
1911 | offset: 0 0; | ||
1912 | } | ||
1913 | rel2 { | ||
1914 | to: "base"; | ||
1915 | relative: 1.0 1.0; | ||
1916 | offset: -1 0; | ||
1917 | } | ||
1918 | image { | ||
1919 | normal: "ilist_item_shadow.png"; | ||
1920 | } | ||
1921 | fill.smooth: 0; | ||
1922 | } | ||
1923 | } | ||
1924 | part { | ||
1925 | name: "base"; | ||
1926 | mouse_events: 0; | ||
1927 | description { | ||
1928 | state: "default" 0.0; | ||
1929 | min: 16 28; | ||
1930 | image { | ||
1931 | normal: "ilist_1.png"; | ||
1932 | border: 2 2 2 2; | ||
1933 | } | ||
1934 | fill.smooth: 0; | ||
1935 | } | ||
1936 | } | ||
1937 | part { name: "bg"; | ||
1938 | clip_to: "disclip"; | ||
1939 | mouse_events: 0; | ||
1940 | description { state: "default" 0.0; | ||
1941 | visible: 0; | ||
1942 | color: 255 255 255 0; | ||
1943 | rel1 { | ||
1944 | relative: 0.0 0.0; | ||
1945 | offset: -5 -5; | ||
1946 | } | ||
1947 | rel2 { | ||
1948 | relative: 1.0 1.0; | ||
1949 | offset: 4 4; | ||
1950 | } | ||
1951 | image { | ||
1952 | normal: "bt_sm_base1.png"; | ||
1953 | border: 6 6 6 6; | ||
1954 | } | ||
1955 | image.middle: SOLID; | ||
1956 | } | ||
1957 | description { state: "selected" 0.0; | ||
1958 | inherit: "default" 0.0; | ||
1959 | visible: 1; | ||
1960 | color: 255 255 255 255; | ||
1961 | rel1 { | ||
1962 | relative: 0.0 0.0; | ||
1963 | offset: -2 -2; | ||
1964 | } | ||
1965 | rel2 { | ||
1966 | relative: 1.0 1.0; | ||
1967 | offset: 1 1; | ||
1968 | } | ||
1969 | } | ||
1970 | } | ||
1971 | part { name: "elm.swallow.pad"; | ||
1972 | type: SWALLOW; | ||
1973 | description { state: "default" 0.0; | ||
1974 | fixed: 1 0; | ||
1975 | align: 0.0 0.5; | ||
1976 | rel1 { | ||
1977 | relative: 0.0 0.0; | ||
1978 | offset: 4 4; | ||
1979 | } | ||
1980 | rel2 { | ||
1981 | relative: 0.0 1.0; | ||
1982 | offset: 4 -5; | ||
1983 | } | ||
1984 | } | ||
1985 | } | ||
1986 | part { name: "elm.swallow.icon"; | ||
1987 | clip_to: "disclip"; | ||
1988 | type: SWALLOW; | ||
1989 | description { state: "default" 0.0; | ||
1990 | fixed: 1 0; | ||
1991 | align: 0.0 0.5; | ||
1992 | rel1 { | ||
1993 | to_x: "elm.swallow.pad"; | ||
1994 | relative: 1.0 0.0; | ||
1995 | offset: -1 4; | ||
1996 | } | ||
1997 | rel2 { | ||
1998 | to_x: "elm.swallow.pad"; | ||
1999 | relative: 1.0 1.0; | ||
2000 | offset: -1 -5; | ||
2001 | } | ||
2002 | } | ||
2003 | } | ||
2004 | part { name: "elm.swallow.end"; | ||
2005 | clip_to: "disclip"; | ||
2006 | type: SWALLOW; | ||
2007 | description { state: "default" 0.0; | ||
2008 | fixed: 1 0; | ||
2009 | align: 1.0 0.5; | ||
2010 | aspect: 1.0 1.0; | ||
2011 | aspect_preference: VERTICAL; | ||
2012 | rel1 { | ||
2013 | relative: 1.0 0.0; | ||
2014 | offset: -5 4; | ||
2015 | } | ||
2016 | rel2 { | ||
2017 | relative: 1.0 1.0; | ||
2018 | offset: -5 -5; | ||
2019 | } | ||
2020 | } | ||
2021 | } | ||
2022 | part { name: "elm.text"; | ||
2023 | clip_to: "disclip"; | ||
2024 | type: TEXTBLOCK; | ||
2025 | mouse_events: 0; | ||
2026 | scale: 1; | ||
2027 | description { | ||
2028 | state: "default" 0.0; | ||
2029 | align: 0.0 0.5; | ||
2030 | fixed: 0 1; | ||
2031 | rel1 { | ||
2032 | to_x: "elm.swallow.icon"; | ||
2033 | to_y: "base"; | ||
2034 | relative: 1.0 0.5; | ||
2035 | offset: 0 4; | ||
2036 | } | ||
2037 | rel2 { | ||
2038 | to_x: "elm.swallow.end"; | ||
2039 | to_y: "base"; | ||
2040 | relative: 0.0 0.5; | ||
2041 | offset: -1 -5; | ||
2042 | } | ||
2043 | text { | ||
2044 | style: "genlist_style"; | ||
2045 | min: 1 1; | ||
2046 | } | ||
2047 | } | ||
2048 | description { state: "selected" 0.0; | ||
2049 | inherit: "default" 0.0; | ||
2050 | text { | ||
2051 | style: "genlist_selected_style"; | ||
2052 | } | ||
2053 | } | ||
2054 | } | ||
2055 | part { name: "fg1"; | ||
2056 | clip_to: "disclip"; | ||
2057 | mouse_events: 0; | ||
2058 | description { state: "default" 0.0; | ||
2059 | visible: 0; | ||
2060 | color: 255 255 255 0; | ||
2061 | rel1.to: "bg"; | ||
2062 | rel2.relative: 1.0 0.5; | ||
2063 | rel2.to: "bg"; | ||
2064 | image { | ||
2065 | normal: "bt_sm_hilight.png"; | ||
2066 | border: 6 6 6 0; | ||
2067 | } | ||
2068 | } | ||
2069 | description { state: "selected" 0.0; | ||
2070 | inherit: "default" 0.0; | ||
2071 | visible: 1; | ||
2072 | color: 255 255 255 255; | ||
2073 | } | ||
2074 | } | ||
2075 | part { name: "fg2"; | ||
2076 | clip_to: "disclip"; | ||
2077 | mouse_events: 0; | ||
2078 | description { state: "default" 0.0; | ||
2079 | visible: 0; | ||
2080 | color: 255 255 255 0; | ||
2081 | rel1.to: "bg"; | ||
2082 | rel2.to: "bg"; | ||
2083 | image { | ||
2084 | normal: "bt_sm_shine.png"; | ||
2085 | border: 6 6 6 0; | ||
2086 | } | ||
2087 | } | ||
2088 | description { state: "selected" 0.0; | ||
2089 | inherit: "default" 0.0; | ||
2090 | visible: 1; | ||
2091 | color: 255 255 255 255; | ||
2092 | } | ||
2093 | } | ||
2094 | part { name: "disclip"; | ||
2095 | type: RECT; | ||
2096 | description { state: "default" 0.0; | ||
2097 | rel1.to: "bg"; | ||
2098 | rel2.to: "bg"; | ||
2099 | } | ||
2100 | description { state: "disabled" 0.0; | ||
2101 | inherit: "default" 0.0; | ||
2102 | color: 255 255 255 64; | ||
2103 | } | ||
2104 | } | ||
2105 | } | ||
2106 | programs { | ||
2107 | // signal: elm,state,%s,active | ||
2108 | // a "check" item named %s went active | ||
2109 | // signal: elm,state,%s,passive | ||
2110 | // a "check" item named %s went passive | ||
2111 | // default is passive | ||
2112 | program { | ||
2113 | name: "go_active"; | ||
2114 | signal: "elm,state,selected"; | ||
2115 | source: "elm"; | ||
2116 | action: STATE_SET "selected" 0.0; | ||
2117 | target: "bg"; | ||
2118 | target: "fg1"; | ||
2119 | target: "fg2"; | ||
2120 | target: "elm.text"; | ||
2121 | } | ||
2122 | program { | ||
2123 | name: "go_passive"; | ||
2124 | signal: "elm,state,unselected"; | ||
2125 | source: "elm"; | ||
2126 | action: STATE_SET "default" 0.0; | ||
2127 | target: "bg"; | ||
2128 | target: "fg1"; | ||
2129 | target: "fg2"; | ||
2130 | target: "elm.text"; | ||
2131 | transition: LINEAR 0.1; | ||
2132 | } | ||
2133 | program { | ||
2134 | name: "go_disabled"; | ||
2135 | signal: "elm,state,disabled"; | ||
2136 | source: "elm"; | ||
2137 | action: STATE_SET "disabled" 0.0; | ||
2138 | target: "disclip"; | ||
2139 | } | ||
2140 | program { | ||
2141 | name: "go_enabled"; | ||
2142 | signal: "elm,state,enabled"; | ||
2143 | source: "elm"; | ||
2144 | action: STATE_SET "default" 0.0; | ||
2145 | target: "disclip"; | ||
2146 | } | ||
2147 | } | ||
2148 | } | ||
2149 | group { name: "elm/genlist/item_odd/default_style/default"; | ||
2150 | data.item: "stacking" "below"; | ||
2151 | data.item: "selectraise" "on"; | ||
2152 | data.item: "texts" "elm.text"; | ||
2153 | data.item: "contents" "elm.swallow.icon elm.swallow.end"; | ||
2154 | data.item: "treesize" "20"; | ||
2155 | images { | ||
2156 | image: "bt_sm_base1.png" COMP; | ||
2157 | image: "bt_sm_shine.png" COMP; | ||
2158 | image: "bt_sm_hilight.png" COMP; | ||
2159 | image: "ilist_2.png" COMP; | ||
2160 | } | ||
2161 | parts { | ||
2162 | part { name: "event"; | ||
2163 | type: RECT; | ||
2164 | repeat_events: 1; | ||
2165 | description { | ||
2166 | state: "default" 0.0; | ||
2167 | color: 0 0 0 0; | ||
2168 | } | ||
2169 | } | ||
2170 | part { | ||
2171 | name: "base"; | ||
2172 | mouse_events: 0; | ||
2173 | description { | ||
2174 | state: "default" 0.0; | ||
2175 | min: 16 28; | ||
2176 | image { | ||
2177 | normal: "ilist_2.png"; | ||
2178 | border: 2 2 2 2; | ||
2179 | } | ||
2180 | fill.smooth: 0; | ||
2181 | } | ||
2182 | } | ||
2183 | part { name: "bg"; | ||
2184 | clip_to: "disclip"; | ||
2185 | mouse_events: 0; | ||
2186 | description { state: "default" 0.0; | ||
2187 | visible: 0; | ||
2188 | color: 255 255 255 0; | ||
2189 | rel1 { | ||
2190 | relative: 0.0 0.0; | ||
2191 | offset: -5 -5; | ||
2192 | } | ||
2193 | rel2 { | ||
2194 | relative: 1.0 1.0; | ||
2195 | offset: 4 4; | ||
2196 | } | ||
2197 | image { | ||
2198 | normal: "bt_sm_base1.png"; | ||
2199 | border: 6 6 6 6; | ||
2200 | } | ||
2201 | image.middle: SOLID; | ||
2202 | } | ||
2203 | description { state: "selected" 0.0; | ||
2204 | inherit: "default" 0.0; | ||
2205 | visible: 1; | ||
2206 | color: 255 255 255 255; | ||
2207 | rel1 { | ||
2208 | relative: 0.0 0.0; | ||
2209 | offset: -2 -2; | ||
2210 | } | ||
2211 | rel2 { | ||
2212 | relative: 1.0 1.0; | ||
2213 | offset: 1 1; | ||
2214 | } | ||
2215 | } | ||
2216 | } | ||
2217 | part { name: "elm.swallow.pad"; | ||
2218 | type: SWALLOW; | ||
2219 | description { state: "default" 0.0; | ||
2220 | fixed: 1 0; | ||
2221 | align: 0.0 0.5; | ||
2222 | rel1 { | ||
2223 | relative: 0.0 0.0; | ||
2224 | offset: 4 4; | ||
2225 | } | ||
2226 | rel2 { | ||
2227 | relative: 0.0 1.0; | ||
2228 | offset: 4 -5; | ||
2229 | } | ||
2230 | } | ||
2231 | } | ||
2232 | part { name: "elm.swallow.icon"; | ||
2233 | clip_to: "disclip"; | ||
2234 | type: SWALLOW; | ||
2235 | description { state: "default" 0.0; | ||
2236 | fixed: 1 0; | ||
2237 | align: 0.0 0.5; | ||
2238 | rel1 { | ||
2239 | to_x: "elm.swallow.pad"; | ||
2240 | relative: 1.0 0.0; | ||
2241 | offset: -1 4; | ||
2242 | } | ||
2243 | rel2 { | ||
2244 | to_x: "elm.swallow.pad"; | ||
2245 | relative: 1.0 1.0; | ||
2246 | offset: -1 -5; | ||
2247 | } | ||
2248 | } | ||
2249 | } | ||
2250 | part { name: "elm.swallow.end"; | ||
2251 | clip_to: "disclip"; | ||
2252 | type: SWALLOW; | ||
2253 | description { state: "default" 0.0; | ||
2254 | fixed: 1 0; | ||
2255 | align: 1.0 0.5; | ||
2256 | aspect: 1.0 1.0; | ||
2257 | aspect_preference: VERTICAL; | ||
2258 | rel1 { | ||
2259 | relative: 1.0 0.0; | ||
2260 | offset: -5 4; | ||
2261 | } | ||
2262 | rel2 { | ||
2263 | relative: 1.0 1.0; | ||
2264 | offset: -5 -5; | ||
2265 | } | ||
2266 | } | ||
2267 | } | ||
2268 | part { name: "elm.text"; | ||
2269 | clip_to: "disclip"; | ||
2270 | type: TEXTBLOCK; | ||
2271 | mouse_events: 0; | ||
2272 | scale: 1; | ||
2273 | description { | ||
2274 | state: "default" 0.0; | ||
2275 | align: 0.0 0.5; | ||
2276 | fixed: 0 1; | ||
2277 | rel1 { | ||
2278 | to_x: "elm.swallow.icon"; | ||
2279 | to_y: "base"; | ||
2280 | relative: 1.0 0.5; | ||
2281 | offset: 0 4; | ||
2282 | } | ||
2283 | rel2 { | ||
2284 | to_x: "elm.swallow.end"; | ||
2285 | to_y: "base"; | ||
2286 | relative: 0.0 0.5; | ||
2287 | offset: -1 -5; | ||
2288 | } | ||
2289 | text { | ||
2290 | style: "genlist_style"; | ||
2291 | min: 1 1; | ||
2292 | } | ||
2293 | } | ||
2294 | description { state: "selected" 0.0; | ||
2295 | inherit: "default" 0.0; | ||
2296 | text { | ||
2297 | style: "genlist_selected_style"; | ||
2298 | } | ||
2299 | } | ||
2300 | } | ||
2301 | part { name: "fg1"; | ||
2302 | clip_to: "disclip"; | ||
2303 | mouse_events: 0; | ||
2304 | description { state: "default" 0.0; | ||
2305 | visible: 0; | ||
2306 | color: 255 255 255 0; | ||
2307 | rel1.to: "bg"; | ||
2308 | rel2.relative: 1.0 0.5; | ||
2309 | rel2.to: "bg"; | ||
2310 | image { | ||
2311 | normal: "bt_sm_hilight.png"; | ||
2312 | border: 6 6 6 0; | ||
2313 | } | ||
2314 | } | ||
2315 | description { state: "selected" 0.0; | ||
2316 | inherit: "default" 0.0; | ||
2317 | visible: 1; | ||
2318 | color: 255 255 255 255; | ||
2319 | } | ||
2320 | } | ||
2321 | part { name: "fg2"; | ||
2322 | clip_to: "disclip"; | ||
2323 | mouse_events: 0; | ||
2324 | description { state: "default" 0.0; | ||
2325 | visible: 0; | ||
2326 | color: 255 255 255 0; | ||
2327 | rel1.to: "bg"; | ||
2328 | rel2.to: "bg"; | ||
2329 | image { | ||
2330 | normal: "bt_sm_shine.png"; | ||
2331 | border: 6 6 6 0; | ||
2332 | } | ||
2333 | } | ||
2334 | description { state: "selected" 0.0; | ||
2335 | inherit: "default" 0.0; | ||
2336 | visible: 1; | ||
2337 | color: 255 255 255 255; | ||
2338 | } | ||
2339 | } | ||
2340 | part { name: "disclip"; | ||
2341 | type: RECT; | ||
2342 | description { state: "default" 0.0; | ||
2343 | rel1.to: "bg"; | ||
2344 | rel2.to: "bg"; | ||
2345 | } | ||
2346 | description { state: "disabled" 0.0; | ||
2347 | inherit: "default" 0.0; | ||
2348 | color: 255 255 255 64; | ||
2349 | } | ||
2350 | } | ||
2351 | } | ||
2352 | programs { | ||
2353 | // signal: elm,state,%s,active | ||
2354 | // a "check" item named %s went active | ||
2355 | // signal: elm,state,%s,passive | ||
2356 | // a "check" item named %s went passive | ||
2357 | // default is passive | ||
2358 | program { | ||
2359 | name: "go_active"; | ||
2360 | signal: "elm,state,selected"; | ||
2361 | source: "elm"; | ||
2362 | action: STATE_SET "selected" 0.0; | ||
2363 | target: "bg"; | ||
2364 | target: "fg1"; | ||
2365 | target: "fg2"; | ||
2366 | target: "elm.text"; | ||
2367 | } | ||
2368 | program { | ||
2369 | name: "go_passive"; | ||
2370 | signal: "elm,state,unselected"; | ||
2371 | source: "elm"; | ||
2372 | action: STATE_SET "default" 0.0; | ||
2373 | target: "bg"; | ||
2374 | target: "fg1"; | ||
2375 | target: "fg2"; | ||
2376 | target: "elm.text"; | ||
2377 | transition: LINEAR 0.1; | ||
2378 | } | ||
2379 | program { | ||
2380 | name: "go_disabled"; | ||
2381 | signal: "elm,state,disabled"; | ||
2382 | source: "elm"; | ||
2383 | action: STATE_SET "disabled" 0.0; | ||
2384 | target: "disclip"; | ||
2385 | } | ||
2386 | program { | ||
2387 | name: "go_enabled"; | ||
2388 | signal: "elm,state,enabled"; | ||
2389 | source: "elm"; | ||
2390 | action: STATE_SET "default" 0.0; | ||
2391 | target: "disclip"; | ||
2392 | } | ||
2393 | } | ||
2394 | } | ||
2395 | |||
2396 | group { name: "elm/genlist/tree/default_style/default"; | ||
2397 | data.item: "stacking" "above"; | ||
2398 | data.item: "selectraise" "on"; | ||
2399 | data.item: "texts" "elm.text"; | ||
2400 | data.item: "contents" "elm.swallow.icon elm.swallow.end"; | ||
2401 | data.item: "treesize" "20"; | ||
2402 | images { | ||
2403 | image: "bt_sm_base1.png" COMP; | ||
2404 | image: "bt_sm_shine.png" COMP; | ||
2405 | image: "bt_sm_hilight.png" COMP; | ||
2406 | image: "ilist_1.png" COMP; | ||
2407 | image: "ilist_item_shadow.png" COMP; | ||
2408 | image: "icon_arrow_right.png" COMP; | ||
2409 | image: "icon_arrow_down.png" COMP; | ||
2410 | } | ||
2411 | parts { | ||
2412 | part { | ||
2413 | name: "event"; | ||
2414 | type: RECT; | ||
2415 | repeat_events: 1; | ||
2416 | description { | ||
2417 | state: "default" 0.0; | ||
2418 | color: 0 0 0 0; | ||
2419 | } | ||
2420 | } | ||
2421 | part { | ||
2422 | name: "base_sh"; | ||
2423 | mouse_events: 0; | ||
2424 | description { | ||
2425 | state: "default" 0.0; | ||
2426 | align: 0.0 0.0; | ||
2427 | min: 0 10; | ||
2428 | fixed: 1 1; | ||
2429 | rel1 { | ||
2430 | to: "base"; | ||
2431 | relative: 0.0 1.0; | ||
2432 | offset: 0 0; | ||
2433 | } | ||
2434 | rel2 { | ||
2435 | to: "base"; | ||
2436 | relative: 1.0 1.0; | ||
2437 | offset: -1 0; | ||
2438 | } | ||
2439 | image { | ||
2440 | normal: "ilist_item_shadow.png"; | ||
2441 | } | ||
2442 | fill.smooth: 0; | ||
2443 | } | ||
2444 | } | ||
2445 | part { | ||
2446 | name: "base"; | ||
2447 | mouse_events: 0; | ||
2448 | description { | ||
2449 | state: "default" 0.0; | ||
2450 | min: 16 28; | ||
2451 | image { | ||
2452 | normal: "ilist_1.png"; | ||
2453 | border: 2 2 2 2; | ||
2454 | } | ||
2455 | fill.smooth: 0; | ||
2456 | } | ||
2457 | } | ||
2458 | part { name: "bg"; | ||
2459 | clip_to: "disclip"; | ||
2460 | mouse_events: 0; | ||
2461 | description { state: "default" 0.0; | ||
2462 | visible: 0; | ||
2463 | color: 255 255 255 0; | ||
2464 | rel1 { | ||
2465 | relative: 0.0 0.0; | ||
2466 | offset: -5 -5; | ||
2467 | } | ||
2468 | rel2 { | ||
2469 | relative: 1.0 1.0; | ||
2470 | offset: 4 4; | ||
2471 | } | ||
2472 | image { | ||
2473 | normal: "bt_sm_base1.png"; | ||
2474 | border: 6 6 6 6; | ||
2475 | } | ||
2476 | image.middle: SOLID; | ||
2477 | } | ||
2478 | description { state: "selected" 0.0; | ||
2479 | inherit: "default" 0.0; | ||
2480 | visible: 1; | ||
2481 | color: 255 255 255 255; | ||
2482 | rel1 { | ||
2483 | relative: 0.0 0.0; | ||
2484 | offset: -2 -2; | ||
2485 | } | ||
2486 | rel2 { | ||
2487 | relative: 1.0 1.0; | ||
2488 | offset: 1 1; | ||
2489 | } | ||
2490 | } | ||
2491 | } | ||
2492 | part { name: "elm.swallow.pad"; | ||
2493 | type: SWALLOW; | ||
2494 | description { state: "default" 0.0; | ||
2495 | fixed: 1 0; | ||
2496 | align: 0.0 0.5; | ||
2497 | rel1 { | ||
2498 | relative: 0.0 0.0; | ||
2499 | offset: 4 4; | ||
2500 | } | ||
2501 | rel2 { | ||
2502 | relative: 0.0 1.0; | ||
2503 | offset: 4 -5; | ||
2504 | } | ||
2505 | } | ||
2506 | } | ||
2507 | part { name: "arrow"; | ||
2508 | clip_to: "disclip"; | ||
2509 | ignore_flags: ON_HOLD; | ||
2510 | description { state: "default" 0.0; | ||
2511 | fixed: 1 0; | ||
2512 | align: 0.0 0.5; | ||
2513 | aspect: 1.0 1.0; | ||
2514 | rel1 { | ||
2515 | to_x: "elm.swallow.pad"; | ||
2516 | relative: 1.0 0.0; | ||
2517 | offset: -1 4; | ||
2518 | } | ||
2519 | rel2 { | ||
2520 | to_x: "elm.swallow.pad"; | ||
2521 | relative: 1.0 1.0; | ||
2522 | offset: -1 -5; | ||
2523 | } | ||
2524 | image.normal: "icon_arrow_right.png"; | ||
2525 | } | ||
2526 | description { state: "active" 0.0; | ||
2527 | inherit: "default" 0.0; | ||
2528 | image.normal: "icon_arrow_down.png"; | ||
2529 | } | ||
2530 | } | ||
2531 | part { name: "elm.swallow.icon"; | ||
2532 | clip_to: "disclip"; | ||
2533 | type: SWALLOW; | ||
2534 | description { state: "default" 0.0; | ||
2535 | fixed: 1 0; | ||
2536 | align: 0.0 0.5; | ||
2537 | rel1 { | ||
2538 | to_x: "arrow"; | ||
2539 | relative: 1.0 0.0; | ||
2540 | offset: 4 4; | ||
2541 | } | ||
2542 | rel2 { | ||
2543 | to_x: "arrow"; | ||
2544 | relative: 1.0 1.0; | ||
2545 | offset: 4 -5; | ||
2546 | } | ||
2547 | } | ||
2548 | } | ||
2549 | part { name: "elm.swallow.end"; | ||
2550 | clip_to: "disclip"; | ||
2551 | type: SWALLOW; | ||
2552 | description { state: "default" 0.0; | ||
2553 | fixed: 1 0; | ||
2554 | align: 1.0 0.5; | ||
2555 | aspect: 1.0 1.0; | ||
2556 | aspect_preference: VERTICAL; | ||
2557 | rel1 { | ||
2558 | relative: 1.0 0.0; | ||
2559 | offset: -5 4; | ||
2560 | } | ||
2561 | rel2 { | ||
2562 | relative: 1.0 1.0; | ||
2563 | offset: -5 -5; | ||
2564 | } | ||
2565 | } | ||
2566 | } | ||
2567 | part { name: "elm.text"; | ||
2568 | clip_to: "disclip"; | ||
2569 | type: TEXTBLOCK; | ||
2570 | effect: SOFT_SHADOW; | ||
2571 | mouse_events: 0; | ||
2572 | scale: 1; | ||
2573 | description { | ||
2574 | state: "default" 0.0; | ||
2575 | align: 0.0 0.5; | ||
2576 | fixed: 0 1; | ||
2577 | rel1 { | ||
2578 | to_x: "elm.swallow.icon"; | ||
2579 | to_y: "base"; | ||
2580 | relative: 1.0 0.5; | ||
2581 | offset: 0 4; | ||
2582 | } | ||
2583 | rel2 { | ||
2584 | to_x: "elm.swallow.end"; | ||
2585 | to_y: "base"; | ||
2586 | relative: 0.0 0.5; | ||
2587 | offset: -1 -5; | ||
2588 | } | ||
2589 | text { | ||
2590 | style: "genlist_style"; | ||
2591 | min: 1 1; | ||
2592 | } | ||
2593 | } | ||
2594 | description { state: "selected" 0.0; | ||
2595 | inherit: "default" 0.0; | ||
2596 | text { | ||
2597 | style: "genlist_selected_style"; | ||
2598 | } | ||
2599 | } | ||
2600 | } | ||
2601 | part { name: "fg1"; | ||
2602 | clip_to: "disclip"; | ||
2603 | mouse_events: 0; | ||
2604 | description { state: "default" 0.0; | ||
2605 | visible: 0; | ||
2606 | color: 255 255 255 0; | ||
2607 | rel1.to: "bg"; | ||
2608 | rel2.relative: 1.0 0.5; | ||
2609 | rel2.to: "bg"; | ||
2610 | image { | ||
2611 | normal: "bt_sm_hilight.png"; | ||
2612 | border: 6 6 6 0; | ||
2613 | } | ||
2614 | } | ||
2615 | description { state: "selected" 0.0; | ||
2616 | inherit: "default" 0.0; | ||
2617 | visible: 1; | ||
2618 | color: 255 255 255 255; | ||
2619 | } | ||
2620 | } | ||
2621 | part { name: "fg2"; | ||
2622 | clip_to: "disclip"; | ||
2623 | mouse_events: 0; | ||
2624 | description { state: "default" 0.0; | ||
2625 | visible: 0; | ||
2626 | color: 255 255 255 0; | ||
2627 | rel1.to: "bg"; | ||
2628 | rel2.to: "bg"; | ||
2629 | image { | ||
2630 | normal: "bt_sm_shine.png"; | ||
2631 | border: 6 6 6 0; | ||
2632 | } | ||
2633 | } | ||
2634 | description { state: "selected" 0.0; | ||
2635 | inherit: "default" 0.0; | ||
2636 | visible: 1; | ||
2637 | color: 255 255 255 255; | ||
2638 | } | ||
2639 | } | ||
2640 | part { name: "disclip"; | ||
2641 | type: RECT; | ||
2642 | description { state: "default" 0.0; | ||
2643 | rel1.to: "bg"; | ||
2644 | rel2.to: "bg"; | ||
2645 | } | ||
2646 | description { state: "disabled" 0.0; | ||
2647 | inherit: "default" 0.0; | ||
2648 | color: 255 255 255 64; | ||
2649 | } | ||
2650 | } | ||
2651 | } | ||
2652 | programs { | ||
2653 | // signal: elm,state,%s,active | ||
2654 | // a "check" item named %s went active | ||
2655 | // signal: elm,state,%s,passive | ||
2656 | // a "check" item named %s went passive | ||
2657 | // default is passive | ||
2658 | program { | ||
2659 | name: "go_active"; | ||
2660 | signal: "elm,state,selected"; | ||
2661 | source: "elm"; | ||
2662 | action: STATE_SET "selected" 0.0; | ||
2663 | target: "bg"; | ||
2664 | target: "fg1"; | ||
2665 | target: "fg2"; | ||
2666 | target: "elm.text"; | ||
2667 | } | ||
2668 | program { | ||
2669 | name: "go_passive"; | ||
2670 | signal: "elm,state,unselected"; | ||
2671 | source: "elm"; | ||
2672 | action: STATE_SET "default" 0.0; | ||
2673 | target: "bg"; | ||
2674 | target: "fg1"; | ||
2675 | target: "fg2"; | ||
2676 | target: "elm.text"; | ||
2677 | transition: LINEAR 0.1; | ||
2678 | } | ||
2679 | program { | ||
2680 | name: "go_disabled"; | ||
2681 | signal: "elm,state,disabled"; | ||
2682 | source: "elm"; | ||
2683 | action: STATE_SET "disabled" 0.0; | ||
2684 | target: "disclip"; | ||
2685 | } | ||
2686 | program { | ||
2687 | name: "go_enabled"; | ||
2688 | signal: "elm,state,enabled"; | ||
2689 | source: "elm"; | ||
2690 | action: STATE_SET "default" 0.0; | ||
2691 | target: "disclip"; | ||
2692 | } | ||
2693 | program { | ||
2694 | name: "expand"; | ||
2695 | signal: "mouse,up,1"; | ||
2696 | source: "arrow"; | ||
2697 | action: SIGNAL_EMIT "elm,action,expand,toggle" "elm"; | ||
2698 | } | ||
2699 | program { | ||
2700 | name: "go_expanded"; | ||
2701 | signal: "elm,state,expanded"; | ||
2702 | source: "elm"; | ||
2703 | action: STATE_SET "active" 0.0; | ||
2704 | target: "arrow"; | ||
2705 | } | ||
2706 | program { | ||
2707 | name: "go_contracted"; | ||
2708 | signal: "elm,state,contracted"; | ||
2709 | source: "elm"; | ||
2710 | action: STATE_SET "default" 0.0; | ||
2711 | target: "arrow"; | ||
2712 | } | ||
2713 | } | ||
2714 | } | ||
2715 | group { name: "elm/genlist/tree_odd/default_style/default"; | ||
2716 | data.item: "stacking" "below"; | ||
2717 | data.item: "selectraise" "on"; | ||
2718 | data.item: "texts" "elm.text"; | ||
2719 | data.item: "contents" "elm.swallow.icon elm.swallow.end"; | ||
2720 | data.item: "treesize" "20"; | ||
2721 | images { | ||
2722 | image: "bt_sm_base1.png" COMP; | ||
2723 | image: "bt_sm_shine.png" COMP; | ||
2724 | image: "bt_sm_hilight.png" COMP; | ||
2725 | image: "ilist_2.png" COMP; | ||
2726 | image: "icon_arrow_right.png" COMP; | ||
2727 | image: "icon_arrow_down.png" COMP; | ||
2728 | } | ||
2729 | parts { | ||
2730 | part { | ||
2731 | name: "event"; | ||
2732 | type: RECT; | ||
2733 | repeat_events: 1; | ||
2734 | description { | ||
2735 | state: "default" 0.0; | ||
2736 | color: 0 0 0 0; | ||
2737 | } | ||
2738 | } | ||
2739 | part { | ||
2740 | name: "base"; | ||
2741 | mouse_events: 0; | ||
2742 | description { | ||
2743 | state: "default" 0.0; | ||
2744 | min: 16 28; | ||
2745 | image { | ||
2746 | normal: "ilist_2.png"; | ||
2747 | border: 2 2 2 2; | ||
2748 | } | ||
2749 | fill.smooth: 0; | ||
2750 | } | ||
2751 | } | ||
2752 | part { name: "bg"; | ||
2753 | clip_to: "disclip"; | ||
2754 | mouse_events: 0; | ||
2755 | description { state: "default" 0.0; | ||
2756 | visible: 0; | ||
2757 | color: 255 255 255 0; | ||
2758 | rel1 { | ||
2759 | relative: 0.0 0.0; | ||
2760 | offset: -5 -5; | ||
2761 | } | ||
2762 | rel2 { | ||
2763 | relative: 1.0 1.0; | ||
2764 | offset: 4 4; | ||
2765 | } | ||
2766 | image { | ||
2767 | normal: "bt_sm_base1.png"; | ||
2768 | border: 6 6 6 6; | ||
2769 | } | ||
2770 | image.middle: SOLID; | ||
2771 | } | ||
2772 | description { state: "selected" 0.0; | ||
2773 | inherit: "default" 0.0; | ||
2774 | visible: 1; | ||
2775 | color: 255 255 255 255; | ||
2776 | rel1 { | ||
2777 | relative: 0.0 0.0; | ||
2778 | offset: -2 -2; | ||
2779 | } | ||
2780 | rel2 { | ||
2781 | relative: 1.0 1.0; | ||
2782 | offset: 1 1; | ||
2783 | } | ||
2784 | } | ||
2785 | } | ||
2786 | part { name: "elm.swallow.pad"; | ||
2787 | type: SWALLOW; | ||
2788 | description { state: "default" 0.0; | ||
2789 | fixed: 1 0; | ||
2790 | align: 0.0 0.5; | ||
2791 | rel1 { | ||
2792 | relative: 0.0 0.0; | ||
2793 | offset: 4 4; | ||
2794 | } | ||
2795 | rel2 { | ||
2796 | relative: 0.0 1.0; | ||
2797 | offset: 4 -5; | ||
2798 | } | ||
2799 | } | ||
2800 | } | ||
2801 | part { name: "arrow"; | ||
2802 | clip_to: "disclip"; | ||
2803 | ignore_flags: ON_HOLD; | ||
2804 | description { state: "default" 0.0; | ||
2805 | fixed: 1 0; | ||
2806 | align: 0.0 0.5; | ||
2807 | aspect: 1.0 1.0; | ||
2808 | rel1 { | ||
2809 | to_x: "elm.swallow.pad"; | ||
2810 | relative: 1.0 0.0; | ||
2811 | offset: -1 4; | ||
2812 | } | ||
2813 | rel2 { | ||
2814 | to_x: "elm.swallow.pad"; | ||
2815 | relative: 1.0 1.0; | ||
2816 | offset: -1 -5; | ||
2817 | } | ||
2818 | image.normal: "icon_arrow_right.png"; | ||
2819 | } | ||
2820 | description { state: "active" 0.0; | ||
2821 | inherit: "default" 0.0; | ||
2822 | image.normal: "icon_arrow_down.png"; | ||
2823 | } | ||
2824 | } | ||
2825 | part { name: "elm.swallow.icon"; | ||
2826 | clip_to: "disclip"; | ||
2827 | type: SWALLOW; | ||
2828 | description { state: "default" 0.0; | ||
2829 | fixed: 1 0; | ||
2830 | align: 0.0 0.5; | ||
2831 | rel1 { | ||
2832 | to_x: "arrow"; | ||
2833 | relative: 1.0 0.0; | ||
2834 | offset: 4 4; | ||
2835 | } | ||
2836 | rel2 { | ||
2837 | to_x: "arrow"; | ||
2838 | relative: 1.0 1.0; | ||
2839 | offset: 4 -5; | ||
2840 | } | ||
2841 | } | ||
2842 | } | ||
2843 | part { name: "elm.swallow.end"; | ||
2844 | clip_to: "disclip"; | ||
2845 | type: SWALLOW; | ||
2846 | description { state: "default" 0.0; | ||
2847 | fixed: 1 0; | ||
2848 | align: 1.0 0.5; | ||
2849 | aspect: 1.0 1.0; | ||
2850 | aspect_preference: VERTICAL; | ||
2851 | rel1 { | ||
2852 | relative: 1.0 0.0; | ||
2853 | offset: -5 4; | ||
2854 | } | ||
2855 | rel2 { | ||
2856 | relative: 1.0 1.0; | ||
2857 | offset: -5 -5; | ||
2858 | } | ||
2859 | } | ||
2860 | } | ||
2861 | part { name: "elm.text"; | ||
2862 | clip_to: "disclip"; | ||
2863 | type: TEXTBLOCK; | ||
2864 | effect: SOFT_SHADOW; | ||
2865 | mouse_events: 0; | ||
2866 | scale: 1; | ||
2867 | description { | ||
2868 | state: "default" 0.0; | ||
2869 | align: 0.0 0.5; | ||
2870 | fixed: 0 1; | ||
2871 | rel1 { | ||
2872 | to_x: "elm.swallow.icon"; | ||
2873 | to_y: "base"; | ||
2874 | relative: 1.0 0.5; | ||
2875 | offset: 0 4; | ||
2876 | } | ||
2877 | rel2 { | ||
2878 | to_x: "elm.swallow.end"; | ||
2879 | to_y: "base"; | ||
2880 | relative: 0.0 0.5; | ||
2881 | offset: -1 -5; | ||
2882 | } | ||
2883 | text { | ||
2884 | style: "genlist_style"; | ||
2885 | min: 1 1; | ||
2886 | } | ||
2887 | } | ||
2888 | description { state: "selected" 0.0; | ||
2889 | inherit: "default" 0.0; | ||
2890 | text { | ||
2891 | style: "genlist_selected_style"; | ||
2892 | } | ||
2893 | } | ||
2894 | } | ||
2895 | part { name: "fg1"; | ||
2896 | clip_to: "disclip"; | ||
2897 | mouse_events: 0; | ||
2898 | description { state: "default" 0.0; | ||
2899 | visible: 0; | ||
2900 | color: 255 255 255 0; | ||
2901 | rel1.to: "bg"; | ||
2902 | rel2.relative: 1.0 0.5; | ||
2903 | rel2.to: "bg"; | ||
2904 | image { | ||
2905 | normal: "bt_sm_hilight.png"; | ||
2906 | border: 6 6 6 0; | ||
2907 | } | ||
2908 | } | ||
2909 | description { state: "selected" 0.0; | ||
2910 | inherit: "default" 0.0; | ||
2911 | visible: 1; | ||
2912 | color: 255 255 255 255; | ||
2913 | } | ||
2914 | } | ||
2915 | part { name: "fg2"; | ||
2916 | clip_to: "disclip"; | ||
2917 | mouse_events: 0; | ||
2918 | description { state: "default" 0.0; | ||
2919 | visible: 0; | ||
2920 | color: 255 255 255 0; | ||
2921 | rel1.to: "bg"; | ||
2922 | rel2.to: "bg"; | ||
2923 | image { | ||
2924 | normal: "bt_sm_shine.png"; | ||
2925 | border: 6 6 6 0; | ||
2926 | } | ||
2927 | } | ||
2928 | description { state: "selected" 0.0; | ||
2929 | inherit: "default" 0.0; | ||
2930 | visible: 1; | ||
2931 | color: 255 255 255 255; | ||
2932 | } | ||
2933 | } | ||
2934 | part { name: "disclip"; | ||
2935 | type: RECT; | ||
2936 | description { state: "default" 0.0; | ||
2937 | rel1.to: "bg"; | ||
2938 | rel2.to: "bg"; | ||
2939 | } | ||
2940 | description { state: "disabled" 0.0; | ||
2941 | inherit: "default" 0.0; | ||
2942 | color: 255 255 255 64; | ||
2943 | } | ||
2944 | } | ||
2945 | } | ||
2946 | programs { | ||
2947 | // signal: elm,state,%s,active | ||
2948 | // a "check" item named %s went active | ||
2949 | // signal: elm,state,%s,passive | ||
2950 | // a "check" item named %s went passive | ||
2951 | // default is passive | ||
2952 | program { | ||
2953 | name: "go_active"; | ||
2954 | signal: "elm,state,selected"; | ||
2955 | source: "elm"; | ||
2956 | action: STATE_SET "selected" 0.0; | ||
2957 | target: "bg"; | ||
2958 | target: "fg1"; | ||
2959 | target: "fg2"; | ||
2960 | target: "elm.text"; | ||
2961 | } | ||
2962 | program { | ||
2963 | name: "go_passive"; | ||
2964 | signal: "elm,state,unselected"; | ||
2965 | source: "elm"; | ||
2966 | action: STATE_SET "default" 0.0; | ||
2967 | target: "bg"; | ||
2968 | target: "fg1"; | ||
2969 | target: "fg2"; | ||
2970 | target: "elm.text"; | ||
2971 | transition: LINEAR 0.1; | ||
2972 | } | ||
2973 | program { | ||
2974 | name: "go_disabled"; | ||
2975 | signal: "elm,state,disabled"; | ||
2976 | source: "elm"; | ||
2977 | action: STATE_SET "disabled" 0.0; | ||
2978 | target: "disclip"; | ||
2979 | } | ||
2980 | program { | ||
2981 | name: "go_enabled"; | ||
2982 | signal: "elm,state,enabled"; | ||
2983 | source: "elm"; | ||
2984 | action: STATE_SET "default" 0.0; | ||
2985 | target: "disclip"; | ||
2986 | } | ||
2987 | program { | ||
2988 | name: "expand"; | ||
2989 | signal: "mouse,up,1"; | ||
2990 | source: "arrow"; | ||
2991 | action: SIGNAL_EMIT "elm,action,expand,toggle" "elm"; | ||
2992 | } | ||
2993 | program { | ||
2994 | name: "go_expanded"; | ||
2995 | signal: "elm,state,expanded"; | ||
2996 | source: "elm"; | ||
2997 | action: STATE_SET "active" 0.0; | ||
2998 | target: "arrow"; | ||
2999 | } | ||
3000 | program { | ||
3001 | name: "go_contracted"; | ||
3002 | signal: "elm,state,contracted"; | ||
3003 | source: "elm"; | ||
3004 | action: STATE_SET "default" 0.0; | ||
3005 | target: "arrow"; | ||
3006 | } | ||
3007 | } | ||
3008 | } | ||
3009 | |||
3010 | |||
3011 | group { name: "elm/genlist/item/double_label/default"; | ||
3012 | data.item: "stacking" "above"; | ||
3013 | data.item: "selectraise" "on"; | ||
3014 | data.item: "texts" "elm.text elm.text.sub"; | ||
3015 | data.item: "contents" "elm.swallow.icon elm.swallow.end"; | ||
3016 | data.item: "treesize" "20"; | ||
3017 | // data.item: "states" ""; | ||
3018 | images { | ||
3019 | image: "bt_sm_base1.png" COMP; | ||
3020 | image: "bt_sm_shine.png" COMP; | ||
3021 | image: "bt_sm_hilight.png" COMP; | ||
3022 | image: "ilist_1.png" COMP; | ||
3023 | image: "ilist_item_shadow.png" COMP; | ||
3024 | } | ||
3025 | parts { | ||
3026 | part { | ||
3027 | name: "event"; | ||
3028 | type: RECT; | ||
3029 | repeat_events: 1; | ||
3030 | description { | ||
3031 | state: "default" 0.0; | ||
3032 | color: 0 0 0 0; | ||
3033 | } | ||
3034 | } | ||
3035 | part { | ||
3036 | name: "base_sh"; | ||
3037 | mouse_events: 0; | ||
3038 | description { | ||
3039 | state: "default" 0.0; | ||
3040 | align: 0.0 0.0; | ||
3041 | min: 0 10; | ||
3042 | fixed: 1 1; | ||
3043 | rel1 { | ||
3044 | to: "base"; | ||
3045 | relative: 0.0 1.0; | ||
3046 | offset: 0 0; | ||
3047 | } | ||
3048 | rel2 { | ||
3049 | to: "base"; | ||
3050 | relative: 1.0 1.0; | ||
3051 | offset: -1 0; | ||
3052 | } | ||
3053 | image { | ||
3054 | normal: "ilist_item_shadow.png"; | ||
3055 | } | ||
3056 | fill.smooth: 0; | ||
3057 | } | ||
3058 | } | ||
3059 | part { | ||
3060 | name: "base"; | ||
3061 | mouse_events: 0; | ||
3062 | description { | ||
3063 | state: "default" 0.0; | ||
3064 | image { | ||
3065 | normal: "ilist_1.png"; | ||
3066 | border: 2 2 2 2; | ||
3067 | } | ||
3068 | fill.smooth: 0; | ||
3069 | } | ||
3070 | } | ||
3071 | part { name: "bg"; | ||
3072 | clip_to: "disclip"; | ||
3073 | mouse_events: 0; | ||
3074 | description { state: "default" 0.0; | ||
3075 | visible: 0; | ||
3076 | color: 255 255 255 0; | ||
3077 | rel1 { | ||
3078 | relative: 0.0 0.0; | ||
3079 | offset: -5 -5; | ||
3080 | } | ||
3081 | rel2 { | ||
3082 | relative: 1.0 1.0; | ||
3083 | offset: 4 4; | ||
3084 | } | ||
3085 | image { | ||
3086 | normal: "bt_sm_base1.png"; | ||
3087 | border: 6 6 6 6; | ||
3088 | } | ||
3089 | image.middle: SOLID; | ||
3090 | } | ||
3091 | description { state: "selected" 0.0; | ||
3092 | inherit: "default" 0.0; | ||
3093 | visible: 1; | ||
3094 | color: 255 255 255 255; | ||
3095 | rel1 { | ||
3096 | relative: 0.0 0.0; | ||
3097 | offset: -2 -2; | ||
3098 | } | ||
3099 | rel2 { | ||
3100 | relative: 1.0 1.0; | ||
3101 | offset: 1 1; | ||
3102 | } | ||
3103 | } | ||
3104 | } | ||
3105 | part { name: "elm.swallow.pad"; | ||
3106 | type: SWALLOW; | ||
3107 | description { state: "default" 0.0; | ||
3108 | fixed: 1 0; | ||
3109 | align: 0.0 0.5; | ||
3110 | rel1 { | ||
3111 | relative: 0.0 0.0; | ||
3112 | offset: 4 4; | ||
3113 | } | ||
3114 | rel2 { | ||
3115 | relative: 0.0 1.0; | ||
3116 | offset: 4 -5; | ||
3117 | } | ||
3118 | } | ||
3119 | } | ||
3120 | part { name: "elm.swallow.icon"; | ||
3121 | clip_to: "disclip"; | ||
3122 | type: SWALLOW; | ||
3123 | description { state: "default" 0.0; | ||
3124 | fixed: 1 0; | ||
3125 | align: 0.0 0.5; | ||
3126 | rel1 { | ||
3127 | to_x: "elm.swallow.pad"; | ||
3128 | relative: 1.0 0.0; | ||
3129 | offset: -1 4; | ||
3130 | } | ||
3131 | rel2 { | ||
3132 | to_x: "elm.swallow.pad"; | ||
3133 | relative: 1.0 1.0; | ||
3134 | offset: -1 -5; | ||
3135 | } | ||
3136 | } | ||
3137 | } | ||
3138 | part { name: "elm.swallow.end"; | ||
3139 | clip_to: "disclip"; | ||
3140 | type: SWALLOW; | ||
3141 | description { state: "default" 0.0; | ||
3142 | fixed: 1 0; | ||
3143 | align: 1.0 0.5; | ||
3144 | aspect: 1.0 1.0; | ||
3145 | aspect_preference: VERTICAL; | ||
3146 | rel1 { | ||
3147 | relative: 1.0 0.0; | ||
3148 | offset: -5 4; | ||
3149 | } | ||
3150 | rel2 { | ||
3151 | relative: 1.0 1.0; | ||
3152 | offset: -5 -5; | ||
3153 | } | ||
3154 | } | ||
3155 | } | ||
3156 | part { name: "elm.text"; | ||
3157 | clip_to: "disclip"; | ||
3158 | type: TEXT; | ||
3159 | effect: SOFT_SHADOW; | ||
3160 | mouse_events: 0; | ||
3161 | scale: 1; | ||
3162 | description { | ||
3163 | state: "default" 0.0; | ||
3164 | // min: 16 16; | ||
3165 | rel1 { | ||
3166 | to_x: "elm.swallow.icon"; | ||
3167 | relative: 1.0 0.0; | ||
3168 | offset: 0 4; | ||
3169 | } | ||
3170 | rel2 { | ||
3171 | to_x: "elm.swallow.end"; | ||
3172 | relative: 0.0 0.5; | ||
3173 | offset: -1 -5; | ||
3174 | } | ||
3175 | color: 0 0 0 255; | ||
3176 | color3: 0 0 0 0; | ||
3177 | text { | ||
3178 | font: "Sans"; | ||
3179 | size: 10; | ||
3180 | min: 1 1; | ||
3181 | // min: 0 1; | ||
3182 | align: 0.0 0.5; | ||
3183 | text_class: "list_item"; | ||
3184 | } | ||
3185 | } | ||
3186 | description { state: "selected" 0.0; | ||
3187 | inherit: "default" 0.0; | ||
3188 | color: 224 224 224 255; | ||
3189 | color3: 0 0 0 64; | ||
3190 | } | ||
3191 | } | ||
3192 | part { name: "elm.text.sub"; | ||
3193 | clip_to: "disclip"; | ||
3194 | type: TEXT; | ||
3195 | mouse_events: 0; | ||
3196 | scale: 1; | ||
3197 | description { | ||
3198 | state: "default" 0.0; | ||
3199 | // min: 16 16; | ||
3200 | rel1 { | ||
3201 | to_x: "elm.swallow.icon"; | ||
3202 | relative: 1.0 0.5; | ||
3203 | offset: 0 4; | ||
3204 | } | ||
3205 | rel2 { | ||
3206 | to_x: "elm.swallow.end"; | ||
3207 | relative: 0.0 1.0; | ||
3208 | offset: -1 -5; | ||
3209 | } | ||
3210 | color: 0 0 0 128; | ||
3211 | color3: 0 0 0 0; | ||
3212 | text { | ||
3213 | font: "Sans"; | ||
3214 | size: 8; | ||
3215 | min: 1 1; | ||
3216 | // min: 0 1; | ||
3217 | align: 0.0 0.5; | ||
3218 | text_class: "list_item"; | ||
3219 | } | ||
3220 | } | ||
3221 | description { state: "selected" 0.0; | ||
3222 | inherit: "default" 0.0; | ||
3223 | color: 128 128 128 255; | ||
3224 | color3: 0 0 0 32; | ||
3225 | } | ||
3226 | } | ||
3227 | part { name: "fg1"; | ||
3228 | clip_to: "disclip"; | ||
3229 | mouse_events: 0; | ||
3230 | description { state: "default" 0.0; | ||
3231 | visible: 0; | ||
3232 | color: 255 255 255 0; | ||
3233 | rel1.to: "bg"; | ||
3234 | rel2.relative: 1.0 0.5; | ||
3235 | rel2.to: "bg"; | ||
3236 | image { | ||
3237 | normal: "bt_sm_hilight.png"; | ||
3238 | border: 6 6 6 0; | ||
3239 | } | ||
3240 | } | ||
3241 | description { state: "selected" 0.0; | ||
3242 | inherit: "default" 0.0; | ||
3243 | visible: 1; | ||
3244 | color: 255 255 255 255; | ||
3245 | } | ||
3246 | } | ||
3247 | part { name: "fg2"; | ||
3248 | clip_to: "disclip"; | ||
3249 | mouse_events: 0; | ||
3250 | description { state: "default" 0.0; | ||
3251 | visible: 0; | ||
3252 | color: 255 255 255 0; | ||
3253 | rel1.to: "bg"; | ||
3254 | rel2.to: "bg"; | ||
3255 | image { | ||
3256 | normal: "bt_sm_shine.png"; | ||
3257 | border: 6 6 6 0; | ||
3258 | } | ||
3259 | } | ||
3260 | description { state: "selected" 0.0; | ||
3261 | inherit: "default" 0.0; | ||
3262 | visible: 1; | ||
3263 | color: 255 255 255 255; | ||
3264 | } | ||
3265 | } | ||
3266 | part { name: "disclip"; | ||
3267 | type: RECT; | ||
3268 | description { state: "default" 0.0; | ||
3269 | rel1.to: "bg"; | ||
3270 | rel2.to: "bg"; | ||
3271 | } | ||
3272 | description { state: "disabled" 0.0; | ||
3273 | inherit: "default" 0.0; | ||
3274 | color: 255 255 255 64; | ||
3275 | } | ||
3276 | } | ||
3277 | } | ||
3278 | programs { | ||
3279 | // signal: elm,state,%s,active | ||
3280 | // a "check" item named %s went active | ||
3281 | // signal: elm,state,%s,passive | ||
3282 | // a "check" item named %s went passive | ||
3283 | // default is passive | ||
3284 | program { | ||
3285 | name: "go_active"; | ||
3286 | signal: "elm,state,selected"; | ||
3287 | source: "elm"; | ||
3288 | action: STATE_SET "selected" 0.0; | ||
3289 | target: "bg"; | ||
3290 | target: "fg1"; | ||
3291 | target: "fg2"; | ||
3292 | target: "elm.text"; | ||
3293 | target: "elm.text.sub"; | ||
3294 | } | ||
3295 | program { | ||
3296 | name: "go_passive"; | ||
3297 | signal: "elm,state,unselected"; | ||
3298 | source: "elm"; | ||
3299 | action: STATE_SET "default" 0.0; | ||
3300 | target: "bg"; | ||
3301 | target: "fg1"; | ||
3302 | target: "fg2"; | ||
3303 | target: "elm.text"; | ||
3304 | target: "elm.text.sub"; | ||
3305 | transition: LINEAR 0.1; | ||
3306 | } | ||
3307 | program { | ||
3308 | name: "go_disabled"; | ||
3309 | signal: "elm,state,disabled"; | ||
3310 | source: "elm"; | ||
3311 | action: STATE_SET "disabled" 0.0; | ||
3312 | target: "disclip"; | ||
3313 | } | ||
3314 | program { | ||
3315 | name: "go_enabled"; | ||
3316 | signal: "elm,state,enabled"; | ||
3317 | source: "elm"; | ||
3318 | action: STATE_SET "default" 0.0; | ||
3319 | target: "disclip"; | ||
3320 | } | ||
3321 | } | ||
3322 | } | ||
3323 | group { name: "elm/genlist/item_compress/double_label/default"; | ||
3324 | data.item: "stacking" "above"; | ||
3325 | data.item: "selectraise" "on"; | ||
3326 | data.item: "texts" "elm.text elm.text.sub"; | ||
3327 | data.item: "contents" "elm.swallow.icon elm.swallow.end"; | ||
3328 | data.item: "treesize" "20"; | ||
3329 | // data.item: "states" ""; | ||
3330 | images { | ||
3331 | image: "bt_sm_base1.png" COMP; | ||
3332 | image: "bt_sm_shine.png" COMP; | ||
3333 | image: "bt_sm_hilight.png" COMP; | ||
3334 | image: "ilist_1.png" COMP; | ||
3335 | image: "ilist_item_shadow.png" COMP; | ||
3336 | } | ||
3337 | parts { | ||
3338 | part { | ||
3339 | name: "event"; | ||
3340 | type: RECT; | ||
3341 | repeat_events: 1; | ||
3342 | description { | ||
3343 | state: "default" 0.0; | ||
3344 | color: 0 0 0 0; | ||
3345 | } | ||
3346 | } | ||
3347 | part { | ||
3348 | name: "base_sh"; | ||
3349 | mouse_events: 0; | ||
3350 | description { | ||
3351 | state: "default" 0.0; | ||
3352 | align: 0.0 0.0; | ||
3353 | min: 0 10; | ||
3354 | fixed: 1 1; | ||
3355 | rel1 { | ||
3356 | to: "base"; | ||
3357 | relative: 0.0 1.0; | ||
3358 | offset: 0 0; | ||
3359 | } | ||
3360 | rel2 { | ||
3361 | to: "base"; | ||
3362 | relative: 1.0 1.0; | ||
3363 | offset: -1 0; | ||
3364 | } | ||
3365 | image { | ||
3366 | normal: "ilist_item_shadow.png"; | ||
3367 | } | ||
3368 | fill.smooth: 0; | ||
3369 | } | ||
3370 | } | ||
3371 | part { | ||
3372 | name: "base"; | ||
3373 | mouse_events: 0; | ||
3374 | description { | ||
3375 | state: "default" 0.0; | ||
3376 | image { | ||
3377 | normal: "ilist_1.png"; | ||
3378 | border: 2 2 2 2; | ||
3379 | } | ||
3380 | fill.smooth: 0; | ||
3381 | } | ||
3382 | } | ||
3383 | part { name: "bg"; | ||
3384 | clip_to: "disclip"; | ||
3385 | mouse_events: 0; | ||
3386 | description { state: "default" 0.0; | ||
3387 | visible: 0; | ||
3388 | color: 255 255 255 0; | ||
3389 | rel1 { | ||
3390 | relative: 0.0 0.0; | ||
3391 | offset: -5 -5; | ||
3392 | } | ||
3393 | rel2 { | ||
3394 | relative: 1.0 1.0; | ||
3395 | offset: 4 4; | ||
3396 | } | ||
3397 | image { | ||
3398 | normal: "bt_sm_base1.png"; | ||
3399 | border: 6 6 6 6; | ||
3400 | } | ||
3401 | image.middle: SOLID; | ||
3402 | } | ||
3403 | description { state: "selected" 0.0; | ||
3404 | inherit: "default" 0.0; | ||
3405 | visible: 1; | ||
3406 | color: 255 255 255 255; | ||
3407 | rel1 { | ||
3408 | relative: 0.0 0.0; | ||
3409 | offset: -2 -2; | ||
3410 | } | ||
3411 | rel2 { | ||
3412 | relative: 1.0 1.0; | ||
3413 | offset: 1 1; | ||
3414 | } | ||
3415 | } | ||
3416 | } | ||
3417 | part { name: "elm.swallow.pad"; | ||
3418 | type: SWALLOW; | ||
3419 | description { state: "default" 0.0; | ||
3420 | fixed: 1 0; | ||
3421 | align: 0.0 0.5; | ||
3422 | rel1 { | ||
3423 | relative: 0.0 0.0; | ||
3424 | offset: 4 4; | ||
3425 | } | ||
3426 | rel2 { | ||
3427 | relative: 0.0 1.0; | ||
3428 | offset: 4 -5; | ||
3429 | } | ||
3430 | } | ||
3431 | } | ||
3432 | part { name: "elm.swallow.icon"; | ||
3433 | clip_to: "disclip"; | ||
3434 | type: SWALLOW; | ||
3435 | description { state: "default" 0.0; | ||
3436 | fixed: 1 0; | ||
3437 | align: 0.0 0.5; | ||
3438 | rel1 { | ||
3439 | to_x: "elm.swallow.pad"; | ||
3440 | relative: 1.0 0.0; | ||
3441 | offset: -1 4; | ||
3442 | } | ||
3443 | rel2 { | ||
3444 | to_x: "elm.swallow.pad"; | ||
3445 | relative: 1.0 1.0; | ||
3446 | offset: -1 -5; | ||
3447 | } | ||
3448 | } | ||
3449 | } | ||
3450 | part { name: "elm.swallow.end"; | ||
3451 | clip_to: "disclip"; | ||
3452 | type: SWALLOW; | ||
3453 | description { state: "default" 0.0; | ||
3454 | fixed: 1 0; | ||
3455 | align: 1.0 0.5; | ||
3456 | aspect: 1.0 1.0; | ||
3457 | aspect_preference: VERTICAL; | ||
3458 | rel1 { | ||
3459 | relative: 1.0 0.0; | ||
3460 | offset: -5 4; | ||
3461 | } | ||
3462 | rel2 { | ||
3463 | relative: 1.0 1.0; | ||
3464 | offset: -5 -5; | ||
3465 | } | ||
3466 | } | ||
3467 | } | ||
3468 | part { name: "elm.text"; | ||
3469 | clip_to: "disclip"; | ||
3470 | type: TEXT; | ||
3471 | effect: SOFT_SHADOW; | ||
3472 | mouse_events: 0; | ||
3473 | scale: 1; | ||
3474 | description { | ||
3475 | state: "default" 0.0; | ||
3476 | // min: 16 16; | ||
3477 | rel1 { | ||
3478 | to_x: "elm.swallow.icon"; | ||
3479 | relative: 1.0 0.0; | ||
3480 | offset: 0 4; | ||
3481 | } | ||
3482 | rel2 { | ||
3483 | to_x: "elm.swallow.end"; | ||
3484 | relative: 0.0 0.5; | ||
3485 | offset: -1 -5; | ||
3486 | } | ||
3487 | color: 0 0 0 255; | ||
3488 | color3: 0 0 0 0; | ||
3489 | text { | ||
3490 | font: "Sans"; | ||
3491 | size: 10; | ||
3492 | // min: 1 1; | ||
3493 | min: 0 1; | ||
3494 | align: 0.0 0.5; | ||
3495 | text_class: "list_item"; | ||
3496 | } | ||
3497 | } | ||
3498 | description { state: "selected" 0.0; | ||
3499 | inherit: "default" 0.0; | ||
3500 | color: 224 224 224 255; | ||
3501 | color3: 0 0 0 64; | ||
3502 | } | ||
3503 | } | ||
3504 | part { name: "elm.text.sub"; | ||
3505 | clip_to: "disclip"; | ||
3506 | type: TEXT; | ||
3507 | mouse_events: 0; | ||
3508 | scale: 1; | ||
3509 | description { | ||
3510 | state: "default" 0.0; | ||
3511 | // min: 16 16; | ||
3512 | rel1 { | ||
3513 | to_x: "elm.swallow.icon"; | ||
3514 | relative: 1.0 0.5; | ||
3515 | offset: 0 4; | ||
3516 | } | ||
3517 | rel2 { | ||
3518 | to_x: "elm.swallow.end"; | ||
3519 | relative: 0.0 1.0; | ||
3520 | offset: -1 -5; | ||
3521 | } | ||
3522 | color: 0 0 0 128; | ||
3523 | color3: 0 0 0 0; | ||
3524 | text { | ||
3525 | font: "Sans"; | ||
3526 | size: 8; | ||
3527 | // min: 1 1; | ||
3528 | min: 0 1; | ||
3529 | align: 0.0 0.5; | ||
3530 | text_class: "list_item"; | ||
3531 | } | ||
3532 | } | ||
3533 | description { state: "selected" 0.0; | ||
3534 | inherit: "default" 0.0; | ||
3535 | color: 128 128 128 255; | ||
3536 | color3: 0 0 0 32; | ||
3537 | } | ||
3538 | } | ||
3539 | part { name: "fg1"; | ||
3540 | clip_to: "disclip"; | ||
3541 | mouse_events: 0; | ||
3542 | description { state: "default" 0.0; | ||
3543 | visible: 0; | ||
3544 | color: 255 255 255 0; | ||
3545 | rel1.to: "bg"; | ||
3546 | rel2.relative: 1.0 0.5; | ||
3547 | rel2.to: "bg"; | ||
3548 | image { | ||
3549 | normal: "bt_sm_hilight.png"; | ||
3550 | border: 6 6 6 0; | ||
3551 | } | ||
3552 | } | ||
3553 | description { state: "selected" 0.0; | ||
3554 | inherit: "default" 0.0; | ||
3555 | visible: 1; | ||
3556 | color: 255 255 255 255; | ||
3557 | } | ||
3558 | } | ||
3559 | part { name: "fg2"; | ||
3560 | clip_to: "disclip"; | ||
3561 | mouse_events: 0; | ||
3562 | description { state: "default" 0.0; | ||
3563 | visible: 0; | ||
3564 | color: 255 255 255 0; | ||
3565 | rel1.to: "bg"; | ||
3566 | rel2.to: "bg"; | ||
3567 | image { | ||
3568 | normal: "bt_sm_shine.png"; | ||
3569 | border: 6 6 6 0; | ||
3570 | } | ||
3571 | } | ||
3572 | description { state: "selected" 0.0; | ||
3573 | inherit: "default" 0.0; | ||
3574 | visible: 1; | ||
3575 | color: 255 255 255 255; | ||
3576 | } | ||
3577 | } | ||
3578 | part { name: "disclip"; | ||
3579 | type: RECT; | ||
3580 | description { state: "default" 0.0; | ||
3581 | rel1.to: "bg"; | ||
3582 | rel2.to: "bg"; | ||
3583 | } | ||
3584 | description { state: "disabled" 0.0; | ||
3585 | inherit: "default" 0.0; | ||
3586 | color: 255 255 255 64; | ||
3587 | } | ||
3588 | } | ||
3589 | } | ||
3590 | programs { | ||
3591 | // signal: elm,state,%s,active | ||
3592 | // a "check" item named %s went active | ||
3593 | // signal: elm,state,%s,passive | ||
3594 | // a "check" item named %s went passive | ||
3595 | // default is passive | ||
3596 | program { | ||
3597 | name: "go_active"; | ||
3598 | signal: "elm,state,selected"; | ||
3599 | source: "elm"; | ||
3600 | action: STATE_SET "selected" 0.0; | ||
3601 | target: "bg"; | ||
3602 | target: "fg1"; | ||
3603 | target: "fg2"; | ||
3604 | target: "elm.text"; | ||
3605 | target: "elm.text.sub"; | ||
3606 | } | ||
3607 | program { | ||
3608 | name: "go_passive"; | ||
3609 | signal: "elm,state,unselected"; | ||
3610 | source: "elm"; | ||
3611 | action: STATE_SET "default" 0.0; | ||
3612 | target: "bg"; | ||
3613 | target: "fg1"; | ||
3614 | target: "fg2"; | ||
3615 | target: "elm.text"; | ||
3616 | target: "elm.text.sub"; | ||
3617 | transition: LINEAR 0.1; | ||
3618 | } | ||
3619 | program { | ||
3620 | name: "go_disabled"; | ||
3621 | signal: "elm,state,disabled"; | ||
3622 | source: "elm"; | ||
3623 | action: STATE_SET "disabled" 0.0; | ||
3624 | target: "disclip"; | ||
3625 | } | ||
3626 | program { | ||
3627 | name: "go_enabled"; | ||
3628 | signal: "elm,state,enabled"; | ||
3629 | source: "elm"; | ||
3630 | action: STATE_SET "default" 0.0; | ||
3631 | target: "disclip"; | ||
3632 | } | ||
3633 | } | ||
3634 | } | ||
3635 | group { name: "elm/genlist/item_odd/double_label/default"; | ||
3636 | data.item: "stacking" "below"; | ||
3637 | data.item: "selectraise" "on"; | ||
3638 | data.item: "texts" "elm.text elm.text.sub"; | ||
3639 | data.item: "contents" "elm.swallow.icon elm.swallow.end"; | ||
3640 | data.item: "treesize" "20"; | ||
3641 | // data.item: "states" ""; | ||
3642 | images { | ||
3643 | image: "bt_sm_base1.png" COMP; | ||
3644 | image: "bt_sm_shine.png" COMP; | ||
3645 | image: "bt_sm_hilight.png" COMP; | ||
3646 | image: "ilist_2.png" COMP; | ||
3647 | } | ||
3648 | parts { | ||
3649 | part { name: "event"; | ||
3650 | type: RECT; | ||
3651 | repeat_events: 1; | ||
3652 | description { | ||
3653 | state: "default" 0.0; | ||
3654 | color: 0 0 0 0; | ||
3655 | } | ||
3656 | } | ||
3657 | part { | ||
3658 | name: "base"; | ||
3659 | mouse_events: 0; | ||
3660 | description { | ||
3661 | state: "default" 0.0; | ||
3662 | image { | ||
3663 | normal: "ilist_2.png"; | ||
3664 | border: 2 2 2 2; | ||
3665 | } | ||
3666 | fill.smooth: 0; | ||
3667 | } | ||
3668 | } | ||
3669 | part { name: "bg"; | ||
3670 | clip_to: "disclip"; | ||
3671 | mouse_events: 0; | ||
3672 | description { state: "default" 0.0; | ||
3673 | visible: 0; | ||
3674 | color: 255 255 255 0; | ||
3675 | rel1 { | ||
3676 | relative: 0.0 0.0; | ||
3677 | offset: -5 -5; | ||
3678 | } | ||
3679 | rel2 { | ||
3680 | relative: 1.0 1.0; | ||
3681 | offset: 4 4; | ||
3682 | } | ||
3683 | image { | ||
3684 | normal: "bt_sm_base1.png"; | ||
3685 | border: 6 6 6 6; | ||
3686 | } | ||
3687 | image.middle: SOLID; | ||
3688 | } | ||
3689 | description { state: "selected" 0.0; | ||
3690 | inherit: "default" 0.0; | ||
3691 | visible: 1; | ||
3692 | color: 255 255 255 255; | ||
3693 | rel1 { | ||
3694 | relative: 0.0 0.0; | ||
3695 | offset: -2 -2; | ||
3696 | } | ||
3697 | rel2 { | ||
3698 | relative: 1.0 1.0; | ||
3699 | offset: 1 1; | ||
3700 | } | ||
3701 | } | ||
3702 | } | ||
3703 | part { name: "elm.swallow.pad"; | ||
3704 | type: SWALLOW; | ||
3705 | description { state: "default" 0.0; | ||
3706 | fixed: 1 0; | ||
3707 | align: 0.0 0.5; | ||
3708 | rel1 { | ||
3709 | relative: 0.0 0.0; | ||
3710 | offset: 4 4; | ||
3711 | } | ||
3712 | rel2 { | ||
3713 | relative: 0.0 1.0; | ||
3714 | offset: 4 -5; | ||
3715 | } | ||
3716 | } | ||
3717 | } | ||
3718 | part { name: "elm.swallow.icon"; | ||
3719 | clip_to: "disclip"; | ||
3720 | type: SWALLOW; | ||
3721 | description { state: "default" 0.0; | ||
3722 | fixed: 1 0; | ||
3723 | align: 0.0 0.5; | ||
3724 | rel1 { | ||
3725 | to_x: "elm.swallow.pad"; | ||
3726 | relative: 1.0 0.0; | ||
3727 | offset: -1 4; | ||
3728 | } | ||
3729 | rel2 { | ||
3730 | to_x: "elm.swallow.pad"; | ||
3731 | relative: 1.0 1.0; | ||
3732 | offset: -1 -5; | ||
3733 | } | ||
3734 | } | ||
3735 | } | ||
3736 | part { name: "elm.swallow.end"; | ||
3737 | clip_to: "disclip"; | ||
3738 | type: SWALLOW; | ||
3739 | description { state: "default" 0.0; | ||
3740 | fixed: 1 0; | ||
3741 | align: 1.0 0.5; | ||
3742 | aspect: 1.0 1.0; | ||
3743 | aspect_preference: VERTICAL; | ||
3744 | rel1 { | ||
3745 | relative: 1.0 0.0; | ||
3746 | offset: -5 4; | ||
3747 | } | ||
3748 | rel2 { | ||
3749 | relative: 1.0 1.0; | ||
3750 | offset: -5 -5; | ||
3751 | } | ||
3752 | } | ||
3753 | } | ||
3754 | part { name: "elm.text"; | ||
3755 | clip_to: "disclip"; | ||
3756 | type: TEXT; | ||
3757 | effect: SOFT_SHADOW; | ||
3758 | mouse_events: 0; | ||
3759 | scale: 1; | ||
3760 | description { | ||
3761 | state: "default" 0.0; | ||
3762 | // min: 16 16; | ||
3763 | rel1 { | ||
3764 | to_x: "elm.swallow.icon"; | ||
3765 | relative: 1.0 0.0; | ||
3766 | offset: 0 4; | ||
3767 | } | ||
3768 | rel2 { | ||
3769 | to_x: "elm.swallow.end"; | ||
3770 | relative: 0.0 0.5; | ||
3771 | offset: -1 -5; | ||
3772 | } | ||
3773 | color: 0 0 0 255; | ||
3774 | color3: 0 0 0 0; | ||
3775 | text { | ||
3776 | font: "Sans"; | ||
3777 | size: 10; | ||
3778 | min: 1 1; | ||
3779 | // min: 0 1; | ||
3780 | align: 0.0 0.5; | ||
3781 | text_class: "list_item"; | ||
3782 | } | ||
3783 | } | ||
3784 | description { state: "selected" 0.0; | ||
3785 | inherit: "default" 0.0; | ||
3786 | color: 224 224 224 255; | ||
3787 | color3: 0 0 0 64; | ||
3788 | } | ||
3789 | } | ||
3790 | part { name: "elm.text.sub"; | ||
3791 | clip_to: "disclip"; | ||
3792 | type: TEXT; | ||
3793 | mouse_events: 0; | ||
3794 | scale: 1; | ||
3795 | description { | ||
3796 | state: "default" 0.0; | ||
3797 | // min: 16 16; | ||
3798 | rel1 { | ||
3799 | to_x: "elm.swallow.icon"; | ||
3800 | relative: 1.0 0.5; | ||
3801 | offset: 0 4; | ||
3802 | } | ||
3803 | rel2 { | ||
3804 | to_x: "elm.swallow.end"; | ||
3805 | relative: 0.0 1.0; | ||
3806 | offset: -1 -5; | ||
3807 | } | ||
3808 | color: 0 0 0 128; | ||
3809 | color3: 0 0 0 0; | ||
3810 | text { | ||
3811 | font: "Sans"; | ||
3812 | size: 8; | ||
3813 | min: 1 1; | ||
3814 | // min: 0 1; | ||
3815 | align: 0.0 0.5; | ||
3816 | text_class: "list_item"; | ||
3817 | } | ||
3818 | } | ||
3819 | description { state: "selected" 0.0; | ||
3820 | inherit: "default" 0.0; | ||
3821 | color: 128 128 128 255; | ||
3822 | color3: 0 0 0 32; | ||
3823 | } | ||
3824 | } | ||
3825 | part { name: "fg1"; | ||
3826 | clip_to: "disclip"; | ||
3827 | mouse_events: 0; | ||
3828 | description { state: "default" 0.0; | ||
3829 | visible: 0; | ||
3830 | color: 255 255 255 0; | ||
3831 | rel1.to: "bg"; | ||
3832 | rel2.relative: 1.0 0.5; | ||
3833 | rel2.to: "bg"; | ||
3834 | image { | ||
3835 | normal: "bt_sm_hilight.png"; | ||
3836 | border: 6 6 6 0; | ||
3837 | } | ||
3838 | } | ||
3839 | description { state: "selected" 0.0; | ||
3840 | inherit: "default" 0.0; | ||
3841 | visible: 1; | ||
3842 | color: 255 255 255 255; | ||
3843 | } | ||
3844 | } | ||
3845 | part { name: "fg2"; | ||
3846 | clip_to: "disclip"; | ||
3847 | mouse_events: 0; | ||
3848 | description { state: "default" 0.0; | ||
3849 | visible: 0; | ||
3850 | color: 255 255 255 0; | ||
3851 | rel1.to: "bg"; | ||
3852 | rel2.to: "bg"; | ||
3853 | image { | ||
3854 | normal: "bt_sm_shine.png"; | ||
3855 | border: 6 6 6 0; | ||
3856 | } | ||
3857 | } | ||
3858 | description { state: "selected" 0.0; | ||
3859 | inherit: "default" 0.0; | ||
3860 | visible: 1; | ||
3861 | color: 255 255 255 255; | ||
3862 | } | ||
3863 | } | ||
3864 | part { name: "disclip"; | ||
3865 | type: RECT; | ||
3866 | description { state: "default" 0.0; | ||
3867 | rel1.to: "bg"; | ||
3868 | rel2.to: "bg"; | ||
3869 | } | ||
3870 | description { state: "disabled" 0.0; | ||
3871 | inherit: "default" 0.0; | ||
3872 | color: 255 255 255 64; | ||
3873 | } | ||
3874 | } | ||
3875 | } | ||
3876 | programs { | ||
3877 | // signal: elm,state,%s,active | ||
3878 | // a "check" item named %s went active | ||
3879 | // signal: elm,state,%s,passive | ||
3880 | // a "check" item named %s went passive | ||
3881 | // default is passive | ||
3882 | program { | ||
3883 | name: "go_active"; | ||
3884 | signal: "elm,state,selected"; | ||
3885 | source: "elm"; | ||
3886 | action: STATE_SET "selected" 0.0; | ||
3887 | target: "bg"; | ||
3888 | target: "fg1"; | ||
3889 | target: "fg2"; | ||
3890 | target: "elm.text"; | ||
3891 | target: "elm.text.sub"; | ||
3892 | } | ||
3893 | program { | ||
3894 | name: "go_passive"; | ||
3895 | signal: "elm,state,unselected"; | ||
3896 | source: "elm"; | ||
3897 | action: STATE_SET "default" 0.0; | ||
3898 | target: "bg"; | ||
3899 | target: "fg1"; | ||
3900 | target: "fg2"; | ||
3901 | target: "elm.text"; | ||
3902 | target: "elm.text.sub"; | ||
3903 | transition: LINEAR 0.1; | ||
3904 | } | ||
3905 | program { | ||
3906 | name: "go_disabled"; | ||
3907 | signal: "elm,state,disabled"; | ||
3908 | source: "elm"; | ||
3909 | action: STATE_SET "disabled" 0.0; | ||
3910 | target: "disclip"; | ||
3911 | } | ||
3912 | program { | ||
3913 | name: "go_enabled"; | ||
3914 | signal: "elm,state,enabled"; | ||
3915 | source: "elm"; | ||
3916 | action: STATE_SET "default" 0.0; | ||
3917 | target: "disclip"; | ||
3918 | } | ||
3919 | } | ||
3920 | } | ||
3921 | group { name: "elm/genlist/item_compress_odd/double_label/default"; | ||
3922 | data.item: "stacking" "below"; | ||
3923 | data.item: "selectraise" "on"; | ||
3924 | data.item: "texts" "elm.text elm.text.sub"; | ||
3925 | data.item: "contents" "elm.swallow.icon elm.swallow.end"; | ||
3926 | data.item: "treesize" "20"; | ||
3927 | // data.item: "states" ""; | ||
3928 | images { | ||
3929 | image: "bt_sm_base1.png" COMP; | ||
3930 | image: "bt_sm_shine.png" COMP; | ||
3931 | image: "bt_sm_hilight.png" COMP; | ||
3932 | image: "ilist_2.png" COMP; | ||
3933 | } | ||
3934 | parts { | ||
3935 | part { name: "event"; | ||
3936 | type: RECT; | ||
3937 | repeat_events: 1; | ||
3938 | description { | ||
3939 | state: "default" 0.0; | ||
3940 | color: 0 0 0 0; | ||
3941 | } | ||
3942 | } | ||
3943 | part { | ||
3944 | name: "base"; | ||
3945 | mouse_events: 0; | ||
3946 | description { | ||
3947 | state: "default" 0.0; | ||
3948 | image { | ||
3949 | normal: "ilist_2.png"; | ||
3950 | border: 2 2 2 2; | ||
3951 | } | ||
3952 | fill.smooth: 0; | ||
3953 | } | ||
3954 | } | ||
3955 | part { name: "bg"; | ||
3956 | clip_to: "disclip"; | ||
3957 | mouse_events: 0; | ||
3958 | description { state: "default" 0.0; | ||
3959 | visible: 0; | ||
3960 | color: 255 255 255 0; | ||
3961 | rel1 { | ||
3962 | relative: 0.0 0.0; | ||
3963 | offset: -5 -5; | ||
3964 | } | ||
3965 | rel2 { | ||
3966 | relative: 1.0 1.0; | ||
3967 | offset: 4 4; | ||
3968 | } | ||
3969 | image { | ||
3970 | normal: "bt_sm_base1.png"; | ||
3971 | border: 6 6 6 6; | ||
3972 | } | ||
3973 | image.middle: SOLID; | ||
3974 | } | ||
3975 | description { state: "selected" 0.0; | ||
3976 | inherit: "default" 0.0; | ||
3977 | visible: 1; | ||
3978 | color: 255 255 255 255; | ||
3979 | rel1 { | ||
3980 | relative: 0.0 0.0; | ||
3981 | offset: -2 -2; | ||
3982 | } | ||
3983 | rel2 { | ||
3984 | relative: 1.0 1.0; | ||
3985 | offset: 1 1; | ||
3986 | } | ||
3987 | } | ||
3988 | } | ||
3989 | part { name: "elm.swallow.pad"; | ||
3990 | type: SWALLOW; | ||
3991 | description { state: "default" 0.0; | ||
3992 | fixed: 1 0; | ||
3993 | align: 0.0 0.5; | ||
3994 | rel1 { | ||
3995 | relative: 0.0 0.0; | ||
3996 | offset: 4 4; | ||
3997 | } | ||
3998 | rel2 { | ||
3999 | relative: 0.0 1.0; | ||
4000 | offset: 4 -5; | ||
4001 | } | ||
4002 | } | ||
4003 | } | ||
4004 | part { name: "elm.swallow.icon"; | ||
4005 | clip_to: "disclip"; | ||
4006 | type: SWALLOW; | ||
4007 | description { state: "default" 0.0; | ||
4008 | fixed: 1 0; | ||
4009 | align: 0.0 0.5; | ||
4010 | rel1 { | ||
4011 | to_x: "elm.swallow.pad"; | ||
4012 | relative: 1.0 0.0; | ||
4013 | offset: -1 4; | ||
4014 | } | ||
4015 | rel2 { | ||
4016 | to_x: "elm.swallow.pad"; | ||
4017 | relative: 1.0 1.0; | ||
4018 | offset: -1 -5; | ||
4019 | } | ||
4020 | } | ||
4021 | } | ||
4022 | part { name: "elm.swallow.end"; | ||
4023 | clip_to: "disclip"; | ||
4024 | type: SWALLOW; | ||
4025 | description { state: "default" 0.0; | ||
4026 | fixed: 1 0; | ||
4027 | align: 1.0 0.5; | ||
4028 | aspect: 1.0 1.0; | ||
4029 | aspect_preference: VERTICAL; | ||
4030 | rel1 { | ||
4031 | relative: 1.0 0.0; | ||
4032 | offset: -5 4; | ||
4033 | } | ||
4034 | rel2 { | ||
4035 | relative: 1.0 1.0; | ||
4036 | offset: -5 -5; | ||
4037 | } | ||
4038 | } | ||
4039 | } | ||
4040 | part { name: "elm.text"; | ||
4041 | clip_to: "disclip"; | ||
4042 | type: TEXT; | ||
4043 | effect: SOFT_SHADOW; | ||
4044 | mouse_events: 0; | ||
4045 | scale: 1; | ||
4046 | description { | ||
4047 | state: "default" 0.0; | ||
4048 | // min: 16 16; | ||
4049 | rel1 { | ||
4050 | to_x: "elm.swallow.icon"; | ||
4051 | relative: 1.0 0.0; | ||
4052 | offset: 0 4; | ||
4053 | } | ||
4054 | rel2 { | ||
4055 | to_x: "elm.swallow.end"; | ||
4056 | relative: 0.0 0.5; | ||
4057 | offset: -1 -5; | ||
4058 | } | ||
4059 | color: 0 0 0 255; | ||
4060 | color3: 0 0 0 0; | ||
4061 | text { | ||
4062 | font: "Sans"; | ||
4063 | size: 10; | ||
4064 | // min: 1 1; | ||
4065 | min: 0 1; | ||
4066 | align: 0.0 0.5; | ||
4067 | text_class: "list_item"; | ||
4068 | } | ||
4069 | } | ||
4070 | description { state: "selected" 0.0; | ||
4071 | inherit: "default" 0.0; | ||
4072 | color: 224 224 224 255; | ||
4073 | color3: 0 0 0 64; | ||
4074 | } | ||
4075 | } | ||
4076 | part { name: "elm.text.sub"; | ||
4077 | clip_to: "disclip"; | ||
4078 | type: TEXT; | ||
4079 | mouse_events: 0; | ||
4080 | scale: 1; | ||
4081 | description { | ||
4082 | state: "default" 0.0; | ||
4083 | // min: 16 16; | ||
4084 | rel1 { | ||
4085 | to_x: "elm.swallow.icon"; | ||
4086 | relative: 1.0 0.5; | ||
4087 | offset: 0 4; | ||
4088 | } | ||
4089 | rel2 { | ||
4090 | to_x: "elm.swallow.end"; | ||
4091 | relative: 0.0 1.0; | ||
4092 | offset: -1 -5; | ||
4093 | } | ||
4094 | color: 0 0 0 128; | ||
4095 | color3: 0 0 0 0; | ||
4096 | text { | ||
4097 | font: "Sans"; | ||
4098 | size: 8; | ||
4099 | // min: 1 1; | ||
4100 | min: 0 1; | ||
4101 | align: 0.0 0.5; | ||
4102 | text_class: "list_item"; | ||
4103 | } | ||
4104 | } | ||
4105 | description { state: "selected" 0.0; | ||
4106 | inherit: "default" 0.0; | ||
4107 | color: 128 128 128 255; | ||
4108 | color3: 0 0 0 32; | ||
4109 | } | ||
4110 | } | ||
4111 | part { name: "fg1"; | ||
4112 | clip_to: "disclip"; | ||
4113 | mouse_events: 0; | ||
4114 | description { state: "default" 0.0; | ||
4115 | visible: 0; | ||
4116 | color: 255 255 255 0; | ||
4117 | rel1.to: "bg"; | ||
4118 | rel2.relative: 1.0 0.5; | ||
4119 | rel2.to: "bg"; | ||
4120 | image { | ||
4121 | normal: "bt_sm_hilight.png"; | ||
4122 | border: 6 6 6 0; | ||
4123 | } | ||
4124 | } | ||
4125 | description { state: "selected" 0.0; | ||
4126 | inherit: "default" 0.0; | ||
4127 | visible: 1; | ||
4128 | color: 255 255 255 255; | ||
4129 | } | ||
4130 | } | ||
4131 | part { name: "fg2"; | ||
4132 | clip_to: "disclip"; | ||
4133 | mouse_events: 0; | ||
4134 | description { state: "default" 0.0; | ||
4135 | visible: 0; | ||
4136 | color: 255 255 255 0; | ||
4137 | rel1.to: "bg"; | ||
4138 | rel2.to: "bg"; | ||
4139 | image { | ||
4140 | normal: "bt_sm_shine.png"; | ||
4141 | border: 6 6 6 0; | ||
4142 | } | ||
4143 | } | ||
4144 | description { state: "selected" 0.0; | ||
4145 | inherit: "default" 0.0; | ||
4146 | visible: 1; | ||
4147 | color: 255 255 255 255; | ||
4148 | } | ||
4149 | } | ||
4150 | part { name: "disclip"; | ||
4151 | type: RECT; | ||
4152 | description { state: "default" 0.0; | ||
4153 | rel1.to: "bg"; | ||
4154 | rel2.to: "bg"; | ||
4155 | } | ||
4156 | description { state: "disabled" 0.0; | ||
4157 | inherit: "default" 0.0; | ||
4158 | color: 255 255 255 64; | ||
4159 | } | ||
4160 | } | ||
4161 | } | ||
4162 | programs { | ||
4163 | // signal: elm,state,%s,active | ||
4164 | // a "check" item named %s went active | ||
4165 | // signal: elm,state,%s,passive | ||
4166 | // a "check" item named %s went passive | ||
4167 | // default is passive | ||
4168 | program { | ||
4169 | name: "go_active"; | ||
4170 | signal: "elm,state,selected"; | ||
4171 | source: "elm"; | ||
4172 | action: STATE_SET "selected" 0.0; | ||
4173 | target: "bg"; | ||
4174 | target: "fg1"; | ||
4175 | target: "fg2"; | ||
4176 | target: "elm.text"; | ||
4177 | target: "elm.text.sub"; | ||
4178 | } | ||
4179 | program { | ||
4180 | name: "go_passive"; | ||
4181 | signal: "elm,state,unselected"; | ||
4182 | source: "elm"; | ||
4183 | action: STATE_SET "default" 0.0; | ||
4184 | target: "bg"; | ||
4185 | target: "fg1"; | ||
4186 | target: "fg2"; | ||
4187 | target: "elm.text"; | ||
4188 | target: "elm.text.sub"; | ||
4189 | transition: LINEAR 0.1; | ||
4190 | } | ||
4191 | program { | ||
4192 | name: "go_disabled"; | ||
4193 | signal: "elm,state,disabled"; | ||
4194 | source: "elm"; | ||
4195 | action: STATE_SET "disabled" 0.0; | ||
4196 | target: "disclip"; | ||
4197 | } | ||
4198 | program { | ||
4199 | name: "go_enabled"; | ||
4200 | signal: "elm,state,enabled"; | ||
4201 | source: "elm"; | ||
4202 | action: STATE_SET "default" 0.0; | ||
4203 | target: "disclip"; | ||
4204 | } | ||
4205 | } | ||
4206 | } | ||
4207 | |||
4208 | group { name: "elm/genlist/tree/double_label/default"; | ||
4209 | data.item: "stacking" "above"; | ||
4210 | data.item: "selectraise" "on"; | ||
4211 | data.item: "texts" "elm.text elm.text.sub"; | ||
4212 | data.item: "contents" "elm.swallow.icon elm.swallow.end"; | ||
4213 | data.item: "treesize" "20"; | ||
4214 | // data.item: "states" ""; | ||
4215 | images { | ||
4216 | image: "bt_sm_base1.png" COMP; | ||
4217 | image: "bt_sm_shine.png" COMP; | ||
4218 | image: "bt_sm_hilight.png" COMP; | ||
4219 | image: "ilist_1.png" COMP; | ||
4220 | image: "ilist_item_shadow.png" COMP; | ||
4221 | image: "icon_arrow_right.png" COMP; | ||
4222 | image: "icon_arrow_down.png" COMP; | ||
4223 | } | ||
4224 | parts { | ||
4225 | part { | ||
4226 | name: "event"; | ||
4227 | type: RECT; | ||
4228 | repeat_events: 1; | ||
4229 | description { | ||
4230 | state: "default" 0.0; | ||
4231 | color: 0 0 0 0; | ||
4232 | } | ||
4233 | } | ||
4234 | part { | ||
4235 | name: "base_sh"; | ||
4236 | mouse_events: 0; | ||
4237 | description { | ||
4238 | state: "default" 0.0; | ||
4239 | align: 0.0 0.0; | ||
4240 | min: 0 10; | ||
4241 | fixed: 1 1; | ||
4242 | rel1 { | ||
4243 | to: "base"; | ||
4244 | relative: 0.0 1.0; | ||
4245 | offset: 0 0; | ||
4246 | } | ||
4247 | rel2 { | ||
4248 | to: "base"; | ||
4249 | relative: 1.0 1.0; | ||
4250 | offset: -1 0; | ||
4251 | } | ||
4252 | image { | ||
4253 | normal: "ilist_item_shadow.png"; | ||
4254 | } | ||
4255 | fill.smooth: 0; | ||
4256 | } | ||
4257 | } | ||
4258 | part { | ||
4259 | name: "base"; | ||
4260 | mouse_events: 0; | ||
4261 | description { | ||
4262 | state: "default" 0.0; | ||
4263 | image { | ||
4264 | normal: "ilist_1.png"; | ||
4265 | border: 2 2 2 2; | ||
4266 | } | ||
4267 | fill.smooth: 0; | ||
4268 | } | ||
4269 | } | ||
4270 | part { name: "bg"; | ||
4271 | clip_to: "disclip"; | ||
4272 | mouse_events: 0; | ||
4273 | description { state: "default" 0.0; | ||
4274 | visible: 0; | ||
4275 | color: 255 255 255 0; | ||
4276 | rel1 { | ||
4277 | relative: 0.0 0.0; | ||
4278 | offset: -5 -5; | ||
4279 | } | ||
4280 | rel2 { | ||
4281 | relative: 1.0 1.0; | ||
4282 | offset: 4 4; | ||
4283 | } | ||
4284 | image { | ||
4285 | normal: "bt_sm_base1.png"; | ||
4286 | border: 6 6 6 6; | ||
4287 | } | ||
4288 | image.middle: SOLID; | ||
4289 | } | ||
4290 | description { state: "selected" 0.0; | ||
4291 | inherit: "default" 0.0; | ||
4292 | visible: 1; | ||
4293 | color: 255 255 255 255; | ||
4294 | rel1 { | ||
4295 | relative: 0.0 0.0; | ||
4296 | offset: -2 -2; | ||
4297 | } | ||
4298 | rel2 { | ||
4299 | relative: 1.0 1.0; | ||
4300 | offset: 1 1; | ||
4301 | } | ||
4302 | } | ||
4303 | } | ||
4304 | part { name: "elm.swallow.pad"; | ||
4305 | type: SWALLOW; | ||
4306 | description { state: "default" 0.0; | ||
4307 | fixed: 1 0; | ||
4308 | align: 0.0 0.5; | ||
4309 | rel1 { | ||
4310 | relative: 0.0 0.0; | ||
4311 | offset: 4 4; | ||
4312 | } | ||
4313 | rel2 { | ||
4314 | relative: 0.0 1.0; | ||
4315 | offset: 4 -5; | ||
4316 | } | ||
4317 | } | ||
4318 | } | ||
4319 | part { name: "arrow"; | ||
4320 | clip_to: "disclip"; | ||
4321 | ignore_flags: ON_HOLD; | ||
4322 | description { state: "default" 0.0; | ||
4323 | fixed: 1 0; | ||
4324 | align: 0.0 0.5; | ||
4325 | aspect: 1.0 1.0; | ||
4326 | rel1 { | ||
4327 | to_x: "elm.swallow.pad"; | ||
4328 | relative: 1.0 0.0; | ||
4329 | offset: -1 4; | ||
4330 | } | ||
4331 | rel2 { | ||
4332 | to_x: "elm.swallow.pad"; | ||
4333 | relative: 1.0 1.0; | ||
4334 | offset: -1 -5; | ||
4335 | } | ||
4336 | image.normal: "icon_arrow_right.png"; | ||
4337 | } | ||
4338 | description { state: "active" 0.0; | ||
4339 | inherit: "default" 0.0; | ||
4340 | image.normal: "icon_arrow_down.png"; | ||
4341 | } | ||
4342 | } | ||
4343 | part { name: "elm.swallow.icon"; | ||
4344 | clip_to: "disclip"; | ||
4345 | type: SWALLOW; | ||
4346 | description { state: "default" 0.0; | ||
4347 | fixed: 1 0; | ||
4348 | align: 0.0 0.5; | ||
4349 | rel1 { | ||
4350 | to_x: "arrow"; | ||
4351 | relative: 1.0 0.0; | ||
4352 | offset: 4 4; | ||
4353 | } | ||
4354 | rel2 { | ||
4355 | to_x: "arrow"; | ||
4356 | relative: 1.0 1.0; | ||
4357 | offset: 4 -5; | ||
4358 | } | ||
4359 | } | ||
4360 | } | ||
4361 | part { name: "elm.swallow.end"; | ||
4362 | clip_to: "disclip"; | ||
4363 | type: SWALLOW; | ||
4364 | description { state: "default" 0.0; | ||
4365 | fixed: 1 0; | ||
4366 | align: 1.0 0.5; | ||
4367 | aspect: 1.0 1.0; | ||
4368 | aspect_preference: VERTICAL; | ||
4369 | rel1 { | ||
4370 | relative: 1.0 0.0; | ||
4371 | offset: -5 4; | ||
4372 | } | ||
4373 | rel2 { | ||
4374 | relative: 1.0 1.0; | ||
4375 | offset: -5 -5; | ||
4376 | } | ||
4377 | } | ||
4378 | } | ||
4379 | part { name: "elm.text"; | ||
4380 | clip_to: "disclip"; | ||
4381 | type: TEXT; | ||
4382 | effect: SOFT_SHADOW; | ||
4383 | mouse_events: 0; | ||
4384 | scale: 1; | ||
4385 | description { | ||
4386 | state: "default" 0.0; | ||
4387 | // min: 16 16; | ||
4388 | rel1 { | ||
4389 | to_x: "elm.swallow.icon"; | ||
4390 | relative: 1.0 0.0; | ||
4391 | offset: 0 4; | ||
4392 | } | ||
4393 | rel2 { | ||
4394 | to_x: "elm.swallow.end"; | ||
4395 | relative: 0.0 0.5; | ||
4396 | offset: -1 -5; | ||
4397 | } | ||
4398 | color: 0 0 0 255; | ||
4399 | color3: 0 0 0 0; | ||
4400 | text { | ||
4401 | font: "Sans"; | ||
4402 | size: 10; | ||
4403 | min: 1 1; | ||
4404 | // min: 0 1; | ||
4405 | align: 0.0 0.5; | ||
4406 | text_class: "list_item"; | ||
4407 | } | ||
4408 | } | ||
4409 | description { state: "selected" 0.0; | ||
4410 | inherit: "default" 0.0; | ||
4411 | color: 224 224 224 255; | ||
4412 | color3: 0 0 0 64; | ||
4413 | } | ||
4414 | } | ||
4415 | part { name: "elm.text.sub"; | ||
4416 | clip_to: "disclip"; | ||
4417 | type: TEXT; | ||
4418 | mouse_events: 0; | ||
4419 | scale: 1; | ||
4420 | description { | ||
4421 | state: "default" 0.0; | ||
4422 | // min: 16 16; | ||
4423 | rel1 { | ||
4424 | to_x: "elm.swallow.icon"; | ||
4425 | relative: 1.0 0.5; | ||
4426 | offset: 0 4; | ||
4427 | } | ||
4428 | rel2 { | ||
4429 | to_x: "elm.swallow.end"; | ||
4430 | relative: 0.0 1.0; | ||
4431 | offset: -1 -5; | ||
4432 | } | ||
4433 | color: 0 0 0 128; | ||
4434 | color3: 0 0 0 0; | ||
4435 | text { | ||
4436 | font: "Sans"; | ||
4437 | size: 8; | ||
4438 | min: 1 1; | ||
4439 | // min: 0 1; | ||
4440 | align: 0.0 0.5; | ||
4441 | text_class: "list_item"; | ||
4442 | } | ||
4443 | } | ||
4444 | description { state: "selected" 0.0; | ||
4445 | inherit: "default" 0.0; | ||
4446 | color: 128 128 128 255; | ||
4447 | color3: 0 0 0 32; | ||
4448 | } | ||
4449 | } | ||
4450 | part { name: "fg1"; | ||
4451 | clip_to: "disclip"; | ||
4452 | mouse_events: 0; | ||
4453 | description { state: "default" 0.0; | ||
4454 | visible: 0; | ||
4455 | color: 255 255 255 0; | ||
4456 | rel1.to: "bg"; | ||
4457 | rel2.relative: 1.0 0.5; | ||
4458 | rel2.to: "bg"; | ||
4459 | image { | ||
4460 | normal: "bt_sm_hilight.png"; | ||
4461 | border: 6 6 6 0; | ||
4462 | } | ||
4463 | } | ||
4464 | description { state: "selected" 0.0; | ||
4465 | inherit: "default" 0.0; | ||
4466 | visible: 1; | ||
4467 | color: 255 255 255 255; | ||
4468 | } | ||
4469 | } | ||
4470 | part { name: "fg2"; | ||
4471 | clip_to: "disclip"; | ||
4472 | mouse_events: 0; | ||
4473 | description { state: "default" 0.0; | ||
4474 | visible: 0; | ||
4475 | color: 255 255 255 0; | ||
4476 | rel1.to: "bg"; | ||
4477 | rel2.to: "bg"; | ||
4478 | image { | ||
4479 | normal: "bt_sm_shine.png"; | ||
4480 | border: 6 6 6 0; | ||
4481 | } | ||
4482 | } | ||
4483 | description { state: "selected" 0.0; | ||
4484 | inherit: "default" 0.0; | ||
4485 | visible: 1; | ||
4486 | color: 255 255 255 255; | ||
4487 | } | ||
4488 | } | ||
4489 | part { name: "disclip"; | ||
4490 | type: RECT; | ||
4491 | description { state: "default" 0.0; | ||
4492 | rel1.to: "bg"; | ||
4493 | rel2.to: "bg"; | ||
4494 | } | ||
4495 | description { state: "disabled" 0.0; | ||
4496 | inherit: "default" 0.0; | ||
4497 | color: 255 255 255 64; | ||
4498 | } | ||
4499 | } | ||
4500 | } | ||
4501 | programs { | ||
4502 | // signal: elm,state,%s,active | ||
4503 | // a "check" item named %s went active | ||
4504 | // signal: elm,state,%s,passive | ||
4505 | // a "check" item named %s went passive | ||
4506 | // default is passive | ||
4507 | program { | ||
4508 | name: "go_active"; | ||
4509 | signal: "elm,state,selected"; | ||
4510 | source: "elm"; | ||
4511 | action: STATE_SET "selected" 0.0; | ||
4512 | target: "bg"; | ||
4513 | target: "fg1"; | ||
4514 | target: "fg2"; | ||
4515 | target: "elm.text"; | ||
4516 | target: "elm.text.sub"; | ||
4517 | } | ||
4518 | program { | ||
4519 | name: "go_passive"; | ||
4520 | signal: "elm,state,unselected"; | ||
4521 | source: "elm"; | ||
4522 | action: STATE_SET "default" 0.0; | ||
4523 | target: "bg"; | ||
4524 | target: "fg1"; | ||
4525 | target: "fg2"; | ||
4526 | target: "elm.text"; | ||
4527 | target: "elm.text.sub"; | ||
4528 | transition: LINEAR 0.1; | ||
4529 | } | ||
4530 | program { | ||
4531 | name: "go_disabled"; | ||
4532 | signal: "elm,state,disabled"; | ||
4533 | source: "elm"; | ||
4534 | action: STATE_SET "disabled" 0.0; | ||
4535 | target: "disclip"; | ||
4536 | } | ||
4537 | program { | ||
4538 | name: "go_enabled"; | ||
4539 | signal: "elm,state,enabled"; | ||
4540 | source: "elm"; | ||
4541 | action: STATE_SET "default" 0.0; | ||
4542 | target: "disclip"; | ||
4543 | } | ||
4544 | program { | ||
4545 | name: "expand"; | ||
4546 | signal: "mouse,up,1"; | ||
4547 | source: "arrow"; | ||
4548 | action: SIGNAL_EMIT "elm,action,expand,toggle" "elm"; | ||
4549 | } | ||
4550 | program { | ||
4551 | name: "go_expanded"; | ||
4552 | signal: "elm,state,expanded"; | ||
4553 | source: "elm"; | ||
4554 | action: STATE_SET "active" 0.0; | ||
4555 | target: "arrow"; | ||
4556 | } | ||
4557 | program { | ||
4558 | name: "go_contracted"; | ||
4559 | signal: "elm,state,contracted"; | ||
4560 | source: "elm"; | ||
4561 | action: STATE_SET "default" 0.0; | ||
4562 | target: "arrow"; | ||
4563 | } | ||
4564 | } | ||
4565 | } | ||
4566 | group { name: "elm/genlist/tree_compress/double_label/default"; | ||
4567 | data.item: "stacking" "above"; | ||
4568 | data.item: "selectraise" "on"; | ||
4569 | data.item: "texts" "elm.text elm.text.sub"; | ||
4570 | data.item: "contents" "elm.swallow.icon elm.swallow.end"; | ||
4571 | data.item: "treesize" "20"; | ||
4572 | // data.item: "states" ""; | ||
4573 | images { | ||
4574 | image: "bt_sm_base1.png" COMP; | ||
4575 | image: "bt_sm_shine.png" COMP; | ||
4576 | image: "bt_sm_hilight.png" COMP; | ||
4577 | image: "ilist_1.png" COMP; | ||
4578 | image: "ilist_item_shadow.png" COMP; | ||
4579 | image: "icon_arrow_right.png" COMP; | ||
4580 | image: "icon_arrow_down.png" COMP; | ||
4581 | } | ||
4582 | parts { | ||
4583 | part { | ||
4584 | name: "event"; | ||
4585 | type: RECT; | ||
4586 | repeat_events: 1; | ||
4587 | description { | ||
4588 | state: "default" 0.0; | ||
4589 | color: 0 0 0 0; | ||
4590 | } | ||
4591 | } | ||
4592 | part { | ||
4593 | name: "base_sh"; | ||
4594 | mouse_events: 0; | ||
4595 | description { | ||
4596 | state: "default" 0.0; | ||
4597 | align: 0.0 0.0; | ||
4598 | min: 0 10; | ||
4599 | fixed: 1 1; | ||
4600 | rel1 { | ||
4601 | to: "base"; | ||
4602 | relative: 0.0 1.0; | ||
4603 | offset: 0 0; | ||
4604 | } | ||
4605 | rel2 { | ||
4606 | to: "base"; | ||
4607 | relative: 1.0 1.0; | ||
4608 | offset: -1 0; | ||
4609 | } | ||
4610 | image { | ||
4611 | normal: "ilist_item_shadow.png"; | ||
4612 | } | ||
4613 | fill.smooth: 0; | ||
4614 | } | ||
4615 | } | ||
4616 | part { | ||
4617 | name: "base"; | ||
4618 | mouse_events: 0; | ||
4619 | description { | ||
4620 | state: "default" 0.0; | ||
4621 | image { | ||
4622 | normal: "ilist_1.png"; | ||
4623 | border: 2 2 2 2; | ||
4624 | } | ||
4625 | fill.smooth: 0; | ||
4626 | } | ||
4627 | } | ||
4628 | part { name: "bg"; | ||
4629 | clip_to: "disclip"; | ||
4630 | mouse_events: 0; | ||
4631 | description { state: "default" 0.0; | ||
4632 | visible: 0; | ||
4633 | color: 255 255 255 0; | ||
4634 | rel1 { | ||
4635 | relative: 0.0 0.0; | ||
4636 | offset: -5 -5; | ||
4637 | } | ||
4638 | rel2 { | ||
4639 | relative: 1.0 1.0; | ||
4640 | offset: 4 4; | ||
4641 | } | ||
4642 | image { | ||
4643 | normal: "bt_sm_base1.png"; | ||
4644 | border: 6 6 6 6; | ||
4645 | } | ||
4646 | image.middle: SOLID; | ||
4647 | } | ||
4648 | description { state: "selected" 0.0; | ||
4649 | inherit: "default" 0.0; | ||
4650 | visible: 1; | ||
4651 | color: 255 255 255 255; | ||
4652 | rel1 { | ||
4653 | relative: 0.0 0.0; | ||
4654 | offset: -2 -2; | ||
4655 | } | ||
4656 | rel2 { | ||
4657 | relative: 1.0 1.0; | ||
4658 | offset: 1 1; | ||
4659 | } | ||
4660 | } | ||
4661 | } | ||
4662 | part { name: "elm.swallow.pad"; | ||
4663 | type: SWALLOW; | ||
4664 | description { state: "default" 0.0; | ||
4665 | fixed: 1 0; | ||
4666 | align: 0.0 0.5; | ||
4667 | rel1 { | ||
4668 | relative: 0.0 0.0; | ||
4669 | offset: 4 4; | ||
4670 | } | ||
4671 | rel2 { | ||
4672 | relative: 0.0 1.0; | ||
4673 | offset: 4 -5; | ||
4674 | } | ||
4675 | } | ||
4676 | } | ||
4677 | part { name: "arrow"; | ||
4678 | clip_to: "disclip"; | ||
4679 | ignore_flags: ON_HOLD; | ||
4680 | description { state: "default" 0.0; | ||
4681 | fixed: 1 0; | ||
4682 | align: 0.0 0.5; | ||
4683 | aspect: 1.0 1.0; | ||
4684 | rel1 { | ||
4685 | to_x: "elm.swallow.pad"; | ||
4686 | relative: 1.0 0.0; | ||
4687 | offset: -1 4; | ||
4688 | } | ||
4689 | rel2 { | ||
4690 | to_x: "elm.swallow.pad"; | ||
4691 | relative: 1.0 1.0; | ||
4692 | offset: -1 -5; | ||
4693 | } | ||
4694 | image.normal: "icon_arrow_right.png"; | ||
4695 | } | ||
4696 | description { state: "active" 0.0; | ||
4697 | inherit: "default" 0.0; | ||
4698 | image.normal: "icon_arrow_down.png"; | ||
4699 | } | ||
4700 | } | ||
4701 | part { name: "elm.swallow.icon"; | ||
4702 | clip_to: "disclip"; | ||
4703 | type: SWALLOW; | ||
4704 | description { state: "default" 0.0; | ||
4705 | fixed: 1 0; | ||
4706 | align: 0.0 0.5; | ||
4707 | rel1 { | ||
4708 | to_x: "arrow"; | ||
4709 | relative: 1.0 0.0; | ||
4710 | offset: 4 4; | ||
4711 | } | ||
4712 | rel2 { | ||
4713 | to_x: "arrow"; | ||
4714 | relative: 1.0 1.0; | ||
4715 | offset: 4 -5; | ||
4716 | } | ||
4717 | } | ||
4718 | } | ||
4719 | part { name: "elm.swallow.end"; | ||
4720 | clip_to: "disclip"; | ||
4721 | type: SWALLOW; | ||
4722 | description { state: "default" 0.0; | ||
4723 | fixed: 1 0; | ||
4724 | align: 1.0 0.5; | ||
4725 | aspect: 1.0 1.0; | ||
4726 | aspect_preference: VERTICAL; | ||
4727 | rel1 { | ||
4728 | relative: 1.0 0.0; | ||
4729 | offset: -5 4; | ||
4730 | } | ||
4731 | rel2 { | ||
4732 | relative: 1.0 1.0; | ||
4733 | offset: -5 -5; | ||
4734 | } | ||
4735 | } | ||
4736 | } | ||
4737 | part { name: "elm.text"; | ||
4738 | clip_to: "disclip"; | ||
4739 | type: TEXT; | ||
4740 | effect: SOFT_SHADOW; | ||
4741 | mouse_events: 0; | ||
4742 | scale: 1; | ||
4743 | description { | ||
4744 | state: "default" 0.0; | ||
4745 | // min: 16 16; | ||
4746 | rel1 { | ||
4747 | to_x: "elm.swallow.icon"; | ||
4748 | relative: 1.0 0.0; | ||
4749 | offset: 0 4; | ||
4750 | } | ||
4751 | rel2 { | ||
4752 | to_x: "elm.swallow.end"; | ||
4753 | relative: 0.0 0.5; | ||
4754 | offset: -1 -5; | ||
4755 | } | ||
4756 | color: 0 0 0 255; | ||
4757 | color3: 0 0 0 0; | ||
4758 | text { | ||
4759 | font: "Sans"; | ||
4760 | size: 10; | ||
4761 | // min: 1 1; | ||
4762 | min: 0 1; | ||
4763 | align: 0.0 0.5; | ||
4764 | text_class: "list_item"; | ||
4765 | } | ||
4766 | } | ||
4767 | description { state: "selected" 0.0; | ||
4768 | inherit: "default" 0.0; | ||
4769 | color: 224 224 224 255; | ||
4770 | color3: 0 0 0 64; | ||
4771 | } | ||
4772 | } | ||
4773 | part { name: "elm.text.sub"; | ||
4774 | clip_to: "disclip"; | ||
4775 | type: TEXT; | ||
4776 | mouse_events: 0; | ||
4777 | scale: 1; | ||
4778 | description { | ||
4779 | state: "default" 0.0; | ||
4780 | // min: 16 16; | ||
4781 | rel1 { | ||
4782 | to_x: "elm.swallow.icon"; | ||
4783 | relative: 1.0 0.5; | ||
4784 | offset: 0 4; | ||
4785 | } | ||
4786 | rel2 { | ||
4787 | to_x: "elm.swallow.end"; | ||
4788 | relative: 0.0 1.0; | ||
4789 | offset: -1 -5; | ||
4790 | } | ||
4791 | color: 0 0 0 128; | ||
4792 | color3: 0 0 0 0; | ||
4793 | text { | ||
4794 | font: "Sans"; | ||
4795 | size: 8; | ||
4796 | // min: 1 1; | ||
4797 | min: 0 1; | ||
4798 | align: 0.0 0.5; | ||
4799 | text_class: "list_item"; | ||
4800 | } | ||
4801 | } | ||
4802 | description { state: "selected" 0.0; | ||
4803 | inherit: "default" 0.0; | ||
4804 | color: 128 128 128 255; | ||
4805 | color3: 0 0 0 32; | ||
4806 | } | ||
4807 | } | ||
4808 | part { name: "fg1"; | ||
4809 | clip_to: "disclip"; | ||
4810 | mouse_events: 0; | ||
4811 | description { state: "default" 0.0; | ||
4812 | visible: 0; | ||
4813 | color: 255 255 255 0; | ||
4814 | rel1.to: "bg"; | ||
4815 | rel2.relative: 1.0 0.5; | ||
4816 | rel2.to: "bg"; | ||
4817 | image { | ||
4818 | normal: "bt_sm_hilight.png"; | ||
4819 | border: 6 6 6 0; | ||
4820 | } | ||
4821 | } | ||
4822 | description { state: "selected" 0.0; | ||
4823 | inherit: "default" 0.0; | ||
4824 | visible: 1; | ||
4825 | color: 255 255 255 255; | ||
4826 | } | ||
4827 | } | ||
4828 | part { name: "fg2"; | ||
4829 | clip_to: "disclip"; | ||
4830 | mouse_events: 0; | ||
4831 | description { state: "default" 0.0; | ||
4832 | visible: 0; | ||
4833 | color: 255 255 255 0; | ||
4834 | rel1.to: "bg"; | ||
4835 | rel2.to: "bg"; | ||
4836 | image { | ||
4837 | normal: "bt_sm_shine.png"; | ||
4838 | border: 6 6 6 0; | ||
4839 | } | ||
4840 | } | ||
4841 | description { state: "selected" 0.0; | ||
4842 | inherit: "default" 0.0; | ||
4843 | visible: 1; | ||
4844 | color: 255 255 255 255; | ||
4845 | } | ||
4846 | } | ||
4847 | part { name: "disclip"; | ||
4848 | type: RECT; | ||
4849 | description { state: "default" 0.0; | ||
4850 | rel1.to: "bg"; | ||
4851 | rel2.to: "bg"; | ||
4852 | } | ||
4853 | description { state: "disabled" 0.0; | ||
4854 | inherit: "default" 0.0; | ||
4855 | color: 255 255 255 64; | ||
4856 | } | ||
4857 | } | ||
4858 | } | ||
4859 | programs { | ||
4860 | // signal: elm,state,%s,active | ||
4861 | // a "check" item named %s went active | ||
4862 | // signal: elm,state,%s,passive | ||
4863 | // a "check" item named %s went passive | ||
4864 | // default is passive | ||
4865 | program { | ||
4866 | name: "go_active"; | ||
4867 | signal: "elm,state,selected"; | ||
4868 | source: "elm"; | ||
4869 | action: STATE_SET "selected" 0.0; | ||
4870 | target: "bg"; | ||
4871 | target: "fg1"; | ||
4872 | target: "fg2"; | ||
4873 | target: "elm.text"; | ||
4874 | target: "elm.text.sub"; | ||
4875 | } | ||
4876 | program { | ||
4877 | name: "go_passive"; | ||
4878 | signal: "elm,state,unselected"; | ||
4879 | source: "elm"; | ||
4880 | action: STATE_SET "default" 0.0; | ||
4881 | target: "bg"; | ||
4882 | target: "fg1"; | ||
4883 | target: "fg2"; | ||
4884 | target: "elm.text"; | ||
4885 | target: "elm.text.sub"; | ||
4886 | transition: LINEAR 0.1; | ||
4887 | } | ||
4888 | program { | ||
4889 | name: "go_disabled"; | ||
4890 | signal: "elm,state,disabled"; | ||
4891 | source: "elm"; | ||
4892 | action: STATE_SET "disabled" 0.0; | ||
4893 | target: "disclip"; | ||
4894 | } | ||
4895 | program { | ||
4896 | name: "go_enabled"; | ||
4897 | signal: "elm,state,enabled"; | ||
4898 | source: "elm"; | ||
4899 | action: STATE_SET "default" 0.0; | ||
4900 | target: "disclip"; | ||
4901 | } | ||
4902 | program { | ||
4903 | name: "expand"; | ||
4904 | signal: "mouse,up,1"; | ||
4905 | source: "arrow"; | ||
4906 | action: SIGNAL_EMIT "elm,action,expand,toggle" "elm"; | ||
4907 | } | ||
4908 | program { | ||
4909 | name: "go_expanded"; | ||
4910 | signal: "elm,state,expanded"; | ||
4911 | source: "elm"; | ||
4912 | action: STATE_SET "active" 0.0; | ||
4913 | target: "arrow"; | ||
4914 | } | ||
4915 | program { | ||
4916 | name: "go_contracted"; | ||
4917 | signal: "elm,state,contracted"; | ||
4918 | source: "elm"; | ||
4919 | action: STATE_SET "default" 0.0; | ||
4920 | target: "arrow"; | ||
4921 | } | ||
4922 | } | ||
4923 | } | ||
4924 | group { name: "elm/genlist/tree_odd/double_label/default"; | ||
4925 | data.item: "stacking" "below"; | ||
4926 | data.item: "selectraise" "on"; | ||
4927 | data.item: "texts" "elm.text elm.text.sub"; | ||
4928 | data.item: "contents" "elm.swallow.icon elm.swallow.end"; | ||
4929 | data.item: "treesize" "20"; | ||
4930 | // data.item: "states" ""; | ||
4931 | images { | ||
4932 | image: "bt_sm_base1.png" COMP; | ||
4933 | image: "bt_sm_shine.png" COMP; | ||
4934 | image: "bt_sm_hilight.png" COMP; | ||
4935 | image: "ilist_2.png" COMP; | ||
4936 | image: "icon_arrow_right.png" COMP; | ||
4937 | image: "icon_arrow_down.png" COMP; | ||
4938 | } | ||
4939 | parts { | ||
4940 | part { | ||
4941 | name: "event"; | ||
4942 | type: RECT; | ||
4943 | repeat_events: 1; | ||
4944 | description { | ||
4945 | state: "default" 0.0; | ||
4946 | color: 0 0 0 0; | ||
4947 | } | ||
4948 | } | ||
4949 | part { | ||
4950 | name: "base"; | ||
4951 | mouse_events: 0; | ||
4952 | description { | ||
4953 | state: "default" 0.0; | ||
4954 | image { | ||
4955 | normal: "ilist_2.png"; | ||
4956 | border: 2 2 2 2; | ||
4957 | } | ||
4958 | fill.smooth: 0; | ||
4959 | } | ||
4960 | } | ||
4961 | part { name: "bg"; | ||
4962 | clip_to: "disclip"; | ||
4963 | mouse_events: 0; | ||
4964 | description { state: "default" 0.0; | ||
4965 | visible: 0; | ||
4966 | color: 255 255 255 0; | ||
4967 | rel1 { | ||
4968 | relative: 0.0 0.0; | ||
4969 | offset: -5 -5; | ||
4970 | } | ||
4971 | rel2 { | ||
4972 | relative: 1.0 1.0; | ||
4973 | offset: 4 4; | ||
4974 | } | ||
4975 | image { | ||
4976 | normal: "bt_sm_base1.png"; | ||
4977 | border: 6 6 6 6; | ||
4978 | } | ||
4979 | image.middle: SOLID; | ||
4980 | } | ||
4981 | description { state: "selected" 0.0; | ||
4982 | inherit: "default" 0.0; | ||
4983 | visible: 1; | ||
4984 | color: 255 255 255 255; | ||
4985 | rel1 { | ||
4986 | relative: 0.0 0.0; | ||
4987 | offset: -2 -2; | ||
4988 | } | ||
4989 | rel2 { | ||
4990 | relative: 1.0 1.0; | ||
4991 | offset: 1 1; | ||
4992 | } | ||
4993 | } | ||
4994 | } | ||
4995 | part { name: "elm.swallow.pad"; | ||
4996 | type: SWALLOW; | ||
4997 | description { state: "default" 0.0; | ||
4998 | fixed: 1 0; | ||
4999 | align: 0.0 0.5; | ||
5000 | rel1 { | ||
5001 | relative: 0.0 0.0; | ||
5002 | offset: 4 4; | ||
5003 | } | ||
5004 | rel2 { | ||
5005 | relative: 0.0 1.0; | ||
5006 | offset: 4 -5; | ||
5007 | } | ||
5008 | } | ||
5009 | } | ||
5010 | part { name: "arrow"; | ||
5011 | clip_to: "disclip"; | ||
5012 | ignore_flags: ON_HOLD; | ||
5013 | description { state: "default" 0.0; | ||
5014 | fixed: 1 0; | ||
5015 | align: 0.0 0.5; | ||
5016 | aspect: 1.0 1.0; | ||
5017 | rel1 { | ||
5018 | to_x: "elm.swallow.pad"; | ||
5019 | relative: 1.0 0.0; | ||
5020 | offset: -1 4; | ||
5021 | } | ||
5022 | rel2 { | ||
5023 | to_x: "elm.swallow.pad"; | ||
5024 | relative: 1.0 1.0; | ||
5025 | offset: -1 -5; | ||
5026 | } | ||
5027 | image.normal: "icon_arrow_right.png"; | ||
5028 | } | ||
5029 | description { state: "active" 0.0; | ||
5030 | inherit: "default" 0.0; | ||
5031 | image.normal: "icon_arrow_down.png"; | ||
5032 | } | ||
5033 | } | ||
5034 | part { name: "elm.swallow.icon"; | ||
5035 | clip_to: "disclip"; | ||
5036 | type: SWALLOW; | ||
5037 | description { state: "default" 0.0; | ||
5038 | fixed: 1 0; | ||
5039 | align: 0.0 0.5; | ||
5040 | rel1 { | ||
5041 | to_x: "arrow"; | ||
5042 | relative: 1.0 0.0; | ||
5043 | offset: 4 4; | ||
5044 | } | ||
5045 | rel2 { | ||
5046 | to_x: "arrow"; | ||
5047 | relative: 1.0 1.0; | ||
5048 | offset: 4 -5; | ||
5049 | } | ||
5050 | } | ||
5051 | } | ||
5052 | part { name: "elm.swallow.end"; | ||
5053 | clip_to: "disclip"; | ||
5054 | type: SWALLOW; | ||
5055 | description { state: "default" 0.0; | ||
5056 | fixed: 1 0; | ||
5057 | align: 1.0 0.5; | ||
5058 | aspect: 1.0 1.0; | ||
5059 | aspect_preference: VERTICAL; | ||
5060 | rel1 { | ||
5061 | relative: 1.0 0.0; | ||
5062 | offset: -5 4; | ||
5063 | } | ||
5064 | rel2 { | ||
5065 | relative: 1.0 1.0; | ||
5066 | offset: -5 -5; | ||
5067 | } | ||
5068 | } | ||
5069 | } | ||
5070 | part { name: "elm.text"; | ||
5071 | clip_to: "disclip"; | ||
5072 | type: TEXT; | ||
5073 | effect: SOFT_SHADOW; | ||
5074 | mouse_events: 0; | ||
5075 | scale: 1; | ||
5076 | description { | ||
5077 | state: "default" 0.0; | ||
5078 | // min: 16 16; | ||
5079 | rel1 { | ||
5080 | to_x: "elm.swallow.icon"; | ||
5081 | relative: 1.0 0.0; | ||
5082 | offset: 0 4; | ||
5083 | } | ||
5084 | rel2 { | ||
5085 | to_x: "elm.swallow.end"; | ||
5086 | relative: 0.0 0.5; | ||
5087 | offset: -1 -5; | ||
5088 | } | ||
5089 | color: 0 0 0 255; | ||
5090 | color3: 0 0 0 0; | ||
5091 | text { | ||
5092 | font: "Sans"; | ||
5093 | size: 10; | ||
5094 | min: 1 1; | ||
5095 | // min: 0 1; | ||
5096 | align: 0.0 0.5; | ||
5097 | text_class: "list_item"; | ||
5098 | } | ||
5099 | } | ||
5100 | description { state: "selected" 0.0; | ||
5101 | inherit: "default" 0.0; | ||
5102 | color: 224 224 224 255; | ||
5103 | color3: 0 0 0 64; | ||
5104 | } | ||
5105 | } | ||
5106 | part { name: "elm.text.sub"; | ||
5107 | clip_to: "disclip"; | ||
5108 | type: TEXT; | ||
5109 | mouse_events: 0; | ||
5110 | scale: 1; | ||
5111 | description { | ||
5112 | state: "default" 0.0; | ||
5113 | // min: 16 16; | ||
5114 | rel1 { | ||
5115 | to_x: "elm.swallow.icon"; | ||
5116 | relative: 1.0 0.5; | ||
5117 | offset: 0 4; | ||
5118 | } | ||
5119 | rel2 { | ||
5120 | to_x: "elm.swallow.end"; | ||
5121 | relative: 0.0 1.0; | ||
5122 | offset: -1 -5; | ||
5123 | } | ||
5124 | color: 0 0 0 128; | ||
5125 | color3: 0 0 0 0; | ||
5126 | text { | ||
5127 | font: "Sans"; | ||
5128 | size: 8; | ||
5129 | min: 1 1; | ||
5130 | // min: 0 1; | ||
5131 | align: 0.0 0.5; | ||
5132 | text_class: "list_item"; | ||
5133 | } | ||
5134 | } | ||
5135 | description { state: "selected" 0.0; | ||
5136 | inherit: "default" 0.0; | ||
5137 | color: 128 128 128 255; | ||
5138 | color3: 0 0 0 32; | ||
5139 | } | ||
5140 | } | ||
5141 | part { name: "fg1"; | ||
5142 | clip_to: "disclip"; | ||
5143 | mouse_events: 0; | ||
5144 | description { state: "default" 0.0; | ||
5145 | visible: 0; | ||
5146 | color: 255 255 255 0; | ||
5147 | rel1.to: "bg"; | ||
5148 | rel2.relative: 1.0 0.5; | ||
5149 | rel2.to: "bg"; | ||
5150 | image { | ||
5151 | normal: "bt_sm_hilight.png"; | ||
5152 | border: 6 6 6 0; | ||
5153 | } | ||
5154 | } | ||
5155 | description { state: "selected" 0.0; | ||
5156 | inherit: "default" 0.0; | ||
5157 | visible: 1; | ||
5158 | color: 255 255 255 255; | ||
5159 | } | ||
5160 | } | ||
5161 | part { name: "fg2"; | ||
5162 | clip_to: "disclip"; | ||
5163 | mouse_events: 0; | ||
5164 | description { state: "default" 0.0; | ||
5165 | visible: 0; | ||
5166 | color: 255 255 255 0; | ||
5167 | rel1.to: "bg"; | ||
5168 | rel2.to: "bg"; | ||
5169 | image { | ||
5170 | normal: "bt_sm_shine.png"; | ||
5171 | border: 6 6 6 0; | ||
5172 | } | ||
5173 | } | ||
5174 | description { state: "selected" 0.0; | ||
5175 | inherit: "default" 0.0; | ||
5176 | visible: 1; | ||
5177 | color: 255 255 255 255; | ||
5178 | } | ||
5179 | } | ||
5180 | part { name: "disclip"; | ||
5181 | type: RECT; | ||
5182 | description { state: "default" 0.0; | ||
5183 | rel1.to: "bg"; | ||
5184 | rel2.to: "bg"; | ||
5185 | } | ||
5186 | description { state: "disabled" 0.0; | ||
5187 | inherit: "default" 0.0; | ||
5188 | color: 255 255 255 64; | ||
5189 | } | ||
5190 | } | ||
5191 | } | ||
5192 | programs { | ||
5193 | // signal: elm,state,%s,active | ||
5194 | // a "check" item named %s went active | ||
5195 | // signal: elm,state,%s,passive | ||
5196 | // a "check" item named %s went passive | ||
5197 | // default is passive | ||
5198 | program { | ||
5199 | name: "go_active"; | ||
5200 | signal: "elm,state,selected"; | ||
5201 | source: "elm"; | ||
5202 | action: STATE_SET "selected" 0.0; | ||
5203 | target: "bg"; | ||
5204 | target: "fg1"; | ||
5205 | target: "fg2"; | ||
5206 | target: "elm.text"; | ||
5207 | target: "elm.text.sub"; | ||
5208 | } | ||
5209 | program { | ||
5210 | name: "go_passive"; | ||
5211 | signal: "elm,state,unselected"; | ||
5212 | source: "elm"; | ||
5213 | action: STATE_SET "default" 0.0; | ||
5214 | target: "bg"; | ||
5215 | target: "fg1"; | ||
5216 | target: "fg2"; | ||
5217 | target: "elm.text"; | ||
5218 | target: "elm.text.sub"; | ||
5219 | transition: LINEAR 0.1; | ||
5220 | } | ||
5221 | program { | ||
5222 | name: "go_disabled"; | ||
5223 | signal: "elm,state,disabled"; | ||
5224 | source: "elm"; | ||
5225 | action: STATE_SET "disabled" 0.0; | ||
5226 | target: "disclip"; | ||
5227 | } | ||
5228 | program { | ||
5229 | name: "go_enabled"; | ||
5230 | signal: "elm,state,enabled"; | ||
5231 | source: "elm"; | ||
5232 | action: STATE_SET "default" 0.0; | ||
5233 | target: "disclip"; | ||
5234 | } | ||
5235 | program { | ||
5236 | name: "expand"; | ||
5237 | signal: "mouse,up,1"; | ||
5238 | source: "arrow"; | ||
5239 | action: SIGNAL_EMIT "elm,action,expand,toggle" "elm"; | ||
5240 | } | ||
5241 | program { | ||
5242 | name: "go_expanded"; | ||
5243 | signal: "elm,state,expanded"; | ||
5244 | source: "elm"; | ||
5245 | action: STATE_SET "active" 0.0; | ||
5246 | target: "arrow"; | ||
5247 | } | ||
5248 | program { | ||
5249 | name: "go_contracted"; | ||
5250 | signal: "elm,state,contracted"; | ||
5251 | source: "elm"; | ||
5252 | action: STATE_SET "default" 0.0; | ||
5253 | target: "arrow"; | ||
5254 | } | ||
5255 | } | ||
5256 | } | ||
5257 | |||
5258 | group { name: "elm/genlist/item/icon_top_text_bottom/default"; | ||
5259 | data.item: "stacking" "above"; | ||
5260 | data.item: "selectraise" "on"; | ||
5261 | data.item: "texts" "elm.text"; | ||
5262 | data.item: "contents" "elm.swallow.icon"; | ||
5263 | data.item: "treesize" "20"; | ||
5264 | // data.item: "states" ""; | ||
5265 | images { | ||
5266 | image: "bt_sm_base1.png" COMP; | ||
5267 | image: "bt_sm_shine.png" COMP; | ||
5268 | image: "bt_sm_hilight.png" COMP; | ||
5269 | image: "ilist_1.png" COMP; | ||
5270 | image: "ilist_item_shadow.png" COMP; | ||
5271 | } | ||
5272 | parts { | ||
5273 | part { | ||
5274 | name: "event"; | ||
5275 | type: RECT; | ||
5276 | repeat_events: 1; | ||
5277 | description { | ||
5278 | state: "default" 0.0; | ||
5279 | color: 0 0 0 0; | ||
5280 | } | ||
5281 | } | ||
5282 | part { | ||
5283 | name: "base_sh"; | ||
5284 | mouse_events: 0; | ||
5285 | description { | ||
5286 | state: "default" 0.0; | ||
5287 | align: 0.0 0.0; | ||
5288 | min: 0 10; | ||
5289 | fixed: 1 1; | ||
5290 | rel1 { | ||
5291 | to: "base"; | ||
5292 | relative: 0.0 1.0; | ||
5293 | offset: 0 0; | ||
5294 | } | ||
5295 | rel2 { | ||
5296 | to: "base"; | ||
5297 | relative: 1.0 1.0; | ||
5298 | offset: -1 0; | ||
5299 | } | ||
5300 | image { | ||
5301 | normal: "ilist_item_shadow.png"; | ||
5302 | } | ||
5303 | fill.smooth: 0; | ||
5304 | } | ||
5305 | } | ||
5306 | part { | ||
5307 | name: "base"; | ||
5308 | mouse_events: 0; | ||
5309 | description { | ||
5310 | state: "default" 0.0; | ||
5311 | image { | ||
5312 | normal: "ilist_1.png"; | ||
5313 | border: 2 2 2 2; | ||
5314 | } | ||
5315 | fill.smooth: 0; | ||
5316 | } | ||
5317 | } | ||
5318 | part { name: "bg"; | ||
5319 | clip_to: "disclip"; | ||
5320 | mouse_events: 0; | ||
5321 | description { state: "default" 0.0; | ||
5322 | visible: 0; | ||
5323 | color: 255 255 255 0; | ||
5324 | rel1 { | ||
5325 | relative: 0.0 0.0; | ||
5326 | offset: -5 -5; | ||
5327 | } | ||
5328 | rel2 { | ||
5329 | relative: 1.0 1.0; | ||
5330 | offset: 4 4; | ||
5331 | } | ||
5332 | image { | ||
5333 | normal: "bt_sm_base1.png"; | ||
5334 | border: 6 6 6 6; | ||
5335 | } | ||
5336 | image.middle: SOLID; | ||
5337 | } | ||
5338 | description { state: "selected" 0.0; | ||
5339 | inherit: "default" 0.0; | ||
5340 | visible: 1; | ||
5341 | color: 255 255 255 255; | ||
5342 | rel1 { | ||
5343 | relative: 0.0 0.0; | ||
5344 | offset: -2 -2; | ||
5345 | } | ||
5346 | rel2 { | ||
5347 | relative: 1.0 1.0; | ||
5348 | offset: 1 1; | ||
5349 | } | ||
5350 | } | ||
5351 | } | ||
5352 | part { name: "elm.swallow.pad"; | ||
5353 | type: SWALLOW; | ||
5354 | description { state: "default" 0.0; | ||
5355 | fixed: 1 0; | ||
5356 | align: 0.0 0.5; | ||
5357 | rel1 { | ||
5358 | relative: 0.0 0.0; | ||
5359 | offset: 4 4; | ||
5360 | } | ||
5361 | rel2 { | ||
5362 | relative: 1.0 1.0; | ||
5363 | offset: -4 -5; | ||
5364 | } | ||
5365 | } | ||
5366 | } | ||
5367 | part { name: "elm.swallow.icon"; | ||
5368 | clip_to: "disclip"; | ||
5369 | type: SWALLOW; | ||
5370 | description { state: "default" 0.0; | ||
5371 | fixed: 1 0; | ||
5372 | align: 0.5 0.5; | ||
5373 | rel1 { | ||
5374 | to_x: "elm.swallow.pad"; | ||
5375 | relative: 0.0 0.0; | ||
5376 | offset: -1 4; | ||
5377 | } | ||
5378 | rel2 { | ||
5379 | to_x: "elm.swallow.pad"; | ||
5380 | relative: 1.0 1.0; | ||
5381 | offset: -1 -5; | ||
5382 | } | ||
5383 | } | ||
5384 | } | ||
5385 | part { name: "elm.text"; | ||
5386 | clip_to: "disclip"; | ||
5387 | type: TEXT; | ||
5388 | effect: SOFT_SHADOW; | ||
5389 | mouse_events: 0; | ||
5390 | scale: 1; | ||
5391 | description { | ||
5392 | state: "default" 0.0; | ||
5393 | // min: 16 16; | ||
5394 | rel1 { | ||
5395 | to_y: "elm.swallow.icon"; | ||
5396 | relative: 0.0 1.0; | ||
5397 | offset: 0 4; | ||
5398 | } | ||
5399 | rel2 { | ||
5400 | relative: 1.0 1.0; | ||
5401 | offset: -5 -5; | ||
5402 | } | ||
5403 | color: 0 0 0 255; | ||
5404 | color3: 0 0 0 0; | ||
5405 | text { | ||
5406 | font: "Sans"; | ||
5407 | size: 10; | ||
5408 | min: 1 1; | ||
5409 | // min: 0 1; | ||
5410 | align: 0.5 0.5; | ||
5411 | text_class: "list_item"; | ||
5412 | } | ||
5413 | } | ||
5414 | description { state: "selected" 0.0; | ||
5415 | inherit: "default" 0.0; | ||
5416 | color: 224 224 224 255; | ||
5417 | color3: 0 0 0 64; | ||
5418 | } | ||
5419 | } | ||
5420 | part { name: "fg1"; | ||
5421 | clip_to: "disclip"; | ||
5422 | mouse_events: 0; | ||
5423 | description { state: "default" 0.0; | ||
5424 | visible: 0; | ||
5425 | color: 255 255 255 0; | ||
5426 | rel1.to: "bg"; | ||
5427 | rel2.relative: 1.0 0.5; | ||
5428 | rel2.to: "bg"; | ||
5429 | image { | ||
5430 | normal: "bt_sm_hilight.png"; | ||
5431 | border: 6 6 6 0; | ||
5432 | } | ||
5433 | } | ||
5434 | description { state: "selected" 0.0; | ||
5435 | inherit: "default" 0.0; | ||
5436 | visible: 1; | ||
5437 | color: 255 255 255 255; | ||
5438 | } | ||
5439 | } | ||
5440 | part { name: "fg2"; | ||
5441 | clip_to: "disclip"; | ||
5442 | mouse_events: 0; | ||
5443 | description { state: "default" 0.0; | ||
5444 | visible: 0; | ||
5445 | color: 255 255 255 0; | ||
5446 | rel1.to: "bg"; | ||
5447 | rel2.to: "bg"; | ||
5448 | image { | ||
5449 | normal: "bt_sm_shine.png"; | ||
5450 | border: 6 6 6 0; | ||
5451 | } | ||
5452 | } | ||
5453 | description { state: "selected" 0.0; | ||
5454 | inherit: "default" 0.0; | ||
5455 | visible: 1; | ||
5456 | color: 255 255 255 255; | ||
5457 | } | ||
5458 | } | ||
5459 | part { name: "disclip"; | ||
5460 | type: RECT; | ||
5461 | description { state: "default" 0.0; | ||
5462 | rel1.to: "bg"; | ||
5463 | rel2.to: "bg"; | ||
5464 | } | ||
5465 | description { state: "disabled" 0.0; | ||
5466 | inherit: "default" 0.0; | ||
5467 | color: 255 255 255 64; | ||
5468 | } | ||
5469 | } | ||
5470 | } | ||
5471 | programs { | ||
5472 | // signal: elm,state,%s,active | ||
5473 | // a "check" item named %s went active | ||
5474 | // signal: elm,state,%s,passive | ||
5475 | // a "check" item named %s went passive | ||
5476 | // default is passive | ||
5477 | program { | ||
5478 | name: "go_active"; | ||
5479 | signal: "elm,state,selected"; | ||
5480 | source: "elm"; | ||
5481 | action: STATE_SET "selected" 0.0; | ||
5482 | target: "bg"; | ||
5483 | target: "fg1"; | ||
5484 | target: "fg2"; | ||
5485 | target: "elm.text"; | ||
5486 | } | ||
5487 | program { | ||
5488 | name: "go_passive"; | ||
5489 | signal: "elm,state,unselected"; | ||
5490 | source: "elm"; | ||
5491 | action: STATE_SET "default" 0.0; | ||
5492 | target: "bg"; | ||
5493 | target: "fg1"; | ||
5494 | target: "fg2"; | ||
5495 | target: "elm.text"; | ||
5496 | transition: LINEAR 0.1; | ||
5497 | } | ||
5498 | program { | ||
5499 | name: "go_disabled"; | ||
5500 | signal: "elm,state,disabled"; | ||
5501 | source: "elm"; | ||
5502 | action: STATE_SET "disabled" 0.0; | ||
5503 | target: "disclip"; | ||
5504 | } | ||
5505 | program { | ||
5506 | name: "go_enabled"; | ||
5507 | signal: "elm,state,enabled"; | ||
5508 | source: "elm"; | ||
5509 | action: STATE_SET "default" 0.0; | ||
5510 | target: "disclip"; | ||
5511 | } | ||
5512 | } | ||
5513 | } | ||
5514 | group { name: "elm/genlist/item_odd/icon_top_text_bottom/default"; | ||
5515 | data.item: "stacking" "below"; | ||
5516 | data.item: "selectraise" "on"; | ||
5517 | data.item: "texts" "elm.text"; | ||
5518 | data.item: "contents" "elm.swallow.icon"; | ||
5519 | data.item: "treesize" "20"; | ||
5520 | // data.item: "states" ""; | ||
5521 | images { | ||
5522 | image: "bt_sm_base1.png" COMP; | ||
5523 | image: "bt_sm_shine.png" COMP; | ||
5524 | image: "bt_sm_hilight.png" COMP; | ||
5525 | image: "ilist_2.png" COMP; | ||
5526 | } | ||
5527 | parts { | ||
5528 | part { name: "event"; | ||
5529 | type: RECT; | ||
5530 | repeat_events: 1; | ||
5531 | description { | ||
5532 | state: "default" 0.0; | ||
5533 | color: 0 0 0 0; | ||
5534 | } | ||
5535 | } | ||
5536 | part { | ||
5537 | name: "base"; | ||
5538 | mouse_events: 0; | ||
5539 | description { | ||
5540 | state: "default" 0.0; | ||
5541 | image { | ||
5542 | normal: "ilist_2.png"; | ||
5543 | border: 2 2 2 2; | ||
5544 | } | ||
5545 | fill.smooth: 0; | ||
5546 | } | ||
5547 | } | ||
5548 | part { name: "bg"; | ||
5549 | clip_to: "disclip"; | ||
5550 | mouse_events: 0; | ||
5551 | description { state: "default" 0.0; | ||
5552 | visible: 0; | ||
5553 | color: 255 255 255 0; | ||
5554 | rel1 { | ||
5555 | relative: 0.0 0.0; | ||
5556 | offset: -5 -5; | ||
5557 | } | ||
5558 | rel2 { | ||
5559 | relative: 1.0 1.0; | ||
5560 | offset: 4 4; | ||
5561 | } | ||
5562 | image { | ||
5563 | normal: "bt_sm_base1.png"; | ||
5564 | border: 6 6 6 6; | ||
5565 | } | ||
5566 | image.middle: SOLID; | ||
5567 | } | ||
5568 | description { state: "selected" 0.0; | ||
5569 | inherit: "default" 0.0; | ||
5570 | visible: 1; | ||
5571 | color: 255 255 255 255; | ||
5572 | rel1 { | ||
5573 | relative: 0.0 0.0; | ||
5574 | offset: -2 -2; | ||
5575 | } | ||
5576 | rel2 { | ||
5577 | relative: 1.0 1.0; | ||
5578 | offset: 1 1; | ||
5579 | } | ||
5580 | } | ||
5581 | } | ||
5582 | part { name: "elm.swallow.pad"; | ||
5583 | type: SWALLOW; | ||
5584 | description { state: "default" 0.0; | ||
5585 | fixed: 1 0; | ||
5586 | align: 0.0 0.5; | ||
5587 | rel1 { | ||
5588 | relative: 0.0 0.0; | ||
5589 | offset: 4 4; | ||
5590 | } | ||
5591 | rel2 { | ||
5592 | relative: 1.0 1.0; | ||
5593 | offset: -4 -5; | ||
5594 | } | ||
5595 | } | ||
5596 | } | ||
5597 | part { name: "elm.swallow.icon"; | ||
5598 | clip_to: "disclip"; | ||
5599 | type: SWALLOW; | ||
5600 | description { state: "default" 0.0; | ||
5601 | fixed: 1 0; | ||
5602 | align: 0.5 0.5; | ||
5603 | rel1 { | ||
5604 | to_x: "elm.swallow.pad"; | ||
5605 | relative: 0.0 0.0; | ||
5606 | offset: -1 4; | ||
5607 | } | ||
5608 | rel2 { | ||
5609 | to_x: "elm.swallow.pad"; | ||
5610 | relative: 1.0 1.0; | ||
5611 | offset: -1 -5; | ||
5612 | } | ||
5613 | } | ||
5614 | } | ||
5615 | part { name: "elm.text"; | ||
5616 | clip_to: "disclip"; | ||
5617 | type: TEXT; | ||
5618 | effect: SOFT_SHADOW; | ||
5619 | mouse_events: 0; | ||
5620 | scale: 1; | ||
5621 | description { | ||
5622 | state: "default" 0.0; | ||
5623 | // min: 16 16; | ||
5624 | rel1 { | ||
5625 | to_y: "elm.swallow.icon"; | ||
5626 | relative: 0.0 1.0; | ||
5627 | offset: 0 4; | ||
5628 | } | ||
5629 | rel2 { | ||
5630 | relative: 1.0 1.0; | ||
5631 | offset: -5 -5; | ||
5632 | } | ||
5633 | color: 0 0 0 255; | ||
5634 | color3: 0 0 0 0; | ||
5635 | text { | ||
5636 | font: "Sans"; | ||
5637 | size: 10; | ||
5638 | min: 1 1; | ||
5639 | // min: 0 1; | ||
5640 | align: 0.5 0.5; | ||
5641 | text_class: "list_item"; | ||
5642 | } | ||
5643 | } | ||
5644 | description { state: "selected" 0.0; | ||
5645 | inherit: "default" 0.0; | ||
5646 | color: 224 224 224 255; | ||
5647 | color3: 0 0 0 64; | ||
5648 | } | ||
5649 | } | ||
5650 | part { name: "fg1"; | ||
5651 | clip_to: "disclip"; | ||
5652 | mouse_events: 0; | ||
5653 | description { state: "default" 0.0; | ||
5654 | visible: 0; | ||
5655 | color: 255 255 255 0; | ||
5656 | rel1.to: "bg"; | ||
5657 | rel2.relative: 1.0 0.5; | ||
5658 | rel2.to: "bg"; | ||
5659 | image { | ||
5660 | normal: "bt_sm_hilight.png"; | ||
5661 | border: 6 6 6 0; | ||
5662 | } | ||
5663 | } | ||
5664 | description { state: "selected" 0.0; | ||
5665 | inherit: "default" 0.0; | ||
5666 | visible: 1; | ||
5667 | color: 255 255 255 255; | ||
5668 | } | ||
5669 | } | ||
5670 | part { name: "fg2"; | ||
5671 | clip_to: "disclip"; | ||
5672 | mouse_events: 0; | ||
5673 | description { state: "default" 0.0; | ||
5674 | visible: 0; | ||
5675 | color: 255 255 255 0; | ||
5676 | rel1.to: "bg"; | ||
5677 | rel2.to: "bg"; | ||
5678 | image { | ||
5679 | normal: "bt_sm_shine.png"; | ||
5680 | border: 6 6 6 0; | ||
5681 | } | ||
5682 | } | ||
5683 | description { state: "selected" 0.0; | ||
5684 | inherit: "default" 0.0; | ||
5685 | visible: 1; | ||
5686 | color: 255 255 255 255; | ||
5687 | } | ||
5688 | } | ||
5689 | part { name: "disclip"; | ||
5690 | type: RECT; | ||
5691 | description { state: "default" 0.0; | ||
5692 | rel1.to: "bg"; | ||
5693 | rel2.to: "bg"; | ||
5694 | } | ||
5695 | description { state: "disabled" 0.0; | ||
5696 | inherit: "default" 0.0; | ||
5697 | color: 255 255 255 64; | ||
5698 | } | ||
5699 | } | ||
5700 | } | ||
5701 | programs { | ||
5702 | // signal: elm,state,%s,active | ||
5703 | // a "check" item named %s went active | ||
5704 | // signal: elm,state,%s,passive | ||
5705 | // a "check" item named %s went passive | ||
5706 | // default is passive | ||
5707 | program { | ||
5708 | name: "go_active"; | ||
5709 | signal: "elm,state,selected"; | ||
5710 | source: "elm"; | ||
5711 | action: STATE_SET "selected" 0.0; | ||
5712 | target: "bg"; | ||
5713 | target: "fg1"; | ||
5714 | target: "fg2"; | ||
5715 | target: "elm.text"; | ||
5716 | } | ||
5717 | program { | ||
5718 | name: "go_passive"; | ||
5719 | signal: "elm,state,unselected"; | ||
5720 | source: "elm"; | ||
5721 | action: STATE_SET "default" 0.0; | ||
5722 | target: "bg"; | ||
5723 | target: "fg1"; | ||
5724 | target: "fg2"; | ||
5725 | target: "elm.text"; | ||
5726 | transition: LINEAR 0.1; | ||
5727 | } | ||
5728 | program { | ||
5729 | name: "go_disabled"; | ||
5730 | signal: "elm,state,disabled"; | ||
5731 | source: "elm"; | ||
5732 | action: STATE_SET "disabled" 0.0; | ||
5733 | target: "disclip"; | ||
5734 | } | ||
5735 | program { | ||
5736 | name: "go_enabled"; | ||
5737 | signal: "elm,state,enabled"; | ||
5738 | source: "elm"; | ||
5739 | action: STATE_SET "default" 0.0; | ||
5740 | target: "disclip"; | ||
5741 | } | ||
5742 | } | ||
5743 | } | ||
5744 | |||
5745 | group { name: "elm/genlist/tree/icon_top_text_bottom/default"; | ||
5746 | data.item: "stacking" "above"; | ||
5747 | data.item: "selectraise" "on"; | ||
5748 | data.item: "texts" "elm.text"; | ||
5749 | data.item: "contents" "elm.swallow.icon"; | ||
5750 | data.item: "treesize" "20"; | ||
5751 | // data.item: "states" ""; | ||
5752 | images { | ||
5753 | image: "bt_sm_base1.png" COMP; | ||
5754 | image: "bt_sm_shine.png" COMP; | ||
5755 | image: "bt_sm_hilight.png" COMP; | ||
5756 | image: "ilist_1.png" COMP; | ||
5757 | image: "ilist_item_shadow.png" COMP; | ||
5758 | image: "icon_arrow_right.png" COMP; | ||
5759 | image: "icon_arrow_down.png" COMP; | ||
5760 | } | ||
5761 | parts { | ||
5762 | part { | ||
5763 | name: "event"; | ||
5764 | type: RECT; | ||
5765 | repeat_events: 1; | ||
5766 | description { | ||
5767 | state: "default" 0.0; | ||
5768 | color: 0 0 0 0; | ||
5769 | } | ||
5770 | } | ||
5771 | part { | ||
5772 | name: "base_sh"; | ||
5773 | mouse_events: 0; | ||
5774 | description { | ||
5775 | state: "default" 0.0; | ||
5776 | align: 0.0 0.0; | ||
5777 | min: 0 10; | ||
5778 | fixed: 1 1; | ||
5779 | rel1 { | ||
5780 | to: "base"; | ||
5781 | relative: 0.0 1.0; | ||
5782 | offset: 0 0; | ||
5783 | } | ||
5784 | rel2 { | ||
5785 | to: "base"; | ||
5786 | relative: 1.0 1.0; | ||
5787 | offset: -1 0; | ||
5788 | } | ||
5789 | image { | ||
5790 | normal: "ilist_item_shadow.png"; | ||
5791 | } | ||
5792 | fill.smooth: 0; | ||
5793 | } | ||
5794 | } | ||
5795 | part { | ||
5796 | name: "base"; | ||
5797 | mouse_events: 0; | ||
5798 | description { | ||
5799 | state: "default" 0.0; | ||
5800 | image { | ||
5801 | normal: "ilist_1.png"; | ||
5802 | border: 2 2 2 2; | ||
5803 | } | ||
5804 | fill.smooth: 0; | ||
5805 | } | ||
5806 | } | ||
5807 | part { name: "bg"; | ||
5808 | clip_to: "disclip"; | ||
5809 | mouse_events: 0; | ||
5810 | description { state: "default" 0.0; | ||
5811 | visible: 0; | ||
5812 | color: 255 255 255 0; | ||
5813 | rel1 { | ||
5814 | relative: 0.0 0.0; | ||
5815 | offset: -5 -5; | ||
5816 | } | ||
5817 | rel2 { | ||
5818 | relative: 1.0 1.0; | ||
5819 | offset: 4 4; | ||
5820 | } | ||
5821 | image { | ||
5822 | normal: "bt_sm_base1.png"; | ||
5823 | border: 6 6 6 6; | ||
5824 | } | ||
5825 | image.middle: SOLID; | ||
5826 | } | ||
5827 | description { state: "selected" 0.0; | ||
5828 | inherit: "default" 0.0; | ||
5829 | visible: 1; | ||
5830 | color: 255 255 255 255; | ||
5831 | rel1 { | ||
5832 | relative: 0.0 0.0; | ||
5833 | offset: -2 -2; | ||
5834 | } | ||
5835 | rel2 { | ||
5836 | relative: 1.0 1.0; | ||
5837 | offset: 1 1; | ||
5838 | } | ||
5839 | } | ||
5840 | } | ||
5841 | part { name: "elm.swallow.pad"; | ||
5842 | type: SWALLOW; | ||
5843 | description { state: "default" 0.0; | ||
5844 | fixed: 1 0; | ||
5845 | align: 0.0 0.5; | ||
5846 | rel1 { | ||
5847 | relative: 0.0 0.0; | ||
5848 | offset: 4 4; | ||
5849 | } | ||
5850 | rel2 { | ||
5851 | relative: 0.0 1.0; | ||
5852 | offset: 4 -5; | ||
5853 | } | ||
5854 | } | ||
5855 | } | ||
5856 | part { name: "arrow"; | ||
5857 | clip_to: "disclip"; | ||
5858 | ignore_flags: ON_HOLD; | ||
5859 | description { state: "default" 0.0; | ||
5860 | fixed: 1 0; | ||
5861 | align: 0.0 0.5; | ||
5862 | aspect: 1.0 1.0; | ||
5863 | rel1 { | ||
5864 | to_x: "elm.swallow.pad"; | ||
5865 | relative: 1.0 0.0; | ||
5866 | offset: -1 4; | ||
5867 | } | ||
5868 | rel2 { | ||
5869 | to_x: "elm.swallow.pad"; | ||
5870 | relative: 1.0 1.0; | ||
5871 | offset: -1 -5; | ||
5872 | } | ||
5873 | image.normal: "icon_arrow_right.png"; | ||
5874 | } | ||
5875 | description { state: "active" 0.0; | ||
5876 | inherit: "default" 0.0; | ||
5877 | image.normal: "icon_arrow_down.png"; | ||
5878 | } | ||
5879 | } | ||
5880 | part { name: "elm.swallow.icon"; | ||
5881 | clip_to: "disclip"; | ||
5882 | type: SWALLOW; | ||
5883 | description { state: "default" 0.0; | ||
5884 | fixed: 1 0; | ||
5885 | align: 0.5 0.5; | ||
5886 | rel1 { | ||
5887 | to_x: "arrow"; | ||
5888 | relative: 1.0 0.0; | ||
5889 | offset: 4 4; | ||
5890 | } | ||
5891 | rel2 { | ||
5892 | relative: 1.0 1.0; | ||
5893 | offset: -4 -5; | ||
5894 | } | ||
5895 | } | ||
5896 | } | ||
5897 | part { name: "elm.text"; | ||
5898 | clip_to: "disclip"; | ||
5899 | type: TEXT; | ||
5900 | effect: SOFT_SHADOW; | ||
5901 | mouse_events: 0; | ||
5902 | scale: 1; | ||
5903 | description { | ||
5904 | state: "default" 0.0; | ||
5905 | // min: 16 16; | ||
5906 | rel1 { | ||
5907 | to_y: "elm.swallow.icon"; | ||
5908 | relative: 0.0 1.0; | ||
5909 | offset: 0 4; | ||
5910 | } | ||
5911 | rel2 { | ||
5912 | relative: 1.0 1.0; | ||
5913 | offset: -5 -5; | ||
5914 | } | ||
5915 | color: 0 0 0 255; | ||
5916 | color3: 0 0 0 0; | ||
5917 | text { | ||
5918 | font: "Sans"; | ||
5919 | size: 10; | ||
5920 | min: 1 1; | ||
5921 | // min: 0 1; | ||
5922 | align: 0.5 0.5; | ||
5923 | text_class: "list_item"; | ||
5924 | } | ||
5925 | } | ||
5926 | description { state: "selected" 0.0; | ||
5927 | inherit: "default" 0.0; | ||
5928 | color: 224 224 224 255; | ||
5929 | color3: 0 0 0 64; | ||
5930 | } | ||
5931 | } | ||
5932 | part { name: "fg1"; | ||
5933 | clip_to: "disclip"; | ||
5934 | mouse_events: 0; | ||
5935 | description { state: "default" 0.0; | ||
5936 | visible: 0; | ||
5937 | color: 255 255 255 0; | ||
5938 | rel1.to: "bg"; | ||
5939 | rel2.relative: 1.0 0.5; | ||
5940 | rel2.to: "bg"; | ||
5941 | image { | ||
5942 | normal: "bt_sm_hilight.png"; | ||
5943 | border: 6 6 6 0; | ||
5944 | } | ||
5945 | } | ||
5946 | description { state: "selected" 0.0; | ||
5947 | inherit: "default" 0.0; | ||
5948 | visible: 1; | ||
5949 | color: 255 255 255 255; | ||
5950 | } | ||
5951 | } | ||
5952 | part { name: "fg2"; | ||
5953 | clip_to: "disclip"; | ||
5954 | mouse_events: 0; | ||
5955 | description { state: "default" 0.0; | ||
5956 | visible: 0; | ||
5957 | color: 255 255 255 0; | ||
5958 | rel1.to: "bg"; | ||
5959 | rel2.to: "bg"; | ||
5960 | image { | ||
5961 | normal: "bt_sm_shine.png"; | ||
5962 | border: 6 6 6 0; | ||
5963 | } | ||
5964 | } | ||
5965 | description { state: "selected" 0.0; | ||
5966 | inherit: "default" 0.0; | ||
5967 | visible: 1; | ||
5968 | color: 255 255 255 255; | ||
5969 | } | ||
5970 | } | ||
5971 | part { name: "disclip"; | ||
5972 | type: RECT; | ||
5973 | description { state: "default" 0.0; | ||
5974 | rel1.to: "bg"; | ||
5975 | rel2.to: "bg"; | ||
5976 | } | ||
5977 | description { state: "disabled" 0.0; | ||
5978 | inherit: "default" 0.0; | ||
5979 | color: 255 255 255 64; | ||
5980 | } | ||
5981 | } | ||
5982 | } | ||
5983 | programs { | ||
5984 | // signal: elm,state,%s,active | ||
5985 | // a "check" item named %s went active | ||
5986 | // signal: elm,state,%s,passive | ||
5987 | // a "check" item named %s went passive | ||
5988 | // default is passive | ||
5989 | program { | ||
5990 | name: "go_active"; | ||
5991 | signal: "elm,state,selected"; | ||
5992 | source: "elm"; | ||
5993 | action: STATE_SET "selected" 0.0; | ||
5994 | target: "bg"; | ||
5995 | target: "fg1"; | ||
5996 | target: "fg2"; | ||
5997 | target: "elm.text"; | ||
5998 | } | ||
5999 | program { | ||
6000 | name: "go_passive"; | ||
6001 | signal: "elm,state,unselected"; | ||
6002 | source: "elm"; | ||
6003 | action: STATE_SET "default" 0.0; | ||
6004 | target: "bg"; | ||
6005 | target: "fg1"; | ||
6006 | target: "fg2"; | ||
6007 | target: "elm.text"; | ||
6008 | transition: LINEAR 0.1; | ||
6009 | } | ||
6010 | program { | ||
6011 | name: "go_disabled"; | ||
6012 | signal: "elm,state,disabled"; | ||
6013 | source: "elm"; | ||
6014 | action: STATE_SET "disabled" 0.0; | ||
6015 | target: "disclip"; | ||
6016 | } | ||
6017 | program { | ||
6018 | name: "go_enabled"; | ||
6019 | signal: "elm,state,enabled"; | ||
6020 | source: "elm"; | ||
6021 | action: STATE_SET "default" 0.0; | ||
6022 | target: "disclip"; | ||
6023 | } | ||
6024 | program { | ||
6025 | name: "expand"; | ||
6026 | signal: "mouse,up,1"; | ||
6027 | source: "arrow"; | ||
6028 | action: SIGNAL_EMIT "elm,action,expand,toggle" "elm"; | ||
6029 | } | ||
6030 | program { | ||
6031 | name: "go_expanded"; | ||
6032 | signal: "elm,state,expanded"; | ||
6033 | source: "elm"; | ||
6034 | action: STATE_SET "active" 0.0; | ||
6035 | target: "arrow"; | ||
6036 | } | ||
6037 | program { | ||
6038 | name: "go_contracted"; | ||
6039 | signal: "elm,state,contracted"; | ||
6040 | source: "elm"; | ||
6041 | action: STATE_SET "default" 0.0; | ||
6042 | target: "arrow"; | ||
6043 | } | ||
6044 | } | ||
6045 | } | ||
6046 | group { name: "elm/genlist/tree_odd/icon_top_text_bottom/default"; | ||
6047 | data.item: "stacking" "below"; | ||
6048 | data.item: "selectraise" "on"; | ||
6049 | data.item: "texts" "elm.text"; | ||
6050 | data.item: "contents" "elm.swallow.icon"; | ||
6051 | data.item: "treesize" "20"; | ||
6052 | // data.item: "states" ""; | ||
6053 | images { | ||
6054 | image: "bt_sm_base1.png" COMP; | ||
6055 | image: "bt_sm_shine.png" COMP; | ||
6056 | image: "bt_sm_hilight.png" COMP; | ||
6057 | image: "ilist_2.png" COMP; | ||
6058 | image: "icon_arrow_right.png" COMP; | ||
6059 | image: "icon_arrow_down.png" COMP; | ||
6060 | } | ||
6061 | parts { | ||
6062 | part { | ||
6063 | name: "event"; | ||
6064 | type: RECT; | ||
6065 | repeat_events: 1; | ||
6066 | description { | ||
6067 | state: "default" 0.0; | ||
6068 | color: 0 0 0 0; | ||
6069 | } | ||
6070 | } | ||
6071 | part { | ||
6072 | name: "base"; | ||
6073 | mouse_events: 0; | ||
6074 | description { | ||
6075 | state: "default" 0.0; | ||
6076 | image { | ||
6077 | normal: "ilist_2.png"; | ||
6078 | border: 2 2 2 2; | ||
6079 | } | ||
6080 | fill.smooth: 0; | ||
6081 | } | ||
6082 | } | ||
6083 | part { name: "bg"; | ||
6084 | clip_to: "disclip"; | ||
6085 | mouse_events: 0; | ||
6086 | description { state: "default" 0.0; | ||
6087 | visible: 0; | ||
6088 | color: 255 255 255 0; | ||
6089 | rel1 { | ||
6090 | relative: 0.0 0.0; | ||
6091 | offset: -5 -5; | ||
6092 | } | ||
6093 | rel2 { | ||
6094 | relative: 1.0 1.0; | ||
6095 | offset: 4 4; | ||
6096 | } | ||
6097 | image { | ||
6098 | normal: "bt_sm_base1.png"; | ||
6099 | border: 6 6 6 6; | ||
6100 | } | ||
6101 | image.middle: SOLID; | ||
6102 | } | ||
6103 | description { state: "selected" 0.0; | ||
6104 | inherit: "default" 0.0; | ||
6105 | visible: 1; | ||
6106 | color: 255 255 255 255; | ||
6107 | rel1 { | ||
6108 | relative: 0.0 0.0; | ||
6109 | offset: -2 -2; | ||
6110 | } | ||
6111 | rel2 { | ||
6112 | relative: 1.0 1.0; | ||
6113 | offset: 1 1; | ||
6114 | } | ||
6115 | } | ||
6116 | } | ||
6117 | part { name: "elm.swallow.pad"; | ||
6118 | type: SWALLOW; | ||
6119 | description { state: "default" 0.0; | ||
6120 | fixed: 1 0; | ||
6121 | align: 0.0 0.5; | ||
6122 | rel1 { | ||
6123 | relative: 0.0 0.0; | ||
6124 | offset: 4 4; | ||
6125 | } | ||
6126 | rel2 { | ||
6127 | relative: 0.0 1.0; | ||
6128 | offset: 4 -5; | ||
6129 | } | ||
6130 | } | ||
6131 | } | ||
6132 | part { name: "arrow"; | ||
6133 | clip_to: "disclip"; | ||
6134 | ignore_flags: ON_HOLD; | ||
6135 | description { state: "default" 0.0; | ||
6136 | fixed: 1 0; | ||
6137 | align: 0.0 0.5; | ||
6138 | aspect: 1.0 1.0; | ||
6139 | rel1 { | ||
6140 | to_x: "elm.swallow.pad"; | ||
6141 | relative: 1.0 0.0; | ||
6142 | offset: -1 4; | ||
6143 | } | ||
6144 | rel2 { | ||
6145 | to_x: "elm.swallow.pad"; | ||
6146 | relative: 1.0 1.0; | ||
6147 | offset: -1 -5; | ||
6148 | } | ||
6149 | image.normal: "icon_arrow_right.png"; | ||
6150 | } | ||
6151 | description { state: "active" 0.0; | ||
6152 | inherit: "default" 0.0; | ||
6153 | image.normal: "icon_arrow_down.png"; | ||
6154 | } | ||
6155 | } | ||
6156 | part { name: "elm.swallow.icon"; | ||
6157 | clip_to: "disclip"; | ||
6158 | type: SWALLOW; | ||
6159 | description { state: "default" 0.0; | ||
6160 | fixed: 1 0; | ||
6161 | align: 0.5 0.5; | ||
6162 | rel1 { | ||
6163 | to_x: "arrow"; | ||
6164 | relative: 1.0 0.0; | ||
6165 | offset: 4 4; | ||
6166 | } | ||
6167 | rel2 { | ||
6168 | relative: 1.0 1.0; | ||
6169 | offset: -4 -5; | ||
6170 | } | ||
6171 | } | ||
6172 | } | ||
6173 | part { name: "elm.text"; | ||
6174 | clip_to: "disclip"; | ||
6175 | type: TEXT; | ||
6176 | effect: SOFT_SHADOW; | ||
6177 | mouse_events: 0; | ||
6178 | scale: 1; | ||
6179 | description { | ||
6180 | state: "default" 0.0; | ||
6181 | // min: 16 16; | ||
6182 | rel1 { | ||
6183 | to_y: "elm.swallow.icon"; | ||
6184 | relative: 0.0 1.0; | ||
6185 | offset: 0 4; | ||
6186 | } | ||
6187 | rel2 { | ||
6188 | relative: 1.0 1.0; | ||
6189 | offset: -5 -5; | ||
6190 | } | ||
6191 | color: 0 0 0 255; | ||
6192 | color3: 0 0 0 0; | ||
6193 | text { | ||
6194 | font: "Sans"; | ||
6195 | size: 10; | ||
6196 | min: 1 1; | ||
6197 | // min: 0 1; | ||
6198 | align: 0.5 0.5; | ||
6199 | text_class: "list_item"; | ||
6200 | } | ||
6201 | } | ||
6202 | description { state: "selected" 0.0; | ||
6203 | inherit: "default" 0.0; | ||
6204 | color: 224 224 224 255; | ||
6205 | color3: 0 0 0 64; | ||
6206 | } | ||
6207 | } | ||
6208 | part { name: "fg1"; | ||
6209 | clip_to: "disclip"; | ||
6210 | mouse_events: 0; | ||
6211 | description { state: "default" 0.0; | ||
6212 | visible: 0; | ||
6213 | color: 255 255 255 0; | ||
6214 | rel1.to: "bg"; | ||
6215 | rel2.relative: 1.0 0.5; | ||
6216 | rel2.to: "bg"; | ||
6217 | image { | ||
6218 | normal: "bt_sm_hilight.png"; | ||
6219 | border: 6 6 6 0; | ||
6220 | } | ||
6221 | } | ||
6222 | description { state: "selected" 0.0; | ||
6223 | inherit: "default" 0.0; | ||
6224 | visible: 1; | ||
6225 | color: 255 255 255 255; | ||
6226 | } | ||
6227 | } | ||
6228 | part { name: "fg2"; | ||
6229 | clip_to: "disclip"; | ||
6230 | mouse_events: 0; | ||
6231 | description { state: "default" 0.0; | ||
6232 | visible: 0; | ||
6233 | color: 255 255 255 0; | ||
6234 | rel1.to: "bg"; | ||
6235 | rel2.to: "bg"; | ||
6236 | image { | ||
6237 | normal: "bt_sm_shine.png"; | ||
6238 | border: 6 6 6 0; | ||
6239 | } | ||
6240 | } | ||
6241 | description { state: "selected" 0.0; | ||
6242 | inherit: "default" 0.0; | ||
6243 | visible: 1; | ||
6244 | color: 255 255 255 255; | ||
6245 | } | ||
6246 | } | ||
6247 | part { name: "disclip"; | ||
6248 | type: RECT; | ||
6249 | description { state: "default" 0.0; | ||
6250 | rel1.to: "bg"; | ||
6251 | rel2.to: "bg"; | ||
6252 | } | ||
6253 | description { state: "disabled" 0.0; | ||
6254 | inherit: "default" 0.0; | ||
6255 | color: 255 255 255 64; | ||
6256 | } | ||
6257 | } | ||
6258 | } | ||
6259 | programs { | ||
6260 | // signal: elm,state,%s,active | ||
6261 | // a "check" item named %s went active | ||
6262 | // signal: elm,state,%s,passive | ||
6263 | // a "check" item named %s went passive | ||
6264 | // default is passive | ||
6265 | program { | ||
6266 | name: "go_active"; | ||
6267 | signal: "elm,state,selected"; | ||
6268 | source: "elm"; | ||
6269 | action: STATE_SET "selected" 0.0; | ||
6270 | target: "bg"; | ||
6271 | target: "fg1"; | ||
6272 | target: "fg2"; | ||
6273 | target: "elm.text"; | ||
6274 | } | ||
6275 | program { | ||
6276 | name: "go_passive"; | ||
6277 | signal: "elm,state,unselected"; | ||
6278 | source: "elm"; | ||
6279 | action: STATE_SET "default" 0.0; | ||
6280 | target: "bg"; | ||
6281 | target: "fg1"; | ||
6282 | target: "fg2"; | ||
6283 | target: "elm.text"; | ||
6284 | transition: LINEAR 0.1; | ||
6285 | } | ||
6286 | program { | ||
6287 | name: "go_disabled"; | ||
6288 | signal: "elm,state,disabled"; | ||
6289 | source: "elm"; | ||
6290 | action: STATE_SET "disabled" 0.0; | ||
6291 | target: "disclip"; | ||
6292 | } | ||
6293 | program { | ||
6294 | name: "go_enabled"; | ||
6295 | signal: "elm,state,enabled"; | ||
6296 | source: "elm"; | ||
6297 | action: STATE_SET "default" 0.0; | ||
6298 | target: "disclip"; | ||
6299 | } | ||
6300 | program { | ||
6301 | name: "expand"; | ||
6302 | signal: "mouse,up,1"; | ||
6303 | source: "arrow"; | ||
6304 | action: SIGNAL_EMIT "elm,action,expand,toggle" "elm"; | ||
6305 | } | ||
6306 | program { | ||
6307 | name: "go_expanded"; | ||
6308 | signal: "elm,state,expanded"; | ||
6309 | source: "elm"; | ||
6310 | action: STATE_SET "active" 0.0; | ||
6311 | target: "arrow"; | ||
6312 | } | ||
6313 | program { | ||
6314 | name: "go_contracted"; | ||
6315 | signal: "elm,state,contracted"; | ||
6316 | source: "elm"; | ||
6317 | action: STATE_SET "default" 0.0; | ||
6318 | target: "arrow"; | ||
6319 | } | ||
6320 | } | ||
6321 | } | ||
6322 | |||
6323 | |||
6324 | /////////////////////////////////////////////////////////////////////////////// | ||
6325 | group { name: "elm/genlist/tree_compress_odd/double_label/default"; | ||
6326 | data.item: "stacking" "below"; | ||
6327 | data.item: "selectraise" "on"; | ||
6328 | data.item: "texts" "elm.text elm.text.sub"; | ||
6329 | data.item: "contents" "elm.swallow.icon elm.swallow.end"; | ||
6330 | data.item: "treesize" "20"; | ||
6331 | // data.item: "states" ""; | ||
6332 | images { | ||
6333 | image: "bt_sm_base1.png" COMP; | ||
6334 | image: "bt_sm_shine.png" COMP; | ||
6335 | image: "bt_sm_hilight.png" COMP; | ||
6336 | image: "ilist_2.png" COMP; | ||
6337 | image: "icon_arrow_right.png" COMP; | ||
6338 | image: "icon_arrow_down.png" COMP; | ||
6339 | } | ||
6340 | parts { | ||
6341 | part { | ||
6342 | name: "event"; | ||
6343 | type: RECT; | ||
6344 | repeat_events: 1; | ||
6345 | description { | ||
6346 | state: "default" 0.0; | ||
6347 | color: 0 0 0 0; | ||
6348 | } | ||
6349 | } | ||
6350 | part { | ||
6351 | name: "base"; | ||
6352 | mouse_events: 0; | ||
6353 | description { | ||
6354 | state: "default" 0.0; | ||
6355 | image { | ||
6356 | normal: "ilist_2.png"; | ||
6357 | border: 2 2 2 2; | ||
6358 | } | ||
6359 | fill.smooth: 0; | ||
6360 | } | ||
6361 | } | ||
6362 | part { name: "bg"; | ||
6363 | clip_to: "disclip"; | ||
6364 | mouse_events: 0; | ||
6365 | description { state: "default" 0.0; | ||
6366 | visible: 0; | ||
6367 | color: 255 255 255 0; | ||
6368 | rel1 { | ||
6369 | relative: 0.0 0.0; | ||
6370 | offset: -5 -5; | ||
6371 | } | ||
6372 | rel2 { | ||
6373 | relative: 1.0 1.0; | ||
6374 | offset: 4 4; | ||
6375 | } | ||
6376 | image { | ||
6377 | normal: "bt_sm_base1.png"; | ||
6378 | border: 6 6 6 6; | ||
6379 | } | ||
6380 | image.middle: SOLID; | ||
6381 | } | ||
6382 | description { state: "selected" 0.0; | ||
6383 | inherit: "default" 0.0; | ||
6384 | visible: 1; | ||
6385 | color: 255 255 255 255; | ||
6386 | rel1 { | ||
6387 | relative: 0.0 0.0; | ||
6388 | offset: -2 -2; | ||
6389 | } | ||
6390 | rel2 { | ||
6391 | relative: 1.0 1.0; | ||
6392 | offset: 1 1; | ||
6393 | } | ||
6394 | } | ||
6395 | } | ||
6396 | part { name: "elm.swallow.pad"; | ||
6397 | type: SWALLOW; | ||
6398 | description { state: "default" 0.0; | ||
6399 | fixed: 1 0; | ||
6400 | align: 0.0 0.5; | ||
6401 | rel1 { | ||
6402 | relative: 0.0 0.0; | ||
6403 | offset: 4 4; | ||
6404 | } | ||
6405 | rel2 { | ||
6406 | relative: 0.0 1.0; | ||
6407 | offset: 4 -5; | ||
6408 | } | ||
6409 | } | ||
6410 | } | ||
6411 | part { name: "arrow"; | ||
6412 | clip_to: "disclip"; | ||
6413 | ignore_flags: ON_HOLD; | ||
6414 | description { state: "default" 0.0; | ||
6415 | fixed: 1 0; | ||
6416 | align: 0.0 0.5; | ||
6417 | aspect: 1.0 1.0; | ||
6418 | rel1 { | ||
6419 | to_x: "elm.swallow.pad"; | ||
6420 | relative: 1.0 0.0; | ||
6421 | offset: -1 4; | ||
6422 | } | ||
6423 | rel2 { | ||
6424 | to_x: "elm.swallow.pad"; | ||
6425 | relative: 1.0 1.0; | ||
6426 | offset: -1 -5; | ||
6427 | } | ||
6428 | image.normal: "icon_arrow_right.png"; | ||
6429 | } | ||
6430 | description { state: "active" 0.0; | ||
6431 | inherit: "default" 0.0; | ||
6432 | image.normal: "icon_arrow_down.png"; | ||
6433 | } | ||
6434 | } | ||
6435 | part { name: "elm.swallow.icon"; | ||
6436 | clip_to: "disclip"; | ||
6437 | type: SWALLOW; | ||
6438 | description { state: "default" 0.0; | ||
6439 | fixed: 1 0; | ||
6440 | align: 0.0 0.5; | ||
6441 | rel1 { | ||
6442 | to_x: "arrow"; | ||
6443 | relative: 1.0 0.0; | ||
6444 | offset: 4 4; | ||
6445 | } | ||
6446 | rel2 { | ||
6447 | to_x: "arrow"; | ||
6448 | relative: 1.0 1.0; | ||
6449 | offset: 4 -5; | ||
6450 | } | ||
6451 | } | ||
6452 | } | ||
6453 | part { name: "elm.swallow.end"; | ||
6454 | clip_to: "disclip"; | ||
6455 | type: SWALLOW; | ||
6456 | description { state: "default" 0.0; | ||
6457 | fixed: 1 0; | ||
6458 | align: 1.0 0.5; | ||
6459 | aspect: 1.0 1.0; | ||
6460 | aspect_preference: VERTICAL; | ||
6461 | rel1 { | ||
6462 | relative: 1.0 0.0; | ||
6463 | offset: -5 4; | ||
6464 | } | ||
6465 | rel2 { | ||
6466 | relative: 1.0 1.0; | ||
6467 | offset: -5 -5; | ||
6468 | } | ||
6469 | } | ||
6470 | } | ||
6471 | part { name: "elm.text"; | ||
6472 | clip_to: "disclip"; | ||
6473 | type: TEXT; | ||
6474 | effect: SOFT_SHADOW; | ||
6475 | mouse_events: 0; | ||
6476 | scale: 1; | ||
6477 | description { | ||
6478 | state: "default" 0.0; | ||
6479 | // min: 16 16; | ||
6480 | rel1 { | ||
6481 | to_x: "elm.swallow.icon"; | ||
6482 | relative: 1.0 0.0; | ||
6483 | offset: 0 4; | ||
6484 | } | ||
6485 | rel2 { | ||
6486 | to_x: "elm.swallow.end"; | ||
6487 | relative: 0.0 0.5; | ||
6488 | offset: -1 -5; | ||
6489 | } | ||
6490 | color: 0 0 0 255; | ||
6491 | color3: 0 0 0 0; | ||
6492 | text { | ||
6493 | font: "Sans"; | ||
6494 | size: 10; | ||
6495 | // min: 1 1; | ||
6496 | min: 0 1; | ||
6497 | align: 0.0 0.5; | ||
6498 | text_class: "list_item"; | ||
6499 | } | ||
6500 | } | ||
6501 | description { state: "selected" 0.0; | ||
6502 | inherit: "default" 0.0; | ||
6503 | color: 224 224 224 255; | ||
6504 | color3: 0 0 0 64; | ||
6505 | } | ||
6506 | } | ||
6507 | part { name: "elm.text.sub"; | ||
6508 | clip_to: "disclip"; | ||
6509 | type: TEXT; | ||
6510 | mouse_events: 0; | ||
6511 | scale: 1; | ||
6512 | description { | ||
6513 | state: "default" 0.0; | ||
6514 | // min: 16 16; | ||
6515 | rel1 { | ||
6516 | to_x: "elm.swallow.icon"; | ||
6517 | relative: 1.0 0.5; | ||
6518 | offset: 0 4; | ||
6519 | } | ||
6520 | rel2 { | ||
6521 | to_x: "elm.swallow.end"; | ||
6522 | relative: 0.0 1.0; | ||
6523 | offset: -1 -5; | ||
6524 | } | ||
6525 | color: 0 0 0 128; | ||
6526 | color3: 0 0 0 0; | ||
6527 | text { | ||
6528 | font: "Sans"; | ||
6529 | size: 8; | ||
6530 | // min: 1 1; | ||
6531 | min: 0 1; | ||
6532 | align: 0.0 0.5; | ||
6533 | text_class: "list_item"; | ||
6534 | } | ||
6535 | } | ||
6536 | description { state: "selected" 0.0; | ||
6537 | inherit: "default" 0.0; | ||
6538 | color: 128 128 128 255; | ||
6539 | color3: 0 0 0 32; | ||
6540 | } | ||
6541 | } | ||
6542 | part { name: "fg1"; | ||
6543 | clip_to: "disclip"; | ||
6544 | mouse_events: 0; | ||
6545 | description { state: "default" 0.0; | ||
6546 | visible: 0; | ||
6547 | color: 255 255 255 0; | ||
6548 | rel1.to: "bg"; | ||
6549 | rel2.relative: 1.0 0.5; | ||
6550 | rel2.to: "bg"; | ||
6551 | image { | ||
6552 | normal: "bt_sm_hilight.png"; | ||
6553 | border: 6 6 6 0; | ||
6554 | } | ||
6555 | } | ||
6556 | description { state: "selected" 0.0; | ||
6557 | inherit: "default" 0.0; | ||
6558 | visible: 1; | ||
6559 | color: 255 255 255 255; | ||
6560 | } | ||
6561 | } | ||
6562 | part { name: "fg2"; | ||
6563 | clip_to: "disclip"; | ||
6564 | mouse_events: 0; | ||
6565 | description { state: "default" 0.0; | ||
6566 | visible: 0; | ||
6567 | color: 255 255 255 0; | ||
6568 | rel1.to: "bg"; | ||
6569 | rel2.to: "bg"; | ||
6570 | image { | ||
6571 | normal: "bt_sm_shine.png"; | ||
6572 | border: 6 6 6 0; | ||
6573 | } | ||
6574 | } | ||
6575 | description { state: "selected" 0.0; | ||
6576 | inherit: "default" 0.0; | ||
6577 | visible: 1; | ||
6578 | color: 255 255 255 255; | ||
6579 | } | ||
6580 | } | ||
6581 | part { name: "disclip"; | ||
6582 | type: RECT; | ||
6583 | description { state: "default" 0.0; | ||
6584 | rel1.to: "bg"; | ||
6585 | rel2.to: "bg"; | ||
6586 | } | ||
6587 | description { state: "disabled" 0.0; | ||
6588 | inherit: "default" 0.0; | ||
6589 | color: 255 255 255 64; | ||
6590 | } | ||
6591 | } | ||
6592 | } | ||
6593 | programs { | ||
6594 | // signal: elm,state,%s,active | ||
6595 | // a "check" item named %s went active | ||
6596 | // signal: elm,state,%s,passive | ||
6597 | // a "check" item named %s went passive | ||
6598 | // default is passive | ||
6599 | program { | ||
6600 | name: "go_active"; | ||
6601 | signal: "elm,state,selected"; | ||
6602 | source: "elm"; | ||
6603 | action: STATE_SET "selected" 0.0; | ||
6604 | target: "bg"; | ||
6605 | target: "fg1"; | ||
6606 | target: "fg2"; | ||
6607 | target: "elm.text"; | ||
6608 | target: "elm.text.sub"; | ||
6609 | } | ||
6610 | program { | ||
6611 | name: "go_passive"; | ||
6612 | signal: "elm,state,unselected"; | ||
6613 | source: "elm"; | ||
6614 | action: STATE_SET "default" 0.0; | ||
6615 | target: "bg"; | ||
6616 | target: "fg1"; | ||
6617 | target: "fg2"; | ||
6618 | target: "elm.text"; | ||
6619 | target: "elm.text.sub"; | ||
6620 | transition: LINEAR 0.1; | ||
6621 | } | ||
6622 | program { | ||
6623 | name: "go_disabled"; | ||
6624 | signal: "elm,state,disabled"; | ||
6625 | source: "elm"; | ||
6626 | action: STATE_SET "disabled" 0.0; | ||
6627 | target: "disclip"; | ||
6628 | } | ||
6629 | program { | ||
6630 | name: "go_enabled"; | ||
6631 | signal: "elm,state,enabled"; | ||
6632 | source: "elm"; | ||
6633 | action: STATE_SET "default" 0.0; | ||
6634 | target: "disclip"; | ||
6635 | } | ||
6636 | program { | ||
6637 | name: "expand"; | ||
6638 | signal: "mouse,up,1"; | ||
6639 | source: "arrow"; | ||
6640 | action: SIGNAL_EMIT "elm,action,expand,toggle" "elm"; | ||
6641 | } | ||
6642 | program { | ||
6643 | name: "go_expanded"; | ||
6644 | signal: "elm,state,expanded"; | ||
6645 | source: "elm"; | ||
6646 | action: STATE_SET "active" 0.0; | ||
6647 | target: "arrow"; | ||
6648 | } | ||
6649 | program { | ||
6650 | name: "go_contracted"; | ||
6651 | signal: "elm,state,contracted"; | ||
6652 | source: "elm"; | ||
6653 | action: STATE_SET "default" 0.0; | ||
6654 | target: "arrow"; | ||
6655 | } | ||
6656 | } | ||
6657 | } | ||
6658 | |||
6659 | group { name: "elm/genlist/item_compress/media/default"; | ||
6660 | data.item: "stacking" "above"; | ||
6661 | data.item: "selectraise" "on"; | ||
6662 | data.item: "texts" "elm.text.title elm.text.album-artist"; | ||
6663 | data.item: "treesize" "20"; | ||
6664 | images { | ||
6665 | image: "bt_sm_base1.png" COMP; | ||
6666 | image: "bt_sm_shine.png" COMP; | ||
6667 | image: "bt_sm_hilight.png" COMP; | ||
6668 | image: "ilist_1.png" COMP; | ||
6669 | image: "ilist_item_shadow.png" COMP; | ||
6670 | } | ||
6671 | parts { | ||
6672 | part { | ||
6673 | name: "event"; | ||
6674 | type: RECT; | ||
6675 | repeat_events: 1; | ||
6676 | description { | ||
6677 | state: "default" 0.0; | ||
6678 | color: 0 0 0 0; | ||
6679 | } | ||
6680 | } | ||
6681 | part { | ||
6682 | name: "base_sh"; | ||
6683 | mouse_events: 0; | ||
6684 | description { | ||
6685 | state: "default" 0.0; | ||
6686 | align: 0.0 0.0; | ||
6687 | min: 0 10; | ||
6688 | fixed: 1 1; | ||
6689 | rel1 { | ||
6690 | to: "base"; | ||
6691 | relative: 0.0 1.0; | ||
6692 | offset: 0 0; | ||
6693 | } | ||
6694 | rel2 { | ||
6695 | to: "base"; | ||
6696 | relative: 1.0 1.0; | ||
6697 | offset: -1 0; | ||
6698 | } | ||
6699 | image { | ||
6700 | normal: "ilist_item_shadow.png"; | ||
6701 | } | ||
6702 | fill.smooth: 0; | ||
6703 | } | ||
6704 | } | ||
6705 | part { | ||
6706 | name: "base"; | ||
6707 | mouse_events: 0; | ||
6708 | description { | ||
6709 | state: "default" 0.0; | ||
6710 | image { | ||
6711 | normal: "ilist_1.png"; | ||
6712 | border: 2 2 2 2; | ||
6713 | } | ||
6714 | fill.smooth: 0; | ||
6715 | } | ||
6716 | } | ||
6717 | part { name: "bg"; | ||
6718 | clip_to: "disclip"; | ||
6719 | mouse_events: 0; | ||
6720 | description { state: "default" 0.0; | ||
6721 | visible: 0; | ||
6722 | color: 255 255 255 0; | ||
6723 | rel1 { | ||
6724 | relative: 0.0 0.0; | ||
6725 | offset: -5 -5; | ||
6726 | } | ||
6727 | rel2 { | ||
6728 | relative: 1.0 1.0; | ||
6729 | offset: 4 4; | ||
6730 | } | ||
6731 | image { | ||
6732 | normal: "bt_sm_base1.png"; | ||
6733 | border: 6 6 6 6; | ||
6734 | } | ||
6735 | image.middle: SOLID; | ||
6736 | } | ||
6737 | description { state: "selected" 0.0; | ||
6738 | inherit: "default" 0.0; | ||
6739 | visible: 1; | ||
6740 | color: 255 255 255 255; | ||
6741 | rel1 { | ||
6742 | relative: 0.0 0.0; | ||
6743 | offset: -2 -2; | ||
6744 | } | ||
6745 | rel2 { | ||
6746 | relative: 1.0 1.0; | ||
6747 | offset: 1 1; | ||
6748 | } | ||
6749 | } | ||
6750 | } | ||
6751 | part { name: "elm.swallow.pad"; | ||
6752 | type: SWALLOW; | ||
6753 | description { state: "default" 0.0; | ||
6754 | fixed: 1 0; | ||
6755 | align: 0.0 0.5; | ||
6756 | rel1 { | ||
6757 | relative: 0.0 0.0; | ||
6758 | offset: 4 4; | ||
6759 | } | ||
6760 | rel2 { | ||
6761 | relative: 0.0 1.0; | ||
6762 | offset: 4 -5; | ||
6763 | } | ||
6764 | } | ||
6765 | } | ||
6766 | part { name: "elm.text.title"; | ||
6767 | clip_to: "disclip"; | ||
6768 | type: TEXT; | ||
6769 | effect: SOFT_SHADOW; | ||
6770 | mouse_events: 0; | ||
6771 | scale: 1; | ||
6772 | description { | ||
6773 | state: "default" 0.0; | ||
6774 | rel1 { | ||
6775 | relative: 0.0 0.0; | ||
6776 | offset: 4 4; | ||
6777 | } | ||
6778 | rel2 { | ||
6779 | relative: 1.0 0.5; | ||
6780 | offset: -1 -5; | ||
6781 | } | ||
6782 | color: 0 0 0 255; | ||
6783 | color3: 0 0 0 0; | ||
6784 | text { | ||
6785 | font: "Sans"; | ||
6786 | size: 10; | ||
6787 | min: 0 1; | ||
6788 | align: 0.0 0.5; | ||
6789 | } | ||
6790 | } | ||
6791 | description { state: "selected" 0.0; | ||
6792 | inherit: "default" 0.0; | ||
6793 | color: 224 224 224 255; | ||
6794 | color3: 0 0 0 64; | ||
6795 | } | ||
6796 | } | ||
6797 | part { name: "elm.text.album-artist"; | ||
6798 | clip_to: "disclip"; | ||
6799 | type: TEXT; | ||
6800 | mouse_events: 0; | ||
6801 | scale: 1; | ||
6802 | description { | ||
6803 | state: "default" 0.0; | ||
6804 | rel1 { | ||
6805 | relative: 0.0 0.5; | ||
6806 | offset: 4 4; | ||
6807 | } | ||
6808 | rel2 { | ||
6809 | relative: 1.0 1.0; | ||
6810 | offset: -1 -5; | ||
6811 | } | ||
6812 | color: 0 0 0 128; | ||
6813 | color3: 0 0 0 0; | ||
6814 | text { | ||
6815 | font: "Sans"; | ||
6816 | size: 8; | ||
6817 | min: 0 1; | ||
6818 | align: 0.0 0.5; | ||
6819 | } | ||
6820 | } | ||
6821 | description { state: "selected" 0.0; | ||
6822 | inherit: "default" 0.0; | ||
6823 | color: 128 128 128 255; | ||
6824 | color3: 0 0 0 32; | ||
6825 | } | ||
6826 | } | ||
6827 | part { name: "fg1"; | ||
6828 | clip_to: "disclip"; | ||
6829 | mouse_events: 0; | ||
6830 | description { state: "default" 0.0; | ||
6831 | visible: 0; | ||
6832 | color: 255 255 255 0; | ||
6833 | rel1.to: "bg"; | ||
6834 | rel2.relative: 1.0 0.5; | ||
6835 | rel2.to: "bg"; | ||
6836 | image { | ||
6837 | normal: "bt_sm_hilight.png"; | ||
6838 | border: 6 6 6 0; | ||
6839 | } | ||
6840 | } | ||
6841 | description { state: "selected" 0.0; | ||
6842 | inherit: "default" 0.0; | ||
6843 | visible: 1; | ||
6844 | color: 255 255 255 255; | ||
6845 | } | ||
6846 | } | ||
6847 | part { name: "fg2"; | ||
6848 | clip_to: "disclip"; | ||
6849 | mouse_events: 0; | ||
6850 | description { state: "default" 0.0; | ||
6851 | visible: 0; | ||
6852 | color: 255 255 255 0; | ||
6853 | rel1.to: "bg"; | ||
6854 | rel2.to: "bg"; | ||
6855 | image { | ||
6856 | normal: "bt_sm_shine.png"; | ||
6857 | border: 6 6 6 0; | ||
6858 | } | ||
6859 | } | ||
6860 | description { state: "selected" 0.0; | ||
6861 | inherit: "default" 0.0; | ||
6862 | visible: 1; | ||
6863 | color: 255 255 255 255; | ||
6864 | } | ||
6865 | } | ||
6866 | part { name: "disclip"; | ||
6867 | type: RECT; | ||
6868 | description { state: "default" 0.0; | ||
6869 | rel1.to: "bg"; | ||
6870 | rel2.to: "bg"; | ||
6871 | } | ||
6872 | description { state: "disabled" 0.0; | ||
6873 | inherit: "default" 0.0; | ||
6874 | color: 255 255 255 64; | ||
6875 | } | ||
6876 | } | ||
6877 | } | ||
6878 | programs { | ||
6879 | // signal: elm,state,%s,active | ||
6880 | // a "check" item named %s went active | ||
6881 | // signal: elm,state,%s,passive | ||
6882 | // a "check" item named %s went passive | ||
6883 | // default is passive | ||
6884 | program { | ||
6885 | name: "go_active"; | ||
6886 | signal: "elm,state,selected"; | ||
6887 | source: "elm"; | ||
6888 | action: STATE_SET "selected" 0.0; | ||
6889 | target: "bg"; | ||
6890 | target: "fg1"; | ||
6891 | target: "fg2"; | ||
6892 | target: "elm.text.title"; | ||
6893 | target: "elm.text.album-artist"; | ||
6894 | } | ||
6895 | program { | ||
6896 | name: "go_passive"; | ||
6897 | signal: "elm,state,unselected"; | ||
6898 | source: "elm"; | ||
6899 | action: STATE_SET "default" 0.0; | ||
6900 | target: "bg"; | ||
6901 | target: "fg1"; | ||
6902 | target: "fg2"; | ||
6903 | target: "elm.text.title"; | ||
6904 | target: "elm.text.album-artist"; | ||
6905 | transition: LINEAR 0.1; | ||
6906 | } | ||
6907 | program { | ||
6908 | name: "go_disabled"; | ||
6909 | signal: "elm,state,disabled"; | ||
6910 | source: "elm"; | ||
6911 | action: STATE_SET "disabled" 0.0; | ||
6912 | target: "disclip"; | ||
6913 | } | ||
6914 | program { | ||
6915 | name: "go_enabled"; | ||
6916 | signal: "elm,state,enabled"; | ||
6917 | source: "elm"; | ||
6918 | action: STATE_SET "default" 0.0; | ||
6919 | target: "disclip"; | ||
6920 | } | ||
6921 | } | ||
6922 | } | ||
6923 | group { name: "elm/genlist/item_compress_odd/media/default"; | ||
6924 | data.item: "stacking" "below"; | ||
6925 | data.item: "selectraise" "on"; | ||
6926 | data.item: "texts" "elm.text.title elm.text.album-artist"; | ||
6927 | data.item: "treesize" "20"; | ||
6928 | images { | ||
6929 | image: "bt_sm_base1.png" COMP; | ||
6930 | image: "bt_sm_shine.png" COMP; | ||
6931 | image: "bt_sm_hilight.png" COMP; | ||
6932 | image: "ilist_2.png" COMP; | ||
6933 | } | ||
6934 | parts { | ||
6935 | part { name: "event"; | ||
6936 | type: RECT; | ||
6937 | repeat_events: 1; | ||
6938 | description { | ||
6939 | state: "default" 0.0; | ||
6940 | color: 0 0 0 0; | ||
6941 | } | ||
6942 | } | ||
6943 | part { | ||
6944 | name: "base"; | ||
6945 | mouse_events: 0; | ||
6946 | description { | ||
6947 | state: "default" 0.0; | ||
6948 | image { | ||
6949 | normal: "ilist_2.png"; | ||
6950 | border: 2 2 2 2; | ||
6951 | } | ||
6952 | fill.smooth: 0; | ||
6953 | } | ||
6954 | } | ||
6955 | part { name: "bg"; | ||
6956 | clip_to: "disclip"; | ||
6957 | mouse_events: 0; | ||
6958 | description { state: "default" 0.0; | ||
6959 | visible: 0; | ||
6960 | color: 255 255 255 0; | ||
6961 | rel1 { | ||
6962 | relative: 0.0 0.0; | ||
6963 | offset: -5 -5; | ||
6964 | } | ||
6965 | rel2 { | ||
6966 | relative: 1.0 1.0; | ||
6967 | offset: 4 4; | ||
6968 | } | ||
6969 | image { | ||
6970 | normal: "bt_sm_base1.png"; | ||
6971 | border: 6 6 6 6; | ||
6972 | } | ||
6973 | image.middle: SOLID; | ||
6974 | } | ||
6975 | description { state: "selected" 0.0; | ||
6976 | inherit: "default" 0.0; | ||
6977 | visible: 1; | ||
6978 | color: 255 255 255 255; | ||
6979 | rel1 { | ||
6980 | relative: 0.0 0.0; | ||
6981 | offset: -2 -2; | ||
6982 | } | ||
6983 | rel2 { | ||
6984 | relative: 1.0 1.0; | ||
6985 | offset: 1 1; | ||
6986 | } | ||
6987 | } | ||
6988 | } | ||
6989 | part { name: "elm.swallow.pad"; | ||
6990 | type: SWALLOW; | ||
6991 | description { state: "default" 0.0; | ||
6992 | fixed: 1 0; | ||
6993 | align: 0.0 0.5; | ||
6994 | rel1 { | ||
6995 | relative: 0.0 0.0; | ||
6996 | offset: 4 4; | ||
6997 | } | ||
6998 | rel2 { | ||
6999 | relative: 0.0 1.0; | ||
7000 | offset: 4 -5; | ||
7001 | } | ||
7002 | } | ||
7003 | } | ||
7004 | part { name: "elm.text.title"; | ||
7005 | clip_to: "disclip"; | ||
7006 | type: TEXT; | ||
7007 | effect: SOFT_SHADOW; | ||
7008 | mouse_events: 0; | ||
7009 | scale: 1; | ||
7010 | description { | ||
7011 | state: "default" 0.0; | ||
7012 | rel1 { | ||
7013 | relative: 0.0 0.0; | ||
7014 | offset: 4 4; | ||
7015 | } | ||
7016 | rel2 { | ||
7017 | relative: 1.0 0.5; | ||
7018 | offset: -1 -5; | ||
7019 | } | ||
7020 | color: 0 0 0 255; | ||
7021 | color3: 0 0 0 0; | ||
7022 | text { | ||
7023 | font: "Sans"; | ||
7024 | size: 10; | ||
7025 | min: 0 1; | ||
7026 | align: 0.0 0.5; | ||
7027 | } | ||
7028 | } | ||
7029 | description { state: "selected" 0.0; | ||
7030 | inherit: "default" 0.0; | ||
7031 | color: 224 224 224 255; | ||
7032 | color3: 0 0 0 64; | ||
7033 | } | ||
7034 | } | ||
7035 | part { name: "elm.text.album-artist"; | ||
7036 | clip_to: "disclip"; | ||
7037 | type: TEXT; | ||
7038 | mouse_events: 0; | ||
7039 | scale: 1; | ||
7040 | description { | ||
7041 | state: "default" 0.0; | ||
7042 | rel1 { | ||
7043 | relative: 0.0 0.5; | ||
7044 | offset: 4 4; | ||
7045 | } | ||
7046 | rel2 { | ||
7047 | relative: 1.0 1.0; | ||
7048 | offset: -1 -5; | ||
7049 | } | ||
7050 | color: 0 0 0 128; | ||
7051 | color3: 0 0 0 0; | ||
7052 | text { | ||
7053 | font: "Sans"; | ||
7054 | size: 8; | ||
7055 | min: 0 1; | ||
7056 | align: 0.0 0.5; | ||
7057 | } | ||
7058 | } | ||
7059 | description { state: "selected" 0.0; | ||
7060 | inherit: "default" 0.0; | ||
7061 | color: 128 128 128 255; | ||
7062 | color3: 0 0 0 32; | ||
7063 | } | ||
7064 | } | ||
7065 | part { name: "fg1"; | ||
7066 | clip_to: "disclip"; | ||
7067 | mouse_events: 0; | ||
7068 | description { state: "default" 0.0; | ||
7069 | visible: 0; | ||
7070 | color: 255 255 255 0; | ||
7071 | rel1.to: "bg"; | ||
7072 | rel2.relative: 1.0 0.5; | ||
7073 | rel2.to: "bg"; | ||
7074 | image { | ||
7075 | normal: "bt_sm_hilight.png"; | ||
7076 | border: 6 6 6 0; | ||
7077 | } | ||
7078 | } | ||
7079 | description { state: "selected" 0.0; | ||
7080 | inherit: "default" 0.0; | ||
7081 | visible: 1; | ||
7082 | color: 255 255 255 255; | ||
7083 | } | ||
7084 | } | ||
7085 | part { name: "fg2"; | ||
7086 | clip_to: "disclip"; | ||
7087 | mouse_events: 0; | ||
7088 | description { state: "default" 0.0; | ||
7089 | visible: 0; | ||
7090 | color: 255 255 255 0; | ||
7091 | rel1.to: "bg"; | ||
7092 | rel2.to: "bg"; | ||
7093 | image { | ||
7094 | normal: "bt_sm_shine.png"; | ||
7095 | border: 6 6 6 0; | ||
7096 | } | ||
7097 | } | ||
7098 | description { state: "selected" 0.0; | ||
7099 | inherit: "default" 0.0; | ||
7100 | visible: 1; | ||
7101 | color: 255 255 255 255; | ||
7102 | } | ||
7103 | } | ||
7104 | part { name: "disclip"; | ||
7105 | type: RECT; | ||
7106 | description { state: "default" 0.0; | ||
7107 | rel1.to: "bg"; | ||
7108 | rel2.to: "bg"; | ||
7109 | } | ||
7110 | description { state: "disabled" 0.0; | ||
7111 | inherit: "default" 0.0; | ||
7112 | color: 255 255 255 64; | ||
7113 | } | ||
7114 | } | ||
7115 | } | ||
7116 | programs { | ||
7117 | // signal: elm,state,%s,active | ||
7118 | // a "check" item named %s went active | ||
7119 | // signal: elm,state,%s,passive | ||
7120 | // a "check" item named %s went passive | ||
7121 | // default is passive | ||
7122 | program { | ||
7123 | name: "go_active"; | ||
7124 | signal: "elm,state,selected"; | ||
7125 | source: "elm"; | ||
7126 | action: STATE_SET "selected" 0.0; | ||
7127 | target: "bg"; | ||
7128 | target: "fg1"; | ||
7129 | target: "fg2"; | ||
7130 | target: "elm.text.title"; | ||
7131 | target: "elm.text.album-artist"; | ||
7132 | } | ||
7133 | program { | ||
7134 | name: "go_passive"; | ||
7135 | signal: "elm,state,unselected"; | ||
7136 | source: "elm"; | ||
7137 | action: STATE_SET "default" 0.0; | ||
7138 | target: "bg"; | ||
7139 | target: "fg1"; | ||
7140 | target: "fg2"; | ||
7141 | target: "elm.text.title"; | ||
7142 | target: "elm.text.album-artist"; | ||
7143 | transition: LINEAR 0.1; | ||
7144 | } | ||
7145 | program { | ||
7146 | name: "go_disabled"; | ||
7147 | signal: "elm,state,disabled"; | ||
7148 | source: "elm"; | ||
7149 | action: STATE_SET "disabled" 0.0; | ||
7150 | target: "disclip"; | ||
7151 | } | ||
7152 | program { | ||
7153 | name: "go_enabled"; | ||
7154 | signal: "elm,state,enabled"; | ||
7155 | source: "elm"; | ||
7156 | action: STATE_SET "default" 0.0; | ||
7157 | target: "disclip"; | ||
7158 | } | ||
7159 | } | ||
7160 | } | ||
7161 | |||
7162 | group { name: "elm/genlist/item_compress/media-album/default"; | ||
7163 | data.item: "stacking" "above"; | ||
7164 | data.item: "selectraise" "on"; | ||
7165 | data.item: "texts" "elm.text.title elm.text.trackno elm.text.length"; | ||
7166 | data.item: "states" "elm.state.trackno"; | ||
7167 | data.item: "treesize" "20"; | ||
7168 | images { | ||
7169 | image: "bt_sm_base1.png" COMP; | ||
7170 | image: "bt_sm_shine.png" COMP; | ||
7171 | image: "bt_sm_hilight.png" COMP; | ||
7172 | image: "ilist_1.png" COMP; | ||
7173 | image: "ilist_item_shadow.png" COMP; | ||
7174 | } | ||
7175 | script { | ||
7176 | public dot_visible; | ||
7177 | } | ||
7178 | parts { | ||
7179 | part { | ||
7180 | name: "event"; | ||
7181 | type: RECT; | ||
7182 | repeat_events: 1; | ||
7183 | description { | ||
7184 | state: "default" 0.0; | ||
7185 | color: 0 0 0 0; | ||
7186 | } | ||
7187 | } | ||
7188 | part { | ||
7189 | name: "base_sh"; | ||
7190 | mouse_events: 0; | ||
7191 | description { | ||
7192 | state: "default" 0.0; | ||
7193 | align: 0.0 0.0; | ||
7194 | min: 0 10; | ||
7195 | fixed: 1 1; | ||
7196 | rel1 { | ||
7197 | to: "base"; | ||
7198 | relative: 0.0 1.0; | ||
7199 | offset: 0 0; | ||
7200 | } | ||
7201 | rel2 { | ||
7202 | to: "base"; | ||
7203 | relative: 1.0 1.0; | ||
7204 | offset: -1 0; | ||
7205 | } | ||
7206 | image { | ||
7207 | normal: "ilist_item_shadow.png"; | ||
7208 | } | ||
7209 | fill.smooth: 0; | ||
7210 | } | ||
7211 | } | ||
7212 | part { | ||
7213 | name: "base"; | ||
7214 | mouse_events: 0; | ||
7215 | description { | ||
7216 | state: "default" 0.0; | ||
7217 | image { | ||
7218 | normal: "ilist_1.png"; | ||
7219 | border: 2 2 2 2; | ||
7220 | } | ||
7221 | fill.smooth: 0; | ||
7222 | } | ||
7223 | } | ||
7224 | part { name: "bg"; | ||
7225 | clip_to: "disclip"; | ||
7226 | mouse_events: 0; | ||
7227 | description { state: "default" 0.0; | ||
7228 | visible: 0; | ||
7229 | color: 255 255 255 0; | ||
7230 | rel1 { | ||
7231 | relative: 0.0 0.0; | ||
7232 | offset: -5 -5; | ||
7233 | } | ||
7234 | rel2 { | ||
7235 | relative: 1.0 1.0; | ||
7236 | offset: 4 4; | ||
7237 | } | ||
7238 | image { | ||
7239 | normal: "bt_sm_base1.png"; | ||
7240 | border: 6 6 6 6; | ||
7241 | } | ||
7242 | image.middle: SOLID; | ||
7243 | } | ||
7244 | description { state: "selected" 0.0; | ||
7245 | inherit: "default" 0.0; | ||
7246 | visible: 1; | ||
7247 | color: 255 255 255 255; | ||
7248 | rel1 { | ||
7249 | relative: 0.0 0.0; | ||
7250 | offset: -2 -2; | ||
7251 | } | ||
7252 | rel2 { | ||
7253 | relative: 1.0 1.0; | ||
7254 | offset: 1 1; | ||
7255 | } | ||
7256 | } | ||
7257 | } | ||
7258 | part { name: "elm.swallow.pad"; | ||
7259 | type: SWALLOW; | ||
7260 | description { state: "default" 0.0; | ||
7261 | fixed: 1 0; | ||
7262 | align: 0.0 0.5; | ||
7263 | rel1 { | ||
7264 | relative: 0.0 0.0; | ||
7265 | offset: 4 4; | ||
7266 | } | ||
7267 | rel2 { | ||
7268 | relative: 0.0 1.0; | ||
7269 | offset: 4 -5; | ||
7270 | } | ||
7271 | } | ||
7272 | } | ||
7273 | part { | ||
7274 | name: "elm.text.trackno"; | ||
7275 | type: TEXT; | ||
7276 | scale: 1; | ||
7277 | mouse_events: 0; | ||
7278 | description { | ||
7279 | state: "default" 0.0; | ||
7280 | color: 255 255 255 255; | ||
7281 | align: 0.0 0.0; | ||
7282 | fixed: 1 0; | ||
7283 | rel1 { | ||
7284 | to_y: "elm.text.title"; | ||
7285 | relative: 0.0 0.0; | ||
7286 | offset: 5 0; | ||
7287 | } | ||
7288 | rel2 { | ||
7289 | to_y: "elm.text.title"; | ||
7290 | relative: 0.0 1.0; | ||
7291 | offset: 20 0; | ||
7292 | } | ||
7293 | color: 0 0 0 255; | ||
7294 | color3: 0 0 0 0; | ||
7295 | text { | ||
7296 | font: "Sans"; | ||
7297 | size: 10; | ||
7298 | min: 1 1; | ||
7299 | align: 1.0 0.5; | ||
7300 | } | ||
7301 | } | ||
7302 | description { state: "selected" 0.0; | ||
7303 | inherit: "default" 0.0; | ||
7304 | color: 224 224 224 255; | ||
7305 | color3: 0 0 0 64; | ||
7306 | } | ||
7307 | } | ||
7308 | part { | ||
7309 | name: "dot"; | ||
7310 | type: TEXT; | ||
7311 | scale: 1; | ||
7312 | mouse_events: 0; | ||
7313 | description { | ||
7314 | state: "default" 0.0; | ||
7315 | color: 255 255 255 255; | ||
7316 | visible: 0; | ||
7317 | fixed: 1 1; | ||
7318 | align: 0.0 0.0; | ||
7319 | rel1 { | ||
7320 | to_x: "elm.text.trackno"; | ||
7321 | to_y: "elm.text.title"; | ||
7322 | relative: 1.0 0.0; | ||
7323 | offset: 1 0; | ||
7324 | } | ||
7325 | rel2 { | ||
7326 | to_x: "elm.text.trackno"; | ||
7327 | to_y: "elm.text.title"; | ||
7328 | relative: 1.0 1.0; | ||
7329 | offset: 1 0; | ||
7330 | |||
7331 | } | ||
7332 | color: 0 0 0 255; | ||
7333 | color3: 0 0 0 0; | ||
7334 | text { | ||
7335 | font: "Sans"; | ||
7336 | size: 10; | ||
7337 | min: 1 1; | ||
7338 | align: 0.0 0.5; | ||
7339 | text: "."; | ||
7340 | } | ||
7341 | } | ||
7342 | description { | ||
7343 | state: "visible" 0.0; | ||
7344 | inherit: "default" 0.0; | ||
7345 | visible: 1; | ||
7346 | } | ||
7347 | description { state: "selected" 0.0; | ||
7348 | inherit: "default" 0.0; | ||
7349 | color: 224 224 224 255; | ||
7350 | color3: 0 0 0 64; | ||
7351 | visible: 1; | ||
7352 | } | ||
7353 | } | ||
7354 | programs { | ||
7355 | program { | ||
7356 | signal: "elm,state,elm.state.trackno,active"; | ||
7357 | source: "elm"; | ||
7358 | script { | ||
7359 | set_state(PART:"dot", "visible", 0.0); | ||
7360 | set_int(dot_visible, 1); | ||
7361 | } | ||
7362 | } | ||
7363 | } | ||
7364 | part { name: "elm.text.title"; | ||
7365 | clip_to: "disclip"; | ||
7366 | type: TEXT; | ||
7367 | effect: SOFT_SHADOW; | ||
7368 | mouse_events: 0; | ||
7369 | scale: 1; | ||
7370 | description { | ||
7371 | state: "default" 0.0; | ||
7372 | rel1 { | ||
7373 | to_x: "dot"; | ||
7374 | relative: 0.0 0.0; | ||
7375 | offset: 4 4; | ||
7376 | } | ||
7377 | rel2 { | ||
7378 | relative: 1.0 0.5; | ||
7379 | offset: -1 -5; | ||
7380 | } | ||
7381 | color: 0 0 0 255; | ||
7382 | color3: 0 0 0 0; | ||
7383 | text { | ||
7384 | font: "Sans"; | ||
7385 | size: 10; | ||
7386 | min: 0 1; | ||
7387 | align: 0.0 0.5; | ||
7388 | } | ||
7389 | } | ||
7390 | description { state: "selected" 0.0; | ||
7391 | inherit: "default" 0.0; | ||
7392 | color: 224 224 224 255; | ||
7393 | color3: 0 0 0 64; | ||
7394 | } | ||
7395 | } | ||
7396 | part { name: "elm.text.length"; | ||
7397 | clip_to: "disclip"; | ||
7398 | type: TEXT; | ||
7399 | mouse_events: 0; | ||
7400 | scale: 1; | ||
7401 | description { | ||
7402 | state: "default" 0.0; | ||
7403 | rel1 { | ||
7404 | relative: 0.0 0.5; | ||
7405 | offset: 4 4; | ||
7406 | } | ||
7407 | rel2 { | ||
7408 | relative: 1.0 1.0; | ||
7409 | offset: -1 -5; | ||
7410 | } | ||
7411 | color: 0 0 0 128; | ||
7412 | color3: 0 0 0 0; | ||
7413 | text { | ||
7414 | font: "Sans"; | ||
7415 | size: 8; | ||
7416 | min: 0 1; | ||
7417 | align: 0.0 0.5; | ||
7418 | } | ||
7419 | } | ||
7420 | description { state: "selected" 0.0; | ||
7421 | inherit: "default" 0.0; | ||
7422 | color: 128 128 128 255; | ||
7423 | color3: 0 0 0 32; | ||
7424 | } | ||
7425 | } | ||
7426 | part { name: "fg1"; | ||
7427 | clip_to: "disclip"; | ||
7428 | mouse_events: 0; | ||
7429 | description { state: "default" 0.0; | ||
7430 | visible: 0; | ||
7431 | color: 255 255 255 0; | ||
7432 | rel1.to: "bg"; | ||
7433 | rel2.relative: 1.0 0.5; | ||
7434 | rel2.to: "bg"; | ||
7435 | image { | ||
7436 | normal: "bt_sm_hilight.png"; | ||
7437 | border: 6 6 6 0; | ||
7438 | } | ||
7439 | } | ||
7440 | description { state: "selected" 0.0; | ||
7441 | inherit: "default" 0.0; | ||
7442 | visible: 1; | ||
7443 | color: 255 255 255 255; | ||
7444 | } | ||
7445 | } | ||
7446 | part { name: "fg2"; | ||
7447 | clip_to: "disclip"; | ||
7448 | mouse_events: 0; | ||
7449 | description { state: "default" 0.0; | ||
7450 | visible: 0; | ||
7451 | color: 255 255 255 0; | ||
7452 | rel1.to: "bg"; | ||
7453 | rel2.to: "bg"; | ||
7454 | image { | ||
7455 | normal: "bt_sm_shine.png"; | ||
7456 | border: 6 6 6 0; | ||
7457 | } | ||
7458 | } | ||
7459 | description { state: "selected" 0.0; | ||
7460 | inherit: "default" 0.0; | ||
7461 | visible: 1; | ||
7462 | color: 255 255 255 255; | ||
7463 | } | ||
7464 | } | ||
7465 | part { name: "disclip"; | ||
7466 | type: RECT; | ||
7467 | description { state: "default" 0.0; | ||
7468 | rel1.to: "bg"; | ||
7469 | rel2.to: "bg"; | ||
7470 | } | ||
7471 | description { state: "disabled" 0.0; | ||
7472 | inherit: "default" 0.0; | ||
7473 | color: 255 255 255 64; | ||
7474 | } | ||
7475 | } | ||
7476 | } | ||
7477 | programs { | ||
7478 | // signal: elm,state,%s,active | ||
7479 | // a "check" item named %s went active | ||
7480 | // signal: elm,state,%s,passive | ||
7481 | // a "check" item named %s went passive | ||
7482 | // default is passive | ||
7483 | program { | ||
7484 | name: "go_active"; | ||
7485 | signal: "elm,state,selected"; | ||
7486 | source: "elm"; | ||
7487 | action: STATE_SET "selected" 0.0; | ||
7488 | target: "bg"; | ||
7489 | target: "fg1"; | ||
7490 | target: "fg2"; | ||
7491 | target: "elm.text.title"; | ||
7492 | target: "elm.text.trackno"; | ||
7493 | target: "elm.text.length"; | ||
7494 | after: "dot_active"; | ||
7495 | } | ||
7496 | program { | ||
7497 | name: "dot_active"; | ||
7498 | script { | ||
7499 | if (get_int(dot_visible) == 1) | ||
7500 | set_state(PART:"dot", "selected", 0.0); | ||
7501 | } | ||
7502 | } | ||
7503 | program { | ||
7504 | name: "go_passive"; | ||
7505 | signal: "elm,state,unselected"; | ||
7506 | source: "elm"; | ||
7507 | action: STATE_SET "default" 0.0; | ||
7508 | target: "bg"; | ||
7509 | target: "fg1"; | ||
7510 | target: "fg2"; | ||
7511 | target: "elm.text.title"; | ||
7512 | target: "elm.text.length"; | ||
7513 | target: "elm.text.trackno"; | ||
7514 | transition: LINEAR 0.1; | ||
7515 | after: "dot_passive"; | ||
7516 | } | ||
7517 | program { | ||
7518 | name: "dot_passive"; | ||
7519 | script { | ||
7520 | if (get_int(dot_visible) == 1) | ||
7521 | set_state(PART:"dot", "visible", 0.0); | ||
7522 | } | ||
7523 | } | ||
7524 | program { | ||
7525 | name: "go_disabled"; | ||
7526 | signal: "elm,state,disabled"; | ||
7527 | source: "elm"; | ||
7528 | action: STATE_SET "disabled" 0.0; | ||
7529 | target: "disclip"; | ||
7530 | } | ||
7531 | program { | ||
7532 | name: "go_enabled"; | ||
7533 | signal: "elm,state,enabled"; | ||
7534 | source: "elm"; | ||
7535 | action: STATE_SET "default" 0.0; | ||
7536 | target: "disclip"; | ||
7537 | } | ||
7538 | } | ||
7539 | } | ||
7540 | group { name: "elm/genlist/item_compress_odd/media-album/default"; | ||
7541 | data.item: "stacking" "below"; | ||
7542 | data.item: "selectraise" "on"; | ||
7543 | data.item: "texts" "elm.text.title elm.text.trackno elm.text.length"; | ||
7544 | data.item: "states" "elm.state.trackno"; | ||
7545 | data.item: "treesize" "20"; | ||
7546 | images { | ||
7547 | image: "bt_sm_base1.png" COMP; | ||
7548 | image: "bt_sm_shine.png" COMP; | ||
7549 | image: "bt_sm_hilight.png" COMP; | ||
7550 | image: "ilist_2.png" COMP; | ||
7551 | } | ||
7552 | script { | ||
7553 | public dot_visible; | ||
7554 | } | ||
7555 | parts { | ||
7556 | part { name: "event"; | ||
7557 | type: RECT; | ||
7558 | repeat_events: 1; | ||
7559 | description { | ||
7560 | state: "default" 0.0; | ||
7561 | color: 0 0 0 0; | ||
7562 | } | ||
7563 | } | ||
7564 | part { | ||
7565 | name: "base"; | ||
7566 | mouse_events: 0; | ||
7567 | description { | ||
7568 | state: "default" 0.0; | ||
7569 | image { | ||
7570 | normal: "ilist_2.png"; | ||
7571 | border: 2 2 2 2; | ||
7572 | } | ||
7573 | fill.smooth: 0; | ||
7574 | } | ||
7575 | } | ||
7576 | part { name: "bg"; | ||
7577 | clip_to: "disclip"; | ||
7578 | mouse_events: 0; | ||
7579 | description { state: "default" 0.0; | ||
7580 | visible: 0; | ||
7581 | color: 255 255 255 0; | ||
7582 | rel1 { | ||
7583 | relative: 0.0 0.0; | ||
7584 | offset: -5 -5; | ||
7585 | } | ||
7586 | rel2 { | ||
7587 | relative: 1.0 1.0; | ||
7588 | offset: 4 4; | ||
7589 | } | ||
7590 | image { | ||
7591 | normal: "bt_sm_base1.png"; | ||
7592 | border: 6 6 6 6; | ||
7593 | } | ||
7594 | image.middle: SOLID; | ||
7595 | } | ||
7596 | description { state: "selected" 0.0; | ||
7597 | inherit: "default" 0.0; | ||
7598 | visible: 1; | ||
7599 | color: 255 255 255 255; | ||
7600 | rel1 { | ||
7601 | relative: 0.0 0.0; | ||
7602 | offset: -2 -2; | ||
7603 | } | ||
7604 | rel2 { | ||
7605 | relative: 1.0 1.0; | ||
7606 | offset: 1 1; | ||
7607 | } | ||
7608 | } | ||
7609 | } | ||
7610 | part { name: "elm.swallow.pad"; | ||
7611 | type: SWALLOW; | ||
7612 | description { state: "default" 0.0; | ||
7613 | fixed: 1 0; | ||
7614 | align: 0.0 0.5; | ||
7615 | rel1 { | ||
7616 | relative: 0.0 0.0; | ||
7617 | offset: 4 4; | ||
7618 | } | ||
7619 | rel2 { | ||
7620 | relative: 0.0 1.0; | ||
7621 | offset: 4 -5; | ||
7622 | } | ||
7623 | } | ||
7624 | } | ||
7625 | part { | ||
7626 | name: "elm.text.trackno"; | ||
7627 | type: TEXT; | ||
7628 | scale: 1; | ||
7629 | mouse_events: 0; | ||
7630 | description { | ||
7631 | state: "default" 0.0; | ||
7632 | color: 255 255 255 255; | ||
7633 | align: 0.0 0.0; | ||
7634 | fixed: 1 0; | ||
7635 | rel1 { | ||
7636 | to_y: "elm.text.title"; | ||
7637 | relative: 0.0 0.0; | ||
7638 | offset: 5 0; | ||
7639 | } | ||
7640 | rel2 { | ||
7641 | to_y: "elm.text.title"; | ||
7642 | relative: 0.0 1.0; | ||
7643 | offset: 20 0; | ||
7644 | } | ||
7645 | color: 0 0 0 255; | ||
7646 | color3: 0 0 0 0; | ||
7647 | text { | ||
7648 | font: "Sans"; | ||
7649 | size: 10; | ||
7650 | min: 1 1; | ||
7651 | align: 1.0 0.5; | ||
7652 | } | ||
7653 | } | ||
7654 | description { state: "selected" 0.0; | ||
7655 | inherit: "default" 0.0; | ||
7656 | color: 224 224 224 255; | ||
7657 | color3: 0 0 0 64; | ||
7658 | } | ||
7659 | } | ||
7660 | part { | ||
7661 | name: "dot"; | ||
7662 | type: TEXT; | ||
7663 | scale: 1; | ||
7664 | mouse_events: 0; | ||
7665 | description { | ||
7666 | state: "default" 0.0; | ||
7667 | color: 255 255 255 255; | ||
7668 | visible: 0; | ||
7669 | fixed: 1 1; | ||
7670 | align: 0.0 0.0; | ||
7671 | rel1 { | ||
7672 | to_x: "elm.text.trackno"; | ||
7673 | to_y: "elm.text.title"; | ||
7674 | relative: 1.0 0.0; | ||
7675 | offset: 1 0; | ||
7676 | } | ||
7677 | rel2 { | ||
7678 | to_x: "elm.text.trackno"; | ||
7679 | to_y: "elm.text.title"; | ||
7680 | relative: 1.0 1.0; | ||
7681 | offset: 1 0; | ||
7682 | |||
7683 | } | ||
7684 | color: 0 0 0 255; | ||
7685 | color3: 0 0 0 0; | ||
7686 | text { | ||
7687 | font: "Sans"; | ||
7688 | size: 10; | ||
7689 | min: 1 1; | ||
7690 | align: 0.0 0.5; | ||
7691 | text: "."; | ||
7692 | } | ||
7693 | } | ||
7694 | description { | ||
7695 | state: "visible" 0.0; | ||
7696 | inherit: "default" 0.0; | ||
7697 | visible: 1; | ||
7698 | } | ||
7699 | description { state: "selected" 0.0; | ||
7700 | inherit: "default" 0.0; | ||
7701 | color: 224 224 224 255; | ||
7702 | color3: 0 0 0 64; | ||
7703 | visible: 1; | ||
7704 | } | ||
7705 | } | ||
7706 | programs { | ||
7707 | program { | ||
7708 | signal: "elm,state,elm.state.trackno,active"; | ||
7709 | source: "elm"; | ||
7710 | script { | ||
7711 | set_state(PART:"dot", "visible", 0.0); | ||
7712 | set_int(dot_visible, 1); | ||
7713 | } | ||
7714 | } | ||
7715 | } | ||
7716 | part { name: "elm.text.title"; | ||
7717 | clip_to: "disclip"; | ||
7718 | type: TEXT; | ||
7719 | effect: SOFT_SHADOW; | ||
7720 | mouse_events: 0; | ||
7721 | scale: 1; | ||
7722 | description { | ||
7723 | state: "default" 0.0; | ||
7724 | rel1 { | ||
7725 | to_x: "dot"; | ||
7726 | relative: 1.0 0.0; | ||
7727 | offset: 4 4; | ||
7728 | } | ||
7729 | rel2 { | ||
7730 | relative: 1.0 0.5; | ||
7731 | offset: -1 -5; | ||
7732 | } | ||
7733 | color: 0 0 0 255; | ||
7734 | color3: 0 0 0 0; | ||
7735 | text { | ||
7736 | font: "Sans"; | ||
7737 | size: 10; | ||
7738 | min: 0 1; | ||
7739 | align: 0.0 0.5; | ||
7740 | } | ||
7741 | } | ||
7742 | description { state: "selected" 0.0; | ||
7743 | inherit: "default" 0.0; | ||
7744 | color: 224 224 224 255; | ||
7745 | color3: 0 0 0 64; | ||
7746 | } | ||
7747 | } | ||
7748 | part { name: "elm.text.length"; | ||
7749 | clip_to: "disclip"; | ||
7750 | type: TEXT; | ||
7751 | mouse_events: 0; | ||
7752 | scale: 1; | ||
7753 | description { | ||
7754 | state: "default" 0.0; | ||
7755 | rel1 { | ||
7756 | relative: 0.0 0.5; | ||
7757 | offset: 4 4; | ||
7758 | } | ||
7759 | rel2 { | ||
7760 | relative: 1.0 1.0; | ||
7761 | offset: -1 -5; | ||
7762 | } | ||
7763 | color: 0 0 0 128; | ||
7764 | color3: 0 0 0 0; | ||
7765 | text { | ||
7766 | font: "Sans"; | ||
7767 | size: 8; | ||
7768 | min: 0 1; | ||
7769 | align: 0.0 0.5; | ||
7770 | } | ||
7771 | } | ||
7772 | description { state: "selected" 0.0; | ||
7773 | inherit: "default" 0.0; | ||
7774 | color: 128 128 128 255; | ||
7775 | color3: 0 0 0 32; | ||
7776 | } | ||
7777 | } | ||
7778 | part { name: "fg1"; | ||
7779 | clip_to: "disclip"; | ||
7780 | mouse_events: 0; | ||
7781 | description { state: "default" 0.0; | ||
7782 | visible: 0; | ||
7783 | color: 255 255 255 0; | ||
7784 | rel1.to: "bg"; | ||
7785 | rel2.relative: 1.0 0.5; | ||
7786 | rel2.to: "bg"; | ||
7787 | image { | ||
7788 | normal: "bt_sm_hilight.png"; | ||
7789 | border: 6 6 6 0; | ||
7790 | } | ||
7791 | } | ||
7792 | description { state: "selected" 0.0; | ||
7793 | inherit: "default" 0.0; | ||
7794 | visible: 1; | ||
7795 | color: 255 255 255 255; | ||
7796 | } | ||
7797 | } | ||
7798 | part { name: "fg2"; | ||
7799 | clip_to: "disclip"; | ||
7800 | mouse_events: 0; | ||
7801 | description { state: "default" 0.0; | ||
7802 | visible: 0; | ||
7803 | color: 255 255 255 0; | ||
7804 | rel1.to: "bg"; | ||
7805 | rel2.to: "bg"; | ||
7806 | image { | ||
7807 | normal: "bt_sm_shine.png"; | ||
7808 | border: 6 6 6 0; | ||
7809 | } | ||
7810 | } | ||
7811 | description { state: "selected" 0.0; | ||
7812 | inherit: "default" 0.0; | ||
7813 | visible: 1; | ||
7814 | color: 255 255 255 255; | ||
7815 | } | ||
7816 | } | ||
7817 | part { name: "disclip"; | ||
7818 | type: RECT; | ||
7819 | description { state: "default" 0.0; | ||
7820 | rel1.to: "bg"; | ||
7821 | rel2.to: "bg"; | ||
7822 | } | ||
7823 | description { state: "disabled" 0.0; | ||
7824 | inherit: "default" 0.0; | ||
7825 | color: 255 255 255 64; | ||
7826 | } | ||
7827 | } | ||
7828 | } | ||
7829 | programs { | ||
7830 | // signal: elm,state,%s,active | ||
7831 | // a "check" item named %s went active | ||
7832 | // signal: elm,state,%s,passive | ||
7833 | // a "check" item named %s went passive | ||
7834 | // default is passive | ||
7835 | program { | ||
7836 | name: "go_active"; | ||
7837 | signal: "elm,state,selected"; | ||
7838 | source: "elm"; | ||
7839 | action: STATE_SET "selected" 0.0; | ||
7840 | target: "bg"; | ||
7841 | target: "fg1"; | ||
7842 | target: "fg2"; | ||
7843 | target: "elm.text.title"; | ||
7844 | target: "elm.text.length"; | ||
7845 | target: "elm.text.trackno"; | ||
7846 | after: "dot_active"; | ||
7847 | } | ||
7848 | program { | ||
7849 | name: "dot_active"; | ||
7850 | script { | ||
7851 | if (get_int(dot_visible) == 1) | ||
7852 | set_state(PART:"dot", "selected", 0.0); | ||
7853 | } | ||
7854 | } | ||
7855 | program { | ||
7856 | name: "go_passive"; | ||
7857 | signal: "elm,state,unselected"; | ||
7858 | source: "elm"; | ||
7859 | action: STATE_SET "default" 0.0; | ||
7860 | target: "bg"; | ||
7861 | target: "fg1"; | ||
7862 | target: "fg2"; | ||
7863 | target: "elm.text.title"; | ||
7864 | target: "elm.text.length"; | ||
7865 | target: "elm.text.trackno"; | ||
7866 | transition: LINEAR 0.1; | ||
7867 | after: "dot_passive"; | ||
7868 | } | ||
7869 | program { | ||
7870 | name: "dot_passive"; | ||
7871 | script { | ||
7872 | if (get_int(dot_visible) == 1) | ||
7873 | set_state(PART:"dot", "visible", 0.0); | ||
7874 | } | ||
7875 | } | ||
7876 | program { | ||
7877 | name: "go_disabled"; | ||
7878 | signal: "elm,state,disabled"; | ||
7879 | source: "elm"; | ||
7880 | action: STATE_SET "disabled" 0.0; | ||
7881 | target: "disclip"; | ||
7882 | } | ||
7883 | program { | ||
7884 | name: "go_enabled"; | ||
7885 | signal: "elm,state,enabled"; | ||
7886 | source: "elm"; | ||
7887 | action: STATE_SET "default" 0.0; | ||
7888 | target: "disclip"; | ||
7889 | } | ||
7890 | } | ||
7891 | } | ||
7892 | |||
7893 | group { name: "elm/genlist/item_compress/media-preview/default"; | ||
7894 | data.item: "stacking" "above"; | ||
7895 | data.item: "selectraise" "on"; | ||
7896 | data.item: "texts" "elm.text.title elm.text.artist"; | ||
7897 | data.item: "contents" "elm.swallow.preview"; | ||
7898 | data.item: "treesize" "20"; | ||
7899 | images { | ||
7900 | image: "bt_sm_base1.png" COMP; | ||
7901 | image: "bt_sm_shine.png" COMP; | ||
7902 | image: "bt_sm_hilight.png" COMP; | ||
7903 | image: "ilist_1.png" COMP; | ||
7904 | image: "ilist_item_shadow.png" COMP; | ||
7905 | } | ||
7906 | parts { | ||
7907 | part { | ||
7908 | name: "event"; | ||
7909 | type: RECT; | ||
7910 | repeat_events: 1; | ||
7911 | description { | ||
7912 | state: "default" 0.0; | ||
7913 | color: 0 0 0 0; | ||
7914 | } | ||
7915 | } | ||
7916 | part { | ||
7917 | name: "base_sh"; | ||
7918 | mouse_events: 0; | ||
7919 | description { | ||
7920 | state: "default" 0.0; | ||
7921 | align: 0.0 0.0; | ||
7922 | min: 0 10; | ||
7923 | fixed: 1 1; | ||
7924 | rel1 { | ||
7925 | to: "base"; | ||
7926 | relative: 0.0 1.0; | ||
7927 | offset: 0 0; | ||
7928 | } | ||
7929 | rel2 { | ||
7930 | to: "base"; | ||
7931 | relative: 1.0 1.0; | ||
7932 | offset: -1 0; | ||
7933 | } | ||
7934 | image { | ||
7935 | normal: "ilist_item_shadow.png"; | ||
7936 | } | ||
7937 | fill.smooth: 0; | ||
7938 | } | ||
7939 | } | ||
7940 | part { | ||
7941 | name: "base"; | ||
7942 | mouse_events: 0; | ||
7943 | description { | ||
7944 | state: "default" 0.0; | ||
7945 | image { | ||
7946 | normal: "ilist_1.png"; | ||
7947 | border: 2 2 2 2; | ||
7948 | } | ||
7949 | fill.smooth: 0; | ||
7950 | } | ||
7951 | } | ||
7952 | part { name: "bg"; | ||
7953 | clip_to: "disclip"; | ||
7954 | mouse_events: 0; | ||
7955 | description { state: "default" 0.0; | ||
7956 | visible: 0; | ||
7957 | color: 255 255 255 0; | ||
7958 | rel1 { | ||
7959 | relative: 0.0 0.0; | ||
7960 | offset: -5 -5; | ||
7961 | } | ||
7962 | rel2 { | ||
7963 | relative: 1.0 1.0; | ||
7964 | offset: 4 4; | ||
7965 | } | ||
7966 | image { | ||
7967 | normal: "bt_sm_base1.png"; | ||
7968 | border: 6 6 6 6; | ||
7969 | } | ||
7970 | image.middle: SOLID; | ||
7971 | } | ||
7972 | description { state: "selected" 0.0; | ||
7973 | inherit: "default" 0.0; | ||
7974 | visible: 1; | ||
7975 | color: 255 255 255 255; | ||
7976 | rel1 { | ||
7977 | relative: 0.0 0.0; | ||
7978 | offset: -2 -2; | ||
7979 | } | ||
7980 | rel2 { | ||
7981 | relative: 1.0 1.0; | ||
7982 | offset: 1 1; | ||
7983 | } | ||
7984 | } | ||
7985 | } | ||
7986 | part { name: "elm.swallow.pad"; | ||
7987 | type: SWALLOW; | ||
7988 | description { state: "default" 0.0; | ||
7989 | fixed: 1 0; | ||
7990 | align: 0.0 0.5; | ||
7991 | rel1 { | ||
7992 | relative: 0.0 0.0; | ||
7993 | offset: 4 4; | ||
7994 | } | ||
7995 | rel2 { | ||
7996 | relative: 0.0 1.0; | ||
7997 | offset: 4 -5; | ||
7998 | } | ||
7999 | } | ||
8000 | } | ||
8001 | part { name: "elm.swallow.preview"; | ||
8002 | clip_to: "disclip"; | ||
8003 | type: SWALLOW; | ||
8004 | description { state: "default" 0.0; | ||
8005 | fixed: 1 0; | ||
8006 | align: 0.0 0.5; | ||
8007 | min: 68 68; | ||
8008 | max: 68 68; | ||
8009 | rel1 { | ||
8010 | to_x: "elm.swallow.pad"; | ||
8011 | relative: 1.0 0.0; | ||
8012 | offset: -1 4; | ||
8013 | } | ||
8014 | rel2 { | ||
8015 | to_x: "elm.swallow.pad"; | ||
8016 | relative: 1.0 1.0; | ||
8017 | offset: -1 -5; | ||
8018 | } | ||
8019 | } | ||
8020 | } | ||
8021 | part { name: "elm.text.title"; | ||
8022 | clip_to: "disclip"; | ||
8023 | type: TEXT; | ||
8024 | effect: SOFT_SHADOW; | ||
8025 | mouse_events: 0; | ||
8026 | scale: 1; | ||
8027 | description { | ||
8028 | state: "default" 0.0; | ||
8029 | rel1 { | ||
8030 | to_x: "elm.swallow.preview"; | ||
8031 | relative: 1.0 0.0; | ||
8032 | offset: 4 4; | ||
8033 | } | ||
8034 | rel2 { | ||
8035 | relative: 1.0 0.5; | ||
8036 | offset: -1 -5; | ||
8037 | } | ||
8038 | color: 0 0 0 255; | ||
8039 | color3: 0 0 0 0; | ||
8040 | text { | ||
8041 | font: "Sans"; | ||
8042 | size: 10; | ||
8043 | min: 0 1; | ||
8044 | align: 0.0 0.5; | ||
8045 | } | ||
8046 | } | ||
8047 | description { state: "selected" 0.0; | ||
8048 | inherit: "default" 0.0; | ||
8049 | color: 224 224 224 255; | ||
8050 | color3: 0 0 0 64; | ||
8051 | } | ||
8052 | } | ||
8053 | part { name: "elm.text.artist"; | ||
8054 | clip_to: "disclip"; | ||
8055 | type: TEXT; | ||
8056 | mouse_events: 0; | ||
8057 | scale: 1; | ||
8058 | description { | ||
8059 | state: "default" 0.0; | ||
8060 | rel1 { | ||
8061 | to_x: "elm.swallow.preview"; | ||
8062 | relative: 1.0 0.5; | ||
8063 | offset: 4 4; | ||
8064 | } | ||
8065 | rel2 { | ||
8066 | relative: 1.0 1.0; | ||
8067 | offset: -1 -5; | ||
8068 | } | ||
8069 | color: 0 0 0 128; | ||
8070 | color3: 0 0 0 0; | ||
8071 | text { | ||
8072 | font: "Sans"; | ||
8073 | size: 8; | ||
8074 | min: 0 1; | ||
8075 | align: 0.0 0.5; | ||
8076 | } | ||
8077 | } | ||
8078 | description { state: "selected" 0.0; | ||
8079 | inherit: "default" 0.0; | ||
8080 | color: 128 128 128 255; | ||
8081 | color3: 0 0 0 32; | ||
8082 | } | ||
8083 | } | ||
8084 | part { name: "fg1"; | ||
8085 | clip_to: "disclip"; | ||
8086 | mouse_events: 0; | ||
8087 | description { state: "default" 0.0; | ||
8088 | visible: 0; | ||
8089 | color: 255 255 255 0; | ||
8090 | rel1.to: "bg"; | ||
8091 | rel2.relative: 1.0 0.5; | ||
8092 | rel2.to: "bg"; | ||
8093 | image { | ||
8094 | normal: "bt_sm_hilight.png"; | ||
8095 | border: 6 6 6 0; | ||
8096 | } | ||
8097 | } | ||
8098 | description { state: "selected" 0.0; | ||
8099 | inherit: "default" 0.0; | ||
8100 | visible: 1; | ||
8101 | color: 255 255 255 255; | ||
8102 | } | ||
8103 | } | ||
8104 | part { name: "fg2"; | ||
8105 | clip_to: "disclip"; | ||
8106 | mouse_events: 0; | ||
8107 | description { state: "default" 0.0; | ||
8108 | visible: 0; | ||
8109 | color: 255 255 255 0; | ||
8110 | rel1.to: "bg"; | ||
8111 | rel2.to: "bg"; | ||
8112 | image { | ||
8113 | normal: "bt_sm_shine.png"; | ||
8114 | border: 6 6 6 0; | ||
8115 | } | ||
8116 | } | ||
8117 | description { state: "selected" 0.0; | ||
8118 | inherit: "default" 0.0; | ||
8119 | visible: 1; | ||
8120 | color: 255 255 255 255; | ||
8121 | } | ||
8122 | } | ||
8123 | part { name: "disclip"; | ||
8124 | type: RECT; | ||
8125 | description { state: "default" 0.0; | ||
8126 | rel1.to: "bg"; | ||
8127 | rel2.to: "bg"; | ||
8128 | } | ||
8129 | description { state: "disabled" 0.0; | ||
8130 | inherit: "default" 0.0; | ||
8131 | color: 255 255 255 64; | ||
8132 | } | ||
8133 | } | ||
8134 | } | ||
8135 | programs { | ||
8136 | // signal: elm,state,%s,active | ||
8137 | // a "check" item named %s went active | ||
8138 | // signal: elm,state,%s,passive | ||
8139 | // a "check" item named %s went passive | ||
8140 | // default is passive | ||
8141 | program { | ||
8142 | name: "go_active"; | ||
8143 | signal: "elm,state,selected"; | ||
8144 | source: "elm"; | ||
8145 | action: STATE_SET "selected" 0.0; | ||
8146 | target: "bg"; | ||
8147 | target: "fg1"; | ||
8148 | target: "fg2"; | ||
8149 | target: "elm.text.title"; | ||
8150 | target: "elm.text.artist"; | ||
8151 | } | ||
8152 | program { | ||
8153 | name: "go_passive"; | ||
8154 | signal: "elm,state,unselected"; | ||
8155 | source: "elm"; | ||
8156 | action: STATE_SET "default" 0.0; | ||
8157 | target: "bg"; | ||
8158 | target: "fg1"; | ||
8159 | target: "fg2"; | ||
8160 | target: "elm.text.title"; | ||
8161 | target: "elm.text.artist"; | ||
8162 | transition: LINEAR 0.1; | ||
8163 | } | ||
8164 | program { | ||
8165 | name: "go_disabled"; | ||
8166 | signal: "elm,state,disabled"; | ||
8167 | source: "elm"; | ||
8168 | action: STATE_SET "disabled" 0.0; | ||
8169 | target: "disclip"; | ||
8170 | } | ||
8171 | program { | ||
8172 | name: "go_enabled"; | ||
8173 | signal: "elm,state,enabled"; | ||
8174 | source: "elm"; | ||
8175 | action: STATE_SET "default" 0.0; | ||
8176 | target: "disclip"; | ||
8177 | } | ||
8178 | } | ||
8179 | } | ||
8180 | group { name: "elm/genlist/item_compress_odd/media-preview/default"; | ||
8181 | data.item: "stacking" "below"; | ||
8182 | data.item: "selectraise" "on"; | ||
8183 | data.item: "texts" "elm.text.title elm.text.artist"; | ||
8184 | data.item: "contents" "elm.swallow.preview"; | ||
8185 | data.item: "treesize" "20"; | ||
8186 | images { | ||
8187 | image: "bt_sm_base1.png" COMP; | ||
8188 | image: "bt_sm_shine.png" COMP; | ||
8189 | image: "bt_sm_hilight.png" COMP; | ||
8190 | image: "ilist_2.png" COMP; | ||
8191 | } | ||
8192 | parts { | ||
8193 | part { name: "event"; | ||
8194 | type: RECT; | ||
8195 | repeat_events: 1; | ||
8196 | description { | ||
8197 | state: "default" 0.0; | ||
8198 | color: 0 0 0 0; | ||
8199 | } | ||
8200 | } | ||
8201 | part { | ||
8202 | name: "base"; | ||
8203 | mouse_events: 0; | ||
8204 | description { | ||
8205 | state: "default" 0.0; | ||
8206 | image { | ||
8207 | normal: "ilist_2.png"; | ||
8208 | border: 2 2 2 2; | ||
8209 | } | ||
8210 | fill.smooth: 0; | ||
8211 | } | ||
8212 | } | ||
8213 | part { name: "bg"; | ||
8214 | clip_to: "disclip"; | ||
8215 | mouse_events: 0; | ||
8216 | description { state: "default" 0.0; | ||
8217 | visible: 0; | ||
8218 | color: 255 255 255 0; | ||
8219 | rel1 { | ||
8220 | relative: 0.0 0.0; | ||
8221 | offset: -5 -5; | ||
8222 | } | ||
8223 | rel2 { | ||
8224 | relative: 1.0 1.0; | ||
8225 | offset: 4 4; | ||
8226 | } | ||
8227 | image { | ||
8228 | normal: "bt_sm_base1.png"; | ||
8229 | border: 6 6 6 6; | ||
8230 | } | ||
8231 | image.middle: SOLID; | ||
8232 | } | ||
8233 | description { state: "selected" 0.0; | ||
8234 | inherit: "default" 0.0; | ||
8235 | visible: 1; | ||
8236 | color: 255 255 255 255; | ||
8237 | rel1 { | ||
8238 | relative: 0.0 0.0; | ||
8239 | offset: -2 -2; | ||
8240 | } | ||
8241 | rel2 { | ||
8242 | relative: 1.0 1.0; | ||
8243 | offset: 1 1; | ||
8244 | } | ||
8245 | } | ||
8246 | } | ||
8247 | part { name: "elm.swallow.pad"; | ||
8248 | type: SWALLOW; | ||
8249 | description { state: "default" 0.0; | ||
8250 | fixed: 1 0; | ||
8251 | align: 0.0 0.5; | ||
8252 | rel1 { | ||
8253 | relative: 0.0 0.0; | ||
8254 | offset: 4 4; | ||
8255 | } | ||
8256 | rel2 { | ||
8257 | relative: 0.0 1.0; | ||
8258 | offset: 4 -5; | ||
8259 | } | ||
8260 | } | ||
8261 | } | ||
8262 | part { name: "elm.swallow.preview"; | ||
8263 | clip_to: "disclip"; | ||
8264 | type: SWALLOW; | ||
8265 | description { state: "default" 0.0; | ||
8266 | fixed: 1 0; | ||
8267 | align: 0.0 0.5; | ||
8268 | min: 68 68; | ||
8269 | max: 68 68; | ||
8270 | rel1 { | ||
8271 | to_x: "elm.swallow.pad"; | ||
8272 | relative: 1.0 0.0; | ||
8273 | offset: -1 4; | ||
8274 | } | ||
8275 | rel2 { | ||
8276 | to_x: "elm.swallow.pad"; | ||
8277 | relative: 1.0 1.0; | ||
8278 | offset: -1 -5; | ||
8279 | } | ||
8280 | } | ||
8281 | } | ||
8282 | part { name: "elm.text.title"; | ||
8283 | clip_to: "disclip"; | ||
8284 | type: TEXT; | ||
8285 | effect: SOFT_SHADOW; | ||
8286 | mouse_events: 0; | ||
8287 | scale: 1; | ||
8288 | description { | ||
8289 | state: "default" 0.0; | ||
8290 | rel1 { | ||
8291 | to_x: "elm.swallow.preview"; | ||
8292 | relative: 1.0 0.0; | ||
8293 | offset: 4 4; | ||
8294 | } | ||
8295 | rel2 { | ||
8296 | relative: 1.0 0.5; | ||
8297 | offset: -1 -5; | ||
8298 | } | ||
8299 | color: 0 0 0 255; | ||
8300 | color3: 0 0 0 0; | ||
8301 | text { | ||
8302 | font: "Sans"; | ||
8303 | size: 10; | ||
8304 | min: 0 1; | ||
8305 | align: 0.0 0.5; | ||
8306 | } | ||
8307 | } | ||
8308 | description { state: "selected" 0.0; | ||
8309 | inherit: "default" 0.0; | ||
8310 | color: 224 224 224 255; | ||
8311 | color3: 0 0 0 64; | ||
8312 | } | ||
8313 | } | ||
8314 | part { name: "elm.text.artist"; | ||
8315 | clip_to: "disclip"; | ||
8316 | type: TEXT; | ||
8317 | mouse_events: 0; | ||
8318 | scale: 1; | ||
8319 | description { | ||
8320 | state: "default" 0.0; | ||
8321 | rel1 { | ||
8322 | to_x: "elm.swallow.preview"; | ||
8323 | relative: 1.0 0.5; | ||
8324 | offset: 4 4; | ||
8325 | } | ||
8326 | rel2 { | ||
8327 | relative: 1.0 1.0; | ||
8328 | offset: -1 -5; | ||
8329 | } | ||
8330 | color: 0 0 0 128; | ||
8331 | color3: 0 0 0 0; | ||
8332 | text { | ||
8333 | font: "Sans"; | ||
8334 | size: 8; | ||
8335 | min: 0 1; | ||
8336 | align: 0.0 0.5; | ||
8337 | } | ||
8338 | } | ||
8339 | description { state: "selected" 0.0; | ||
8340 | inherit: "default" 0.0; | ||
8341 | color: 128 128 128 255; | ||
8342 | color3: 0 0 0 32; | ||
8343 | } | ||
8344 | } | ||
8345 | part { name: "fg1"; | ||
8346 | clip_to: "disclip"; | ||
8347 | mouse_events: 0; | ||
8348 | description { state: "default" 0.0; | ||
8349 | visible: 0; | ||
8350 | color: 255 255 255 0; | ||
8351 | rel1.to: "bg"; | ||
8352 | rel2.relative: 1.0 0.5; | ||
8353 | rel2.to: "bg"; | ||
8354 | image { | ||
8355 | normal: "bt_sm_hilight.png"; | ||
8356 | border: 6 6 6 0; | ||
8357 | } | ||
8358 | } | ||
8359 | description { state: "selected" 0.0; | ||
8360 | inherit: "default" 0.0; | ||
8361 | visible: 1; | ||
8362 | color: 255 255 255 255; | ||
8363 | } | ||
8364 | } | ||
8365 | part { name: "fg2"; | ||
8366 | clip_to: "disclip"; | ||
8367 | mouse_events: 0; | ||
8368 | description { state: "default" 0.0; | ||
8369 | visible: 0; | ||
8370 | color: 255 255 255 0; | ||
8371 | rel1.to: "bg"; | ||
8372 | rel2.to: "bg"; | ||
8373 | image { | ||
8374 | normal: "bt_sm_shine.png"; | ||
8375 | border: 6 6 6 0; | ||
8376 | } | ||
8377 | } | ||
8378 | description { state: "selected" 0.0; | ||
8379 | inherit: "default" 0.0; | ||
8380 | visible: 1; | ||
8381 | color: 255 255 255 255; | ||
8382 | } | ||
8383 | } | ||
8384 | part { name: "disclip"; | ||
8385 | type: RECT; | ||
8386 | description { state: "default" 0.0; | ||
8387 | rel1.to: "bg"; | ||
8388 | rel2.to: "bg"; | ||
8389 | } | ||
8390 | description { state: "disabled" 0.0; | ||
8391 | inherit: "default" 0.0; | ||
8392 | color: 255 255 255 64; | ||
8393 | } | ||
8394 | } | ||
8395 | } | ||
8396 | programs { | ||
8397 | // signal: elm,state,%s,active | ||
8398 | // a "check" item named %s went active | ||
8399 | // signal: elm,state,%s,passive | ||
8400 | // a "check" item named %s went passive | ||
8401 | // default is passive | ||
8402 | program { | ||
8403 | name: "go_active"; | ||
8404 | signal: "elm,state,selected"; | ||
8405 | source: "elm"; | ||
8406 | action: STATE_SET "selected" 0.0; | ||
8407 | target: "bg"; | ||
8408 | target: "fg1"; | ||
8409 | target: "fg2"; | ||
8410 | target: "elm.text.title"; | ||
8411 | target: "elm.text.artist"; | ||
8412 | } | ||
8413 | program { | ||
8414 | name: "go_passive"; | ||
8415 | signal: "elm,state,unselected"; | ||
8416 | source: "elm"; | ||
8417 | action: STATE_SET "default" 0.0; | ||
8418 | target: "bg"; | ||
8419 | target: "fg1"; | ||
8420 | target: "fg2"; | ||
8421 | target: "elm.text.title"; | ||
8422 | target: "elm.text.artist"; | ||
8423 | transition: LINEAR 0.1; | ||
8424 | } | ||
8425 | program { | ||
8426 | name: "go_disabled"; | ||
8427 | signal: "elm,state,disabled"; | ||
8428 | source: "elm"; | ||
8429 | action: STATE_SET "disabled" 0.0; | ||
8430 | target: "disclip"; | ||
8431 | } | ||
8432 | program { | ||
8433 | name: "go_enabled"; | ||
8434 | signal: "elm,state,enabled"; | ||
8435 | source: "elm"; | ||
8436 | action: STATE_SET "default" 0.0; | ||
8437 | target: "disclip"; | ||
8438 | } | ||
8439 | } | ||
8440 | } | ||
8441 | |||
8442 | group { name: "elm/genlist/item/mode/default"; | ||
8443 | data.item: "selectraise" "on"; | ||
8444 | data.item: "texts" "elm.text.mode"; | ||
8445 | data.item: "contents" "elm.swallow.mode"; | ||
8446 | data.item: "mode_part" "elm.swallow.origin"; | ||
8447 | data.item: "treesize" "20"; | ||
8448 | images { | ||
8449 | image: "bt_sm_base1.png" COMP; | ||
8450 | image: "bt_sm_shine.png" COMP; | ||
8451 | image: "bt_sm_hilight.png" COMP; | ||
8452 | image: "ilist_1.png" COMP; | ||
8453 | image: "ilist_2.png" COMP; | ||
8454 | image: "ilist_item_shadow.png" COMP; | ||
8455 | } | ||
8456 | |||
8457 | parts { | ||
8458 | part { | ||
8459 | name: "event"; | ||
8460 | type: RECT; | ||
8461 | repeat_events: 1; | ||
8462 | description { | ||
8463 | state: "default" 0.0; | ||
8464 | color: 0 0 0 0; | ||
8465 | } | ||
8466 | } | ||
8467 | part { | ||
8468 | name: "base_sh"; | ||
8469 | mouse_events: 0; | ||
8470 | description { | ||
8471 | state: "default" 0.0; | ||
8472 | align: 0.0 0.0; | ||
8473 | min: 0 10; | ||
8474 | fixed: 1 1; | ||
8475 | rel1 { | ||
8476 | to: "base"; | ||
8477 | relative: 0.0 1.0; | ||
8478 | offset: 0 0; | ||
8479 | } | ||
8480 | rel2 { | ||
8481 | to: "base"; | ||
8482 | relative: 1.0 1.0; | ||
8483 | offset: -1 0; | ||
8484 | } | ||
8485 | image { | ||
8486 | normal: "ilist_item_shadow.png"; | ||
8487 | } | ||
8488 | fill.smooth: 0; | ||
8489 | } | ||
8490 | description { | ||
8491 | state: "default" 1.0; | ||
8492 | inherit: "default" 0.0; | ||
8493 | visible: 0; | ||
8494 | } | ||
8495 | } | ||
8496 | part { | ||
8497 | name: "base"; | ||
8498 | mouse_events: 0; | ||
8499 | description { | ||
8500 | state: "default" 0.0; | ||
8501 | image { | ||
8502 | normal: "ilist_1.png"; | ||
8503 | border: 2 2 2 2; | ||
8504 | } | ||
8505 | fill.smooth: 0; | ||
8506 | } | ||
8507 | description { | ||
8508 | state: "default" 1.0; | ||
8509 | inherit: "default" 0.0; | ||
8510 | image.normal: "ilist_2.png"; | ||
8511 | } | ||
8512 | } | ||
8513 | part { name: "bg"; | ||
8514 | clip_to: "disclip"; | ||
8515 | mouse_events: 0; | ||
8516 | description { state: "default" 0.0; | ||
8517 | visible: 0; | ||
8518 | color: 255 255 255 0; | ||
8519 | rel1 { | ||
8520 | relative: 0.0 0.0; | ||
8521 | offset: -5 -5; | ||
8522 | } | ||
8523 | rel2 { | ||
8524 | relative: 1.0 1.0; | ||
8525 | offset: 4 4; | ||
8526 | } | ||
8527 | image { | ||
8528 | normal: "bt_sm_base1.png"; | ||
8529 | border: 6 6 6 6; | ||
8530 | } | ||
8531 | image.middle: SOLID; | ||
8532 | } | ||
8533 | description { state: "default" 0.1; | ||
8534 | inherit: "default" 0.0; | ||
8535 | } | ||
8536 | description { state: "selected" 0.0; | ||
8537 | inherit: "default" 0.0; | ||
8538 | visible: 1; | ||
8539 | color: 255 255 255 255; | ||
8540 | rel1 { | ||
8541 | relative: 0.0 0.0; | ||
8542 | offset: -2 -2; | ||
8543 | } | ||
8544 | rel2 { | ||
8545 | relative: 1.0 1.0; | ||
8546 | offset: 1 1; | ||
8547 | } | ||
8548 | } | ||
8549 | description { | ||
8550 | state: "selected" 1.0; | ||
8551 | inherit: "selected" 0.0; | ||
8552 | } | ||
8553 | } | ||
8554 | part { name: "elm.text.mode"; | ||
8555 | clip_to: "disclip"; | ||
8556 | type: TEXT; | ||
8557 | scale: 1; | ||
8558 | description { state: "default" 0.0; | ||
8559 | rel2.relative: 0.5 1.0; | ||
8560 | color: 0 0 0 255; | ||
8561 | text { | ||
8562 | font: "Sans"; | ||
8563 | size: 10; | ||
8564 | min: 1 1; | ||
8565 | align: -1.0 0.5; | ||
8566 | text_class: "list_item"; | ||
8567 | } | ||
8568 | } | ||
8569 | } | ||
8570 | part { name: "elm.swallow.mode"; | ||
8571 | clip_to: "disclip"; | ||
8572 | type: SWALLOW; | ||
8573 | description { state: "default" 0.0; | ||
8574 | rel1.relative: 0.5 0.0; | ||
8575 | } | ||
8576 | } | ||
8577 | part { name: "fg1"; | ||
8578 | clip_to: "disclip"; | ||
8579 | mouse_events: 0; | ||
8580 | description { state: "default" 0.0; | ||
8581 | visible: 0; | ||
8582 | color: 255 255 255 0; | ||
8583 | rel1.to: "bg"; | ||
8584 | rel2.relative: 1.0 0.5; | ||
8585 | rel2.to: "bg"; | ||
8586 | image { | ||
8587 | normal: "bt_sm_hilight.png"; | ||
8588 | border: 6 6 6 0; | ||
8589 | } | ||
8590 | } | ||
8591 | description { state: "selected" 0.0; | ||
8592 | inherit: "default" 0.0; | ||
8593 | visible: 1; | ||
8594 | color: 255 255 255 255; | ||
8595 | } | ||
8596 | description { | ||
8597 | state: "selected" 1.0; | ||
8598 | inherit: "default" 0.0; | ||
8599 | visible: 1; | ||
8600 | color: 255 255 255 255; | ||
8601 | } | ||
8602 | } | ||
8603 | part { name: "fg2"; | ||
8604 | clip_to: "disclip"; | ||
8605 | mouse_events: 0; | ||
8606 | description { state: "default" 0.0; | ||
8607 | visible: 0; | ||
8608 | color: 255 255 255 0; | ||
8609 | rel1.to: "bg"; | ||
8610 | rel2.to: "bg"; | ||
8611 | image { | ||
8612 | normal: "bt_sm_shine.png"; | ||
8613 | border: 6 6 6 0; | ||
8614 | } | ||
8615 | } | ||
8616 | description { state: "selected" 0.0; | ||
8617 | inherit: "default" 0.0; | ||
8618 | visible: 1; | ||
8619 | color: 255 255 255 255; | ||
8620 | } | ||
8621 | description { | ||
8622 | state: "selected" 1.0; | ||
8623 | inherit: "default" 0.0; | ||
8624 | visible: 1; | ||
8625 | color: 255 255 255 255; | ||
8626 | } | ||
8627 | } | ||
8628 | // Transparent part between base parts and slidable parts | ||
8629 | part { name: "event_block_layer"; | ||
8630 | type: RECT; | ||
8631 | clip_to: "disclip"; | ||
8632 | mouse_events: 1; | ||
8633 | description { state: "default" 0.0; | ||
8634 | rel1.to: "base"; | ||
8635 | rel2.to: "base"; | ||
8636 | color: 0 0 0 0; | ||
8637 | } | ||
8638 | description { state: "repeat_events" 0.0; | ||
8639 | inherit: "default" 0.0; | ||
8640 | visible: 0; | ||
8641 | } | ||
8642 | } | ||
8643 | part { name: "pers"; | ||
8644 | clip_to: "disclip"; | ||
8645 | type: RECT; | ||
8646 | description { state: "default" 0.0; | ||
8647 | rel1.relative: 0.0 1.0; | ||
8648 | } | ||
8649 | } | ||
8650 | part { name: "elm.swallow.origin"; | ||
8651 | clip_to: "disclip"; | ||
8652 | type: SWALLOW; | ||
8653 | description { state: "default" 0.0; | ||
8654 | fixed: 1 0; | ||
8655 | align: 0.0 0.5; | ||
8656 | } | ||
8657 | description { state: "slide" 0.0; | ||
8658 | inherit: "default" 0.0; | ||
8659 | rel1.relative: 1 0; | ||
8660 | rel2.relative: 2 1; | ||
8661 | } | ||
8662 | description { state: "rotate" 0.0; | ||
8663 | inherit: "default" 0.0; | ||
8664 | map { | ||
8665 | perspective: "pers"; | ||
8666 | on: 1; | ||
8667 | smooth: 1; | ||
8668 | perspective_on: 1; | ||
8669 | backface_cull: 1; | ||
8670 | rotation { | ||
8671 | center: "pers"; | ||
8672 | x: 0.0; | ||
8673 | y: 0.0; | ||
8674 | z: 0.0; | ||
8675 | } | ||
8676 | } | ||
8677 | } | ||
8678 | description { state: "rotate" 1.0; | ||
8679 | inherit: "default" 0.0; | ||
8680 | map { | ||
8681 | perspective: "pers"; | ||
8682 | on: 1; | ||
8683 | smooth: 1; | ||
8684 | perspective_on: 1; | ||
8685 | backface_cull: 1; | ||
8686 | rotation { | ||
8687 | center: "pers"; | ||
8688 | x: 90.0; | ||
8689 | y: 0.0; | ||
8690 | z: 0.0; | ||
8691 | } | ||
8692 | } | ||
8693 | } | ||
8694 | } | ||
8695 | part { name: "disclip"; | ||
8696 | type: RECT; | ||
8697 | description { state: "default" 0.0; | ||
8698 | rel1.to: "bg"; | ||
8699 | rel2.to: "bg"; | ||
8700 | } | ||
8701 | description { state: "disabled" 0.0; | ||
8702 | inherit: "default" 0.0; | ||
8703 | color: 255 255 255 64; | ||
8704 | } | ||
8705 | } | ||
8706 | } | ||
8707 | programs { | ||
8708 | program { | ||
8709 | name: "odd"; | ||
8710 | signal: "elm,state,odd"; | ||
8711 | source: "elm"; | ||
8712 | action: STATE_SET "default" 1.0; | ||
8713 | target: "base_sh"; | ||
8714 | target: "base"; | ||
8715 | } | ||
8716 | program { | ||
8717 | name: "even"; | ||
8718 | signal: "elm,state,even"; | ||
8719 | source: "elm"; | ||
8720 | action: STATE_SET "default" 0.0; | ||
8721 | target: "base_sh"; | ||
8722 | target: "base"; | ||
8723 | } | ||
8724 | program { | ||
8725 | name: "go_active"; | ||
8726 | signal: "elm,state,selected"; | ||
8727 | source: "elm"; | ||
8728 | script { | ||
8729 | new st[31]; | ||
8730 | new Float:vl; | ||
8731 | get_state(PART:"base", st, 30, vl); | ||
8732 | set_state(PART:"bg", "selected", vl); | ||
8733 | set_state(PART:"fg1", "selected", vl); | ||
8734 | set_state(PART:"fg2", "selected", vl); | ||
8735 | } | ||
8736 | } | ||
8737 | program { | ||
8738 | name: "go_passive"; | ||
8739 | signal: "elm,state,unselected"; | ||
8740 | source: "elm"; | ||
8741 | script { | ||
8742 | new st[31]; | ||
8743 | new Float:vl; | ||
8744 | get_state(PART:"base", st, 30, vl); | ||
8745 | set_state(PART:"bg", "default", vl); | ||
8746 | set_state(PART:"fg1", "default", vl); | ||
8747 | set_state(PART:"fg2", "default", vl); | ||
8748 | } | ||
8749 | } | ||
8750 | program { | ||
8751 | name: "go_disabled"; | ||
8752 | signal: "elm,state,disabled"; | ||
8753 | source: "elm"; | ||
8754 | action: STATE_SET "disabled" 0.0; | ||
8755 | target: "disclip"; | ||
8756 | } | ||
8757 | program { | ||
8758 | name: "go_enabled"; | ||
8759 | signal: "elm,state,enabled"; | ||
8760 | source: "elm"; | ||
8761 | action: STATE_SET "default" 0.0; | ||
8762 | target: "disclip"; | ||
8763 | } | ||
8764 | program { | ||
8765 | name: "slide_right"; | ||
8766 | signal: "elm,state,slide,active"; | ||
8767 | source: "elm"; | ||
8768 | action: STATE_SET "slide" 0.0; | ||
8769 | target: "elm.swallow.origin"; | ||
8770 | transition: ACCELERATE 0.5 CURRENT; | ||
8771 | after: "unblock_event"; | ||
8772 | } | ||
8773 | program { | ||
8774 | name: "unblock_event"; | ||
8775 | action: STATE_SET "repeat_events" 0.0; | ||
8776 | target: "event_block_layer"; | ||
8777 | } | ||
8778 | program { | ||
8779 | name: "slide_left"; | ||
8780 | signal: "elm,state,slide,passive"; | ||
8781 | source: "elm"; | ||
8782 | action: STATE_SET "default" 0.0; | ||
8783 | target: "event_block_layer"; | ||
8784 | after: "slide_left2"; | ||
8785 | } | ||
8786 | program { | ||
8787 | name: "slide_left2"; | ||
8788 | action: STATE_SET "default" 0.0; | ||
8789 | target: "elm.swallow.origin"; | ||
8790 | transition: DECELERATE 0.5 CURRENT; | ||
8791 | after: "slide_left_finished"; | ||
8792 | } | ||
8793 | program { | ||
8794 | name: "slide_left_finished"; | ||
8795 | action: SIGNAL_EMIT "elm,state,slide,passive,finished" "elm"; | ||
8796 | } | ||
8797 | program { | ||
8798 | name: "rotate_on"; | ||
8799 | signal: "elm,state,rotate,active"; | ||
8800 | source: "elm"; | ||
8801 | action: STATE_SET "rotate" 0.0; | ||
8802 | target: "elm.swallow.origin"; | ||
8803 | after: "rotate_on2"; | ||
8804 | } | ||
8805 | program { | ||
8806 | name: "rotate_on2"; | ||
8807 | action: STATE_SET "rotate" 1.0; | ||
8808 | target: "elm.swallow.origin"; | ||
8809 | transition: LINEAR 0.5; | ||
8810 | after: "unblock_event"; | ||
8811 | } | ||
8812 | program { | ||
8813 | name: "rotate_off"; | ||
8814 | signal: "elm,state,rotate,passive"; | ||
8815 | source: "elm"; | ||
8816 | action: STATE_SET "default" 0.0; | ||
8817 | target: "event_block_layer"; | ||
8818 | after: "rotate_off2"; | ||
8819 | } | ||
8820 | program { | ||
8821 | name: "rotate_off2"; | ||
8822 | action: STATE_SET "rotate" 0.0; | ||
8823 | transition: LINEAR 0.5; | ||
8824 | target: "elm.swallow.origin"; | ||
8825 | after: "rotate_off3"; | ||
8826 | } | ||
8827 | program { | ||
8828 | name: "rotate_off3"; | ||
8829 | action: STATE_SET "default" 0.0; | ||
8830 | target: "elm.swallow.origin"; | ||
8831 | after: "rotate_off_finished"; | ||
8832 | } | ||
8833 | program { | ||
8834 | name: "rotate_off_finished"; | ||
8835 | action: SIGNAL_EMIT "elm,state,rotate,passive,finished" "elm"; | ||
8836 | } | ||
8837 | } | ||
8838 | } | ||
8839 | |||
8840 | group { name: "elm/genlist/item_odd/mode/default"; | ||
8841 | data.item: "stacking" "below"; | ||
8842 | data.item: "selectraise" "on"; | ||
8843 | data.item: "texts" "elm.text.mode"; | ||
8844 | data.item: "contents" "elm.swallow.mode"; | ||
8845 | data.item: "mode_part" "elm.swallow.origin"; | ||
8846 | data.item: "treesize" "20"; | ||
8847 | images { | ||
8848 | image: "bt_sm_base1.png" COMP; | ||
8849 | image: "bt_sm_shine.png" COMP; | ||
8850 | image: "bt_sm_hilight.png" COMP; | ||
8851 | image: "ilist_2.png" COMP; | ||
8852 | } | ||
8853 | |||
8854 | parts { | ||
8855 | part { | ||
8856 | name: "event"; | ||
8857 | type: RECT; | ||
8858 | repeat_events: 1; | ||
8859 | description { | ||
8860 | state: "default" 0.0; | ||
8861 | color: 0 0 0 0; | ||
8862 | } | ||
8863 | } | ||
8864 | part { | ||
8865 | name: "base"; | ||
8866 | mouse_events: 0; | ||
8867 | description { | ||
8868 | state: "default" 0.0; | ||
8869 | image { | ||
8870 | normal: "ilist_2.png"; | ||
8871 | border: 2 2 2 2; | ||
8872 | } | ||
8873 | fill.smooth: 0; | ||
8874 | } | ||
8875 | } | ||
8876 | part { name: "bg"; | ||
8877 | clip_to: "disclip"; | ||
8878 | mouse_events: 0; | ||
8879 | description { state: "default" 0.0; | ||
8880 | visible: 0; | ||
8881 | color: 255 255 255 0; | ||
8882 | rel1 { | ||
8883 | relative: 0.0 0.0; | ||
8884 | offset: -5 -5; | ||
8885 | } | ||
8886 | rel2 { | ||
8887 | relative: 1.0 1.0; | ||
8888 | offset: 4 4; | ||
8889 | } | ||
8890 | image { | ||
8891 | normal: "bt_sm_base1.png"; | ||
8892 | border: 6 6 6 6; | ||
8893 | } | ||
8894 | image.middle: SOLID; | ||
8895 | } | ||
8896 | description { state: "selected" 0.0; | ||
8897 | inherit: "default" 0.0; | ||
8898 | visible: 1; | ||
8899 | color: 255 255 255 255; | ||
8900 | rel1 { | ||
8901 | relative: 0.0 0.0; | ||
8902 | offset: -2 -2; | ||
8903 | } | ||
8904 | rel2 { | ||
8905 | relative: 1.0 1.0; | ||
8906 | offset: 1 1; | ||
8907 | } | ||
8908 | } | ||
8909 | } | ||
8910 | part { name: "elm.text.mode"; | ||
8911 | clip_to: "disclip"; | ||
8912 | type: TEXT; | ||
8913 | scale: 1; | ||
8914 | description { state: "default" 0.0; | ||
8915 | rel2.relative: 0.5 1.0; | ||
8916 | color: 0 0 0 255; | ||
8917 | text { | ||
8918 | font: "Sans"; | ||
8919 | size: 10; | ||
8920 | min: 1 1; | ||
8921 | align: 0.5 0.5; | ||
8922 | text_class: "list_item"; | ||
8923 | } | ||
8924 | } | ||
8925 | } | ||
8926 | part { name: "elm.swallow.mode"; | ||
8927 | clip_to: "disclip"; | ||
8928 | type: SWALLOW; | ||
8929 | description { state: "default" 0.0; | ||
8930 | rel1.relative: 0.5 0.0; | ||
8931 | } | ||
8932 | } | ||
8933 | part { name: "fg1"; | ||
8934 | clip_to: "disclip"; | ||
8935 | mouse_events: 0; | ||
8936 | description { state: "default" 0.0; | ||
8937 | visible: 0; | ||
8938 | color: 255 255 255 0; | ||
8939 | rel1.to: "bg"; | ||
8940 | rel2.relative: 1.0 0.5; | ||
8941 | rel2.to: "bg"; | ||
8942 | image { | ||
8943 | normal: "bt_sm_hilight.png"; | ||
8944 | border: 6 6 6 0; | ||
8945 | } | ||
8946 | } | ||
8947 | description { state: "selected" 0.0; | ||
8948 | inherit: "default" 0.0; | ||
8949 | visible: 1; | ||
8950 | color: 255 255 255 255; | ||
8951 | } | ||
8952 | } | ||
8953 | part { name: "fg2"; | ||
8954 | clip_to: "disclip"; | ||
8955 | mouse_events: 0; | ||
8956 | description { state: "default" 0.0; | ||
8957 | visible: 0; | ||
8958 | color: 255 255 255 0; | ||
8959 | rel1.to: "bg"; | ||
8960 | rel2.to: "bg"; | ||
8961 | image { | ||
8962 | normal: "bt_sm_shine.png"; | ||
8963 | border: 6 6 6 0; | ||
8964 | } | ||
8965 | } | ||
8966 | description { state: "selected" 0.0; | ||
8967 | inherit: "default" 0.0; | ||
8968 | visible: 1; | ||
8969 | color: 255 255 255 255; | ||
8970 | } | ||
8971 | } | ||
8972 | // Transparent part between base parts and slidable parts | ||
8973 | part { name: "event_block_layer"; | ||
8974 | type: RECT; | ||
8975 | clip_to: "disclip"; | ||
8976 | mouse_events: 1; | ||
8977 | description { state: "default" 0.0; | ||
8978 | rel1.to: "base"; | ||
8979 | rel2.to: "base"; | ||
8980 | color: 0 0 0 0; | ||
8981 | } | ||
8982 | description { state: "repeat_events" 0.0; | ||
8983 | inherit: "default" 0.0; | ||
8984 | visible: 0; | ||
8985 | } | ||
8986 | } | ||
8987 | part { name: "pers"; | ||
8988 | clip_to: "disclip"; | ||
8989 | type: RECT; | ||
8990 | description { state: "default" 0.0; | ||
8991 | rel1.relative: 0.0 1.0; | ||
8992 | } | ||
8993 | } | ||
8994 | part { name: "elm.swallow.origin"; | ||
8995 | clip_to: "disclip"; | ||
8996 | type: SWALLOW; | ||
8997 | description { state: "default" 0.0; | ||
8998 | fixed: 1 0; | ||
8999 | align: 0.0 0.5; | ||
9000 | } | ||
9001 | description { state: "slide" 0.0; | ||
9002 | inherit: "default" 0.0; | ||
9003 | rel1.relative: 1 0; | ||
9004 | rel2.relative: 2 1; | ||
9005 | } | ||
9006 | description { state: "rotate" 0.0; | ||
9007 | inherit: "default" 0.0; | ||
9008 | map { | ||
9009 | perspective: "pers"; | ||
9010 | on: 1; | ||
9011 | smooth: 1; | ||
9012 | perspective_on: 1; | ||
9013 | backface_cull: 1; | ||
9014 | rotation { | ||
9015 | center: "pers"; | ||
9016 | x: 0.0; | ||
9017 | y: 0.0; | ||
9018 | z: 0.0; | ||
9019 | } | ||
9020 | } | ||
9021 | } | ||
9022 | description { state: "rotate" 1.0; | ||
9023 | inherit: "default" 0.0; | ||
9024 | map { | ||
9025 | perspective: "pers"; | ||
9026 | on: 1; | ||
9027 | smooth: 1; | ||
9028 | perspective_on: 1; | ||
9029 | backface_cull: 1; | ||
9030 | rotation { | ||
9031 | center: "pers"; | ||
9032 | x: 90.0; | ||
9033 | y: 0.0; | ||
9034 | z: 0.0; | ||
9035 | } | ||
9036 | } | ||
9037 | } | ||
9038 | } | ||
9039 | part { name: "disclip"; | ||
9040 | type: RECT; | ||
9041 | description { state: "default" 0.0; | ||
9042 | rel1.to: "bg"; | ||
9043 | rel2.to: "bg"; | ||
9044 | } | ||
9045 | description { state: "disabled" 0.0; | ||
9046 | inherit: "default" 0.0; | ||
9047 | color: 255 255 255 64; | ||
9048 | } | ||
9049 | } | ||
9050 | } | ||
9051 | programs { | ||
9052 | program { | ||
9053 | name: "go_active"; | ||
9054 | signal: "elm,state,selected"; | ||
9055 | source: "elm"; | ||
9056 | action: STATE_SET "selected" 0.0; | ||
9057 | target: "bg"; | ||
9058 | target: "fg1"; | ||
9059 | target: "fg2"; | ||
9060 | } | ||
9061 | program { | ||
9062 | name: "go_passive"; | ||
9063 | signal: "elm,state,unselected"; | ||
9064 | source: "elm"; | ||
9065 | action: STATE_SET "default" 0.0; | ||
9066 | target: "bg"; | ||
9067 | target: "fg1"; | ||
9068 | target: "fg2"; | ||
9069 | transition: LINEAR 0.1; | ||
9070 | } | ||
9071 | program { | ||
9072 | name: "go_disabled"; | ||
9073 | signal: "elm,state,disabled"; | ||
9074 | source: "elm"; | ||
9075 | action: STATE_SET "disabled" 0.0; | ||
9076 | target: "disclip"; | ||
9077 | } | ||
9078 | program { | ||
9079 | name: "go_enabled"; | ||
9080 | signal: "elm,state,enabled"; | ||
9081 | source: "elm"; | ||
9082 | action: STATE_SET "default" 0.0; | ||
9083 | target: "disclip"; | ||
9084 | } | ||
9085 | program { | ||
9086 | name: "slide_right"; | ||
9087 | signal: "elm,state,slide,active"; | ||
9088 | source: "elm"; | ||
9089 | action: STATE_SET "slide" 0.0; | ||
9090 | target: "elm.swallow.origin"; | ||
9091 | transition: ACCELERATE 0.5; | ||
9092 | after: "unblock_event"; | ||
9093 | } | ||
9094 | program { | ||
9095 | name: "unblock_event"; | ||
9096 | action: STATE_SET "repeat_events" 0.0; | ||
9097 | target: "event_block_layer"; | ||
9098 | } | ||
9099 | program { | ||
9100 | name: "slide_left"; | ||
9101 | signal: "elm,state,slide,passive"; | ||
9102 | source: "elm"; | ||
9103 | action: STATE_SET "default" 0.0; | ||
9104 | target: "event_block_layer"; | ||
9105 | after: "slide_left2"; | ||
9106 | } | ||
9107 | program { | ||
9108 | name: "slide_left2"; | ||
9109 | action: STATE_SET "default" 0.0; | ||
9110 | target: "elm.swallow.origin"; | ||
9111 | transition: DECELERATE 0.5; | ||
9112 | after: "slide_left_finished"; | ||
9113 | } | ||
9114 | program { | ||
9115 | name: "slide_left_finished"; | ||
9116 | action: SIGNAL_EMIT "elm,state,slide,passive,finished" "elm"; | ||
9117 | } | ||
9118 | program { | ||
9119 | name: "rotate_on"; | ||
9120 | signal: "elm,state,rotate,active"; | ||
9121 | source: "elm"; | ||
9122 | action: STATE_SET "rotate" 0.0; | ||
9123 | target: "elm.swallow.origin"; | ||
9124 | after: "rotate_on2"; | ||
9125 | } | ||
9126 | program { | ||
9127 | name: "rotate_on2"; | ||
9128 | action: STATE_SET "rotate" 1.0; | ||
9129 | target: "elm.swallow.origin"; | ||
9130 | transition: LINEAR 0.5; | ||
9131 | after: "unblock_event"; | ||
9132 | } | ||
9133 | program { | ||
9134 | name: "rotate_off"; | ||
9135 | signal: "elm,state,rotate,passive"; | ||
9136 | source: "elm"; | ||
9137 | action: STATE_SET "default" 0.0; | ||
9138 | target: "event_block_layer"; | ||
9139 | after: "rotate_off2"; | ||
9140 | } | ||
9141 | program { | ||
9142 | name: "rotate_off2"; | ||
9143 | action: STATE_SET "rotate" 0.0; | ||
9144 | transition: LINEAR 0.5; | ||
9145 | target: "elm.swallow.origin"; | ||
9146 | after: "rotate_off3"; | ||
9147 | } | ||
9148 | program { | ||
9149 | name: "rotate_off3"; | ||
9150 | action: STATE_SET "default" 0.0; | ||
9151 | target: "elm.swallow.origin"; | ||
9152 | after: "rotate_off_finished"; | ||
9153 | } | ||
9154 | program { | ||
9155 | name: "rotate_off_finished"; | ||
9156 | action: SIGNAL_EMIT "elm,state,rotate,passive,finished" "elm"; | ||
9157 | } | ||
9158 | } | ||
9159 | } | ||
9160 | group { name: "elm/genlist/item/edit/default"; | ||
9161 | data.item: "contents" "elm.edit.icon.1 elm.edit.icon.2"; | ||
9162 | data.item: "stacking" "above"; | ||
9163 | data.item: "selectraise" "on"; | ||
9164 | |||
9165 | images { | ||
9166 | image: "bt_sm_base1.png" COMP; | ||
9167 | image: "bt_sm_shine.png" COMP; | ||
9168 | image: "bt_sm_hilight.png" COMP; | ||
9169 | image: "ilist_1.png" COMP; | ||
9170 | image: "ilist_2.png" COMP; | ||
9171 | image: "ilist_item_shadow.png" COMP; | ||
9172 | } | ||
9173 | parts { | ||
9174 | part { | ||
9175 | name: "event"; | ||
9176 | type: RECT; | ||
9177 | repeat_events: 1; | ||
9178 | description { | ||
9179 | state: "default" 0.0; | ||
9180 | color: 0 0 0 0; | ||
9181 | } | ||
9182 | } | ||
9183 | part { | ||
9184 | name: "base_sh"; | ||
9185 | mouse_events: 0; | ||
9186 | description { | ||
9187 | state: "default" 0.0; | ||
9188 | align: 0.0 0.0; | ||
9189 | min: 0 10; | ||
9190 | fixed: 1 1; | ||
9191 | rel1 { | ||
9192 | to: "base"; | ||
9193 | relative: 0.0 1.0; | ||
9194 | offset: 0 0; | ||
9195 | } | ||
9196 | rel2 { | ||
9197 | to: "base"; | ||
9198 | relative: 1.0 1.0; | ||
9199 | offset: -1 0; | ||
9200 | } | ||
9201 | image { | ||
9202 | normal: "ilist_item_shadow.png"; | ||
9203 | } | ||
9204 | fill.smooth: 0; | ||
9205 | } | ||
9206 | description { | ||
9207 | state: "default" 1.0; | ||
9208 | inherit: "default" 0.0; | ||
9209 | visible: 0; | ||
9210 | } | ||
9211 | } | ||
9212 | part { | ||
9213 | name: "base"; | ||
9214 | mouse_events: 0; | ||
9215 | description { | ||
9216 | state: "default" 0.0; | ||
9217 | rel1 { | ||
9218 | relative: 0.0 0.0; | ||
9219 | } | ||
9220 | rel2 { | ||
9221 | relative: 1.0 1.0; | ||
9222 | } | ||
9223 | image { | ||
9224 | normal: "ilist_1.png"; | ||
9225 | border: 2 2 2 2; | ||
9226 | } | ||
9227 | fill.smooth: 0; | ||
9228 | } | ||
9229 | description { | ||
9230 | state: "default" 1.0; | ||
9231 | inherit: "default" 0.0; | ||
9232 | image.normal: "ilist_2.png"; | ||
9233 | } | ||
9234 | } | ||
9235 | part { name: "bg"; | ||
9236 | clip_to: "disclip"; | ||
9237 | mouse_events: 0; | ||
9238 | description { state: "default" 0.0; | ||
9239 | visible: 0; | ||
9240 | color: 255 255 255 0; | ||
9241 | image { | ||
9242 | normal: "bt_sm_base1.png"; | ||
9243 | border: 6 6 6 6; | ||
9244 | } | ||
9245 | image.middle: SOLID; | ||
9246 | } | ||
9247 | description { state: "default" 0.1; | ||
9248 | inherit: "default" 0.0; | ||
9249 | } | ||
9250 | description { state: "selected" 0.0; | ||
9251 | inherit: "default" 0.0; | ||
9252 | visible: 1; | ||
9253 | color: 255 255 255 255; | ||
9254 | rel1 { | ||
9255 | relative: 0.0 0.0; | ||
9256 | offset: -2 -2; | ||
9257 | } | ||
9258 | rel2 { | ||
9259 | to_x: "elm.padding.right"; | ||
9260 | relative: 1.0 1.0; | ||
9261 | offset: 1 1; | ||
9262 | } | ||
9263 | } | ||
9264 | description { | ||
9265 | state: "selected" 1.0; | ||
9266 | inherit: "selected" 0.0; | ||
9267 | } | ||
9268 | } | ||
9269 | part { name: "elm.padding.left"; | ||
9270 | type: RECT; | ||
9271 | scale: 1; | ||
9272 | description { state: "default" 0.0; | ||
9273 | min: 10 0; | ||
9274 | fixed: 1 0; | ||
9275 | visible: 0; | ||
9276 | align: 0.0 0.0; | ||
9277 | rel2.relative: 0.0 1.0; | ||
9278 | } | ||
9279 | } | ||
9280 | part { name: "elm.padding.right"; | ||
9281 | type: RECT; | ||
9282 | scale: 1; | ||
9283 | description { state: "default" 0.0; | ||
9284 | min: 5 0; | ||
9285 | fixed: 1 0; | ||
9286 | visible: 0; | ||
9287 | align: 1.0 0.0; | ||
9288 | rel1.relative: 1.0 0.0; | ||
9289 | } | ||
9290 | } | ||
9291 | part { name: "fg1"; | ||
9292 | clip_to: "disclip"; | ||
9293 | mouse_events: 0; | ||
9294 | description { state: "default" 0.0; | ||
9295 | visible: 0; | ||
9296 | color: 255 255 255 0; | ||
9297 | rel1.to: "bg"; | ||
9298 | rel2.relative: 1.0 0.5; | ||
9299 | rel2.to: "bg"; | ||
9300 | image { | ||
9301 | normal: "bt_sm_hilight.png"; | ||
9302 | border: 6 6 6 0; | ||
9303 | } | ||
9304 | } | ||
9305 | description { state: "selected" 0.0; | ||
9306 | inherit: "default" 0.0; | ||
9307 | visible: 1; | ||
9308 | color: 255 255 255 255; | ||
9309 | } | ||
9310 | } | ||
9311 | part { name: "fg2"; | ||
9312 | clip_to: "disclip"; | ||
9313 | mouse_events: 0; | ||
9314 | description { state: "default" 0.0; | ||
9315 | visible: 0; | ||
9316 | color: 255 255 255 0; | ||
9317 | rel1.to: "bg"; | ||
9318 | rel2.to: "bg"; | ||
9319 | image { | ||
9320 | normal: "bt_sm_shine.png"; | ||
9321 | border: 6 6 6 0; | ||
9322 | } | ||
9323 | } | ||
9324 | description { state: "selected" 0.0; | ||
9325 | inherit: "default" 0.0; | ||
9326 | visible: 1; | ||
9327 | color: 255 255 255 255; | ||
9328 | } | ||
9329 | } | ||
9330 | part { name: "elm.edit.icon.1"; | ||
9331 | clip_to: "disclip"; | ||
9332 | type: SWALLOW; | ||
9333 | description { state: "default" 0.0; | ||
9334 | fixed: 1 0; | ||
9335 | align: 1.0 0.5; | ||
9336 | color: 255 255 255 255; | ||
9337 | rel1 { | ||
9338 | to_x: "elm.padding.left"; | ||
9339 | relative: 1.0 0.0; | ||
9340 | } | ||
9341 | rel2 { | ||
9342 | to_x: "elm.padding.left"; | ||
9343 | relative: 1.0 1.0; | ||
9344 | } | ||
9345 | } | ||
9346 | description { state: "enabled" 0.0; | ||
9347 | inherit: "default" 0.0; | ||
9348 | align: 0.0 0.5; | ||
9349 | } | ||
9350 | description { state: "disabled" 0.0; | ||
9351 | inherit: "default" 0.0; | ||
9352 | visible: 0; | ||
9353 | } | ||
9354 | } | ||
9355 | part { name: "elm.padding.icon1.right"; | ||
9356 | type: RECT; | ||
9357 | scale: 1; | ||
9358 | description { state: "default" 0.0; | ||
9359 | min: 5 0; | ||
9360 | fixed: 1 0; | ||
9361 | visible: 0; | ||
9362 | align: 0.0 0.0; | ||
9363 | rel1 { | ||
9364 | relative: 1.0 0.0; | ||
9365 | to_x: "elm.edit.icon.1"; | ||
9366 | } | ||
9367 | rel2.to_x: "elm.edit.icon.1"; | ||
9368 | } | ||
9369 | } | ||
9370 | part { name: "elm.swallow.decorate.content"; | ||
9371 | clip_to: "disclip"; | ||
9372 | type: SWALLOW; | ||
9373 | mouse_events: 1; | ||
9374 | scale: 1; | ||
9375 | description { state: "default" 0.0; | ||
9376 | rel1 { | ||
9377 | relative: 1.0 0.0; | ||
9378 | to_x: "elm.padding.icon1.right"; | ||
9379 | } | ||
9380 | rel2 { | ||
9381 | relative: 0.0 1.0; | ||
9382 | to_x: "elm.padding.icon2.left"; | ||
9383 | } | ||
9384 | } | ||
9385 | description { state: "flipped" 0.0; | ||
9386 | inherit: "default" 0.0; | ||
9387 | rel1.to_x: "elm.padding.left"; | ||
9388 | rel2 { | ||
9389 | relative: 1.3 1.0; | ||
9390 | to_x: "elm.padding.right"; | ||
9391 | } | ||
9392 | } | ||
9393 | } | ||
9394 | part { name: "elm.padding.icon2.left"; | ||
9395 | type: RECT; | ||
9396 | scale: 1; | ||
9397 | description { state: "default" 0.0; | ||
9398 | min: 5 0; | ||
9399 | fixed: 1 0; | ||
9400 | visible: 0; | ||
9401 | color: 255 0 255 255; | ||
9402 | align: 0.0 0.0; | ||
9403 | rel1 { | ||
9404 | relative: 0.0 0.0; | ||
9405 | to_x: "elm.edit.icon.2"; | ||
9406 | } | ||
9407 | rel2 { | ||
9408 | relative: 0.0 1.0; | ||
9409 | to_x: "elm.edit.icon.2"; | ||
9410 | } | ||
9411 | } | ||
9412 | } | ||
9413 | part { name: "elm.edit.icon.2"; | ||
9414 | clip_to: "disclip"; | ||
9415 | type: SWALLOW; | ||
9416 | description { state: "default" 0.0; | ||
9417 | fixed: 1 0; | ||
9418 | align: 0.0 0.5; | ||
9419 | aspect: 1.0 1.0; | ||
9420 | aspect_preference: VERTICAL; | ||
9421 | rel1 { | ||
9422 | relative: 0.0 0.0; | ||
9423 | to_x: "elm.padding.right"; | ||
9424 | } | ||
9425 | rel2 { | ||
9426 | relative: 0.0 1.0; | ||
9427 | to_x: "elm.padding.right"; | ||
9428 | } | ||
9429 | } | ||
9430 | description { state: "enabled" 0.0; | ||
9431 | inherit: "default" 0.0; | ||
9432 | align: 1.0 0.5; | ||
9433 | } | ||
9434 | description { state: "disabled" 0.0; | ||
9435 | inherit: "default" 0.0; | ||
9436 | visible: 0; | ||
9437 | } | ||
9438 | } | ||
9439 | part { name: "disclip"; | ||
9440 | type: RECT; | ||
9441 | description { state: "default" 0.0; | ||
9442 | rel1.to: "bg"; | ||
9443 | rel2.to: "bg"; | ||
9444 | } | ||
9445 | description { state: "disabled" 0.0; | ||
9446 | inherit: "default" 0.0; | ||
9447 | color: 255 255 255 64; | ||
9448 | } | ||
9449 | } | ||
9450 | } | ||
9451 | programs { | ||
9452 | program { | ||
9453 | name: "go_active"; | ||
9454 | signal: "elm,state,selected"; | ||
9455 | source: "elm"; | ||
9456 | script { | ||
9457 | new st[31]; | ||
9458 | new Float:vl; | ||
9459 | get_state(PART:"base", st, 30, vl); | ||
9460 | set_state(PART:"bg", "selected", vl); | ||
9461 | set_state(PART:"fg1", "selected", vl); | ||
9462 | set_state(PART:"fg2", "selected", vl); | ||
9463 | } | ||
9464 | } | ||
9465 | program { | ||
9466 | name: "go_passive"; | ||
9467 | signal: "elm,state,unselected"; | ||
9468 | source: "elm"; | ||
9469 | script { | ||
9470 | new st[31]; | ||
9471 | new Float:vl; | ||
9472 | get_state(PART:"base", st, 30, vl); | ||
9473 | set_state(PART:"bg", "default", vl); | ||
9474 | set_state(PART:"fg1", "default", vl); | ||
9475 | set_state(PART:"fg2", "default", vl); | ||
9476 | } | ||
9477 | } | ||
9478 | program { | ||
9479 | name: "odd"; | ||
9480 | signal: "elm,state,odd"; | ||
9481 | source: "elm"; | ||
9482 | action: STATE_SET "default" 1.0; | ||
9483 | target: "base_sh"; | ||
9484 | target: "base"; | ||
9485 | } | ||
9486 | program { | ||
9487 | name: "even"; | ||
9488 | signal: "elm,state,even"; | ||
9489 | source: "elm"; | ||
9490 | action: STATE_SET "default" 0.0; | ||
9491 | target: "base_sh"; | ||
9492 | target: "base"; | ||
9493 | } | ||
9494 | program { name: "go_disabled"; | ||
9495 | signal: "elm,state,disabled"; | ||
9496 | source: "elm"; | ||
9497 | action: STATE_SET "disabled" 0.0; | ||
9498 | target: "disclip"; | ||
9499 | } | ||
9500 | program { name: "go_enabled"; | ||
9501 | signal: "elm,state,enabled"; | ||
9502 | source: "elm"; | ||
9503 | action: STATE_SET "default" 0.0; | ||
9504 | target: "disclip"; | ||
9505 | } | ||
9506 | // edit mode signal | ||
9507 | program { name: "edit_mode_enabled_effect"; | ||
9508 | signal: "elm,state,decorate,enabled,effect"; | ||
9509 | source: "elm"; | ||
9510 | action: STATE_SET "enabled" 0.0; | ||
9511 | transition: DECELERATE 0.7; | ||
9512 | target: "elm.edit.icon.1"; | ||
9513 | target: "elm.edit.icon.2"; | ||
9514 | } | ||
9515 | program { name: "edit_mode_disabled_effect"; | ||
9516 | signal: "elm,state,decorate,disabled,effect"; | ||
9517 | source: "elm"; | ||
9518 | action: STATE_SET "default" 0.0; | ||
9519 | transition: DECELERATE 0.7; | ||
9520 | target: "elm.edit.icon.1"; | ||
9521 | target: "elm.edit.icon.2"; | ||
9522 | } | ||
9523 | program { name: "edit_mode_enabled"; | ||
9524 | signal: "elm,state,decorate,enabled"; | ||
9525 | source: "elm"; | ||
9526 | action: STATE_SET "enabled" 0.0; | ||
9527 | target: "elm.edit.icon.1"; | ||
9528 | target: "elm.edit.icon.2"; | ||
9529 | } | ||
9530 | program { name: "edit_mode_disabled"; | ||
9531 | signal: "elm,state,decorate,disabled"; | ||
9532 | source: "elm"; | ||
9533 | action: STATE_SET "default" 0.0; | ||
9534 | target: "elm.edit.icon.1"; | ||
9535 | target: "elm.edit.icon.2"; | ||
9536 | } | ||
9537 | program { | ||
9538 | name: "enable_flip_mode"; | ||
9539 | signal: "elm,state,flip,enabled"; | ||
9540 | source: "elm"; | ||
9541 | action: STATE_SET "disabled" 0.0; | ||
9542 | target: "elm.edit.icon.1"; | ||
9543 | target: "elm.edit.icon.2"; | ||
9544 | after: "enable_flip_mode_next"; | ||
9545 | } | ||
9546 | program { | ||
9547 | name: "enable_flip_mode_next"; | ||
9548 | action: STATE_SET "flipped" 0.0; | ||
9549 | transition: DECELERATE 0.5; | ||
9550 | target: "elm.swallow.decorate.content"; | ||
9551 | } | ||
9552 | program { | ||
9553 | name: "disable_flip_mode"; | ||
9554 | signal: "elm,state,flip,disabled"; | ||
9555 | source: "elm"; | ||
9556 | action: STATE_SET "default" 0.0; | ||
9557 | transition: DECELERATE 0.5; | ||
9558 | target: "elm.swallow.decorate.content"; | ||
9559 | target: "elm.edit.icon.1"; | ||
9560 | target: "elm.edit.icon.2"; | ||
9561 | } | ||
9562 | } | ||
9563 | } | ||
9564 | |||
9565 | #define GENLIST_PART_MAP_START( param_x, param_y, param_z ) \ | ||
9566 | description { state: "map_transition" 0.0; \ | ||
9567 | inherit: "default" 0.0; \ | ||
9568 | color: 50 50 50 100; \ | ||
9569 | map { \ | ||
9570 | perspective: "point"; \ | ||
9571 | on: 1; \ | ||
9572 | smooth: 1; \ | ||
9573 | perspective_on: 1; \ | ||
9574 | backface_cull: 1; \ | ||
9575 | rotation { \ | ||
9576 | center: "point"; \ | ||
9577 | x: param_x; \ | ||
9578 | y: param_y; \ | ||
9579 | z: param_z; \ | ||
9580 | } \ | ||
9581 | } \ | ||
9582 | } \ | ||
9583 | description { \ | ||
9584 | state: "hide" 0.0; \ | ||
9585 | inherit: "default" 0.0; \ | ||
9586 | visible: 0; \ | ||
9587 | } | ||
9588 | |||
9589 | #define GENLIST_PART_MAP_FINISH( param_x, param_y, param_z ) \ | ||
9590 | description { \ | ||
9591 | state: "map_rotate" 0.0; \ | ||
9592 | inherit: "default" 0.0; \ | ||
9593 | map { \ | ||
9594 | perspective: "point"; \ | ||
9595 | on: 1; \ | ||
9596 | smooth: 1; \ | ||
9597 | perspective_on: 1; \ | ||
9598 | backface_cull: 1; \ | ||
9599 | rotation { \ | ||
9600 | center: "point"; \ | ||
9601 | x: param_x; \ | ||
9602 | y: param_y; \ | ||
9603 | z: param_z; \ | ||
9604 | } \ | ||
9605 | } \ | ||
9606 | } | ||
9607 | |||
9608 | group { name: "elm/genlist/tree/tree_effect/default"; | ||
9609 | data.item: "selectraise" "on"; | ||
9610 | data.item: "texts" "elm.text"; | ||
9611 | data.item: "contents" "elm.swallow.icon elm.swallow.end"; | ||
9612 | data.item: "treesize" "20"; | ||
9613 | images { | ||
9614 | image: "bt_sm_base1.png" COMP; | ||
9615 | image: "bt_sm_shine.png" COMP; | ||
9616 | image: "bt_sm_hilight.png" COMP; | ||
9617 | image: "ilist_1.png" COMP; | ||
9618 | image: "ilist_2.png" COMP; | ||
9619 | image: "ilist_item_shadow.png" COMP; | ||
9620 | image: "icon_arrow_left.png" COMP; | ||
9621 | image: "icon_arrow_right.png" COMP; | ||
9622 | image: "icon_arrow_down.png" COMP; | ||
9623 | } | ||
9624 | parts { | ||
9625 | part { name: "point"; | ||
9626 | type: RECT; | ||
9627 | scale: 1; | ||
9628 | description { | ||
9629 | state: "default" 0.0; | ||
9630 | color: 0 0 0 0; | ||
9631 | rel1 { relative: 0.0 0.0; } | ||
9632 | rel2 { relative: 1.0 0.0; } | ||
9633 | } | ||
9634 | } | ||
9635 | part { | ||
9636 | name: "event"; | ||
9637 | type: RECT; | ||
9638 | repeat_events: 1; | ||
9639 | description { | ||
9640 | state: "default" 0.0; | ||
9641 | color: 0 0 0 0; | ||
9642 | } | ||
9643 | } | ||
9644 | part { name: "reorder_bg"; | ||
9645 | mouse_events: 0; | ||
9646 | description { state: "default" 0.0; | ||
9647 | visible: 0; | ||
9648 | color: 255 255 255 0; | ||
9649 | rel1 { | ||
9650 | relative: 0.0 0.0; | ||
9651 | offset: -7 -7; | ||
9652 | } | ||
9653 | rel2 { | ||
9654 | relative: 1.0 1.0; | ||
9655 | offset: 9 9; | ||
9656 | } | ||
9657 | image { | ||
9658 | normal: "bt_bases.png"; | ||
9659 | border: 6 6 6 6; | ||
9660 | } | ||
9661 | } | ||
9662 | description { state: "enabled" 0.0; | ||
9663 | inherit: "default" 0.0; | ||
9664 | visible: 1; | ||
9665 | color: 255 255 255 255; | ||
9666 | } | ||
9667 | } | ||
9668 | part { | ||
9669 | name: "base_sh"; | ||
9670 | mouse_events: 0; | ||
9671 | description { | ||
9672 | state: "default" 0.0; | ||
9673 | align: 0.0 0.0; | ||
9674 | min: 0 10; | ||
9675 | fixed: 1 1; | ||
9676 | rel1 { | ||
9677 | to: "base"; | ||
9678 | relative: 0.0 1.0; | ||
9679 | offset: 0 0; | ||
9680 | } | ||
9681 | rel2 { | ||
9682 | to: "base"; | ||
9683 | relative: 1.0 1.0; | ||
9684 | offset: -1 0; | ||
9685 | } | ||
9686 | image { | ||
9687 | normal: "ilist_item_shadow.png"; | ||
9688 | } | ||
9689 | fill.smooth: 0; | ||
9690 | } | ||
9691 | description { | ||
9692 | state: "default" 1.0; | ||
9693 | inherit: "default" 0.0; | ||
9694 | visible: 0; | ||
9695 | } | ||
9696 | GENLIST_PART_MAP_START(-90.0, 0.0, 0.0) | ||
9697 | GENLIST_PART_MAP_FINISH(0.0, 0.0, 0.0) | ||
9698 | } | ||
9699 | part { | ||
9700 | name: "base"; | ||
9701 | mouse_events: 0; | ||
9702 | description { | ||
9703 | state: "default" 0.0; | ||
9704 | image { | ||
9705 | normal: "ilist_1.png"; | ||
9706 | border: 2 2 2 2; | ||
9707 | } | ||
9708 | fill.smooth: 0; | ||
9709 | } | ||
9710 | description { | ||
9711 | state: "default" 1.0; | ||
9712 | inherit: "default" 0.0; | ||
9713 | image.normal: "ilist_2.png"; | ||
9714 | } | ||
9715 | GENLIST_PART_MAP_START(-90.0, 0.0, 0.0) | ||
9716 | GENLIST_PART_MAP_FINISH(0.0, 0.0, 0.0) | ||
9717 | } | ||
9718 | part { name: "bg"; | ||
9719 | clip_to: "disclip"; | ||
9720 | mouse_events: 0; | ||
9721 | description { state: "default" 0.0; | ||
9722 | visible: 0; | ||
9723 | color: 255 255 255 0; | ||
9724 | rel1 { | ||
9725 | relative: 0.0 0.0; | ||
9726 | offset: -5 -5; | ||
9727 | } | ||
9728 | rel2 { | ||
9729 | relative: 1.0 1.0; | ||
9730 | offset: 4 4; | ||
9731 | } | ||
9732 | image { | ||
9733 | normal: "bt_sm_base1.png"; | ||
9734 | border: 6 6 6 6; | ||
9735 | } | ||
9736 | image.middle: SOLID; | ||
9737 | } | ||
9738 | description { state: "selected" 0.0; | ||
9739 | inherit: "default" 0.0; | ||
9740 | visible: 1; | ||
9741 | color: 255 255 255 255; | ||
9742 | rel1 { | ||
9743 | relative: 0.0 0.0; | ||
9744 | offset: -2 -2; | ||
9745 | } | ||
9746 | rel2 { | ||
9747 | relative: 1.0 1.0; | ||
9748 | offset: 1 1; | ||
9749 | } | ||
9750 | } | ||
9751 | GENLIST_PART_MAP_START(-90.0, 0.0, 0.0) | ||
9752 | GENLIST_PART_MAP_FINISH(0.0, 0.0, 0.0) | ||
9753 | } | ||
9754 | part { name: "elm.swallow.pad"; | ||
9755 | type: SWALLOW; | ||
9756 | description { state: "default" 0.0; | ||
9757 | fixed: 1 0; | ||
9758 | align: 0.0 0.5; | ||
9759 | rel1 { | ||
9760 | relative: 0.0 0.0; | ||
9761 | offset: 4 4; | ||
9762 | } | ||
9763 | rel2 { | ||
9764 | relative: 0.0 1.0; | ||
9765 | offset: 4 -5; | ||
9766 | } | ||
9767 | } | ||
9768 | GENLIST_PART_MAP_START(-90.0, 0.0, 0.0) | ||
9769 | GENLIST_PART_MAP_FINISH(0.0, 0.0, 0.0) | ||
9770 | } | ||
9771 | part { name: "arrow"; | ||
9772 | clip_to: "disclip"; | ||
9773 | ignore_flags: ON_HOLD; | ||
9774 | description { state: "default" 0.0; | ||
9775 | fixed: 1 0; | ||
9776 | align: 0.0 0.5; | ||
9777 | aspect: 1.0 1.0; | ||
9778 | rel1 { | ||
9779 | to_x: "elm.swallow.pad"; | ||
9780 | relative: 1.0 0.0; | ||
9781 | offset: -1 4; | ||
9782 | } | ||
9783 | rel2 { | ||
9784 | to_x: "elm.swallow.pad"; | ||
9785 | relative: 1.0 1.0; | ||
9786 | offset: -1 -5; | ||
9787 | } | ||
9788 | image.normal: "icon_arrow_right.png"; | ||
9789 | } | ||
9790 | description { state: "default" 0.1; | ||
9791 | inherit: "default" 0.0; | ||
9792 | image.normal: "icon_arrow_left.png"; | ||
9793 | } | ||
9794 | description { state: "active" 0.0; | ||
9795 | inherit: "default" 0.0; | ||
9796 | image.normal: "icon_arrow_down.png"; | ||
9797 | } | ||
9798 | description { state: "active" 0.1; | ||
9799 | inherit: "default" 0.0; | ||
9800 | image.normal: "icon_arrow_down.png"; | ||
9801 | } | ||
9802 | GENLIST_PART_MAP_START(-90.0, 0.0, 0.0) | ||
9803 | GENLIST_PART_MAP_FINISH(0.0, 0.0, 0.0) | ||
9804 | } | ||
9805 | part { name: "elm.swallow.icon"; | ||
9806 | clip_to: "disclip"; | ||
9807 | type: SWALLOW; | ||
9808 | description { state: "default" 0.0; | ||
9809 | fixed: 1 0; | ||
9810 | align: 0.0 0.5; | ||
9811 | rel1 { | ||
9812 | to_x: "arrow"; | ||
9813 | relative: 1.0 0.0; | ||
9814 | offset: 4 4; | ||
9815 | } | ||
9816 | rel2 { | ||
9817 | to_x: "arrow"; | ||
9818 | relative: 1.0 1.0; | ||
9819 | offset: 4 -5; | ||
9820 | } | ||
9821 | } | ||
9822 | GENLIST_PART_MAP_START(-90.0, 0.0, 0.0) | ||
9823 | GENLIST_PART_MAP_FINISH(0.0, 0.0, 0.0) | ||
9824 | } | ||
9825 | part { name: "elm.swallow.end"; | ||
9826 | clip_to: "disclip"; | ||
9827 | type: SWALLOW; | ||
9828 | description { state: "default" 0.0; | ||
9829 | fixed: 1 0; | ||
9830 | align: 1.0 0.5; | ||
9831 | aspect: 1.0 1.0; | ||
9832 | aspect_preference: VERTICAL; | ||
9833 | rel1 { | ||
9834 | relative: 1.0 0.0; | ||
9835 | offset: -5 4; | ||
9836 | } | ||
9837 | rel2 { | ||
9838 | relative: 1.0 1.0; | ||
9839 | offset: -5 -5; | ||
9840 | } | ||
9841 | } | ||
9842 | GENLIST_PART_MAP_START(-90.0, 0.0, 0.0) | ||
9843 | GENLIST_PART_MAP_FINISH(0.0, 0.0, 0.0) | ||
9844 | } | ||
9845 | part { name: "elm.text"; | ||
9846 | clip_to: "disclip"; | ||
9847 | type: TEXT; | ||
9848 | effect: SOFT_SHADOW; | ||
9849 | mouse_events: 0; | ||
9850 | scale: 1; | ||
9851 | description { | ||
9852 | state: "default" 0.0; | ||
9853 | rel1 { | ||
9854 | to_x: "elm.swallow.icon"; | ||
9855 | relative: 1.0 0.0; | ||
9856 | offset: 0 4; | ||
9857 | } | ||
9858 | rel2 { | ||
9859 | to_x: "elm.swallow.end"; | ||
9860 | relative: 0.0 1.0; | ||
9861 | offset: -1 -5; | ||
9862 | } | ||
9863 | color: 0 0 0 255; | ||
9864 | color3: 0 0 0 0; | ||
9865 | text { | ||
9866 | font: "Sans"; | ||
9867 | size: 10; | ||
9868 | min: 1 1; | ||
9869 | align: -1.0 0.5; | ||
9870 | text_class: "list_item"; | ||
9871 | } | ||
9872 | } | ||
9873 | description { state: "selected" 0.0; | ||
9874 | inherit: "default" 0.0; | ||
9875 | color: 224 224 224 255; | ||
9876 | color3: 0 0 0 64; | ||
9877 | } | ||
9878 | GENLIST_PART_MAP_START(-90.0, 0.0, 0.0) | ||
9879 | GENLIST_PART_MAP_FINISH(0.0, 0.0, 0.0) | ||
9880 | } | ||
9881 | part { name: "fg1"; | ||
9882 | clip_to: "disclip"; | ||
9883 | mouse_events: 0; | ||
9884 | description { state: "default" 0.0; | ||
9885 | visible: 0; | ||
9886 | color: 255 255 255 0; | ||
9887 | rel1.to: "bg"; | ||
9888 | rel2.relative: 1.0 0.5; | ||
9889 | rel2.to: "bg"; | ||
9890 | image { | ||
9891 | normal: "bt_sm_hilight.png"; | ||
9892 | border: 6 6 6 0; | ||
9893 | } | ||
9894 | } | ||
9895 | description { state: "selected" 0.0; | ||
9896 | inherit: "default" 0.0; | ||
9897 | visible: 1; | ||
9898 | color: 255 255 255 255; | ||
9899 | } | ||
9900 | GENLIST_PART_MAP_START(-90.0, 0.0, 0.0) | ||
9901 | GENLIST_PART_MAP_FINISH(0.0, 0.0, 0.0) | ||
9902 | } | ||
9903 | part { name: "fg2"; | ||
9904 | clip_to: "disclip"; | ||
9905 | mouse_events: 0; | ||
9906 | description { state: "default" 0.0; | ||
9907 | visible: 0; | ||
9908 | color: 255 255 255 0; | ||
9909 | rel1.to: "bg"; | ||
9910 | rel2.to: "bg"; | ||
9911 | image { | ||
9912 | normal: "bt_sm_shine.png"; | ||
9913 | border: 6 6 6 0; | ||
9914 | } | ||
9915 | } | ||
9916 | description { state: "selected" 0.0; | ||
9917 | inherit: "default" 0.0; | ||
9918 | visible: 1; | ||
9919 | color: 255 255 255 255; | ||
9920 | } | ||
9921 | GENLIST_PART_MAP_START(-90.0, 0.0, 0.0) | ||
9922 | GENLIST_PART_MAP_FINISH(0.0, 0.0, 0.0) | ||
9923 | } | ||
9924 | part { name: "disclip"; | ||
9925 | type: RECT; | ||
9926 | description { state: "default" 0.0; | ||
9927 | rel1.to: "bg"; | ||
9928 | rel2.to: "bg"; | ||
9929 | } | ||
9930 | description { state: "disabled" 0.0; | ||
9931 | inherit: "default" 0.0; | ||
9932 | color: 255 255 255 64; | ||
9933 | } | ||
9934 | } | ||
9935 | } | ||
9936 | programs { | ||
9937 | // signal: elm,state,%s,active | ||
9938 | // a "check" item named %s went active | ||
9939 | // signal: elm,state,%s,passive | ||
9940 | // a "check" item named %s went passive | ||
9941 | // default is passive | ||
9942 | program { | ||
9943 | name: "odd"; | ||
9944 | signal: "elm,state,odd"; | ||
9945 | source: "elm"; | ||
9946 | action: STATE_SET "default" 1.0; | ||
9947 | target: "base_sh"; | ||
9948 | target: "base"; | ||
9949 | } | ||
9950 | program { | ||
9951 | name: "even"; | ||
9952 | signal: "elm,state,even"; | ||
9953 | source: "elm"; | ||
9954 | action: STATE_SET "default" 0.0; | ||
9955 | target: "base_sh"; | ||
9956 | target: "base"; | ||
9957 | } | ||
9958 | program { | ||
9959 | name: "go_active"; | ||
9960 | signal: "elm,state,selected"; | ||
9961 | source: "elm"; | ||
9962 | action: STATE_SET "selected" 0.0; | ||
9963 | target: "bg"; | ||
9964 | target: "fg1"; | ||
9965 | target: "fg2"; | ||
9966 | target: "elm.text"; | ||
9967 | } | ||
9968 | program { | ||
9969 | name: "go_passive"; | ||
9970 | signal: "elm,state,unselected"; | ||
9971 | source: "elm"; | ||
9972 | action: STATE_SET "default" 0.0; | ||
9973 | target: "bg"; | ||
9974 | target: "fg1"; | ||
9975 | target: "fg2"; | ||
9976 | target: "elm.text"; | ||
9977 | transition: LINEAR 0.1; | ||
9978 | } | ||
9979 | program { | ||
9980 | name: "go_disabled"; | ||
9981 | signal: "elm,state,disabled"; | ||
9982 | source: "elm"; | ||
9983 | action: STATE_SET "disabled" 0.0; | ||
9984 | target: "disclip"; | ||
9985 | } | ||
9986 | program { | ||
9987 | name: "go_enabled"; | ||
9988 | signal: "elm,state,enabled"; | ||
9989 | source: "elm"; | ||
9990 | action: STATE_SET "default" 0.0; | ||
9991 | target: "disclip"; | ||
9992 | } | ||
9993 | program { | ||
9994 | name: "go_reorder_disabled"; | ||
9995 | signal: "elm,state,reorder,disabled"; | ||
9996 | source: "elm"; | ||
9997 | action: STATE_SET "default" 0.0; | ||
9998 | target: "reorder_bg"; | ||
9999 | transition: DECELERATE 0.5; | ||
10000 | } | ||
10001 | program { | ||
10002 | name: "go_reorder_enabled"; | ||
10003 | signal: "elm,state,reorder,enabled"; | ||
10004 | source: "elm"; | ||
10005 | action: STATE_SET "enabled" 0.0; | ||
10006 | target: "reorder_bg"; | ||
10007 | transition: DECELERATE 0.5; | ||
10008 | } | ||
10009 | program { | ||
10010 | name: "expand"; | ||
10011 | signal: "mouse,up,1"; | ||
10012 | source: "arrow"; | ||
10013 | action: SIGNAL_EMIT "elm,action,expand,toggle" "elm"; | ||
10014 | } | ||
10015 | program { | ||
10016 | name: "go_expanded"; | ||
10017 | signal: "elm,state,expanded"; | ||
10018 | source: "elm"; | ||
10019 | script { | ||
10020 | new st[31]; | ||
10021 | new Float:vl; | ||
10022 | get_state(PART:"arrow", st, 30, vl); | ||
10023 | set_state(PART:"arrow", "active", vl); | ||
10024 | } | ||
10025 | } | ||
10026 | program { | ||
10027 | name: "go_contracted"; | ||
10028 | signal: "elm,state,contracted"; | ||
10029 | source: "elm"; | ||
10030 | script { | ||
10031 | new st[31]; | ||
10032 | new Float:vl; | ||
10033 | get_state(PART:"arrow", st, 30, vl); | ||
10034 | set_state(PART:"arrow", "default", vl); | ||
10035 | } | ||
10036 | } | ||
10037 | program { name: "to_rtl"; | ||
10038 | signal: "edje,state,rtl"; | ||
10039 | source: "edje"; | ||
10040 | script { | ||
10041 | new st[31]; | ||
10042 | new Float:vl; | ||
10043 | get_state(PART:"arrow", st, 30, vl); | ||
10044 | if (vl == 0.0) { | ||
10045 | set_state(PART:"arrow", st, 0.1); | ||
10046 | } | ||
10047 | } | ||
10048 | } | ||
10049 | program { name: "to_ltr"; | ||
10050 | signal: "edje,state,ltr"; | ||
10051 | source: "edje"; | ||
10052 | script { | ||
10053 | new st[31]; | ||
10054 | new Float:vl; | ||
10055 | get_state(PART:"arrow", st, 30, vl); | ||
10056 | if (vl == 0.1) { | ||
10057 | set_state(PART:"arrow", st, 0.0); | ||
10058 | } | ||
10059 | } | ||
10060 | } | ||
10061 | program { | ||
10062 | name: "rotaion_transition"; | ||
10063 | signal: "flip_item"; | ||
10064 | action: STATE_SET "map_transition" 0.0; | ||
10065 | after: "rotation"; | ||
10066 | target: "reorder_bg"; | ||
10067 | target: "base_sh"; | ||
10068 | target: "base"; | ||
10069 | target: "bg"; | ||
10070 | target: "arrow"; | ||
10071 | target: "elm.swallow.pad"; | ||
10072 | target: "elm.swallow.icon"; | ||
10073 | target: "elm.swallow.end"; | ||
10074 | target: "elm.text"; | ||
10075 | target: "fg1"; | ||
10076 | target: "fg2"; | ||
10077 | } | ||
10078 | program { | ||
10079 | name: "rotation"; | ||
10080 | action: STATE_SET "map_rotate" 0.0; | ||
10081 | transition: LINEAR 0.2; | ||
10082 | after: "rotation_end"; | ||
10083 | target: "reorder_bg"; | ||
10084 | target: "base_sh"; | ||
10085 | target: "base"; | ||
10086 | target: "bg"; | ||
10087 | target: "arrow"; | ||
10088 | target: "elm.swallow.pad"; | ||
10089 | target: "elm.swallow.icon"; | ||
10090 | target: "elm.swallow.end"; | ||
10091 | target: "elm.text"; | ||
10092 | target: "fg1"; | ||
10093 | target: "fg2"; | ||
10094 | } | ||
10095 | program { | ||
10096 | name: "rotation_end"; | ||
10097 | action: STATE_SET "default" 0.0; | ||
10098 | target: "reorder_bg"; | ||
10099 | target: "base_sh"; | ||
10100 | target: "base"; | ||
10101 | target: "bg"; | ||
10102 | target: "arrow"; | ||
10103 | target: "elm.swallow.pad"; | ||
10104 | target: "elm.swallow.icon"; | ||
10105 | target: "elm.swallow.end"; | ||
10106 | target: "elm.text"; | ||
10107 | target: "fg1"; | ||
10108 | target: "fg2"; | ||
10109 | } | ||
10110 | program { | ||
10111 | name: "rotation_transition2"; | ||
10112 | signal: "elm,state,contract_flip"; | ||
10113 | action: STATE_SET "map_rotate" 0.0; | ||
10114 | after: "rotation2"; | ||
10115 | target: "reorder_bg"; | ||
10116 | target: "base_sh"; | ||
10117 | target: "base"; | ||
10118 | target: "bg"; | ||
10119 | target: "arrow"; | ||
10120 | target: "elm.swallow.pad"; | ||
10121 | target: "elm.swallow.icon"; | ||
10122 | target: "elm.swallow.end"; | ||
10123 | target: "elm.text"; | ||
10124 | target: "fg1"; | ||
10125 | target: "fg2"; | ||
10126 | } | ||
10127 | program { | ||
10128 | name: "rotation2"; | ||
10129 | action: STATE_SET "map_transition" 0.0; | ||
10130 | transition: LINEAR 0.5; | ||
10131 | after: "rotation3"; | ||
10132 | target: "reorder_bg"; | ||
10133 | target: "base_sh"; | ||
10134 | target: "base"; | ||
10135 | target: "bg"; | ||
10136 | target: "arrow"; | ||
10137 | target: "elm.swallow.pad"; | ||
10138 | target: "elm.swallow.icon"; | ||
10139 | target: "elm.swallow.end"; | ||
10140 | target: "elm.text"; | ||
10141 | target: "fg1"; | ||
10142 | target: "fg2"; | ||
10143 | } | ||
10144 | program { | ||
10145 | name: "rotation3"; | ||
10146 | action: STATE_SET "hide" 0.0; | ||
10147 | target: "reorder_bg"; | ||
10148 | target: "base_sh"; | ||
10149 | target: "base"; | ||
10150 | target: "bg"; | ||
10151 | target: "arrow"; | ||
10152 | target: "elm.swallow.pad"; | ||
10153 | target: "elm.swallow.icon"; | ||
10154 | target: "elm.swallow.end"; | ||
10155 | target: "elm.text"; | ||
10156 | target: "fg1"; | ||
10157 | target: "fg2"; | ||
10158 | } | ||
10159 | program { | ||
10160 | name: "show"; | ||
10161 | signal: "elm,state,show"; | ||
10162 | action: STATE_SET "default" 0.0; | ||
10163 | target: "reorder_bg"; | ||
10164 | target: "base_sh"; | ||
10165 | target: "base"; | ||
10166 | target: "bg"; | ||
10167 | target: "arrow"; | ||
10168 | target: "elm.swallow.pad"; | ||
10169 | target: "elm.swallow.icon"; | ||
10170 | target: "elm.swallow.end"; | ||
10171 | target: "elm.text"; | ||
10172 | target: "fg1"; | ||
10173 | target: "fg2"; | ||
10174 | } | ||
10175 | program { | ||
10176 | name: "hide"; | ||
10177 | signal: "elm,state,hide"; | ||
10178 | action: STATE_SET "hide" 0.0; | ||
10179 | target: "reorder_bg"; | ||
10180 | target: "base_sh"; | ||
10181 | target: "base"; | ||
10182 | target: "bg"; | ||
10183 | target: "arrow"; | ||
10184 | target: "elm.swallow.pad"; | ||
10185 | target: "elm.swallow.icon"; | ||
10186 | target: "elm.swallow.end"; | ||
10187 | target: "elm.text"; | ||
10188 | target: "fg1"; | ||
10189 | target: "fg2"; | ||
10190 | } | ||
10191 | } | ||
10192 | } | ||
diff --git a/libraries/elementary/data/themes/widgets/hover.edc b/libraries/elementary/data/themes/widgets/hover.edc new file mode 100644 index 0000000..ac13899 --- /dev/null +++ b/libraries/elementary/data/themes/widgets/hover.edc | |||
@@ -0,0 +1,1184 @@ | |||
1 | /* TODO: replicate diagonal swallow slots to the other hover styles */ | ||
2 | group { name: "elm/hover/base/default"; | ||
3 | images { | ||
4 | image: "shad_circ.png" COMP; | ||
5 | } | ||
6 | parts { | ||
7 | part { name: "elm.swallow.offset"; | ||
8 | type: SWALLOW; | ||
9 | description { state: "default" 0.0; | ||
10 | align: 0.0 0.0; | ||
11 | rel1.relative: 0.0 0.0; | ||
12 | rel2.relative: 0.0 0.0; | ||
13 | } | ||
14 | } | ||
15 | part { name: "elm.swallow.size"; | ||
16 | type: SWALLOW; | ||
17 | description { state: "default" 0.0; | ||
18 | align: 0.0 0.0; | ||
19 | rel1.to: "elm.swallow.offset"; | ||
20 | rel1.relative: 1.0 1.0; | ||
21 | rel2.to: "elm.swallow.offset"; | ||
22 | rel2.relative: 1.0 1.0; | ||
23 | } | ||
24 | } | ||
25 | part { name: "base"; | ||
26 | type: RECT; | ||
27 | mouse_events: 1; | ||
28 | description { state: "default" 0.0; | ||
29 | color: 0 0 0 64; | ||
30 | } | ||
31 | } | ||
32 | part { name: "shad"; | ||
33 | mouse_events: 0; | ||
34 | description { state: "default" 0.0; | ||
35 | image.normal: "shad_circ.png"; | ||
36 | rel1.to: "elm.swallow.size"; | ||
37 | rel1.offset: -32 -32; | ||
38 | rel2.to: "elm.swallow.size"; | ||
39 | rel2.offset: 31 31; | ||
40 | fill.smooth: 0; | ||
41 | } | ||
42 | } | ||
43 | part { name: "box"; | ||
44 | type: RECT; | ||
45 | mouse_events: 0; | ||
46 | description { state: "default" 0.0; | ||
47 | color: 0 0 0 0; | ||
48 | rel1.to: "elm.swallow.size"; | ||
49 | rel1.offset: -2 -2; | ||
50 | rel2.to: "elm.swallow.size"; | ||
51 | rel2.offset: 1 1; | ||
52 | } | ||
53 | } | ||
54 | part { name: "elm.swallow.slot.left"; | ||
55 | type: SWALLOW; | ||
56 | description { state: "default" 0.0; | ||
57 | align: 1.0 0.5; | ||
58 | rel1.to: "elm.swallow.slot.middle"; | ||
59 | rel1.relative: 0.0 0.0; | ||
60 | rel1.offset: -1 0; | ||
61 | rel2.to: "elm.swallow.slot.middle"; | ||
62 | rel2.relative: 0.0 1.0; | ||
63 | rel2.offset: -1 -1; | ||
64 | } | ||
65 | } | ||
66 | part { name: "elm.swallow.slot.top-left"; | ||
67 | type: SWALLOW; | ||
68 | description { state: "default" 0.0; | ||
69 | align: 1.0 1.0; | ||
70 | rel1.to: "elm.swallow.slot.middle"; | ||
71 | rel1.relative: 0.0 0.0; | ||
72 | rel1.offset: 0 0; | ||
73 | rel2.to: "elm.swallow.slot.middle"; | ||
74 | rel2.relative: 0.0 0.0; | ||
75 | rel2.offset: -1 -1; | ||
76 | } | ||
77 | } | ||
78 | part { name: "elm.swallow.slot.top"; | ||
79 | type: SWALLOW; | ||
80 | description { state: "default" 0.0; | ||
81 | align: 0.5 1.0; | ||
82 | rel1.to: "elm.swallow.slot.middle"; | ||
83 | rel1.relative: 0.0 0.0; | ||
84 | rel1.offset: 0 -1; | ||
85 | rel2.to: "elm.swallow.slot.middle"; | ||
86 | rel2.relative: 1.0 0.0; | ||
87 | rel2.offset: -1 -1; | ||
88 | } | ||
89 | } | ||
90 | part { name: "elm.swallow.slot.top-right"; | ||
91 | type: SWALLOW; | ||
92 | description { state: "default" 0.0; | ||
93 | align: 0.0 1.0; | ||
94 | rel1.to: "elm.swallow.slot.middle"; | ||
95 | rel1.relative: 1.0 0.0; | ||
96 | rel1.offset: 0 0; | ||
97 | rel2.to: "elm.swallow.slot.middle"; | ||
98 | rel2.relative: 1.0 0.0; | ||
99 | rel2.offset: -1 -1; | ||
100 | } | ||
101 | } | ||
102 | part { name: "elm.swallow.slot.right"; | ||
103 | type: SWALLOW; | ||
104 | description { state: "default" 0.0; | ||
105 | align: 0.0 0.5; | ||
106 | rel1.to: "elm.swallow.slot.middle"; | ||
107 | rel1.relative: 1.0 0.0; | ||
108 | rel1.offset: 0 0; | ||
109 | rel2.to: "elm.swallow.slot.middle"; | ||
110 | rel2.relative: 1.0 1.0; | ||
111 | rel2.offset: 0 -1; | ||
112 | } | ||
113 | } | ||
114 | part { name: "elm.swallow.slot.bottom-right"; | ||
115 | type: SWALLOW; | ||
116 | description { state: "default" 0.0; | ||
117 | align: 0.0 0.0; | ||
118 | rel1.to: "elm.swallow.slot.middle"; | ||
119 | rel1.relative: 1.0 1.0; | ||
120 | rel1.offset: 0 0; | ||
121 | rel2.to: "elm.swallow.slot.middle"; | ||
122 | rel2.relative: 1.0 1.0; | ||
123 | rel2.offset: -1 -1; | ||
124 | } | ||
125 | } | ||
126 | part { name: "elm.swallow.slot.bottom"; | ||
127 | type: SWALLOW; | ||
128 | description { state: "default" 0.0; | ||
129 | align: 0.5 0.0; | ||
130 | rel1.to: "elm.swallow.slot.middle"; | ||
131 | rel1.relative: 0.0 1.0; | ||
132 | rel1.offset: 0 0; | ||
133 | rel2.to: "elm.swallow.slot.middle"; | ||
134 | rel2.relative: 1.0 1.0; | ||
135 | rel2.offset: -1 0; | ||
136 | } | ||
137 | } | ||
138 | part { name: "elm.swallow.slot.bottom-left"; | ||
139 | type: SWALLOW; | ||
140 | description { state: "default" 0.0; | ||
141 | align: 1.0 0.0; | ||
142 | rel1.to: "elm.swallow.slot.middle"; | ||
143 | rel1.relative: 0.0 1.0; | ||
144 | rel1.offset: 0 0; | ||
145 | rel2.to: "elm.swallow.slot.middle"; | ||
146 | rel2.relative: 0.0 1.0; | ||
147 | rel2.offset: -1 0; | ||
148 | } | ||
149 | } | ||
150 | part { name: "elm.swallow.slot.middle"; | ||
151 | type: SWALLOW; | ||
152 | description { state: "default" 0.0; | ||
153 | rel1.to: "elm.swallow.size"; | ||
154 | rel2.to: "elm.swallow.size"; | ||
155 | } | ||
156 | } | ||
157 | } | ||
158 | programs { | ||
159 | program { name: "end"; | ||
160 | signal: "mouse,up,1"; | ||
161 | source: "base"; | ||
162 | action: SIGNAL_EMIT "elm,action,dismiss" ""; | ||
163 | } | ||
164 | } | ||
165 | } | ||
166 | |||
167 | group { name: "elm/hover/base/popout"; | ||
168 | images { | ||
169 | image: "shad_circ.png" COMP; | ||
170 | image: "bt_dis_base.png" COMP; | ||
171 | image: "bt_dis_hilight.png" COMP; | ||
172 | } | ||
173 | parts { | ||
174 | part { name: "elm.swallow.offset"; | ||
175 | type: SWALLOW; | ||
176 | description { state: "default" 0.0; | ||
177 | align: 0.0 0.0; | ||
178 | rel1.relative: 0.0 0.0; | ||
179 | rel2.relative: 0.0 0.0; | ||
180 | } | ||
181 | } | ||
182 | part { name: "elm.swallow.size"; | ||
183 | type: SWALLOW; | ||
184 | description { state: "default" 0.0; | ||
185 | align: 0.0 0.0; | ||
186 | rel1.to: "elm.swallow.offset"; | ||
187 | rel1.relative: 1.0 1.0; | ||
188 | rel2.to: "elm.swallow.offset"; | ||
189 | rel2.relative: 1.0 1.0; | ||
190 | } | ||
191 | } | ||
192 | part { name: "base"; | ||
193 | type: RECT; | ||
194 | mouse_events: 1; | ||
195 | description { state: "default" 0.0; | ||
196 | color: 0 0 0 0; | ||
197 | } | ||
198 | description { state: "visible" 0.0; | ||
199 | inherit: "default" 1.0; | ||
200 | color: 0 0 0 64; | ||
201 | } | ||
202 | } | ||
203 | part { name: "leftclip"; | ||
204 | type: RECT; | ||
205 | description { state: "default" 0.0; | ||
206 | rel2.to_x: "pop"; | ||
207 | rel2.relative: 0.0 1.0; | ||
208 | rel2.offset: 1 -1; | ||
209 | } | ||
210 | } | ||
211 | part { name: "left"; | ||
212 | clip_to: "leftclip"; | ||
213 | description { state: "default" 0.0; | ||
214 | visible: 0; | ||
215 | rel1.to: "elm.swallow.slot.left"; | ||
216 | rel1.offset: -5 -5; | ||
217 | rel2.to: "elm.swallow.slot.left"; | ||
218 | rel2.offset: 4 4; | ||
219 | image { | ||
220 | normal: "bt_dis_base.png"; | ||
221 | border: 4 4 4 4; | ||
222 | } | ||
223 | image.middle: SOLID; | ||
224 | } | ||
225 | description { state: "visible" 0.0; | ||
226 | inherit: "default" 0.0; | ||
227 | visible: 1; | ||
228 | } | ||
229 | } | ||
230 | part { name: "elm.swallow.slot.left"; | ||
231 | type: SWALLOW; | ||
232 | clip_to: "leftclip"; | ||
233 | description { state: "default" 0.0; | ||
234 | align: 0.0 0.5; | ||
235 | rel1.to: "elm.swallow.slot.middle"; | ||
236 | rel1.relative: 0.0 0.0; | ||
237 | rel1.offset: -1 0; | ||
238 | rel2.to: "elm.swallow.slot.middle"; | ||
239 | rel2.relative: 0.0 1.0; | ||
240 | rel2.offset: -1 -1; | ||
241 | } | ||
242 | description { state: "visible" 0.0; | ||
243 | inherit: "default" 0.0; | ||
244 | rel1.offset: -7 0; | ||
245 | rel2.offset: -7 -1; | ||
246 | align: 1.0 0.5; | ||
247 | } | ||
248 | } | ||
249 | part { name: "leftover"; | ||
250 | clip_to: "leftclip"; | ||
251 | mouse_events: 0; | ||
252 | description { state: "default" 0.0; | ||
253 | rel1.to: "left"; | ||
254 | rel2.to: "left"; | ||
255 | rel2.relative: 1.0 0.5; | ||
256 | image { | ||
257 | normal: "bt_dis_hilight.png"; | ||
258 | border: 4 4 4 0; | ||
259 | } | ||
260 | } | ||
261 | } | ||
262 | part { name: "rightclip"; | ||
263 | type: RECT; | ||
264 | description { state: "default" 0.0; | ||
265 | rel1.to_x: "pop"; | ||
266 | rel1.relative: 1.0 0.0; | ||
267 | rel1.offset: -2 0; | ||
268 | } | ||
269 | } | ||
270 | part { name: "right"; | ||
271 | clip_to: "rightclip"; | ||
272 | description { state: "default" 0.0; | ||
273 | visible: 0; | ||
274 | rel1.to: "elm.swallow.slot.right"; | ||
275 | rel1.offset: -5 -5; | ||
276 | rel2.to: "elm.swallow.slot.right"; | ||
277 | rel2.offset: 4 4; | ||
278 | image { | ||
279 | normal: "bt_dis_base.png"; | ||
280 | border: 4 4 4 4; | ||
281 | } | ||
282 | image.middle: SOLID; | ||
283 | } | ||
284 | description { state: "visible" 0.0; | ||
285 | inherit: "default" 0.0; | ||
286 | visible: 1; | ||
287 | } | ||
288 | } | ||
289 | part { name: "elm.swallow.slot.right"; | ||
290 | type: SWALLOW; | ||
291 | clip_to: "rightclip"; | ||
292 | description { state: "default" 0.0; | ||
293 | align: 1.0 0.5; | ||
294 | rel1.to: "elm.swallow.slot.middle"; | ||
295 | rel1.relative: 1.0 0.0; | ||
296 | rel1.offset: 0 0; | ||
297 | rel2.to: "elm.swallow.slot.middle"; | ||
298 | rel2.relative: 1.0 1.0; | ||
299 | rel2.offset: 0 -1; | ||
300 | } | ||
301 | description { state: "visible" 0.0; | ||
302 | inherit: "default" 0.0; | ||
303 | rel1.offset: 6 0; | ||
304 | rel2.offset: 6 -1; | ||
305 | align: 0.0 0.5; | ||
306 | } | ||
307 | } | ||
308 | part { name: "rightover"; | ||
309 | clip_to: "rightclip"; | ||
310 | mouse_events: 0; | ||
311 | description { state: "default" 0.0; | ||
312 | rel1.to: "right"; | ||
313 | rel2.to: "right"; | ||
314 | rel2.relative: 1.0 0.5; | ||
315 | image { | ||
316 | normal: "bt_dis_hilight.png"; | ||
317 | border: 4 4 4 0; | ||
318 | } | ||
319 | } | ||
320 | } | ||
321 | part { name: "topclip"; | ||
322 | type: RECT; | ||
323 | description { state: "default" 0.0; | ||
324 | rel2.to_y: "pop"; | ||
325 | rel2.relative: 1.0 0.0; | ||
326 | rel2.offset: -1 1; | ||
327 | } | ||
328 | } | ||
329 | part { name: "top"; | ||
330 | clip_to: "topclip"; | ||
331 | description { state: "default" 0.0; | ||
332 | visible: 0; | ||
333 | rel1.to: "elm.swallow.slot.top"; | ||
334 | rel1.offset: -5 -5; | ||
335 | rel2.to: "elm.swallow.slot.top"; | ||
336 | rel2.offset: 4 4; | ||
337 | image { | ||
338 | normal: "bt_dis_base.png"; | ||
339 | border: 4 4 4 4; | ||
340 | } | ||
341 | image.middle: SOLID; | ||
342 | } | ||
343 | description { state: "visible" 0.0; | ||
344 | inherit: "default" 0.0; | ||
345 | visible: 1; | ||
346 | } | ||
347 | } | ||
348 | part { name: "elm.swallow.slot.top"; | ||
349 | type: SWALLOW; | ||
350 | clip_to: "topclip"; | ||
351 | description { state: "default" 0.0; | ||
352 | visible: 1; | ||
353 | align: 0.5 0.0; | ||
354 | rel1.to: "elm.swallow.slot.middle"; | ||
355 | rel1.relative: 0.0 0.0; | ||
356 | rel1.offset: 0 -1; | ||
357 | rel2.to: "elm.swallow.slot.middle"; | ||
358 | rel2.relative: 1.0 0.0; | ||
359 | rel2.offset: -1 -1; | ||
360 | } | ||
361 | description { state: "visible" 0.0; | ||
362 | inherit: "default" 0.0; | ||
363 | rel1.offset: 0 -7; | ||
364 | rel2.offset: -1 -7; | ||
365 | align: 0.5 1.0; | ||
366 | } | ||
367 | } | ||
368 | part { name: "topover"; | ||
369 | clip_to: "topclip"; | ||
370 | mouse_events: 0; | ||
371 | description { state: "default" 0.0; | ||
372 | rel1.to: "top"; | ||
373 | rel2.to: "top"; | ||
374 | rel2.relative: 1.0 0.5; | ||
375 | image { | ||
376 | normal: "bt_dis_hilight.png"; | ||
377 | border: 4 4 4 0; | ||
378 | } | ||
379 | } | ||
380 | } | ||
381 | part { name: "bottomclip"; | ||
382 | type: RECT; | ||
383 | description { state: "default" 0.0; | ||
384 | rel1.to_y: "pop"; | ||
385 | rel1.relative: 0.0 1.0; | ||
386 | rel1.offset: -1 -2; | ||
387 | } | ||
388 | } | ||
389 | part { name: "bottom"; | ||
390 | clip_to: "bottomclip"; | ||
391 | description { state: "default" 0.0; | ||
392 | visible: 0; | ||
393 | rel1.to: "elm.swallow.slot.bottom"; | ||
394 | rel1.offset: -5 -5; | ||
395 | rel2.to: "elm.swallow.slot.bottom"; | ||
396 | rel2.offset: 4 4; | ||
397 | image { | ||
398 | normal: "bt_dis_base.png"; | ||
399 | border: 4 4 4 4; | ||
400 | } | ||
401 | image.middle: SOLID; | ||
402 | } | ||
403 | description { state: "visible" 0.0; | ||
404 | inherit: "default" 0.0; | ||
405 | visible: 1; | ||
406 | } | ||
407 | } | ||
408 | part { name: "elm.swallow.slot.bottom"; | ||
409 | type: SWALLOW; | ||
410 | clip_to: "bottomclip"; | ||
411 | description { state: "default" 0.0; | ||
412 | align: 0.5 1.0; | ||
413 | rel1.to: "elm.swallow.slot.middle"; | ||
414 | rel1.relative: 0.0 1.0; | ||
415 | rel1.offset: 0 0; | ||
416 | rel2.to: "elm.swallow.slot.middle"; | ||
417 | rel2.relative: 1.0 1.0; | ||
418 | rel2.offset: -1 0; | ||
419 | } | ||
420 | description { state: "visible" 0.0; | ||
421 | inherit: "default" 0.0; | ||
422 | rel1.offset: 0 6; | ||
423 | rel2.offset: -1 6; | ||
424 | align: 0.5 0.0; | ||
425 | } | ||
426 | } | ||
427 | part { name: "bottomover"; | ||
428 | clip_to: "bottomclip"; | ||
429 | mouse_events: 0; | ||
430 | description { state: "default" 0.0; | ||
431 | rel1.to: "bottom"; | ||
432 | rel2.to: "bottom"; | ||
433 | rel2.relative: 1.0 0.5; | ||
434 | image { | ||
435 | normal: "bt_dis_hilight.png"; | ||
436 | border: 4 4 4 0; | ||
437 | } | ||
438 | } | ||
439 | } | ||
440 | part { name: "shad"; | ||
441 | mouse_events: 0; | ||
442 | description { state: "default" 0.0; | ||
443 | image.normal: "shad_circ.png"; | ||
444 | rel1.to: "elm.swallow.size"; | ||
445 | rel1.offset: -64 -64; | ||
446 | rel2.to: "elm.swallow.size"; | ||
447 | rel2.offset: 63 63; | ||
448 | fill.smooth: 0; | ||
449 | } | ||
450 | } | ||
451 | part { name: "pop"; | ||
452 | mouse_events: 1; | ||
453 | description { state: "default" 0.0; | ||
454 | rel1.to: "elm.swallow.slot.middle"; | ||
455 | rel1.offset: -5 -5; | ||
456 | rel2.to: "elm.swallow.slot.middle"; | ||
457 | rel2.offset: 4 4; | ||
458 | image { | ||
459 | normal: "bt_dis_base.png"; | ||
460 | border: 4 4 4 4; | ||
461 | } | ||
462 | image.middle: SOLID; | ||
463 | } | ||
464 | } | ||
465 | part { name: "elm.swallow.slot.middle"; | ||
466 | type: SWALLOW; | ||
467 | description { state: "default" 0.0; | ||
468 | rel1.to: "elm.swallow.size"; | ||
469 | rel2.to: "elm.swallow.size"; | ||
470 | } | ||
471 | } | ||
472 | part { name: "popover"; | ||
473 | mouse_events: 0; | ||
474 | description { state: "default" 0.0; | ||
475 | rel1.to: "pop"; | ||
476 | rel2.to: "pop"; | ||
477 | rel2.relative: 1.0 0.5; | ||
478 | image { | ||
479 | normal: "bt_dis_hilight.png"; | ||
480 | border: 4 4 4 0; | ||
481 | } | ||
482 | } | ||
483 | } | ||
484 | } | ||
485 | programs { | ||
486 | program { name: "end"; | ||
487 | signal: "mouse,up,1"; | ||
488 | source: "base"; | ||
489 | action: SIGNAL_EMIT "elm,action,dismiss" ""; | ||
490 | } | ||
491 | |||
492 | program { name: "show"; | ||
493 | signal: "elm,action,show"; | ||
494 | source: "elm"; | ||
495 | action: STATE_SET "visible" 0.0; | ||
496 | // transition: DECELERATE 0.5; | ||
497 | target: "base"; | ||
498 | } | ||
499 | program { name: "hide"; | ||
500 | signal: "elm,action,hide"; | ||
501 | source: "elm"; | ||
502 | action: STATE_SET "default" 0.0; | ||
503 | // transition: DECELERATE 0.5; | ||
504 | target: "base"; | ||
505 | } | ||
506 | |||
507 | program { name: "leftshow"; | ||
508 | signal: "elm,action,slot,left,show"; | ||
509 | source: "elm"; | ||
510 | action: STATE_SET "visible" 0.0; | ||
511 | transition: DECELERATE 0.5; | ||
512 | target: "left"; | ||
513 | target: "elm.swallow.slot.left"; | ||
514 | } | ||
515 | program { name: "lefthide"; | ||
516 | signal: "elm,action,slot,left,hide"; | ||
517 | source: "elm"; | ||
518 | action: STATE_SET "default" 0.0; | ||
519 | transition: DECELERATE 0.5; | ||
520 | target: "left"; | ||
521 | target: "elm.swallow.slot.left"; | ||
522 | } | ||
523 | program { name: "rightshow"; | ||
524 | signal: "elm,action,slot,right,show"; | ||
525 | source: "elm"; | ||
526 | action: STATE_SET "visible" 0.0; | ||
527 | transition: DECELERATE 0.5; | ||
528 | target: "right"; | ||
529 | target: "elm.swallow.slot.right"; | ||
530 | } | ||
531 | program { name: "righthide"; | ||
532 | signal: "elm,action,slot,right,hide"; | ||
533 | source: "elm"; | ||
534 | action: STATE_SET "default" 0.0; | ||
535 | transition: DECELERATE 0.5; | ||
536 | target: "right"; | ||
537 | target: "elm.swallow.slot.right"; | ||
538 | } | ||
539 | program { name: "topshow"; | ||
540 | signal: "elm,action,slot,top,show"; | ||
541 | source: "elm"; | ||
542 | action: STATE_SET "visible" 0.0; | ||
543 | transition: DECELERATE 0.5; | ||
544 | target: "top"; | ||
545 | target: "elm.swallow.slot.top"; | ||
546 | } | ||
547 | program { name: "tophide"; | ||
548 | signal: "elm,action,slot,top,hide"; | ||
549 | source: "elm"; | ||
550 | action: STATE_SET "default" 0.0; | ||
551 | transition: DECELERATE 0.5; | ||
552 | target: "top"; | ||
553 | target: "elm.swallow.slot.top"; | ||
554 | } | ||
555 | program { name: "bottomshow"; | ||
556 | signal: "elm,action,slot,bottom,show"; | ||
557 | source: "elm"; | ||
558 | action: STATE_SET "visible" 0.0; | ||
559 | transition: DECELERATE 0.5; | ||
560 | target: "bottom"; | ||
561 | target: "elm.swallow.slot.bottom"; | ||
562 | } | ||
563 | program { name: "bottomhide"; | ||
564 | signal: "elm,action,slot,bottom,hide"; | ||
565 | source: "elm"; | ||
566 | action: STATE_SET "default" 0.0; | ||
567 | transition: DECELERATE 0.5; | ||
568 | target: "bottom"; | ||
569 | target: "elm.swallow.slot.bottom"; | ||
570 | } | ||
571 | } | ||
572 | } | ||
573 | |||
574 | //In the hover used by the menu only the bottom part is used. | ||
575 | group { name: "elm/hover/base/menu"; | ||
576 | images { | ||
577 | image: "shad_circ.png" COMP; | ||
578 | image: "bt_dis_base.png" COMP; | ||
579 | } | ||
580 | parts { | ||
581 | part { name: "elm.swallow.offset"; | ||
582 | type: SWALLOW; | ||
583 | description { state: "default" 0.0; | ||
584 | align: 0.0 0.0; | ||
585 | rel1.relative: 0.0 0.0; | ||
586 | rel2.relative: 0.0 0.0; | ||
587 | } | ||
588 | } | ||
589 | part { name: "elm.swallow.size"; | ||
590 | type: SWALLOW; | ||
591 | description { state: "default" 0.0; | ||
592 | align: 0.0 0.0; | ||
593 | rel1.to: "elm.swallow.offset"; | ||
594 | rel1.relative: 1.0 1.0; | ||
595 | rel2.to: "elm.swallow.offset"; | ||
596 | rel2.relative: 1.0 1.0; | ||
597 | } | ||
598 | } | ||
599 | part { name: "base"; | ||
600 | type: RECT; | ||
601 | mouse_events: 1; | ||
602 | description { state: "default" 0.0; | ||
603 | color: 0 0 0 0; | ||
604 | } | ||
605 | description { state: "visible" 0.0; | ||
606 | inherit: "default" 1.0; | ||
607 | color: 0 0 0 64; | ||
608 | } | ||
609 | } | ||
610 | part { name: "elm.swallow.slot.left"; | ||
611 | type: SWALLOW; | ||
612 | description { state: "default" 0.0; | ||
613 | } | ||
614 | } | ||
615 | part { name: "elm.swallow.slot.right"; | ||
616 | type: SWALLOW; | ||
617 | description { state: "default" 0.0; | ||
618 | } | ||
619 | } | ||
620 | part { name: "elm.swallow.slot.top"; | ||
621 | type: SWALLOW; | ||
622 | description { state: "default" 0.0; | ||
623 | } | ||
624 | description { state: "visible" 0.0; | ||
625 | inherit: "default" 0.0; | ||
626 | } | ||
627 | } | ||
628 | part { name: "bottomclip"; | ||
629 | type: RECT; | ||
630 | description { state: "default" 0.0; | ||
631 | rel1.to_y: "pop"; | ||
632 | rel1.relative: 0.0 1.0; | ||
633 | rel1.offset: -1 -2; | ||
634 | } | ||
635 | } | ||
636 | part { name: "bottom"; | ||
637 | clip_to: "bottomclip"; | ||
638 | description { state: "default" 0.0; | ||
639 | visible: 0; | ||
640 | rel1.to: "elm.swallow.slot.bottom"; | ||
641 | rel1.offset: -5 -5; | ||
642 | rel2.to: "elm.swallow.slot.bottom"; | ||
643 | rel2.offset: 4 4; | ||
644 | image { | ||
645 | normal: "bt_dis_base.png"; | ||
646 | border: 4 4 4 4; | ||
647 | } | ||
648 | image.middle: SOLID; | ||
649 | } | ||
650 | description { state: "visible" 0.0; | ||
651 | inherit: "default" 0.0; | ||
652 | visible: 1; | ||
653 | } | ||
654 | } | ||
655 | part { name: "elm.swallow.slot.bottom"; | ||
656 | type: SWALLOW; | ||
657 | clip_to: "bottomclip"; | ||
658 | description { state: "default" 0.0; | ||
659 | align: 0.5 1.0; | ||
660 | rel1.to: "elm.swallow.slot.middle"; | ||
661 | rel1.relative: 0.0 1.0; | ||
662 | rel1.offset: 0 0; | ||
663 | rel2.to: "elm.swallow.slot.middle"; | ||
664 | rel2.relative: 1.0 1.0; | ||
665 | rel2.offset: -1 0; | ||
666 | } | ||
667 | description { state: "visible" 0.0; | ||
668 | inherit: "default" 0.0; | ||
669 | rel1.offset: 0 6; | ||
670 | rel2.offset: -1 6; | ||
671 | align: 0.5 0.0; | ||
672 | } | ||
673 | } | ||
674 | part { name: "pop"; | ||
675 | mouse_events: 1; | ||
676 | repeat_events:1; | ||
677 | description { state: "default" 0.0; | ||
678 | rel1.to: "elm.swallow.slot.middle"; | ||
679 | rel1.offset: -5 -5; | ||
680 | rel2.to: "elm.swallow.slot.middle"; | ||
681 | rel2.offset: 4 4; | ||
682 | } | ||
683 | } | ||
684 | part { name: "elm.swallow.slot.middle"; | ||
685 | type: SWALLOW; | ||
686 | repeat_events:1; | ||
687 | description { state: "default" 0.0; | ||
688 | rel1.to: "elm.swallow.size"; | ||
689 | rel2.to: "elm.swallow.size"; | ||
690 | } | ||
691 | } | ||
692 | } | ||
693 | programs { | ||
694 | program { name: "end"; | ||
695 | signal: "mouse,up,1"; | ||
696 | source: "base"; | ||
697 | action: SIGNAL_EMIT "elm,action,dismiss" ""; | ||
698 | } | ||
699 | program { name: "show"; | ||
700 | signal: "elm,action,show"; | ||
701 | source: "elm"; | ||
702 | action: STATE_SET "visible" 0.0; | ||
703 | // transition: DECELERATE 0.5; | ||
704 | target: "base"; | ||
705 | } | ||
706 | program { name: "hide"; | ||
707 | signal: "elm,action,hide"; | ||
708 | source: "elm"; | ||
709 | action: STATE_SET "default" 0.0; | ||
710 | // transition: DECELERATE 0.5; | ||
711 | target: "base"; | ||
712 | } | ||
713 | program { name: "bottomshow"; | ||
714 | signal: "elm,action,slot,bottom,show"; | ||
715 | source: "elm"; | ||
716 | action: STATE_SET "visible" 0.0; | ||
717 | transition: DECELERATE 0.3; | ||
718 | target: "bottom"; | ||
719 | target: "elm.swallow.slot.bottom"; | ||
720 | } | ||
721 | program { name: "bottomhide"; | ||
722 | signal: "elm,action,slot,bottom,hide"; | ||
723 | source: "elm"; | ||
724 | action: STATE_SET "default" 0.0; | ||
725 | transition: DECELERATE 0.5; | ||
726 | target: "bottom"; | ||
727 | target: "elm.swallow.slot.bottom"; | ||
728 | } | ||
729 | } | ||
730 | } | ||
731 | |||
732 | //In the hover used by the submenu only the bottom part is used | ||
733 | //and no part should interact except the bottom area | ||
734 | group { name: "elm/hover/base/submenu"; | ||
735 | images { | ||
736 | image: "shad_circ.png" COMP; | ||
737 | image: "bt_dis_base.png" COMP; | ||
738 | } | ||
739 | parts { | ||
740 | part { name: "elm.swallow.offset"; | ||
741 | type: SWALLOW; | ||
742 | repeat_events:1; | ||
743 | description { state: "default" 0.0; | ||
744 | align: 0.0 0.0; | ||
745 | rel1.relative: 0.0 0.0; | ||
746 | rel2.relative: 0.0 0.0; | ||
747 | } | ||
748 | } | ||
749 | part { name: "elm.swallow.size"; | ||
750 | type: SWALLOW; | ||
751 | description { state: "default" 0.0; | ||
752 | align: 0.0 0.0; | ||
753 | rel1.to: "elm.swallow.offset"; | ||
754 | rel1.relative: 1.0 1.0; | ||
755 | rel2.to: "elm.swallow.offset"; | ||
756 | rel2.relative: 1.0 1.0; | ||
757 | } | ||
758 | } | ||
759 | //here we do non catch events like the hover hover does | ||
760 | part { name: "base"; | ||
761 | type: RECT; | ||
762 | mouse_events: 1; | ||
763 | description { state: "default" 0.0; | ||
764 | color: 0 0 0 0; | ||
765 | visible: 0; | ||
766 | } | ||
767 | } | ||
768 | part { name: "elm.swallow.slot.left"; | ||
769 | type: SWALLOW; | ||
770 | description { state: "default" 0.0; | ||
771 | } | ||
772 | } | ||
773 | part { name: "elm.swallow.slot.right"; | ||
774 | type: SWALLOW; | ||
775 | description { state: "default" 0.0; | ||
776 | } | ||
777 | } | ||
778 | part { name: "elm.swallow.slot.top"; | ||
779 | type: SWALLOW; | ||
780 | description { state: "default" 0.0; | ||
781 | } | ||
782 | } | ||
783 | part { name: "bottomclip"; | ||
784 | type: RECT; | ||
785 | description { state: "default" 0.0; | ||
786 | rel1.to_y: "pop"; | ||
787 | rel1.relative: 0.0 1.0; | ||
788 | rel1.offset: -1 -2; | ||
789 | } | ||
790 | } | ||
791 | part { name: "bottom"; | ||
792 | clip_to: "bottomclip"; | ||
793 | description { state: "default" 0.0; | ||
794 | visible: 0; | ||
795 | rel1.to: "elm.swallow.slot.bottom"; | ||
796 | rel1.offset: -5 -5; | ||
797 | rel2.to: "elm.swallow.slot.bottom"; | ||
798 | rel2.offset: 4 4; | ||
799 | image { | ||
800 | normal: "bt_dis_base.png"; | ||
801 | border: 4 4 4 4; | ||
802 | } | ||
803 | image.middle: SOLID; | ||
804 | } | ||
805 | description { state: "visible" 0.0; | ||
806 | inherit: "default" 0.0; | ||
807 | visible: 1; | ||
808 | } | ||
809 | } | ||
810 | part { name: "elm.swallow.slot.bottom"; | ||
811 | type: SWALLOW; | ||
812 | clip_to: "bottomclip"; | ||
813 | description { state: "default" 0.0; | ||
814 | align: 0.5 1.0; | ||
815 | rel1.to: "elm.swallow.slot.middle"; | ||
816 | rel1.relative: 0.0 1.0; | ||
817 | rel1.offset: 0 0; | ||
818 | rel2.to: "elm.swallow.slot.middle"; | ||
819 | rel2.relative: 1.0 1.0; | ||
820 | rel2.offset: -1 0; | ||
821 | } | ||
822 | description { state: "visible" 0.0; | ||
823 | inherit: "default" 0.0; | ||
824 | rel1.offset: 0 6; | ||
825 | rel2.offset: -1 6; | ||
826 | align: 0.5 0.0; | ||
827 | } | ||
828 | } | ||
829 | part { name: "pop"; | ||
830 | mouse_events: 1; | ||
831 | repeat_events:1; | ||
832 | description { state: "default" 0.0; | ||
833 | rel1.to: "elm.swallow.slot.middle"; | ||
834 | rel1.offset: -5 -5; | ||
835 | rel2.to: "elm.swallow.slot.middle"; | ||
836 | rel2.offset: 4 4; | ||
837 | } | ||
838 | } | ||
839 | part { name: "elm.swallow.slot.middle"; | ||
840 | type: SWALLOW; | ||
841 | repeat_events:1; | ||
842 | description { state: "default" 0.0; | ||
843 | rel1.to: "elm.swallow.size"; | ||
844 | rel2.to: "elm.swallow.size"; | ||
845 | } | ||
846 | } | ||
847 | } | ||
848 | programs { | ||
849 | program { name: "end"; | ||
850 | signal: "mouse,up,1"; | ||
851 | source: "base"; | ||
852 | action: SIGNAL_EMIT "elm,action,dismiss" ""; | ||
853 | } | ||
854 | program { name: "show"; | ||
855 | signal: "elm,action,show"; | ||
856 | source: "elm"; | ||
857 | action: STATE_SET "visible" 0.0; | ||
858 | // transition: DECELERATE 0.5; | ||
859 | target: "base"; | ||
860 | } | ||
861 | program { name: "hide"; | ||
862 | signal: "elm,action,hide"; | ||
863 | source: "elm"; | ||
864 | action: STATE_SET "default" 0.0; | ||
865 | // transition: DECELERATE 0.5; | ||
866 | target: "base"; | ||
867 | } | ||
868 | program { name: "bottomshow"; | ||
869 | signal: "elm,action,slot,bottom,show"; | ||
870 | source: "elm"; | ||
871 | action: STATE_SET "visible" 0.0; | ||
872 | transition: DECELERATE 0.3; | ||
873 | target: "bottom"; | ||
874 | target: "elm.swallow.slot.bottom"; | ||
875 | } | ||
876 | program { name: "bottomhide"; | ||
877 | signal: "elm,action,slot,bottom,hide"; | ||
878 | source: "elm"; | ||
879 | action: STATE_SET "default" 0.0; | ||
880 | transition: DECELERATE 0.5; | ||
881 | target: "bottom"; | ||
882 | target: "elm.swallow.slot.bottom"; | ||
883 | } | ||
884 | } | ||
885 | } | ||
886 | |||
887 | group { name: "elm/hover/base/hoversel_vertical/default"; | ||
888 | alias: "elm/hover/base/hoversel_vertical/entry"; | ||
889 | images { | ||
890 | // image: "shad_circ.png" COMP; | ||
891 | image: "bt_base2.png" COMP; | ||
892 | image: "bt_hilight.png" COMP; | ||
893 | image: "bt_shine.png" COMP; | ||
894 | image: "outdent-top.png" COMP; | ||
895 | image: "outdent-bottom.png" COMP; | ||
896 | } | ||
897 | parts { | ||
898 | part { name: "elm.swallow.offset"; | ||
899 | type: SWALLOW; | ||
900 | description { state: "default" 0.0; | ||
901 | align: 0.0 0.0; | ||
902 | rel1.relative: 0.0 0.0; | ||
903 | rel2.relative: 0.0 0.0; | ||
904 | } | ||
905 | } | ||
906 | part { name: "elm.swallow.size"; | ||
907 | type: SWALLOW; | ||
908 | description { state: "default" 0.0; | ||
909 | align: 0.0 0.0; | ||
910 | rel1.to: "elm.swallow.offset"; | ||
911 | rel1.relative: 1.0 1.0; | ||
912 | rel2.to: "elm.swallow.offset"; | ||
913 | rel2.relative: 1.0 1.0; | ||
914 | } | ||
915 | } | ||
916 | /* | ||
917 | part { name: "shad"; | ||
918 | mouse_events: 0; | ||
919 | description { state: "default" 0.0; | ||
920 | image.normal: "shad_circ.png"; | ||
921 | rel1.to: "button_image"; | ||
922 | rel1.offset: -64 -64; | ||
923 | rel2.to: "button_image"; | ||
924 | rel2.offset: 63 63; | ||
925 | fill.smooth: 0; | ||
926 | } | ||
927 | } | ||
928 | */ | ||
929 | part { name: "button_image"; | ||
930 | mouse_events: 1; | ||
931 | description { state: "default" 0.0; | ||
932 | rel1.to_x: "elm.swallow.slot.top"; | ||
933 | rel1.to_y: "elm.swallow.slot.top"; | ||
934 | rel1.offset: -2 -6; | ||
935 | rel2.to_x: "elm.swallow.slot.top"; | ||
936 | rel2.to_y: "elm.swallow.slot.bottom"; | ||
937 | rel2.offset: 1 5; | ||
938 | image { | ||
939 | normal: "bt_base2.png"; | ||
940 | border: 7 7 7 7; | ||
941 | } | ||
942 | image.middle: SOLID; | ||
943 | } | ||
944 | description { state: "bottom" 0.0; | ||
945 | rel1.to_x: "elm.swallow.slot.bottom"; | ||
946 | rel1.to_y: "elm.swallow.slot.top"; | ||
947 | rel1.offset: -2 -6; | ||
948 | rel2.to_x: "elm.swallow.slot.bottom"; | ||
949 | rel2.to_y: "elm.swallow.slot.bottom"; | ||
950 | rel2.offset: 1 5; | ||
951 | image { | ||
952 | normal: "bt_base2.png"; | ||
953 | border: 7 7 7 7; | ||
954 | } | ||
955 | image.middle: SOLID; | ||
956 | } | ||
957 | } | ||
958 | |||
959 | part { name: "base"; | ||
960 | type: RECT; | ||
961 | mouse_events: 1; | ||
962 | description { state: "default" 0.0; | ||
963 | color: 0 0 0 0; | ||
964 | } | ||
965 | description { state: "visible" 0.0; | ||
966 | inherit: "default" 1.0; | ||
967 | color: 0 0 0 64; | ||
968 | } | ||
969 | } | ||
970 | |||
971 | part { name: "topclip"; | ||
972 | type: RECT; | ||
973 | description { state: "default" 0.0; | ||
974 | rel2.to_y: "edge_top"; | ||
975 | rel2.relative: 1.0 0.0; | ||
976 | rel2.offset: -1 7; | ||
977 | } | ||
978 | } | ||
979 | part { name: "elm.swallow.slot.top"; | ||
980 | type: SWALLOW; | ||
981 | clip_to: "topclip"; | ||
982 | description { state: "default" 0.0; | ||
983 | visible: 1; | ||
984 | align: 0.5 0.0; | ||
985 | rel1.to: "elm.swallow.slot.middle"; | ||
986 | rel1.relative: 0.0 0.0; | ||
987 | rel1.offset: 0 -1; | ||
988 | rel2.to: "elm.swallow.slot.middle"; | ||
989 | rel2.relative: 1.0 0.0; | ||
990 | rel2.offset: -1 -1; | ||
991 | } | ||
992 | description { state: "visible" 0.0; | ||
993 | inherit: "default" 0.0; | ||
994 | rel1.offset: 0 -7; | ||
995 | rel2.offset: -1 -7; | ||
996 | align: 0.5 1.0; | ||
997 | } | ||
998 | } | ||
999 | |||
1000 | part { name: "bottomclip"; | ||
1001 | type: RECT; | ||
1002 | description { state: "default" 0.0; | ||
1003 | rel1.to_y: "edge_bottom"; | ||
1004 | rel1.relative: 0.0 1.0; | ||
1005 | rel1.offset: -1 -8; | ||
1006 | } | ||
1007 | } | ||
1008 | part { name: "elm.swallow.slot.bottom"; | ||
1009 | type: SWALLOW; | ||
1010 | clip_to: "bottomclip"; | ||
1011 | description { state: "default" 0.0; | ||
1012 | align: 0.5 1.0; | ||
1013 | rel1.to: "elm.swallow.slot.middle"; | ||
1014 | rel1.relative: 0.0 1.0; | ||
1015 | rel1.offset: 0 0; | ||
1016 | rel2.to: "elm.swallow.slot.middle"; | ||
1017 | rel2.relative: 1.0 1.0; | ||
1018 | rel2.offset: -1 0; | ||
1019 | } | ||
1020 | description { state: "visible" 0.0; | ||
1021 | inherit: "default" 0.0; | ||
1022 | rel1.offset: 0 6; | ||
1023 | rel2.offset: -1 6; | ||
1024 | align: 0.5 0.0; | ||
1025 | } | ||
1026 | } | ||
1027 | |||
1028 | part { name: "over1"; | ||
1029 | mouse_events: 0; | ||
1030 | description { state: "default" 0.0; | ||
1031 | rel1.to: "button_image"; | ||
1032 | rel2.to: "button_image"; | ||
1033 | rel2.relative: 1.0 0.5; | ||
1034 | image { | ||
1035 | normal: "bt_hilight.png"; | ||
1036 | border: 7 7 7 0; | ||
1037 | } | ||
1038 | } | ||
1039 | } | ||
1040 | part { name: "over2"; | ||
1041 | mouse_events: 1; | ||
1042 | repeat_events: 1; | ||
1043 | ignore_flags: ON_HOLD; | ||
1044 | description { state: "default" 0.0; | ||
1045 | rel1.to: "button_image"; | ||
1046 | rel2.to: "button_image"; | ||
1047 | image { | ||
1048 | normal: "bt_shine.png"; | ||
1049 | border: 7 7 7 7; | ||
1050 | } | ||
1051 | } | ||
1052 | } | ||
1053 | part { name: "edge_top"; | ||
1054 | mouse_events: 0; | ||
1055 | description { state: "default" 0.0; | ||
1056 | visible: 0; | ||
1057 | rel1 { | ||
1058 | to: "elm.swallow.size"; | ||
1059 | offset: 0 -10; | ||
1060 | } | ||
1061 | rel2 { | ||
1062 | to: "elm.swallow.size"; | ||
1063 | } | ||
1064 | image.normal: "outdent-bottom.png"; | ||
1065 | image.border: 0 0 13 0; | ||
1066 | fill.smooth: 0; | ||
1067 | } | ||
1068 | description { state: "visible" 0.0; | ||
1069 | inherit: "default" 0.0; | ||
1070 | visible: 1; | ||
1071 | } | ||
1072 | } | ||
1073 | part { name: "edge_bottom"; | ||
1074 | mouse_events: 0; | ||
1075 | description { state: "default" 0.0; | ||
1076 | visible: 0; | ||
1077 | rel1 { | ||
1078 | to: "elm.swallow.size"; | ||
1079 | } | ||
1080 | rel2 { | ||
1081 | to: "elm.swallow.size"; | ||
1082 | offset: -1 9; | ||
1083 | } | ||
1084 | image.normal: "outdent-top.png"; | ||
1085 | image.border: 0 0 0 13; | ||
1086 | fill.smooth: 0; | ||
1087 | } | ||
1088 | description { state: "visible" 0.0; | ||
1089 | inherit: "default" 0.0; | ||
1090 | visible: 1; | ||
1091 | } | ||
1092 | } | ||
1093 | part { name: "elm.swallow.slot.middle"; | ||
1094 | type: SWALLOW; | ||
1095 | description { state: "default" 0.0; | ||
1096 | rel1.to: "elm.swallow.size"; | ||
1097 | rel2.to: "elm.swallow.size"; | ||
1098 | } | ||
1099 | } | ||
1100 | } | ||
1101 | programs { | ||
1102 | program { name: "end"; | ||
1103 | signal: "mouse,up,1"; | ||
1104 | source: "base"; | ||
1105 | action: SIGNAL_EMIT "elm,action,dismiss" ""; | ||
1106 | } | ||
1107 | |||
1108 | program { name: "show"; | ||
1109 | signal: "elm,action,show"; | ||
1110 | source: "elm"; | ||
1111 | action: STATE_SET "visible" 0.0; | ||
1112 | // transition: DECELERATE 0.5; | ||
1113 | target: "base"; | ||
1114 | } | ||
1115 | program { name: "hide"; | ||
1116 | signal: "elm,action,hide"; | ||
1117 | source: "elm"; | ||
1118 | action: STATE_SET "default" 0.0; | ||
1119 | // transition: DECELERATE 0.5; | ||
1120 | target: "base"; | ||
1121 | } | ||
1122 | program { name: "topshow"; | ||
1123 | signal: "elm,action,slot,top,show"; | ||
1124 | source: "elm"; | ||
1125 | action: STATE_SET "visible" 0.0; | ||
1126 | target: "edge_top"; | ||
1127 | after: "topshow2"; | ||
1128 | } | ||
1129 | program { name: "topshow2"; | ||
1130 | action: STATE_SET "visible" 0.0; | ||
1131 | transition: DECELERATE 0.5; | ||
1132 | target: "elm.swallow.slot.top"; | ||
1133 | } | ||
1134 | program { name: "topshow3"; | ||
1135 | signal: "elm,action,slot,top,show"; | ||
1136 | source: "elm"; | ||
1137 | action: STATE_SET "default" 0.0; | ||
1138 | target: "button_image"; | ||
1139 | } | ||
1140 | program { name: "tophide"; | ||
1141 | signal: "elm,action,slot,top,hide"; | ||
1142 | source: "elm"; | ||
1143 | action: STATE_SET "default" 0.0; | ||
1144 | transition: DECELERATE 0.5; | ||
1145 | target: "elm.swallow.slot.top"; | ||
1146 | after: "tophide2"; | ||
1147 | } | ||
1148 | program { name: "tophide2"; | ||
1149 | action: STATE_SET "default" 0.0; | ||
1150 | target: "edge_top"; | ||
1151 | } | ||
1152 | program { name: "bottomshow"; | ||
1153 | signal: "elm,action,slot,bottom,show"; | ||
1154 | source: "elm"; | ||
1155 | action: STATE_SET "visible" 0.0; | ||
1156 | target: "edge_bottom"; | ||
1157 | after: "bottomshow2"; | ||
1158 | } | ||
1159 | program { name: "bottomshow2"; | ||
1160 | action: STATE_SET "visible" 0.0; | ||
1161 | transition: DECELERATE 0.5; | ||
1162 | target: "elm.swallow.slot.bottom"; | ||
1163 | } | ||
1164 | program { name: "bottomshow3"; | ||
1165 | signal: "elm,action,slot,bottom,show"; | ||
1166 | source: "elm"; | ||
1167 | action: STATE_SET "bottom" 0.0; | ||
1168 | target: "button_image"; | ||
1169 | } | ||
1170 | program { name: "bottomhide"; | ||
1171 | signal: "elm,action,slot,bottom,hide"; | ||
1172 | source: "elm"; | ||
1173 | action: STATE_SET "default" 0.0; | ||
1174 | transition: DECELERATE 0.5; | ||
1175 | target: "elm.swallow.slot.bottom"; | ||
1176 | after: "bottomhide2"; | ||
1177 | } | ||
1178 | program { name: "bottomhide2"; | ||
1179 | action: STATE_SET "default" 0.0; | ||
1180 | target: "edge_bottom"; | ||
1181 | } | ||
1182 | } | ||
1183 | } | ||
1184 | /////////////////////////////////////////////////////////////////////////////// | ||
diff --git a/libraries/elementary/data/themes/widgets/icon.edc b/libraries/elementary/data/themes/widgets/icon.edc new file mode 100644 index 0000000..452365c --- /dev/null +++ b/libraries/elementary/data/themes/widgets/icon.edc | |||
@@ -0,0 +1,59 @@ | |||
1 | #define GROUP_ALIAS_ICON(Name, Alias, File, Min, Max) \ | ||
2 | group { name: "elm/icon/"##Name##"/default"; min: Min Min; max: Max Max; \ | ||
3 | alias: "elm/icon/"##Alias##"/default"; \ | ||
4 | images.image: File COMP; parts { part { name: "base"; \ | ||
5 | description { aspect: 1.0 1.0; aspect_preference: BOTH; \ | ||
6 | image.normal: File; } } } } | ||
7 | |||
8 | #define GROUP_ICON(Name, File, Min, Max) \ | ||
9 | group { name: "elm/icon/"##Name##"/default"; min: Min Min; max: Max Max; \ | ||
10 | images.image: File COMP; parts { part { name: "base"; \ | ||
11 | description { aspect: 1.0 1.0; aspect_preference: BOTH; \ | ||
12 | image.normal: File; } } } } | ||
13 | |||
14 | group { name: "elm/icon/arrow_down/default"; | ||
15 | alias: "elm/icon/toolbar/arrow_down/default"; | ||
16 | alias: "elm/icon/toolbar/more_menu/default"; min: 32 32; | ||
17 | images.image: "icon_arrow_down.png" COMP; parts { part { name: "base"; | ||
18 | description { state: "default" 0.0; aspect: 1.0 1.0; aspect_preference: BOTH; | ||
19 | image.normal: "icon_arrow_down.png"; } } } } | ||
20 | |||
21 | GROUP_ALIAS_ICON("home", "toolbar/home", "icon_home.png", 32, 0); | ||
22 | GROUP_ALIAS_ICON("close", "toolbar/close", "icon_close.png", 32, 0); | ||
23 | GROUP_ALIAS_ICON("apps", "toolbar/apps", "icon_apps.png", 32, 0); | ||
24 | GROUP_ALIAS_ICON("arrow_up", "toolbar/arrow_up", "icon_arrow_up.png", 32, 0); | ||
25 | GROUP_ALIAS_ICON("arrow_left", "toolbar/arrow_left", "icon_arrow_left.png", 32, 0); | ||
26 | GROUP_ALIAS_ICON("arrow_right", "toolbar/arrow_right", "icon_arrow_right.png", 32, 0); | ||
27 | GROUP_ALIAS_ICON("chat", "toolbar/chat", "icon_chat.png", 32, 0); | ||
28 | GROUP_ALIAS_ICON("clock", "toolbar/clock", "icon_clock.png", 32, 0); | ||
29 | GROUP_ALIAS_ICON("delete", "toolbar/delete", "icon_delete.png", 32, 0); | ||
30 | GROUP_ALIAS_ICON("edit", "toolbar/edit", "icon_edit.png", 32, 0); | ||
31 | GROUP_ALIAS_ICON("refresh", "toolbar/refresh", "icon_refresh.png", 32, 0); | ||
32 | GROUP_ALIAS_ICON("folder", "toolbar/folder", "icon_folder.png", 32, 0); | ||
33 | GROUP_ALIAS_ICON("file", "toolbar/file", "icon_file.png", 32, 0); | ||
34 | /////////////////////////////////////////////////////////////////////////////// | ||
35 | GROUP_ICON("menu/home", "icon_home.png", 24, 24); | ||
36 | GROUP_ICON("menu/close", "icon_close.png", 24, 24); | ||
37 | GROUP_ICON("menu/apps", "icon_apps.png", 24, 24); | ||
38 | GROUP_ICON("menu/arrow_up", "icon_arrow_up.png", 24, 24); | ||
39 | GROUP_ICON("menu/arrow_down", "icon_arrow_down.png", 24, 24); | ||
40 | GROUP_ICON("menu/arrow_left", "icon_arrow_left.png", 24, 24); | ||
41 | GROUP_ICON("menu/arrow_right", "icon_arrow_right.png", 24, 24); | ||
42 | GROUP_ICON("menu/chat", "icon_chat.png", 24, 24); | ||
43 | GROUP_ICON("menu/clock", "icon_clock.png", 24, 24); | ||
44 | GROUP_ICON("menu/delete", "icon_delete.png", 24, 24); | ||
45 | GROUP_ICON("menu/edit", "icon_edit.png", 24, 24); | ||
46 | GROUP_ICON("menu/refresh", "icon_refresh.png", 24, 24); | ||
47 | GROUP_ICON("menu/folder", "icon_folder.png", 24, 24); | ||
48 | GROUP_ICON("menu/file", "icon_file.png", 24, 24); | ||
49 | |||
50 | GROUP_ICON("media_player/forward", "mp_forward.png", 16, 0); | ||
51 | GROUP_ICON("media_player/info", "mp_info.png", 16, 0); | ||
52 | GROUP_ICON("media_player/next", "mp_next.png", 16, 0); | ||
53 | GROUP_ICON("media_player/pause", "mp_pause.png", 16, 0); | ||
54 | GROUP_ICON("media_player/play", "mp_play.png", 16, 0); | ||
55 | GROUP_ICON("media_player/prev", "mp_prev.png", 16, 0); | ||
56 | GROUP_ICON("media_player/rewind", "mp_rewind.png", 16, 0); | ||
57 | GROUP_ICON("media_player/stop", "mp_stop.png", 16, 0); | ||
58 | |||
59 | /////////////////////////////////////////////////////////////////////////////// | ||
diff --git a/libraries/elementary/data/themes/widgets/index.edc b/libraries/elementary/data/themes/widgets/index.edc new file mode 100644 index 0000000..73833c6 --- /dev/null +++ b/libraries/elementary/data/themes/widgets/index.edc | |||
@@ -0,0 +1,808 @@ | |||
1 | group { name: "elm/index/base/vertical/default"; | ||
2 | images { | ||
3 | image: "bt_base1.png" COMP; | ||
4 | image: "bt_base2.png" COMP; | ||
5 | image: "bt_hilight.png" COMP; | ||
6 | image: "bt_shine.png" COMP; | ||
7 | } | ||
8 | parts { | ||
9 | part { name: "clip"; | ||
10 | type: RECT; | ||
11 | mouse_events: 0; | ||
12 | description { state: "default" 0.0; | ||
13 | visible: 0; | ||
14 | color: 255 255 255 0; | ||
15 | } | ||
16 | description { state: "active" 0.0; | ||
17 | visible: 1; | ||
18 | color: 255 255 255 255; | ||
19 | } | ||
20 | } | ||
21 | part { name: "clip2"; | ||
22 | type: RECT; | ||
23 | mouse_events: 0; | ||
24 | clip_to: "clip"; | ||
25 | description { state: "default" 0.0; | ||
26 | visible: 0; | ||
27 | color: 255 255 255 0; | ||
28 | } | ||
29 | description { state: "active" 0.0; | ||
30 | visible: 1; | ||
31 | color: 255 255 255 255; | ||
32 | } | ||
33 | } | ||
34 | part { name: "elm.swallow.index.0"; | ||
35 | type: SWALLOW; | ||
36 | clip_to: "clip"; | ||
37 | description { state: "default" 0.0; | ||
38 | align: 1.0 0.5; | ||
39 | fixed: 1 1; | ||
40 | rel1 { | ||
41 | relative: 1.0 0.5; | ||
42 | offset: -1 5; | ||
43 | } | ||
44 | rel2 { | ||
45 | relative: 1.0 0.5; | ||
46 | offset: -1 -6; | ||
47 | } | ||
48 | } | ||
49 | } | ||
50 | part { name: "button_image"; | ||
51 | mouse_events: 1; | ||
52 | clip_to: "clip2"; | ||
53 | description { state: "default" 0.0; | ||
54 | rel1 { | ||
55 | to: "elm.text.body"; | ||
56 | offset: -5 -5; | ||
57 | } | ||
58 | rel2 { | ||
59 | to: "elm.text"; | ||
60 | offset: 4 4; | ||
61 | } | ||
62 | image { | ||
63 | normal: "bt_base2.png"; | ||
64 | border: 7 7 7 7; | ||
65 | } | ||
66 | image.middle: SOLID; | ||
67 | } | ||
68 | } | ||
69 | part { name: "elm.text.body"; | ||
70 | type: TEXT; | ||
71 | effect: SOFT_SHADOW; | ||
72 | mouse_events: 0; | ||
73 | scale: 1; | ||
74 | clip_to: "clip2"; | ||
75 | description { state: "default" 0.0; | ||
76 | align: 1.0 0.5; | ||
77 | fixed: 1 1; | ||
78 | rel1 { | ||
79 | to: "elm.text"; | ||
80 | relative: 0.0 0.0; | ||
81 | offset: 5 0; | ||
82 | } | ||
83 | rel2 { | ||
84 | to: "elm.text"; | ||
85 | relative: 0.0 1.0; | ||
86 | offset: 5 -1; | ||
87 | } | ||
88 | color: 224 224 224 255; | ||
89 | color3: 0 0 0 64; | ||
90 | text { | ||
91 | font: "Sans,Edje-Vera"; | ||
92 | size: 20; | ||
93 | min: 1 1; | ||
94 | align: 1.0 0.5; | ||
95 | } | ||
96 | } | ||
97 | } | ||
98 | part { name: "elm.text"; | ||
99 | type: TEXT; | ||
100 | effect: SOFT_SHADOW; | ||
101 | mouse_events: 0; | ||
102 | scale: 1; | ||
103 | clip_to: "clip2"; | ||
104 | description { state: "default" 0.0; | ||
105 | align: 1.0 0.5; | ||
106 | fixed: 1 1; | ||
107 | rel1 { | ||
108 | to_x: "elm.swallow.event.0"; | ||
109 | to_y: "elm.dragable.pointer"; | ||
110 | relative: 0.0 0.5; | ||
111 | offset: -16 0; | ||
112 | } | ||
113 | rel2 { | ||
114 | to_x: "elm.swallow.event.0"; | ||
115 | to_y: "elm.dragable.pointer"; | ||
116 | relative: 0.0 0.5; | ||
117 | offset: -16 -1; | ||
118 | } | ||
119 | color: 255 0 0 255; | ||
120 | color3: 0 0 0 64; | ||
121 | text { | ||
122 | font: "Sans,Edje-Vera"; | ||
123 | size: 20; | ||
124 | min: 1 1; | ||
125 | align: 1.0 0.5; | ||
126 | } | ||
127 | } | ||
128 | } | ||
129 | part { name: "over1"; | ||
130 | mouse_events: 0; | ||
131 | clip_to: "clip2"; | ||
132 | description { state: "default" 0.0; | ||
133 | rel1 { | ||
134 | to: "button_image"; | ||
135 | } | ||
136 | rel2 { | ||
137 | to: "button_image"; | ||
138 | relative: 1.0 0.5; | ||
139 | } | ||
140 | image { | ||
141 | normal: "bt_hilight.png"; | ||
142 | border: 7 7 7 0; | ||
143 | } | ||
144 | } | ||
145 | } | ||
146 | part { name: "over2"; | ||
147 | mouse_events: 1; | ||
148 | repeat_events: 1; | ||
149 | ignore_flags: ON_HOLD; | ||
150 | clip_to: "clip2"; | ||
151 | description { state: "default" 0.0; | ||
152 | rel1 { | ||
153 | to: "button_image"; | ||
154 | } | ||
155 | rel2 { | ||
156 | to: "button_image"; | ||
157 | } | ||
158 | image { | ||
159 | normal: "bt_shine.png"; | ||
160 | border: 7 7 7 7; | ||
161 | } | ||
162 | } | ||
163 | } | ||
164 | part { name: "elm.dragable.pointer"; | ||
165 | type: RECT; | ||
166 | mouse_events: 0; | ||
167 | dragable { | ||
168 | x: 1 1 0; | ||
169 | y: 1 1 0; | ||
170 | } | ||
171 | clip_to: "clip"; | ||
172 | description { state: "default" 0.0; | ||
173 | fixed: 1 1; | ||
174 | min: 8 8; | ||
175 | max: 8 8; | ||
176 | visible: 0; | ||
177 | rel1 { | ||
178 | relative: 0.0 0.0; | ||
179 | offset: 0 0; | ||
180 | } | ||
181 | rel2 { | ||
182 | relative: 0.0 0.0; | ||
183 | offset: 0 0; | ||
184 | } | ||
185 | } | ||
186 | } | ||
187 | part { name: "elm.swallow.event.0"; | ||
188 | type: SWALLOW; | ||
189 | description { state: "default" 0.0; | ||
190 | align: 1.0 0.5; | ||
191 | fixed: 1 1; | ||
192 | rel1 { | ||
193 | relative: 1.0 0.0; | ||
194 | offset: -1 0; | ||
195 | } | ||
196 | rel2 { | ||
197 | relative: 1.0 1.0; | ||
198 | offset: -1 -1; | ||
199 | } | ||
200 | } | ||
201 | } | ||
202 | } | ||
203 | programs { | ||
204 | program { name: "active"; | ||
205 | signal: "elm,state,active"; | ||
206 | source: "elm"; | ||
207 | action: STATE_SET "active" 0.0; | ||
208 | transition: DECELERATE 0.5; | ||
209 | target: "clip"; | ||
210 | } | ||
211 | program { name: "inactive"; | ||
212 | signal: "elm,state,inactive"; | ||
213 | source: "elm"; | ||
214 | action: STATE_SET "default" 0.0; | ||
215 | transition: DECELERATE 0.5; | ||
216 | target: "clip"; | ||
217 | } | ||
218 | program { name: "active2"; | ||
219 | signal: "elm,indicator,state,active"; | ||
220 | source: "elm"; | ||
221 | action: STATE_SET "active" 0.0; | ||
222 | transition: DECELERATE 0.5; | ||
223 | target: "clip2"; | ||
224 | } | ||
225 | program { name: "inactive2"; | ||
226 | signal: "elm,indicator,state,inactive"; | ||
227 | source: "elm"; | ||
228 | action: STATE_SET "default" 0.0; | ||
229 | transition: DECELERATE 0.5; | ||
230 | target: "clip2"; | ||
231 | } | ||
232 | } | ||
233 | } | ||
234 | |||
235 | group { name: "elm/index/item/vertical/default"; | ||
236 | data.item: "stacking" "above"; | ||
237 | data.item: "selectraise" "on"; | ||
238 | images { | ||
239 | image: "ilist_1.png" COMP; | ||
240 | image: "ilist_item_shadow.png" COMP; | ||
241 | } | ||
242 | parts { | ||
243 | part { | ||
244 | name: "base_sh"; | ||
245 | mouse_events: 0; | ||
246 | description { | ||
247 | state: "default" 0.0; | ||
248 | align: 0.0 0.0; | ||
249 | min: 0 10; | ||
250 | fixed: 1 1; | ||
251 | rel1 { | ||
252 | to: "base"; | ||
253 | relative: 0.0 1.0; | ||
254 | offset: 0 0; | ||
255 | } | ||
256 | rel2 { | ||
257 | to: "base"; | ||
258 | relative: 1.0 1.0; | ||
259 | offset: -1 0; | ||
260 | } | ||
261 | image { | ||
262 | normal: "ilist_item_shadow.png"; | ||
263 | } | ||
264 | fill.smooth: 0; | ||
265 | } | ||
266 | } | ||
267 | part { | ||
268 | name: "base"; | ||
269 | mouse_events: 0; | ||
270 | description { | ||
271 | state: "default" 0.0; | ||
272 | image { | ||
273 | normal: "ilist_1.png"; | ||
274 | border: 2 2 2 2; | ||
275 | } | ||
276 | fill.smooth: 0; | ||
277 | } | ||
278 | description { state: "active" 0.0; | ||
279 | inherit: "default" 0.0; | ||
280 | rel1 { | ||
281 | offset: -16 0; | ||
282 | } | ||
283 | } | ||
284 | } | ||
285 | part { name: "elm.text"; | ||
286 | type: TEXT; | ||
287 | mouse_events: 0; | ||
288 | scale: 1; | ||
289 | description { | ||
290 | state: "default" 0.0; | ||
291 | // min: 16 16; | ||
292 | rel1 { | ||
293 | to: "base"; | ||
294 | relative: 0.0 0.0; | ||
295 | offset: 4 4; | ||
296 | } | ||
297 | rel2 { | ||
298 | to: "base"; | ||
299 | relative: 0.5 1.0; | ||
300 | offset: -1 -1; | ||
301 | } | ||
302 | color: 0 0 0 128; | ||
303 | text { | ||
304 | font: "Sans"; | ||
305 | size: 10; | ||
306 | min: 1 1; | ||
307 | // min: 0 1; | ||
308 | align: 0.5 0.5; | ||
309 | } | ||
310 | } | ||
311 | description { state: "active" 0.0; | ||
312 | inherit: "default" 0.0; | ||
313 | color: 0 0 0 255; | ||
314 | } | ||
315 | } | ||
316 | } | ||
317 | programs { | ||
318 | program { name: "active"; | ||
319 | signal: "elm,state,active"; | ||
320 | source: "elm"; | ||
321 | action: STATE_SET "active" 0.0; | ||
322 | transition: DECELERATE 0.5; | ||
323 | target: "elm.text"; | ||
324 | target: "base"; | ||
325 | } | ||
326 | program { name: "inactive"; | ||
327 | signal: "elm,state,inactive"; | ||
328 | source: "elm"; | ||
329 | action: STATE_SET "default" 0.0; | ||
330 | transition: DECELERATE 0.5; | ||
331 | target: "elm.text"; | ||
332 | target: "base"; | ||
333 | } | ||
334 | } | ||
335 | } | ||
336 | |||
337 | group { name: "elm/index/item_odd/vertical/default"; | ||
338 | data.item: "stacking" "below"; | ||
339 | images { | ||
340 | image: "ilist_2.png" COMP; | ||
341 | } | ||
342 | parts { | ||
343 | part { | ||
344 | name: "base"; | ||
345 | mouse_events: 0; | ||
346 | description { | ||
347 | state: "default" 0.0; | ||
348 | image { | ||
349 | normal: "ilist_2.png"; | ||
350 | border: 2 2 2 2; | ||
351 | } | ||
352 | fill.smooth: 0; | ||
353 | } | ||
354 | description { state: "active" 0.0; | ||
355 | inherit: "default" 0.0; | ||
356 | rel1 { | ||
357 | offset: -16 0; | ||
358 | } | ||
359 | } | ||
360 | } | ||
361 | part { name: "elm.text"; | ||
362 | type: TEXT; | ||
363 | mouse_events: 0; | ||
364 | scale: 1; | ||
365 | description { | ||
366 | state: "default" 0.0; | ||
367 | // min: 16 16; | ||
368 | rel1 { | ||
369 | to: "base"; | ||
370 | relative: 0.0 0.0; | ||
371 | offset: 4 4; | ||
372 | } | ||
373 | rel2 { | ||
374 | to: "base"; | ||
375 | relative: 0.5 1.0; | ||
376 | offset: -1 -1; | ||
377 | } | ||
378 | color: 0 0 0 128; | ||
379 | text { | ||
380 | font: "Sans"; | ||
381 | size: 10; | ||
382 | min: 1 1; | ||
383 | // min: 0 1; | ||
384 | align: 0.5 0.5; | ||
385 | } | ||
386 | } | ||
387 | description { state: "active" 0.0; | ||
388 | inherit: "default" 0.0; | ||
389 | color: 0 0 0 255; | ||
390 | } | ||
391 | } | ||
392 | } | ||
393 | programs { | ||
394 | program { name: "active"; | ||
395 | signal: "elm,state,active"; | ||
396 | source: "elm"; | ||
397 | action: STATE_SET "active" 0.0; | ||
398 | transition: DECELERATE 0.5; | ||
399 | target: "elm.text"; | ||
400 | target: "base"; | ||
401 | } | ||
402 | program { name: "inactive"; | ||
403 | signal: "elm,state,inactive"; | ||
404 | source: "elm"; | ||
405 | action: STATE_SET "default" 0.0; | ||
406 | transition: DECELERATE 0.5; | ||
407 | target: "elm.text"; | ||
408 | target: "base"; | ||
409 | } | ||
410 | } | ||
411 | } | ||
412 | group { name: "elm/index/base/horizontal/default"; | ||
413 | images { | ||
414 | image: "bt_base1.png" COMP; | ||
415 | image: "bt_base2.png" COMP; | ||
416 | image: "bt_hilight.png" COMP; | ||
417 | image: "bt_shine.png" COMP; | ||
418 | } | ||
419 | parts { | ||
420 | part { name: "clip"; | ||
421 | type: RECT; | ||
422 | mouse_events: 0; | ||
423 | description { state: "default" 0.0; | ||
424 | visible: 0; | ||
425 | color: 255 255 255 0; | ||
426 | } | ||
427 | description { state: "active" 0.0; | ||
428 | visible: 1; | ||
429 | color: 255 255 255 255; | ||
430 | } | ||
431 | } | ||
432 | part { name: "clip2"; | ||
433 | type: RECT; | ||
434 | mouse_events: 0; | ||
435 | clip_to: "clip"; | ||
436 | description { state: "default" 0.0; | ||
437 | visible: 0; | ||
438 | color: 255 255 255 0; | ||
439 | } | ||
440 | description { state: "active" 0.0; | ||
441 | visible: 1; | ||
442 | color: 255 255 255 255; | ||
443 | } | ||
444 | } | ||
445 | part { name: "elm.swallow.index.0"; | ||
446 | type: SWALLOW; | ||
447 | clip_to: "clip"; | ||
448 | description { state: "default" 0.0; | ||
449 | align: 0.5 1.0; | ||
450 | fixed: 1 1; | ||
451 | rel1 { | ||
452 | relative: 0.5 1; | ||
453 | offset: 0 0; | ||
454 | } | ||
455 | rel2 { | ||
456 | relative: 0.5 1; | ||
457 | offset: -1 -1; | ||
458 | } | ||
459 | } | ||
460 | } | ||
461 | part { name: "button_image"; | ||
462 | mouse_events: 1; | ||
463 | clip_to: "clip2"; | ||
464 | description { state: "default" 0.0; | ||
465 | rel1 { | ||
466 | to: "elm.text"; | ||
467 | offset: -5 -5; | ||
468 | } | ||
469 | rel2 { | ||
470 | to: "elm.text"; | ||
471 | offset: 4 4; | ||
472 | } | ||
473 | image { | ||
474 | normal: "bt_base2.png"; | ||
475 | border: 7 7 7 7; | ||
476 | } | ||
477 | image.middle: SOLID; | ||
478 | } | ||
479 | } | ||
480 | part { name: "elm.text.body"; | ||
481 | type: TEXT; | ||
482 | effect: SOFT_SHADOW; | ||
483 | mouse_events: 0; | ||
484 | scale: 1; | ||
485 | clip_to: "clip2"; | ||
486 | description { state: "default" 0.0; | ||
487 | align: 0.5 1; | ||
488 | fixed: 1 1; | ||
489 | rel1 { | ||
490 | to: "elm.text"; | ||
491 | relative: 0.0 0.0; | ||
492 | } | ||
493 | rel2 { | ||
494 | to: "elm.text"; | ||
495 | relative: 0.1 0.0; | ||
496 | } | ||
497 | color: 224 224 224 255; | ||
498 | color3: 0 0 0 64; | ||
499 | text { | ||
500 | font: "Sans,Edje-Vera"; | ||
501 | size: 20; | ||
502 | min: 1 1; | ||
503 | align: 0.5 1; | ||
504 | } | ||
505 | } | ||
506 | } | ||
507 | part { name: "elm.text"; | ||
508 | type: TEXT; | ||
509 | effect: SOFT_SHADOW; | ||
510 | mouse_events: 0; | ||
511 | scale: 1; | ||
512 | clip_to: "clip2"; | ||
513 | description { state: "default" 0.0; | ||
514 | align: 0.5 1; | ||
515 | fixed: 1 1; | ||
516 | rel1 { | ||
517 | to_x: "elm.dragable.pointer"; | ||
518 | to_y: "elm.swallow.event.0"; | ||
519 | relative: 0.5 0; | ||
520 | offset: 0 -16; | ||
521 | } | ||
522 | rel2 { | ||
523 | to_x: "elm.dragable.pointer"; | ||
524 | to_y: "elm.swallow.event.0"; | ||
525 | relative: 0.5 0; | ||
526 | offset: -1 -16; | ||
527 | } | ||
528 | color: 255 0 0 255; | ||
529 | color3: 0 0 0 64; | ||
530 | text { | ||
531 | font: "Sans,Edje-Vera"; | ||
532 | size: 20; | ||
533 | min: 1 1; | ||
534 | align: 0.5 1; | ||
535 | } | ||
536 | } | ||
537 | } | ||
538 | part { name: "over1"; | ||
539 | mouse_events: 0; | ||
540 | clip_to: "clip2"; | ||
541 | description { state: "default" 0.0; | ||
542 | rel1 { | ||
543 | to: "button_image"; | ||
544 | } | ||
545 | rel2 { | ||
546 | to: "button_image"; | ||
547 | relative: 0.5 1; | ||
548 | } | ||
549 | image { | ||
550 | normal: "bt_hilight.png"; | ||
551 | border: 7 7 7 0; | ||
552 | } | ||
553 | } | ||
554 | } | ||
555 | part { name: "over2"; | ||
556 | mouse_events: 1; | ||
557 | repeat_events: 1; | ||
558 | ignore_flags: ON_HOLD; | ||
559 | clip_to: "clip2"; | ||
560 | description { state: "default" 0.0; | ||
561 | rel1 { | ||
562 | to: "button_image"; | ||
563 | } | ||
564 | rel2 { | ||
565 | to: "button_image"; | ||
566 | } | ||
567 | image { | ||
568 | normal: "bt_shine.png"; | ||
569 | border: 7 7 7 7; | ||
570 | } | ||
571 | } | ||
572 | } | ||
573 | part { name: "elm.dragable.pointer"; | ||
574 | type: RECT; | ||
575 | mouse_events: 0; | ||
576 | dragable { | ||
577 | x: 1 1 0; | ||
578 | y: 1 1 0; | ||
579 | } | ||
580 | clip_to: "clip"; | ||
581 | description { state: "default" 0.0; | ||
582 | fixed: 1 1; | ||
583 | min: 8 8; | ||
584 | max: 8 8; | ||
585 | visible: 0; | ||
586 | rel1 { | ||
587 | relative: 0.0 0.0; | ||
588 | offset: 0 0; | ||
589 | } | ||
590 | rel2 { | ||
591 | relative: 0.0 0.0; | ||
592 | offset: 0 0; | ||
593 | } | ||
594 | } | ||
595 | } | ||
596 | part { name: "elm.swallow.event.0"; | ||
597 | type: SWALLOW; | ||
598 | description { state: "default" 0.0; | ||
599 | align: 0.5 1; | ||
600 | fixed: 1 1; | ||
601 | rel1 { | ||
602 | relative: 0.0 1.0; | ||
603 | offset: -1 0; | ||
604 | } | ||
605 | rel2 { | ||
606 | relative: 1.0 1.0; | ||
607 | offset: -1 -1; | ||
608 | } | ||
609 | } | ||
610 | } | ||
611 | } | ||
612 | programs { | ||
613 | program { name: "active"; | ||
614 | signal: "elm,state,active"; | ||
615 | source: "elm"; | ||
616 | action: STATE_SET "active" 0.0; | ||
617 | transition: DECELERATE 0.5; | ||
618 | target: "clip"; | ||
619 | } | ||
620 | program { name: "inactive"; | ||
621 | signal: "elm,state,inactive"; | ||
622 | source: "elm"; | ||
623 | action: STATE_SET "default" 0.0; | ||
624 | transition: DECELERATE 0.5; | ||
625 | target: "clip"; | ||
626 | } | ||
627 | program { name: "active2"; | ||
628 | signal: "elm,indicator,state,active"; | ||
629 | source: "elm"; | ||
630 | action: STATE_SET "active" 0.0; | ||
631 | transition: DECELERATE 0.5; | ||
632 | target: "clip2"; | ||
633 | } | ||
634 | program { name: "inactive2"; | ||
635 | signal: "elm,indicator,state,inactive"; | ||
636 | source: "elm"; | ||
637 | action: STATE_SET "default" 0.0; | ||
638 | transition: DECELERATE 0.5; | ||
639 | target: "clip2"; | ||
640 | } | ||
641 | } | ||
642 | } | ||
643 | group { name: "elm/index/item/horizontal/default"; | ||
644 | data.item: "stacking" "above"; | ||
645 | data.item: "selectraise" "on"; | ||
646 | images { | ||
647 | image: "ilist_1.png" COMP; | ||
648 | image: "ilist_item_shadow.png" COMP; | ||
649 | } | ||
650 | parts { | ||
651 | part { | ||
652 | name: "base_sh"; | ||
653 | mouse_events: 0; | ||
654 | description { | ||
655 | state: "default" 0.0; | ||
656 | align: 0.0 0.0; | ||
657 | min: 0 10; | ||
658 | fixed: 1 1; | ||
659 | rel1 { | ||
660 | to: "base"; | ||
661 | relative: 0.0 1.0; | ||
662 | } | ||
663 | rel2 { | ||
664 | to: "base"; | ||
665 | relative: 1.0 1.0; | ||
666 | } | ||
667 | image { | ||
668 | normal: "ilist_item_shadow.png"; | ||
669 | } | ||
670 | fill.smooth: 0; | ||
671 | } | ||
672 | } | ||
673 | part { | ||
674 | name: "base"; | ||
675 | mouse_events: 0; | ||
676 | description { | ||
677 | state: "default" 0.0; | ||
678 | image { | ||
679 | normal: "ilist_1.png"; | ||
680 | border: 2 2 2 2; | ||
681 | } | ||
682 | fill.smooth: 0; | ||
683 | } | ||
684 | description { state: "active" 0.0; | ||
685 | inherit: "default" 0.0; | ||
686 | rel1 { | ||
687 | offset: 0 -16; | ||
688 | } | ||
689 | } | ||
690 | } | ||
691 | part { name: "elm.text"; | ||
692 | type: TEXT; | ||
693 | mouse_events: 0; | ||
694 | scale: 1; | ||
695 | description { | ||
696 | state: "default" 0.0; | ||
697 | rel1 { | ||
698 | to: "base"; | ||
699 | relative: 0.25 0.0; | ||
700 | } | ||
701 | rel2 { | ||
702 | to: "base"; | ||
703 | relative: 0.75 1.0; | ||
704 | } | ||
705 | color: 0 0 0 128; | ||
706 | text { | ||
707 | font: "Sans"; | ||
708 | size: 10; | ||
709 | min: 1 1; | ||
710 | align: 0.5 0.5; | ||
711 | } | ||
712 | } | ||
713 | description { state: "active" 0.0; | ||
714 | inherit: "default" 0.0; | ||
715 | color: 0 0 0 255; | ||
716 | } | ||
717 | } | ||
718 | } | ||
719 | programs { | ||
720 | program { name: "active"; | ||
721 | signal: "elm,state,active"; | ||
722 | source: "elm"; | ||
723 | action: STATE_SET "active" 0.0; | ||
724 | transition: DECELERATE 0.5; | ||
725 | target: "elm.text"; | ||
726 | target: "base"; | ||
727 | } | ||
728 | program { name: "inactive"; | ||
729 | signal: "elm,state,inactive"; | ||
730 | source: "elm"; | ||
731 | action: STATE_SET "default" 0.0; | ||
732 | transition: DECELERATE 0.5; | ||
733 | target: "elm.text"; | ||
734 | target: "base"; | ||
735 | } | ||
736 | } | ||
737 | } | ||
738 | group { name: "elm/index/item_odd/horizontal/default"; | ||
739 | data.item: "stacking" "below"; | ||
740 | images { | ||
741 | image: "ilist_2.png" COMP; | ||
742 | } | ||
743 | parts { | ||
744 | part { | ||
745 | name: "base"; | ||
746 | mouse_events: 0; | ||
747 | description { | ||
748 | state: "default" 0.0; | ||
749 | image { | ||
750 | normal: "ilist_2.png"; | ||
751 | border: 2 2 2 2; | ||
752 | } | ||
753 | fill.smooth: 0; | ||
754 | } | ||
755 | description { state: "active" 0.0; | ||
756 | inherit: "default" 0.0; | ||
757 | rel1 { | ||
758 | offset: 0 -16; | ||
759 | } | ||
760 | } | ||
761 | } | ||
762 | part { name: "elm.text"; | ||
763 | type: TEXT; | ||
764 | mouse_events: 0; | ||
765 | scale: 1; | ||
766 | description { | ||
767 | state: "default" 0.0; | ||
768 | rel1 { | ||
769 | to: "base"; | ||
770 | relative: 0.25 0.0; | ||
771 | } | ||
772 | rel2 { | ||
773 | to: "base"; | ||
774 | relative: 0.75 1.0; | ||
775 | } | ||
776 | color: 0 0 0 128; | ||
777 | text { | ||
778 | font: "Sans"; | ||
779 | size: 10; | ||
780 | min: 1 1; | ||
781 | align: 0.5 0.5; | ||
782 | } | ||
783 | } | ||
784 | description { state: "active" 0.0; | ||
785 | inherit: "default" 0.0; | ||
786 | color: 0 0 0 255; | ||
787 | } | ||
788 | } | ||
789 | } | ||
790 | programs { | ||
791 | program { name: "active"; | ||
792 | signal: "elm,state,active"; | ||
793 | source: "elm"; | ||
794 | action: STATE_SET "active" 0.0; | ||
795 | transition: DECELERATE 0.5; | ||
796 | target: "elm.text"; | ||
797 | target: "base"; | ||
798 | } | ||
799 | program { name: "inactive"; | ||
800 | signal: "elm,state,inactive"; | ||
801 | source: "elm"; | ||
802 | action: STATE_SET "default" 0.0; | ||
803 | transition: DECELERATE 0.5; | ||
804 | target: "elm.text"; | ||
805 | target: "base"; | ||
806 | } | ||
807 | } | ||
808 | } | ||
diff --git a/libraries/elementary/data/themes/widgets/label.edc b/libraries/elementary/data/themes/widgets/label.edc new file mode 100644 index 0000000..3e52408 --- /dev/null +++ b/libraries/elementary/data/themes/widgets/label.edc | |||
@@ -0,0 +1,417 @@ | |||
1 | #define TEXT_SLIDE_DURATION 10 | ||
2 | |||
3 | group { name: "elm/label/base/default"; | ||
4 | data.item: "default_font_size" "10"; | ||
5 | data.item: "min_font_size" "6"; | ||
6 | data.item: "max_font_size" "60"; | ||
7 | styles { | ||
8 | style { name: "textblock_style"; | ||
9 | base: "font=Sans font_size=10 color=#000 text_class=label left_margin=4 right_margin=4"; | ||
10 | tag: "hilight" "+ font_weight=Bold"; | ||
11 | tag: "b" "+ font_weight=Bold"; | ||
12 | } | ||
13 | } | ||
14 | parts { | ||
15 | part { name: "label.text.clip"; | ||
16 | type: RECT; | ||
17 | description { state: "default" 0.0; | ||
18 | } | ||
19 | } | ||
20 | part { name: "elm.text"; | ||
21 | type: TEXTBLOCK; | ||
22 | scale: 1; | ||
23 | clip_to: "label.text.clip"; | ||
24 | description { state: "default" 0.0; | ||
25 | rel1.relative: 0.0 0.0; | ||
26 | rel2.relative: 1.0 1.0; | ||
27 | text { | ||
28 | style: "textblock_style"; | ||
29 | min: 0 1; | ||
30 | } | ||
31 | } | ||
32 | } | ||
33 | } | ||
34 | } | ||
35 | |||
36 | group { name: "elm/label/base/marker"; | ||
37 | data.item: "default_font_size" "10"; | ||
38 | data.item: "min_font_size" "6"; | ||
39 | data.item: "max_font_size" "60"; | ||
40 | styles { | ||
41 | style { name: "textblock_style2"; | ||
42 | base: "font=Sans:style=Bold font_size=10 align=center color=#fff wrap=word text_class=label left_margin=4 right_margin=4"; | ||
43 | tag: "hilight" "+ color=#ffff"; | ||
44 | tag: "b" "+ color=#ffff"; | ||
45 | } | ||
46 | } | ||
47 | parts { | ||
48 | part { name: "elm.text"; | ||
49 | type: TEXTBLOCK; | ||
50 | scale: 1; | ||
51 | description { state: "default" 0.0; | ||
52 | text { | ||
53 | style: "textblock_style2"; | ||
54 | min: 1 1; | ||
55 | } | ||
56 | } | ||
57 | } | ||
58 | } | ||
59 | } | ||
60 | |||
61 | group { name: "elm/label/base/slide_long"; | ||
62 | data.item: "default_font_size" "10"; | ||
63 | data.item: "min_font_size" "6"; | ||
64 | data.item: "max_font_size" "60"; | ||
65 | |||
66 | script { | ||
67 | public g_duration, g_stopslide, g_timer_id, g_anim_id; | ||
68 | |||
69 | public message(Msg_Type:type, id, ...) { | ||
70 | if ((type == MSG_FLOAT_SET) && (id == 0)) { | ||
71 | new Float:duration; | ||
72 | duration = getfarg(2); | ||
73 | set_float(g_duration, duration); | ||
74 | } | ||
75 | } | ||
76 | public slide_to_end_anim(val, Float:pos) { | ||
77 | new stopflag; | ||
78 | new id; | ||
79 | stopflag = get_int(g_stopslide); | ||
80 | if (stopflag == 1) return; | ||
81 | set_tween_state(PART:"elm.text", pos, "slide_begin", 0.0, "slide_end", 0.0); | ||
82 | if (pos >= 1.0) { | ||
83 | id = timer(0.5, "slide_to_begin", 1); | ||
84 | set_int(g_timer_id, id); | ||
85 | } | ||
86 | } | ||
87 | public slide_to_end() { | ||
88 | new stopflag; | ||
89 | new id; | ||
90 | new Float:duration; | ||
91 | stopflag = get_int(g_stopslide); | ||
92 | if (stopflag == 1) return; | ||
93 | duration = get_float(g_duration); | ||
94 | id = anim(duration, "slide_to_end_anim", 1); | ||
95 | set_int(g_anim_id, id); | ||
96 | } | ||
97 | public slide_to_begin() { | ||
98 | new stopflag; | ||
99 | new id; | ||
100 | stopflag = get_int(g_stopslide); | ||
101 | if (stopflag == 1) return; | ||
102 | set_state(PART:"elm.text", "slide_begin", 0.0); | ||
103 | id = timer(0.5, "slide_to_end", 1); | ||
104 | set_int(g_timer_id, id); | ||
105 | } | ||
106 | public start_slide() { | ||
107 | set_int(g_stopslide, 0); | ||
108 | set_state(PART:"elm.text", "slide_begin", 0.0); | ||
109 | slide_to_end(); | ||
110 | } | ||
111 | public stop_slide() { | ||
112 | new id; | ||
113 | set_int(g_stopslide, 1); | ||
114 | id = get_int(g_anim_id); | ||
115 | cancel_anim(id); | ||
116 | id = get_int(g_timer_id); | ||
117 | cancel_timer(id); | ||
118 | set_state(PART:"elm.text", "default", 0.0); | ||
119 | } | ||
120 | } | ||
121 | |||
122 | parts { | ||
123 | part { name: "label.text.clip"; | ||
124 | type: RECT; | ||
125 | description { state: "default" 0.0; | ||
126 | color: 255 255 255 255; | ||
127 | } | ||
128 | } | ||
129 | part { name: "elm.text"; | ||
130 | type: TEXTBLOCK; | ||
131 | scale: 1; | ||
132 | clip_to: "label.text.clip"; | ||
133 | description { state: "default" 0.0; | ||
134 | rel1.relative: 0.0 0.0; | ||
135 | rel2.relative: 1.0 1.0; | ||
136 | align: 0.0 0.0; | ||
137 | text { | ||
138 | style: "textblock_style"; | ||
139 | min: 1 1; | ||
140 | } | ||
141 | } | ||
142 | description { state: "slide_end" 0.0; | ||
143 | inherit: "default" 0.0; | ||
144 | rel1.relative: 0.0 0.0; | ||
145 | rel2.relative: 0.0 1.0; | ||
146 | align: 1.0 0.0; | ||
147 | } | ||
148 | description { state: "slide_begin" 0.0; | ||
149 | inherit: "default" 0.0; | ||
150 | rel1.relative: 1.0 0.0; | ||
151 | rel2.relative: 1.0 1.0; | ||
152 | align: 0.0 0.0; | ||
153 | } | ||
154 | } | ||
155 | } | ||
156 | programs { | ||
157 | program { name: "start_slide"; | ||
158 | source: "elm"; | ||
159 | signal: "elm,state,slide,start"; | ||
160 | script | ||
161 | { | ||
162 | start_slide(); | ||
163 | } | ||
164 | } | ||
165 | program { name: "stop_slide"; | ||
166 | source: "elm"; | ||
167 | signal: "elm,state,slide,stop"; | ||
168 | script | ||
169 | { | ||
170 | stop_slide(); | ||
171 | } | ||
172 | } | ||
173 | } | ||
174 | } | ||
175 | |||
176 | |||
177 | group { name: "elm/label/base/slide_short"; | ||
178 | data.item: "default_font_size" "10"; | ||
179 | data.item: "min_font_size" "6"; | ||
180 | data.item: "max_font_size" "60"; | ||
181 | |||
182 | script { | ||
183 | public g_duration, g_stopslide, g_timer_id, g_anim_id; | ||
184 | |||
185 | public message(Msg_Type:type, id, ...) { | ||
186 | if ((type == MSG_FLOAT_SET) && (id == 0)) { | ||
187 | new Float:duration; | ||
188 | duration = getfarg(2); | ||
189 | set_float(g_duration, duration); | ||
190 | } | ||
191 | } | ||
192 | public slide_to_end_anim(val, Float:pos) { | ||
193 | new stopflag; | ||
194 | new id; | ||
195 | stopflag = get_int(g_stopslide); | ||
196 | if (stopflag == 1) return; | ||
197 | set_tween_state(PART:"elm.text", pos, "slide_begin", 0.0, "slide_end", 0.0); | ||
198 | if (pos >= 1.0) { | ||
199 | id = timer(0.5, "slide_to_begin", 1); | ||
200 | set_int(g_timer_id, id); | ||
201 | } | ||
202 | } | ||
203 | public slide_to_end() { | ||
204 | new stopflag; | ||
205 | new id; | ||
206 | new Float:duration; | ||
207 | stopflag = get_int(g_stopslide); | ||
208 | if (stopflag == 1) return; | ||
209 | duration = get_float(g_duration); | ||
210 | id = anim(duration, "slide_to_end_anim", 1); | ||
211 | set_int(g_anim_id, id); | ||
212 | } | ||
213 | public slide_to_begin() { | ||
214 | new stopflag; | ||
215 | new id; | ||
216 | stopflag = get_int(g_stopslide); | ||
217 | if (stopflag == 1) return; | ||
218 | set_state(PART:"elm.text", "slide_begin", 0.0); | ||
219 | id = timer(0.5, "slide_to_end", 1); | ||
220 | set_int(g_timer_id, id); | ||
221 | } | ||
222 | public start_slide() { | ||
223 | set_int(g_stopslide, 0); | ||
224 | set_state(PART:"elm.text", "slide_begin", 0.0); | ||
225 | slide_to_end(); | ||
226 | } | ||
227 | public stop_slide() { | ||
228 | new id; | ||
229 | set_int(g_stopslide, 1); | ||
230 | id = get_int(g_anim_id); | ||
231 | cancel_anim(id); | ||
232 | id = get_int(g_timer_id); | ||
233 | cancel_timer(id); | ||
234 | set_state(PART:"elm.text", "default", 0.0); | ||
235 | } | ||
236 | } | ||
237 | |||
238 | parts { | ||
239 | part { name: "label.text.clip"; | ||
240 | type: RECT; | ||
241 | description { state: "default" 0.0; | ||
242 | color: 255 255 255 255; | ||
243 | } | ||
244 | } | ||
245 | part { name: "elm.text"; | ||
246 | type: TEXTBLOCK; | ||
247 | scale: 1; | ||
248 | clip_to: "label.text.clip"; | ||
249 | description { state: "default" 0.0; | ||
250 | rel1.relative: 0.0 0.0; | ||
251 | rel2.relative: 1.0 1.0; | ||
252 | align: 0.0 0.0; | ||
253 | text { | ||
254 | style: "textblock_style"; | ||
255 | min: 1 1; | ||
256 | } | ||
257 | } | ||
258 | description { state: "slide_end" 0.0; | ||
259 | inherit: "default" 0.0; | ||
260 | rel1.relative: 1.0 0.0; | ||
261 | rel2.relative: 1.0 1.0; | ||
262 | align: 1.0 0.0; | ||
263 | } | ||
264 | description { state: "slide_begin" 0.0; | ||
265 | inherit: "default" 0.0; | ||
266 | rel1.relative: 0.0 0.0; | ||
267 | rel2.relative: 0.0 1.0; | ||
268 | align: 0.0 0.0; | ||
269 | } | ||
270 | } | ||
271 | } | ||
272 | programs { | ||
273 | program { name: "start_slide"; | ||
274 | source: "elm"; | ||
275 | signal: "elm,state,slide,start"; | ||
276 | script | ||
277 | { | ||
278 | start_slide(); | ||
279 | } | ||
280 | } | ||
281 | program { name: "stop_slide"; | ||
282 | source: "elm"; | ||
283 | signal: "elm,state,slide,stop"; | ||
284 | script | ||
285 | { | ||
286 | stop_slide(); | ||
287 | } | ||
288 | } | ||
289 | } | ||
290 | } | ||
291 | |||
292 | group { name: "elm/label/base/slide_bounce"; | ||
293 | data.item: "default_font_size" "10"; | ||
294 | data.item: "min_font_size" "6"; | ||
295 | data.item: "max_font_size" "60"; | ||
296 | |||
297 | script { | ||
298 | public g_duration, g_stopslide, g_timer_id, g_anim_id; | ||
299 | |||
300 | public message(Msg_Type:type, id, ...) { | ||
301 | if ((type == MSG_FLOAT_SET) && (id == 0)) { | ||
302 | new Float:duration; | ||
303 | duration = getfarg(2); | ||
304 | set_float(g_duration, duration); | ||
305 | } | ||
306 | } | ||
307 | public slide_to_end_anim(val, Float:pos) { | ||
308 | new stopflag; | ||
309 | new id; | ||
310 | stopflag = get_int(g_stopslide); | ||
311 | if (stopflag == 1) return; | ||
312 | set_tween_state(PART:"elm.text", pos, "slide_begin", 0.0, "slide_end", 0.0); | ||
313 | if (pos >= 1.0) { | ||
314 | id = timer(0.5, "slide_to_begin", 1); | ||
315 | set_int(g_timer_id, id); | ||
316 | } | ||
317 | } | ||
318 | public slide_to_end() { | ||
319 | new stopflag; | ||
320 | new id; | ||
321 | new Float:duration; | ||
322 | stopflag = get_int(g_stopslide); | ||
323 | if (stopflag == 1) return; | ||
324 | duration = get_float(g_duration); | ||
325 | id = anim(duration, "slide_to_end_anim", 1); | ||
326 | set_int(g_anim_id, id); | ||
327 | } | ||
328 | public slide_to_begin_anim(val, Float:pos) { | ||
329 | new stopflag; | ||
330 | new id; | ||
331 | stopflag = get_int(g_stopslide); | ||
332 | if (stopflag == 1) return; | ||
333 | set_tween_state(PART:"elm.text", pos, "slide_end", 0.0, "slide_begin", 0.0); | ||
334 | if (pos >= 1.0) { | ||
335 | id = timer(0.5, "slide_to_end", 1); | ||
336 | set_int(g_timer_id, id); | ||
337 | } | ||
338 | } | ||
339 | public slide_to_begin() { | ||
340 | new stopflag; | ||
341 | new id; | ||
342 | new Float:duration; | ||
343 | stopflag = get_int(g_stopslide); | ||
344 | if (stopflag == 1) return; | ||
345 | duration = get_float(g_duration); | ||
346 | id = anim(duration, "slide_to_begin_anim", 1); | ||
347 | set_int(g_anim_id, id); | ||
348 | } | ||
349 | public start_slide() { | ||
350 | set_int(g_stopslide, 0); | ||
351 | set_state(PART:"elm.text", "slide_begin", 0.0); | ||
352 | slide_to_end(); | ||
353 | } | ||
354 | public stop_slide() { | ||
355 | new id; | ||
356 | set_int(g_stopslide, 1); | ||
357 | id = get_int(g_anim_id); | ||
358 | cancel_anim(id); | ||
359 | id = get_int(g_timer_id); | ||
360 | cancel_timer(id); | ||
361 | set_state(PART:"elm.text", "default", 0.0); | ||
362 | } | ||
363 | } | ||
364 | |||
365 | parts { | ||
366 | part { name: "label.text.clip"; | ||
367 | type: RECT; | ||
368 | description { state: "default" 0.0; | ||
369 | color: 255 255 255 255; | ||
370 | } | ||
371 | } | ||
372 | part { name: "elm.text"; | ||
373 | type: TEXTBLOCK; | ||
374 | scale: 1; | ||
375 | clip_to: "label.text.clip"; | ||
376 | description { state: "default" 0.0; | ||
377 | rel1.relative: 0.0 0.0; | ||
378 | rel2.relative: 1.0 1.0; | ||
379 | align: 0.0 0.0; | ||
380 | text { | ||
381 | style: "textblock_style"; | ||
382 | min: 1 1; | ||
383 | } | ||
384 | } | ||
385 | description { state: "slide_end" 0.0; | ||
386 | inherit: "default" 0.0; | ||
387 | rel1.relative: 1.0 0.0; | ||
388 | rel2.relative: 1.0 1.0; | ||
389 | align: 1.0 0.0; | ||
390 | } | ||
391 | description { state: "slide_begin" 0.0; | ||
392 | inherit: "default" 0.0; | ||
393 | rel1.relative: 0.0 0.0; | ||
394 | rel2.relative: 0.0 1.0; | ||
395 | align: 0.0 0.0; | ||
396 | } | ||
397 | } | ||
398 | } | ||
399 | programs { | ||
400 | program { name: "start_slide"; | ||
401 | source: "elm"; | ||
402 | signal: "elm,state,slide,start"; | ||
403 | script | ||
404 | { | ||
405 | start_slide(); | ||
406 | } | ||
407 | } | ||
408 | program { name: "stop_slide"; | ||
409 | source: "elm"; | ||
410 | signal: "elm,state,slide,stop"; | ||
411 | script | ||
412 | { | ||
413 | stop_slide(); | ||
414 | } | ||
415 | } | ||
416 | } | ||
417 | } | ||
diff --git a/libraries/elementary/data/themes/widgets/layout.edc b/libraries/elementary/data/themes/widgets/layout.edc new file mode 100644 index 0000000..804d323 --- /dev/null +++ b/libraries/elementary/data/themes/widgets/layout.edc | |||
@@ -0,0 +1,827 @@ | |||
1 | /* application with toolbar and main content area */ | ||
2 | group { name: "elm/layout/application/toolbar-content"; | ||
3 | parts { | ||
4 | part { name: "elm.swallow.content"; | ||
5 | type: SWALLOW; | ||
6 | description { state: "default" 0.0; | ||
7 | rel1 { to_y: "elm.external.toolbar"; | ||
8 | relative: 0.0 1.0; | ||
9 | offset: -1 1; | ||
10 | } | ||
11 | } | ||
12 | } | ||
13 | |||
14 | part { name: "elm.external.toolbar"; | ||
15 | type: EXTERNAL; | ||
16 | source: "elm/toolbar"; | ||
17 | description { state: "default" 0.0; | ||
18 | align: 0.5 0.0; | ||
19 | fixed: 0 1; | ||
20 | rel2 { | ||
21 | relative: 1.0 0.0; | ||
22 | offset: -1 47; | ||
23 | } | ||
24 | } | ||
25 | } | ||
26 | } | ||
27 | } | ||
28 | |||
29 | /* application with toolbar and main content area with a back button and title area */ | ||
30 | group { name: "elm/layout/application/toolbar-content-back"; | ||
31 | parts { | ||
32 | part { name: "elm.swallow.content"; | ||
33 | type: SWALLOW; | ||
34 | description { state: "default" 0.0; | ||
35 | rel1 { to_y: "title_clipper"; | ||
36 | relative: 0.0 1.0; | ||
37 | offset: -1 1; | ||
38 | } | ||
39 | } | ||
40 | } | ||
41 | |||
42 | part { name: "elm.external.toolbar"; | ||
43 | type: EXTERNAL; | ||
44 | source: "elm/toolbar"; | ||
45 | description { state: "default" 0.0; | ||
46 | fixed: 0 1; | ||
47 | align: 0.5 0.0; | ||
48 | rel2 { | ||
49 | relative: 1.0 0.0; | ||
50 | offset: -1 47; | ||
51 | } | ||
52 | } | ||
53 | } | ||
54 | part { name: "title_clipper"; | ||
55 | type: RECT; | ||
56 | description { state: "default" 0.0; | ||
57 | visible: 1; | ||
58 | rel1 { | ||
59 | to_y: "back"; | ||
60 | } | ||
61 | rel2 { | ||
62 | to_y: "back"; | ||
63 | } | ||
64 | } | ||
65 | description { state: "hidden" 0.0; | ||
66 | inherit: "default" 0.0; | ||
67 | visible: 0; | ||
68 | rel2 { | ||
69 | relative: 1.0 0.0; | ||
70 | } | ||
71 | } | ||
72 | } | ||
73 | part { name: "back_clipper"; | ||
74 | type: RECT; | ||
75 | clip_to: "title_clipper"; | ||
76 | description { state: "default" 0.0; | ||
77 | visible: 1; | ||
78 | } | ||
79 | description { state: "hidden" 0.0; | ||
80 | visible: 0; | ||
81 | } | ||
82 | } | ||
83 | part { name: "back"; | ||
84 | type: EXTERNAL; | ||
85 | source: "elm/button"; | ||
86 | clip_to: "back_clipper"; | ||
87 | description { state: "default" 0.0; | ||
88 | align: 0.0 0.0; | ||
89 | fixed: 1 1; | ||
90 | rel1 { to_y: "elm.external.toolbar"; | ||
91 | relative: 0.0 1.0; | ||
92 | offset: 0 1; | ||
93 | } | ||
94 | rel2 { to_y: "elm.external.toolbar"; | ||
95 | relative: 0.0 1.0; | ||
96 | offset: 50 32; | ||
97 | } | ||
98 | params.string: "label" "Back"; | ||
99 | } | ||
100 | } | ||
101 | programs { | ||
102 | program { | ||
103 | signal: "clicked"; | ||
104 | source: "back"; | ||
105 | action: SIGNAL_EMIT "elm,action,back" ""; | ||
106 | } | ||
107 | program { | ||
108 | signal: "elm,back,hide"; | ||
109 | source: "elm"; | ||
110 | action: STATE_SET "hidden" 0.0; | ||
111 | target: "back_clipper"; | ||
112 | } | ||
113 | program { | ||
114 | signal: "elm,back,show"; | ||
115 | source: "elm"; | ||
116 | action: STATE_SET "default" 0.0; | ||
117 | target: "back_clipper"; | ||
118 | } | ||
119 | program { | ||
120 | signal: "elm,title,hide"; | ||
121 | source: "elm"; | ||
122 | action: STATE_SET "hidden" 0.0; | ||
123 | transition: LINEAR 0.1; | ||
124 | target: "title_clipper"; | ||
125 | } | ||
126 | program { | ||
127 | signal: "elm,title,show"; | ||
128 | source: "elm"; | ||
129 | action: STATE_SET "default" 0.0; | ||
130 | target: "title_clipper"; | ||
131 | } | ||
132 | } | ||
133 | |||
134 | part { name: "elm.swallow.end"; | ||
135 | type: SWALLOW; | ||
136 | description { state: "default" 0.0; | ||
137 | align: 1.0 0.0; | ||
138 | fixed: 1 1; | ||
139 | rel1 { to_y: "elm.external.toolbar"; | ||
140 | relative: 1.0 1.0; | ||
141 | offset: -2 1; | ||
142 | } | ||
143 | rel2 { to_y: "elm.external.toolbar"; | ||
144 | relative: 1.0 1.0; | ||
145 | offset: -1 32; | ||
146 | } | ||
147 | } | ||
148 | } | ||
149 | |||
150 | part { name: "elm.text.title"; | ||
151 | type: TEXT; | ||
152 | effect: SOFT_SHADOW; | ||
153 | scale: 1; | ||
154 | description { state: "default" 0.0; | ||
155 | rel1 { to_y: "elm.external.toolbar"; | ||
156 | to_x: "back"; | ||
157 | relative: 1.0 1.0; | ||
158 | offset: 2 1; | ||
159 | } | ||
160 | rel2 { to_y: "back"; | ||
161 | to_x: "elm.swallow.end"; | ||
162 | relative: 0.0 1.0; | ||
163 | offset: -3 -1; | ||
164 | } | ||
165 | text { | ||
166 | font: "Sans:style=Bold"; | ||
167 | size: 12; | ||
168 | } | ||
169 | } | ||
170 | } | ||
171 | } | ||
172 | } | ||
173 | |||
174 | /* application with toolbar and main content area with a back and next buttons and title area */ | ||
175 | group { name: "elm/layout/application/toolbar-content-back-next"; | ||
176 | parts { | ||
177 | part { name: "elm.swallow.content"; | ||
178 | type: SWALLOW; | ||
179 | description { state: "default" 0.0; | ||
180 | rel1 { to_y: "title_clipper"; | ||
181 | relative: 0.0 1.0; | ||
182 | offset: -1 1; | ||
183 | } | ||
184 | } | ||
185 | } | ||
186 | |||
187 | part { name: "elm.external.toolbar"; | ||
188 | type: EXTERNAL; | ||
189 | source: "elm/toolbar"; | ||
190 | description { state: "default" 0.0; | ||
191 | fixed: 0 1; | ||
192 | align: 0.5 0.0; | ||
193 | rel2 { | ||
194 | relative: 1.0 0.0; | ||
195 | offset: -1 47; | ||
196 | } | ||
197 | } | ||
198 | } | ||
199 | part { name: "title_clipper"; | ||
200 | type: RECT; | ||
201 | description { state: "default" 0.0; | ||
202 | visible: 1; | ||
203 | rel1 { | ||
204 | to_y: "back"; | ||
205 | } | ||
206 | rel2 { | ||
207 | to_y: "back"; | ||
208 | } | ||
209 | } | ||
210 | description { state: "hidden" 0.0; | ||
211 | inherit: "default" 0.0; | ||
212 | visible: 0; | ||
213 | rel2 { | ||
214 | relative: 1.0 0.0; | ||
215 | } | ||
216 | } | ||
217 | } | ||
218 | part { name: "back"; | ||
219 | type: EXTERNAL; | ||
220 | source: "elm/button"; | ||
221 | clip_to: "back_clipper"; | ||
222 | description { state: "default" 0.0; | ||
223 | align: 0.0 0.0; | ||
224 | fixed: 1 1; | ||
225 | rel1 { to_y: "elm.external.toolbar"; | ||
226 | relative: 0.0 1.0; | ||
227 | offset: 0 1; | ||
228 | } | ||
229 | rel2 { to_y: "elm.external.toolbar"; | ||
230 | relative: 0.0 1.0; | ||
231 | offset: 50 32; | ||
232 | } | ||
233 | params.string: "label" "Back"; | ||
234 | } | ||
235 | } | ||
236 | part { name: "back_clipper"; | ||
237 | type: RECT; | ||
238 | clip_to: "title_clipper"; | ||
239 | description { state: "default" 0.0; | ||
240 | visible: 1; | ||
241 | } | ||
242 | description { state: "hidden" 0.0; | ||
243 | visible: 0; | ||
244 | } | ||
245 | } | ||
246 | part { name: "next"; | ||
247 | type: EXTERNAL; | ||
248 | source: "elm/button"; | ||
249 | clip_to: "next_clipper"; | ||
250 | description { state: "default" 0.0; | ||
251 | align: 1.0 0.0; | ||
252 | fixed: 1 1; | ||
253 | rel1 { to_y: "elm.external.toolbar"; | ||
254 | relative: 1.0 1.0; | ||
255 | offset: -2 1; | ||
256 | } | ||
257 | rel2 { to_y: "elm.external.toolbar"; | ||
258 | relative: 1.0 1.0; | ||
259 | offset: -1 32; | ||
260 | } | ||
261 | params.string: "label" "Next"; | ||
262 | } | ||
263 | } | ||
264 | part { name: "next_clipper"; | ||
265 | type: RECT; | ||
266 | clip_to: "title_clipper"; | ||
267 | description { state: "default" 0.0; | ||
268 | visible: 1; | ||
269 | } | ||
270 | description { state: "hidden" 0.0; | ||
271 | visible: 0; | ||
272 | } | ||
273 | } | ||
274 | programs { | ||
275 | program { | ||
276 | signal: "clicked"; | ||
277 | source: "back"; | ||
278 | action: SIGNAL_EMIT "elm,action,back" ""; | ||
279 | } | ||
280 | program { | ||
281 | signal: "elm,title,hide"; | ||
282 | source: "elm"; | ||
283 | action: STATE_SET "hidden" 0.0; | ||
284 | transition: LINEAR 0.1; | ||
285 | target: "title_clipper"; | ||
286 | } | ||
287 | program { | ||
288 | signal: "elm,title,show"; | ||
289 | source: "elm"; | ||
290 | action: STATE_SET "default" 0.0; | ||
291 | target: "title_clipper"; | ||
292 | } | ||
293 | program { | ||
294 | signal: "elm,back,hide"; | ||
295 | source: "elm"; | ||
296 | action: STATE_SET "hidden" 0.0; | ||
297 | target: "back_clipper"; | ||
298 | } | ||
299 | program { | ||
300 | signal: "elm,back,show"; | ||
301 | source: "elm"; | ||
302 | action: STATE_SET "default" 0.0; | ||
303 | target: "back_clipper"; | ||
304 | } | ||
305 | program { | ||
306 | signal: "clicked"; | ||
307 | source: "next"; | ||
308 | action: SIGNAL_EMIT "elm,action,next" ""; | ||
309 | } | ||
310 | program { | ||
311 | signal: "elm,next,hide"; | ||
312 | source: "elm"; | ||
313 | action: STATE_SET "hidden" 0.0; | ||
314 | target: "next_clipper"; | ||
315 | } | ||
316 | program { | ||
317 | signal: "elm,next,show"; | ||
318 | source: "elm"; | ||
319 | action: STATE_SET "default" 0.0; | ||
320 | target: "next_clipper"; | ||
321 | } | ||
322 | } | ||
323 | part { name: "elm.text.title"; | ||
324 | type: TEXT; | ||
325 | effect: SOFT_SHADOW; | ||
326 | scale: 1; | ||
327 | clip_to: "title_clipper"; | ||
328 | description { state: "default" 0.0; | ||
329 | rel1 { to_y: "elm.external.toolbar"; | ||
330 | to_x: "back"; | ||
331 | relative: 1.0 1.0; | ||
332 | offset: 2 1; | ||
333 | } | ||
334 | rel2 { to_y: "back"; | ||
335 | to_x: "next"; | ||
336 | relative: 0.0 1.0; | ||
337 | offset: -3 -1; | ||
338 | } | ||
339 | text { | ||
340 | font: "Sans:style=Bold"; | ||
341 | size: 12; | ||
342 | } | ||
343 | } | ||
344 | } | ||
345 | } | ||
346 | } | ||
347 | /* application with a main content area with a back button and title area */ | ||
348 | group { name: "elm/layout/application/content-back"; | ||
349 | parts { | ||
350 | part { name: "elm.swallow.content"; | ||
351 | type: SWALLOW; | ||
352 | description { state: "default" 0.0; | ||
353 | rel1 { to_y: "title_clipper"; | ||
354 | relative: 0.0 1.0; | ||
355 | offset: -1 1; | ||
356 | } | ||
357 | } | ||
358 | } | ||
359 | part { name: "title_clipper"; | ||
360 | type: RECT; | ||
361 | description { state: "default" 0.0; | ||
362 | visible: 1; | ||
363 | rel1 { | ||
364 | to_y: "back"; | ||
365 | } | ||
366 | rel2 { | ||
367 | to_y: "back"; | ||
368 | } | ||
369 | } | ||
370 | description { state: "hidden" 0.0; | ||
371 | inherit: "default" 0.0; | ||
372 | visible: 0; | ||
373 | rel2 { | ||
374 | relative: 1.0 0.0; | ||
375 | } | ||
376 | } | ||
377 | } | ||
378 | part { name: "back_clipper"; | ||
379 | type: RECT; | ||
380 | clip_to: "title_clipper"; | ||
381 | description { state: "default" 0.0; | ||
382 | visible: 1; | ||
383 | } | ||
384 | description { state: "hidden" 0.0; | ||
385 | visible: 0; | ||
386 | } | ||
387 | } | ||
388 | part { name: "back"; | ||
389 | type: EXTERNAL; | ||
390 | source: "elm/button"; | ||
391 | clip_to: "back_clipper"; | ||
392 | description { state: "default" 0.0; | ||
393 | align: 0.0 0.0; | ||
394 | fixed: 1 1; | ||
395 | rel1 { | ||
396 | relative: 0.0 0.0; | ||
397 | offset: 0 1; | ||
398 | } | ||
399 | rel2 { | ||
400 | relative: 0.0 0.0; | ||
401 | offset: 50 32; | ||
402 | } | ||
403 | params.string: "label" "Back"; | ||
404 | } | ||
405 | } | ||
406 | programs { | ||
407 | program { | ||
408 | signal: "clicked"; | ||
409 | source: "back"; | ||
410 | action: SIGNAL_EMIT "elm,action,back" ""; | ||
411 | } | ||
412 | program { | ||
413 | signal: "elm,back,hide"; | ||
414 | source: "elm"; | ||
415 | action: STATE_SET "hidden" 0.0; | ||
416 | target: "back_clipper"; | ||
417 | } | ||
418 | program { | ||
419 | signal: "elm,back,show"; | ||
420 | source: "elm"; | ||
421 | action: STATE_SET "default" 0.0; | ||
422 | target: "back_clipper"; | ||
423 | } | ||
424 | program { | ||
425 | signal: "elm,title,hide"; | ||
426 | source: "elm"; | ||
427 | action: STATE_SET "hidden" 0.0; | ||
428 | transition: LINEAR 0.1; | ||
429 | target: "title_clipper"; | ||
430 | } | ||
431 | program { | ||
432 | signal: "elm,title,show"; | ||
433 | source: "elm"; | ||
434 | action: STATE_SET "default" 0.0; | ||
435 | target: "title_clipper"; | ||
436 | } | ||
437 | } | ||
438 | |||
439 | part { name: "elm.swallow.end"; | ||
440 | type: SWALLOW; | ||
441 | description { state: "default" 0.0; | ||
442 | align: 1.0 0.0; | ||
443 | fixed: 1 1; | ||
444 | rel1 { | ||
445 | relative: 1.0 0.0; | ||
446 | offset: -2 1; | ||
447 | } | ||
448 | rel2 { | ||
449 | relative: 1.0 1.0; | ||
450 | offset: -1 32; | ||
451 | } | ||
452 | } | ||
453 | } | ||
454 | |||
455 | part { name: "elm.text.title"; | ||
456 | type: TEXT; | ||
457 | effect: SOFT_SHADOW; | ||
458 | scale: 1; | ||
459 | description { state: "default" 0.0; | ||
460 | rel1 { | ||
461 | to_x: "back"; | ||
462 | relative: 1.0 0.0; | ||
463 | offset: 2 1; | ||
464 | } | ||
465 | rel2 { to_y: "back"; | ||
466 | to_x: "elm.swallow.end"; | ||
467 | relative: 0.0 1.0; | ||
468 | offset: -3 -1; | ||
469 | } | ||
470 | text { | ||
471 | font: "Sans:style=Bold"; | ||
472 | size: 12; | ||
473 | } | ||
474 | } | ||
475 | } | ||
476 | } | ||
477 | } | ||
478 | |||
479 | /* application with a main content area with a back and next buttons and title area */ | ||
480 | group { name: "elm/layout/application/content-back-next"; | ||
481 | parts { | ||
482 | part { name: "elm.swallow.content"; | ||
483 | type: SWALLOW; | ||
484 | description { state: "default" 0.0; | ||
485 | rel1 { to_y: "title_clipper"; | ||
486 | relative: 0.0 1.0; | ||
487 | offset: -1 1; | ||
488 | } | ||
489 | } | ||
490 | } | ||
491 | |||
492 | part { name: "title_clipper"; | ||
493 | type: RECT; | ||
494 | description { state: "default" 0.0; | ||
495 | visible: 1; | ||
496 | rel1 { | ||
497 | to_y: "back"; | ||
498 | } | ||
499 | rel2 { | ||
500 | to_y: "back"; | ||
501 | } | ||
502 | } | ||
503 | description { state: "hidden" 0.0; | ||
504 | inherit: "default" 0.0; | ||
505 | visible: 0; | ||
506 | rel2 { | ||
507 | relative: 1.0 0.0; | ||
508 | } | ||
509 | } | ||
510 | } | ||
511 | part { name: "back"; | ||
512 | type: EXTERNAL; | ||
513 | source: "elm/button"; | ||
514 | clip_to: "back_clipper"; | ||
515 | description { state: "default" 0.0; | ||
516 | align: 0.0 0.0; | ||
517 | fixed: 1 1; | ||
518 | rel1 { | ||
519 | relative: 0.0 0.0; | ||
520 | offset: 0 1; | ||
521 | } | ||
522 | rel2 { | ||
523 | relative: 0.0 0.0; | ||
524 | offset: 50 32; | ||
525 | } | ||
526 | params.string: "label" "Back"; | ||
527 | } | ||
528 | } | ||
529 | part { name: "back_clipper"; | ||
530 | type: RECT; | ||
531 | clip_to: "title_clipper"; | ||
532 | description { state: "default" 0.0; | ||
533 | visible: 1; | ||
534 | } | ||
535 | description { state: "hidden" 0.0; | ||
536 | visible: 0; | ||
537 | } | ||
538 | } | ||
539 | part { name: "next"; | ||
540 | type: EXTERNAL; | ||
541 | source: "elm/button"; | ||
542 | clip_to: "next_clipper"; | ||
543 | description { state: "default" 0.0; | ||
544 | align: 1.0 0.0; | ||
545 | fixed: 1 1; | ||
546 | rel1 { | ||
547 | relative: 1.0 0.0; | ||
548 | offset: -2 1; | ||
549 | } | ||
550 | rel2 { | ||
551 | relative: 1.0 0.0; | ||
552 | offset: -1 32; | ||
553 | } | ||
554 | params.string: "label" "Next"; | ||
555 | } | ||
556 | } | ||
557 | part { name: "next_clipper"; | ||
558 | type: RECT; | ||
559 | clip_to: "title_clipper"; | ||
560 | description { state: "default" 0.0; | ||
561 | visible: 1; | ||
562 | } | ||
563 | description { state: "hidden" 0.0; | ||
564 | visible: 0; | ||
565 | } | ||
566 | } | ||
567 | programs { | ||
568 | program { | ||
569 | signal: "clicked"; | ||
570 | source: "back"; | ||
571 | action: SIGNAL_EMIT "elm,action,back" ""; | ||
572 | } | ||
573 | program { | ||
574 | signal: "elm,title,hide"; | ||
575 | source: "elm"; | ||
576 | action: STATE_SET "hidden" 0.0; | ||
577 | transition: LINEAR 0.1; | ||
578 | target: "title_clipper"; | ||
579 | } | ||
580 | program { | ||
581 | signal: "elm,title,show"; | ||
582 | source: "elm"; | ||
583 | action: STATE_SET "default" 0.0; | ||
584 | target: "title_clipper"; | ||
585 | } | ||
586 | program { | ||
587 | signal: "elm,back,hide"; | ||
588 | source: "elm"; | ||
589 | action: STATE_SET "hidden" 0.0; | ||
590 | target: "back_clipper"; | ||
591 | } | ||
592 | program { | ||
593 | signal: "elm,back,show"; | ||
594 | source: "elm"; | ||
595 | action: STATE_SET "default" 0.0; | ||
596 | target: "back_clipper"; | ||
597 | } | ||
598 | program { | ||
599 | signal: "clicked"; | ||
600 | source: "next"; | ||
601 | action: SIGNAL_EMIT "elm,action,next" ""; | ||
602 | } | ||
603 | program { | ||
604 | signal: "elm,next,hide"; | ||
605 | source: "elm"; | ||
606 | action: STATE_SET "hidden" 0.0; | ||
607 | target: "next_clipper"; | ||
608 | } | ||
609 | program { | ||
610 | signal: "elm,next,show"; | ||
611 | source: "elm"; | ||
612 | action: STATE_SET "default" 0.0; | ||
613 | target: "next_clipper"; | ||
614 | } | ||
615 | } | ||
616 | part { name: "elm.text.title"; | ||
617 | type: TEXT; | ||
618 | effect: SOFT_SHADOW; | ||
619 | scale: 1; | ||
620 | clip_to: "title_clipper"; | ||
621 | description { state: "default" 0.0; | ||
622 | rel1 { | ||
623 | to_x: "back"; | ||
624 | relative: 1.0 0.0; | ||
625 | offset: 2 1; | ||
626 | } | ||
627 | rel2 { to_y: "back"; | ||
628 | to_x: "next"; | ||
629 | relative: 0.0 1.0; | ||
630 | offset: -3 -1; | ||
631 | } | ||
632 | text { | ||
633 | font: "Sans:style=Bold"; | ||
634 | size: 12; | ||
635 | } | ||
636 | } | ||
637 | } | ||
638 | } | ||
639 | } | ||
640 | |||
641 | /* application with toolbar and main content area as a vertical box */ | ||
642 | group { name: "elm/layout/application/toolbar-vbox"; | ||
643 | parts { | ||
644 | part { name: "elm.box.content"; | ||
645 | type: BOX; | ||
646 | description { state: "default" 0.0; | ||
647 | rel1 { to_y: "elm.external.toolbar"; | ||
648 | relative: 0.0 1.0; | ||
649 | offset: -1 1; | ||
650 | } | ||
651 | box.layout: "vertical"; | ||
652 | } | ||
653 | } | ||
654 | |||
655 | part { name: "elm.external.toolbar"; | ||
656 | type: EXTERNAL; | ||
657 | source: "elm/toolbar"; | ||
658 | description { state: "default" 0.0; | ||
659 | align: 0.5 0.0; | ||
660 | fixed: 0 1; | ||
661 | rel2 { | ||
662 | relative: 1.0 0.0; | ||
663 | offset: -1 47; | ||
664 | } | ||
665 | } | ||
666 | } | ||
667 | } | ||
668 | } | ||
669 | |||
670 | /* application with toolbar and main content area as a table */ | ||
671 | group { name: "elm/layout/application/toolbar-table"; | ||
672 | parts { | ||
673 | part { name: "elm.table.content"; | ||
674 | type: TABLE; | ||
675 | description { state: "default" 0.0; | ||
676 | rel1 { to_y: "elm.external.toolbar"; | ||
677 | relative: 0.0 1.0; | ||
678 | offset: -1 1; | ||
679 | } | ||
680 | } | ||
681 | } | ||
682 | |||
683 | part { name: "elm.external.toolbar"; | ||
684 | type: EXTERNAL; | ||
685 | source: "elm/toolbar"; | ||
686 | description { state: "default" 0.0; | ||
687 | align: 0.5 0.0; | ||
688 | fixed: 0 1; | ||
689 | rel2 { | ||
690 | relative: 1.0 0.0; | ||
691 | offset: -1 47; | ||
692 | } | ||
693 | } | ||
694 | } | ||
695 | } | ||
696 | } | ||
697 | /* a simple title layout, with a label and two icons */ | ||
698 | group { name: "elm/layout/application/titlebar"; | ||
699 | images { | ||
700 | image: "toolbar_sel.png" COMP; | ||
701 | } | ||
702 | parts { | ||
703 | part { name: "base"; | ||
704 | mouse_events: 0; | ||
705 | scale: 1; | ||
706 | description { state: "default" 0.0; | ||
707 | min: 0 33; | ||
708 | max: 99999 33; | ||
709 | align: 0.5 0.0; | ||
710 | rel1.offset: -1 0; | ||
711 | rel2.offset: 1 0; | ||
712 | image { | ||
713 | normal: "toolbar_sel.png"; | ||
714 | border: 3 3 0 0; | ||
715 | } | ||
716 | } | ||
717 | } | ||
718 | part { name: "elm.swallow.content"; | ||
719 | type: SWALLOW; | ||
720 | description { state: "default" 0.0; | ||
721 | visible: 1; | ||
722 | rel1 { | ||
723 | to: "base"; | ||
724 | relative: 0.0 1.0; | ||
725 | } | ||
726 | } | ||
727 | } | ||
728 | part { name: "elm.swallow.icon"; | ||
729 | type: SWALLOW; | ||
730 | scale: 1; | ||
731 | description { state: "default" 0.0; | ||
732 | visible: 0; | ||
733 | fixed: 1 1; | ||
734 | align: 0.0 0.0; | ||
735 | rel1 { | ||
736 | to: "base"; | ||
737 | relative: 0.0 0.0; | ||
738 | offset: 4 0; | ||
739 | } | ||
740 | rel2 { | ||
741 | to: "base"; | ||
742 | relative: 0.0 1.0; | ||
743 | } | ||
744 | } | ||
745 | description { state: "visible" 0.0; | ||
746 | inherit: "default" 0.0; | ||
747 | visible: 1; | ||
748 | } | ||
749 | } | ||
750 | part { name: "elm.swallow.end"; | ||
751 | type: SWALLOW; | ||
752 | scale: 1; | ||
753 | description { state: "default" 0.0; | ||
754 | visible: 0; | ||
755 | fixed: 1 1; | ||
756 | align: 1.0 0.0; | ||
757 | rel1 { | ||
758 | to: "base"; | ||
759 | relative: 1.0 0.0; | ||
760 | offset: 0 0; | ||
761 | } | ||
762 | rel2 { | ||
763 | to: "base"; | ||
764 | relative: 1.0 1.0; | ||
765 | offset: -5 -1; | ||
766 | } | ||
767 | } | ||
768 | description { state: "visible" 0.0; | ||
769 | inherit: "default" 0.0; | ||
770 | visible: 1; | ||
771 | } | ||
772 | } | ||
773 | part { name: "elm.text"; | ||
774 | type: TEXT; | ||
775 | effect: SOFT_SHADOW; | ||
776 | mouse_events: 0; | ||
777 | scale: 1; | ||
778 | description { state: "default" 0.0; | ||
779 | fixed: 1 1; | ||
780 | rel1 { | ||
781 | to_x: "elm.swallow.icon"; | ||
782 | to_y: "base"; | ||
783 | relative: 1.0 0.0; | ||
784 | } | ||
785 | rel2 { | ||
786 | to_x: "elm.swallow.end"; | ||
787 | to_y: "base"; | ||
788 | relative: 0.0 1.0; | ||
789 | } | ||
790 | text { | ||
791 | font: "Sans"; | ||
792 | size: 12; | ||
793 | min: 0 0; | ||
794 | align: 0.5 0.5; | ||
795 | text_class: "title_bar"; | ||
796 | } | ||
797 | } | ||
798 | } | ||
799 | } | ||
800 | programs { | ||
801 | program { name: "show_icon"; | ||
802 | signal: "elm,state,icon,visible"; | ||
803 | source: "elm"; | ||
804 | action: STATE_SET "visible" 0.0; | ||
805 | target: "elm.swallow.icon"; | ||
806 | } | ||
807 | program { name: "hide_icon"; | ||
808 | signal: "elm,state,icon,hidden"; | ||
809 | source: "elm"; | ||
810 | action: STATE_SET "default" 0.0; | ||
811 | target: "elm.swallow.icon"; | ||
812 | } | ||
813 | program { name: "show_end"; | ||
814 | signal: "elm,state,end,visible"; | ||
815 | source: "elm"; | ||
816 | action: STATE_SET "visible" 0.0; | ||
817 | target: "elm.swallow.end"; | ||
818 | } | ||
819 | program { name: "hide_end"; | ||
820 | signal: "elm,state,end,hidden"; | ||
821 | source: "elm"; | ||
822 | action: STATE_SET "default" 0.0; | ||
823 | target: "elm.swallow.end"; | ||
824 | } | ||
825 | } | ||
826 | } | ||
827 | |||
diff --git a/libraries/elementary/data/themes/widgets/list.edc b/libraries/elementary/data/themes/widgets/list.edc new file mode 100644 index 0000000..8a12592 --- /dev/null +++ b/libraries/elementary/data/themes/widgets/list.edc | |||
@@ -0,0 +1,1691 @@ | |||
1 | group { name: "elm/list/item/default"; | ||
2 | data.item: "stacking" "above"; | ||
3 | images { | ||
4 | image: "bt_sm_base1.png" COMP; | ||
5 | image: "bt_sm_shine.png" COMP; | ||
6 | image: "bt_sm_hilight.png" COMP; | ||
7 | image: "ilist_1.png" COMP; | ||
8 | image: "ilist_item_shadow.png" COMP; | ||
9 | } | ||
10 | parts { | ||
11 | part { | ||
12 | name: "event"; | ||
13 | type: RECT; | ||
14 | repeat_events: 1; | ||
15 | description { | ||
16 | state: "default" 0.0; | ||
17 | color: 0 0 0 0; | ||
18 | } | ||
19 | } | ||
20 | part { | ||
21 | name: "base_sh"; | ||
22 | mouse_events: 0; | ||
23 | description { | ||
24 | state: "default" 0.0; | ||
25 | align: 0.0 0.0; | ||
26 | min: 0 10; | ||
27 | fixed: 1 1; | ||
28 | rel1 { | ||
29 | to: "base"; | ||
30 | relative: 0.0 1.0; | ||
31 | offset: 0 0; | ||
32 | } | ||
33 | rel2 { | ||
34 | to: "base"; | ||
35 | relative: 1.0 1.0; | ||
36 | offset: -1 0; | ||
37 | } | ||
38 | image { | ||
39 | normal: "ilist_item_shadow.png"; | ||
40 | } | ||
41 | fill.smooth: 0; | ||
42 | } | ||
43 | } | ||
44 | part { | ||
45 | name: "base"; | ||
46 | mouse_events: 0; | ||
47 | description { | ||
48 | state: "default" 0.0; | ||
49 | image { | ||
50 | normal: "ilist_1.png"; | ||
51 | border: 2 2 2 2; | ||
52 | } | ||
53 | fill.smooth: 0; | ||
54 | } | ||
55 | } | ||
56 | part { name: "bg"; | ||
57 | clip_to: "disclip"; | ||
58 | mouse_events: 0; | ||
59 | description { state: "default" 0.0; | ||
60 | visible: 0; | ||
61 | color: 255 255 255 0; | ||
62 | rel1 { | ||
63 | relative: 0.0 0.0; | ||
64 | offset: -5 -5; | ||
65 | } | ||
66 | rel2 { | ||
67 | relative: 1.0 1.0; | ||
68 | offset: 4 4; | ||
69 | } | ||
70 | image { | ||
71 | normal: "bt_sm_base1.png"; | ||
72 | border: 6 6 6 6; | ||
73 | } | ||
74 | image.middle: SOLID; | ||
75 | } | ||
76 | description { state: "selected" 0.0; | ||
77 | inherit: "default" 0.0; | ||
78 | visible: 1; | ||
79 | color: 255 255 255 255; | ||
80 | rel1 { | ||
81 | relative: 0.0 0.0; | ||
82 | offset: -2 -2; | ||
83 | } | ||
84 | rel2 { | ||
85 | relative: 1.0 1.0; | ||
86 | offset: 1 1; | ||
87 | } | ||
88 | } | ||
89 | } | ||
90 | part { name: "elm.swallow.icon"; | ||
91 | clip_to: "disclip"; | ||
92 | type: SWALLOW; | ||
93 | description { state: "default" 0.0; | ||
94 | fixed: 1 0; | ||
95 | align: 0.0 0.5; | ||
96 | rel1 { | ||
97 | relative: 0.0 0.0; | ||
98 | offset: 4 4; | ||
99 | } | ||
100 | rel2 { | ||
101 | relative: 0.0 1.0; | ||
102 | offset: 4 -5; | ||
103 | } | ||
104 | } | ||
105 | } | ||
106 | part { name: "elm.swallow.end"; | ||
107 | clip_to: "disclip"; | ||
108 | type: SWALLOW; | ||
109 | description { state: "default" 0.0; | ||
110 | fixed: 1 0; | ||
111 | align: 1.0 0.5; | ||
112 | rel1 { | ||
113 | relative: 1.0 0.0; | ||
114 | offset: -5 4; | ||
115 | } | ||
116 | rel2 { | ||
117 | relative: 1.0 1.0; | ||
118 | offset: -5 -5; | ||
119 | } | ||
120 | } | ||
121 | } | ||
122 | part { name: "elm.text"; | ||
123 | clip_to: "disclip"; | ||
124 | type: TEXT; | ||
125 | effect: SOFT_SHADOW; | ||
126 | mouse_events: 0; | ||
127 | scale: 1; | ||
128 | description { | ||
129 | state: "default" 0.0; | ||
130 | // min: 16 16; | ||
131 | rel1 { | ||
132 | to_x: "elm.swallow.icon"; | ||
133 | relative: 1.0 0.0; | ||
134 | offset: 4 4; | ||
135 | } | ||
136 | rel2 { | ||
137 | to_x: "elm.swallow.end"; | ||
138 | relative: 0.0 1.0; | ||
139 | offset: -1 -5; | ||
140 | } | ||
141 | color: 0 0 0 255; | ||
142 | color3: 0 0 0 0; | ||
143 | text { | ||
144 | font: "Sans"; | ||
145 | size: 10; | ||
146 | min: 1 1; | ||
147 | // min: 0 1; | ||
148 | align: -1.0 0.5; | ||
149 | text_class: "list_item"; | ||
150 | } | ||
151 | } | ||
152 | description { state: "selected" 0.0; | ||
153 | inherit: "default" 0.0; | ||
154 | color: 224 224 224 255; | ||
155 | color3: 0 0 0 64; | ||
156 | } | ||
157 | } | ||
158 | part { name: "fg1"; | ||
159 | clip_to: "disclip"; | ||
160 | mouse_events: 0; | ||
161 | description { state: "default" 0.0; | ||
162 | visible: 0; | ||
163 | color: 255 255 255 0; | ||
164 | rel1.to: "bg"; | ||
165 | rel2.relative: 1.0 0.5; | ||
166 | rel2.to: "bg"; | ||
167 | image { | ||
168 | normal: "bt_sm_hilight.png"; | ||
169 | border: 6 6 6 0; | ||
170 | } | ||
171 | } | ||
172 | description { state: "selected" 0.0; | ||
173 | inherit: "default" 0.0; | ||
174 | visible: 1; | ||
175 | color: 255 255 255 255; | ||
176 | } | ||
177 | } | ||
178 | part { name: "fg2"; | ||
179 | clip_to: "disclip"; | ||
180 | mouse_events: 0; | ||
181 | description { state: "default" 0.0; | ||
182 | visible: 0; | ||
183 | color: 255 255 255 0; | ||
184 | rel1.to: "bg"; | ||
185 | rel2.to: "bg"; | ||
186 | image { | ||
187 | normal: "bt_sm_shine.png"; | ||
188 | border: 6 6 6 0; | ||
189 | } | ||
190 | } | ||
191 | description { state: "selected" 0.0; | ||
192 | inherit: "default" 0.0; | ||
193 | visible: 1; | ||
194 | color: 255 255 255 255; | ||
195 | } | ||
196 | } | ||
197 | part { name: "disclip"; | ||
198 | type: RECT; | ||
199 | description { state: "default" 0.0; | ||
200 | rel1.to: "bg"; | ||
201 | rel2.to: "bg"; | ||
202 | } | ||
203 | description { state: "disabled" 0.0; | ||
204 | inherit: "default" 0.0; | ||
205 | color: 255 255 255 64; | ||
206 | } | ||
207 | } | ||
208 | } | ||
209 | programs { | ||
210 | program { | ||
211 | name: "go_active"; | ||
212 | signal: "elm,state,selected"; | ||
213 | source: "elm"; | ||
214 | action: STATE_SET "selected" 0.0; | ||
215 | target: "bg"; | ||
216 | target: "fg1"; | ||
217 | target: "fg2"; | ||
218 | target: "elm.text"; | ||
219 | } | ||
220 | program { | ||
221 | name: "go_passive"; | ||
222 | signal: "elm,state,unselected"; | ||
223 | source: "elm"; | ||
224 | action: STATE_SET "default" 0.0; | ||
225 | target: "bg"; | ||
226 | target: "fg1"; | ||
227 | target: "fg2"; | ||
228 | target: "elm.text"; | ||
229 | transition: LINEAR 0.1; | ||
230 | } | ||
231 | program { | ||
232 | name: "go_disabled"; | ||
233 | signal: "elm,state,disabled"; | ||
234 | source: "elm"; | ||
235 | action: STATE_SET "disabled" 0.0; | ||
236 | target: "disclip"; | ||
237 | } | ||
238 | program { | ||
239 | name: "go_enabled"; | ||
240 | signal: "elm,state,enabled"; | ||
241 | source: "elm"; | ||
242 | action: STATE_SET "default" 0.0; | ||
243 | target: "disclip"; | ||
244 | } | ||
245 | } | ||
246 | } | ||
247 | group { name: "elm/list/item_odd/default"; | ||
248 | data.item: "stacking" "below"; | ||
249 | data.item: "selectraise" "on"; | ||
250 | images { | ||
251 | image: "bt_sm_base1.png" COMP; | ||
252 | image: "bt_sm_shine.png" COMP; | ||
253 | image: "bt_sm_hilight.png" COMP; | ||
254 | image: "ilist_2.png" COMP; | ||
255 | } | ||
256 | parts { | ||
257 | part { | ||
258 | name: "event"; | ||
259 | type: RECT; | ||
260 | repeat_events: 1; | ||
261 | description { | ||
262 | state: "default" 0.0; | ||
263 | color: 0 0 0 0; | ||
264 | } | ||
265 | } | ||
266 | part { | ||
267 | name: "base"; | ||
268 | mouse_events: 0; | ||
269 | description { | ||
270 | state: "default" 0.0; | ||
271 | image { | ||
272 | normal: "ilist_2.png"; | ||
273 | border: 2 2 2 2; | ||
274 | } | ||
275 | fill.smooth: 0; | ||
276 | } | ||
277 | } | ||
278 | part { name: "bg"; | ||
279 | clip_to: "disclip"; | ||
280 | mouse_events: 0; | ||
281 | description { state: "default" 0.0; | ||
282 | visible: 0; | ||
283 | color: 255 255 255 0; | ||
284 | rel1 { | ||
285 | relative: 0.0 0.0; | ||
286 | offset: -5 -5; | ||
287 | } | ||
288 | rel2 { | ||
289 | relative: 1.0 1.0; | ||
290 | offset: 4 4; | ||
291 | } | ||
292 | image { | ||
293 | normal: "bt_sm_base1.png"; | ||
294 | border: 6 6 6 6; | ||
295 | } | ||
296 | image.middle: SOLID; | ||
297 | } | ||
298 | description { state: "selected" 0.0; | ||
299 | inherit: "default" 0.0; | ||
300 | visible: 1; | ||
301 | color: 255 255 255 255; | ||
302 | rel1 { | ||
303 | relative: 0.0 0.0; | ||
304 | offset: -2 -2; | ||
305 | } | ||
306 | rel2 { | ||
307 | relative: 1.0 1.0; | ||
308 | offset: 1 1; | ||
309 | } | ||
310 | } | ||
311 | } | ||
312 | part { | ||
313 | name: "elm.swallow.icon"; | ||
314 | clip_to: "disclip"; | ||
315 | type: SWALLOW; | ||
316 | description { state: "default" 0.0; | ||
317 | fixed: 1 0; | ||
318 | align: 0.0 0.5; | ||
319 | rel1 { | ||
320 | relative: 0.0 0.0; | ||
321 | offset: 4 4; | ||
322 | } | ||
323 | rel2 { | ||
324 | relative: 0.0 1.0; | ||
325 | offset: 4 -5; | ||
326 | } | ||
327 | } | ||
328 | } | ||
329 | part { | ||
330 | name: "elm.swallow.end"; | ||
331 | clip_to: "disclip"; | ||
332 | type: SWALLOW; | ||
333 | description { state: "default" 0.0; | ||
334 | fixed: 1 0; | ||
335 | align: 1.0 0.5; | ||
336 | rel1 { | ||
337 | relative: 1.0 0.0; | ||
338 | offset: -5 4; | ||
339 | } | ||
340 | rel2 { | ||
341 | relative: 1.0 1.0; | ||
342 | offset: -5 -5; | ||
343 | } | ||
344 | } | ||
345 | } | ||
346 | part { | ||
347 | name: "elm.text"; | ||
348 | clip_to: "disclip"; | ||
349 | type: TEXT; | ||
350 | effect: SOFT_SHADOW; | ||
351 | mouse_events: 0; | ||
352 | scale: 1; | ||
353 | description { | ||
354 | state: "default" 0.0; | ||
355 | // min: 16 16; | ||
356 | rel1 { | ||
357 | to_x: "elm.swallow.icon"; | ||
358 | relative: 1.0 0.0; | ||
359 | offset: 4 4; | ||
360 | } | ||
361 | rel2 { | ||
362 | to_x: "elm.swallow.end"; | ||
363 | relative: 0.0 1.0; | ||
364 | offset: -1 -5; | ||
365 | } | ||
366 | color: 0 0 0 255; | ||
367 | color3: 0 0 0 0; | ||
368 | text { | ||
369 | font: "Sans"; | ||
370 | size: 10; | ||
371 | min: 1 1; | ||
372 | // min: 0 1; | ||
373 | align: -1.0 0.5; | ||
374 | text_class: "list_item"; | ||
375 | } | ||
376 | } | ||
377 | description { state: "selected" 0.0; | ||
378 | inherit: "default" 0.0; | ||
379 | color: 224 224 224 255; | ||
380 | color3: 0 0 0 64; | ||
381 | } | ||
382 | } | ||
383 | part { name: "fg1"; | ||
384 | clip_to: "disclip"; | ||
385 | mouse_events: 0; | ||
386 | description { state: "default" 0.0; | ||
387 | visible: 0; | ||
388 | color: 255 255 255 0; | ||
389 | rel1.to: "bg"; | ||
390 | rel2.relative: 1.0 0.5; | ||
391 | rel2.to: "bg"; | ||
392 | image { | ||
393 | normal: "bt_sm_hilight.png"; | ||
394 | border: 6 6 6 0; | ||
395 | } | ||
396 | } | ||
397 | description { state: "selected" 0.0; | ||
398 | inherit: "default" 0.0; | ||
399 | visible: 1; | ||
400 | color: 255 255 255 255; | ||
401 | } | ||
402 | } | ||
403 | part { name: "fg2"; | ||
404 | clip_to: "disclip"; | ||
405 | mouse_events: 0; | ||
406 | description { state: "default" 0.0; | ||
407 | visible: 0; | ||
408 | color: 255 255 255 0; | ||
409 | rel1.to: "bg"; | ||
410 | rel2.to: "bg"; | ||
411 | image { | ||
412 | normal: "bt_sm_shine.png"; | ||
413 | border: 6 6 6 0; | ||
414 | } | ||
415 | } | ||
416 | description { state: "selected" 0.0; | ||
417 | inherit: "default" 0.0; | ||
418 | visible: 1; | ||
419 | color: 255 255 255 255; | ||
420 | } | ||
421 | } | ||
422 | part { name: "disclip"; | ||
423 | type: RECT; | ||
424 | description { state: "default" 0.0; | ||
425 | rel1.to: "bg"; | ||
426 | rel2.to: "bg"; | ||
427 | } | ||
428 | description { state: "disabled" 0.0; | ||
429 | inherit: "default" 0.0; | ||
430 | color: 255 255 255 64; | ||
431 | } | ||
432 | } | ||
433 | } | ||
434 | programs { | ||
435 | program { | ||
436 | name: "go_active"; | ||
437 | signal: "elm,state,selected"; | ||
438 | source: "elm"; | ||
439 | action: STATE_SET "selected" 0.0; | ||
440 | target: "bg"; | ||
441 | target: "fg1"; | ||
442 | target: "fg2"; | ||
443 | target: "elm.text"; | ||
444 | } | ||
445 | program { | ||
446 | name: "go_passive"; | ||
447 | signal: "elm,state,unselected"; | ||
448 | source: "elm"; | ||
449 | action: STATE_SET "default" 0.0; | ||
450 | target: "bg"; | ||
451 | target: "fg1"; | ||
452 | target: "fg2"; | ||
453 | target: "elm.text"; | ||
454 | transition: LINEAR 0.1; | ||
455 | } | ||
456 | program { | ||
457 | name: "go_disabled"; | ||
458 | signal: "elm,state,disabled"; | ||
459 | source: "elm"; | ||
460 | action: STATE_SET "disabled" 0.0; | ||
461 | target: "disclip"; | ||
462 | } | ||
463 | program { | ||
464 | name: "go_enabled"; | ||
465 | signal: "elm,state,enabled"; | ||
466 | source: "elm"; | ||
467 | action: STATE_SET "default" 0.0; | ||
468 | target: "disclip"; | ||
469 | } | ||
470 | } | ||
471 | } | ||
472 | group { name: "elm/list/item_compress/default"; | ||
473 | data.item: "stacking" "above"; | ||
474 | data.item: "selectraise" "on"; | ||
475 | images { | ||
476 | image: "bt_sm_base1.png" COMP; | ||
477 | image: "bt_sm_shine.png" COMP; | ||
478 | image: "bt_sm_hilight.png" COMP; | ||
479 | image: "ilist_1.png" COMP; | ||
480 | image: "ilist_item_shadow.png" COMP; | ||
481 | } | ||
482 | parts { | ||
483 | part { | ||
484 | name: "event"; | ||
485 | type: RECT; | ||
486 | repeat_events: 1; | ||
487 | description { | ||
488 | state: "default" 0.0; | ||
489 | color: 0 0 0 0; | ||
490 | } | ||
491 | } | ||
492 | part { | ||
493 | name: "base_sh"; | ||
494 | mouse_events: 0; | ||
495 | description { state: "default" 0.0; | ||
496 | fixed: 1 1; | ||
497 | align: 0.0 0.0; | ||
498 | min: 0 10; | ||
499 | rel1 { | ||
500 | to: "base"; | ||
501 | relative: 0.0 1.0; | ||
502 | offset: 0 0; | ||
503 | } | ||
504 | rel2 { | ||
505 | to: "base"; | ||
506 | relative: 1.0 1.0; | ||
507 | offset: -1 0; | ||
508 | } | ||
509 | image { | ||
510 | normal: "ilist_item_shadow.png"; | ||
511 | } | ||
512 | fill.smooth: 0; | ||
513 | } | ||
514 | } | ||
515 | part { | ||
516 | name: "base"; | ||
517 | mouse_events: 0; | ||
518 | description { | ||
519 | state: "default" 0.0; | ||
520 | image { | ||
521 | normal: "ilist_1.png"; | ||
522 | border: 2 2 2 2; | ||
523 | } | ||
524 | fill.smooth: 0; | ||
525 | } | ||
526 | } | ||
527 | part { name: "bg"; | ||
528 | mouse_events: 0; | ||
529 | description { state: "default" 0.0; | ||
530 | visible: 0; | ||
531 | color: 255 255 255 0; | ||
532 | rel1 { | ||
533 | relative: 0.0 0.0; | ||
534 | offset: -5 -5; | ||
535 | } | ||
536 | rel2 { | ||
537 | relative: 1.0 1.0; | ||
538 | offset: 4 4; | ||
539 | } | ||
540 | image { | ||
541 | normal: "bt_sm_base1.png"; | ||
542 | border: 6 6 6 6; | ||
543 | } | ||
544 | image.middle: SOLID; | ||
545 | } | ||
546 | description { state: "selected" 0.0; | ||
547 | inherit: "default" 0.0; | ||
548 | visible: 1; | ||
549 | color: 255 255 255 255; | ||
550 | rel1 { | ||
551 | relative: 0.0 0.0; | ||
552 | offset: -2 -2; | ||
553 | } | ||
554 | rel2 { | ||
555 | relative: 1.0 1.0; | ||
556 | offset: 1 1; | ||
557 | } | ||
558 | } | ||
559 | } | ||
560 | part { name: "elm.swallow.icon"; | ||
561 | type: SWALLOW; | ||
562 | description { state: "default" 0.0; | ||
563 | fixed: 1 0; | ||
564 | align: 0.0 0.5; | ||
565 | rel1 { | ||
566 | relative: 0.0 0.0; | ||
567 | offset: 4 4; | ||
568 | } | ||
569 | rel2 { | ||
570 | relative: 0.0 1.0; | ||
571 | offset: 4 -5; | ||
572 | } | ||
573 | } | ||
574 | } | ||
575 | part { name: "elm.swallow.end"; | ||
576 | type: SWALLOW; | ||
577 | description { state: "default" 0.0; | ||
578 | fixed: 1 0; | ||
579 | align: 1.0 0.5; | ||
580 | rel1 { | ||
581 | relative: 1.0 0.0; | ||
582 | offset: -5 4; | ||
583 | } | ||
584 | rel2 { | ||
585 | relative: 1.0 1.0; | ||
586 | offset: -5 -5; | ||
587 | } | ||
588 | } | ||
589 | } | ||
590 | part { | ||
591 | name: "elm.text"; | ||
592 | type: TEXT; | ||
593 | effect: SOFT_SHADOW; | ||
594 | mouse_events: 0; | ||
595 | scale: 1; | ||
596 | description { state: "default" 0.0; | ||
597 | // min: 16 16; | ||
598 | rel1 { | ||
599 | to_x: "elm.swallow.icon"; | ||
600 | relative: 1.0 0.0; | ||
601 | offset: 4 4; | ||
602 | } | ||
603 | rel2 { | ||
604 | to_x: "elm.swallow.end"; | ||
605 | relative: 0.0 1.0; | ||
606 | offset: -1 -5; | ||
607 | } | ||
608 | color: 0 0 0 255; | ||
609 | color3: 0 0 0 0; | ||
610 | text { | ||
611 | font: "Sans"; | ||
612 | size: 10; | ||
613 | // min: 1 1; | ||
614 | min: 0 1; | ||
615 | align: 0.0 0.5; | ||
616 | text_class: "list_item"; | ||
617 | } | ||
618 | } | ||
619 | description { state: "selected" 0.0; | ||
620 | inherit: "default" 0.0; | ||
621 | color: 224 224 224 255; | ||
622 | color3: 0 0 0 64; | ||
623 | } | ||
624 | } | ||
625 | part { name: "fg1"; | ||
626 | mouse_events: 0; | ||
627 | description { state: "default" 0.0; | ||
628 | visible: 0; | ||
629 | color: 255 255 255 0; | ||
630 | rel1.to: "bg"; | ||
631 | rel2.relative: 1.0 0.5; | ||
632 | rel2.to: "bg"; | ||
633 | image { | ||
634 | normal: "bt_sm_hilight.png"; | ||
635 | border: 6 6 6 0; | ||
636 | } | ||
637 | } | ||
638 | description { state: "selected" 0.0; | ||
639 | inherit: "default" 0.0; | ||
640 | visible: 1; | ||
641 | color: 255 255 255 255; | ||
642 | } | ||
643 | } | ||
644 | part { name: "fg2"; | ||
645 | mouse_events: 0; | ||
646 | description { state: "default" 0.0; | ||
647 | visible: 0; | ||
648 | color: 255 255 255 0; | ||
649 | rel1.to: "bg"; | ||
650 | rel2.to: "bg"; | ||
651 | image { | ||
652 | normal: "bt_sm_shine.png"; | ||
653 | border: 6 6 6 0; | ||
654 | } | ||
655 | } | ||
656 | description { state: "selected" 0.0; | ||
657 | inherit: "default" 0.0; | ||
658 | visible: 1; | ||
659 | color: 255 255 255 255; | ||
660 | } | ||
661 | } | ||
662 | } | ||
663 | programs { | ||
664 | program { | ||
665 | name: "go_active"; | ||
666 | signal: "elm,state,selected"; | ||
667 | source: "elm"; | ||
668 | action: STATE_SET "selected" 0.0; | ||
669 | target: "bg"; | ||
670 | target: "fg1"; | ||
671 | target: "fg2"; | ||
672 | target: "elm.text"; | ||
673 | } | ||
674 | program { | ||
675 | name: "go_passive"; | ||
676 | signal: "elm,state,unselected"; | ||
677 | source: "elm"; | ||
678 | action: STATE_SET "default" 0.0; | ||
679 | target: "bg"; | ||
680 | target: "fg1"; | ||
681 | target: "fg2"; | ||
682 | target: "elm.text"; | ||
683 | transition: LINEAR 0.1; | ||
684 | } | ||
685 | } | ||
686 | } | ||
687 | group { name: "elm/list/item_compress_odd/default"; | ||
688 | data.item: "stacking" "below"; | ||
689 | data.item: "selectraise" "on"; | ||
690 | images { | ||
691 | image: "bt_sm_base1.png" COMP; | ||
692 | image: "bt_sm_shine.png" COMP; | ||
693 | image: "bt_sm_hilight.png" COMP; | ||
694 | image: "ilist_2.png" COMP; | ||
695 | } | ||
696 | parts { | ||
697 | part { | ||
698 | name: "event"; | ||
699 | type: RECT; | ||
700 | repeat_events: 1; | ||
701 | description { | ||
702 | state: "default" 0.0; | ||
703 | color: 0 0 0 0; | ||
704 | } | ||
705 | } | ||
706 | part { | ||
707 | name: "base"; | ||
708 | mouse_events: 0; | ||
709 | description { | ||
710 | state: "default" 0.0; | ||
711 | image { | ||
712 | normal: "ilist_2.png"; | ||
713 | border: 2 2 2 2; | ||
714 | } | ||
715 | fill.smooth: 0; | ||
716 | } | ||
717 | } | ||
718 | part { name: "bg"; | ||
719 | mouse_events: 0; | ||
720 | description { state: "default" 0.0; | ||
721 | visible: 0; | ||
722 | color: 255 255 255 0; | ||
723 | rel1 { | ||
724 | relative: 0.0 0.0; | ||
725 | offset: -5 -5; | ||
726 | } | ||
727 | rel2 { | ||
728 | relative: 1.0 1.0; | ||
729 | offset: 4 4; | ||
730 | } | ||
731 | image { | ||
732 | normal: "bt_sm_base1.png"; | ||
733 | border: 6 6 6 6; | ||
734 | } | ||
735 | image.middle: SOLID; | ||
736 | } | ||
737 | description { state: "selected" 0.0; | ||
738 | inherit: "default" 0.0; | ||
739 | visible: 1; | ||
740 | color: 255 255 255 255; | ||
741 | rel1 { | ||
742 | relative: 0.0 0.0; | ||
743 | offset: -2 -2; | ||
744 | } | ||
745 | rel2 { | ||
746 | relative: 1.0 1.0; | ||
747 | offset: 1 1; | ||
748 | } | ||
749 | } | ||
750 | } | ||
751 | part { name: "elm.swallow.icon"; | ||
752 | type: SWALLOW; | ||
753 | description { state: "default" 0.0; | ||
754 | fixed: 1 0; | ||
755 | align: 0.0 0.5; | ||
756 | rel1 { | ||
757 | relative: 0.0 0.0; | ||
758 | offset: 4 4; | ||
759 | } | ||
760 | rel2 { | ||
761 | relative: 0.0 1.0; | ||
762 | offset: 4 -5; | ||
763 | } | ||
764 | } | ||
765 | } | ||
766 | part { name: "elm.swallow.end"; | ||
767 | type: SWALLOW; | ||
768 | description { state: "default" 0.0; | ||
769 | fixed: 1 0; | ||
770 | align: 1.0 0.5; | ||
771 | rel1 { | ||
772 | relative: 1.0 0.0; | ||
773 | offset: -5 4; | ||
774 | } | ||
775 | rel2 { | ||
776 | relative: 1.0 1.0; | ||
777 | offset: -5 -5; | ||
778 | } | ||
779 | } | ||
780 | } | ||
781 | part { | ||
782 | name: "elm.text"; | ||
783 | type: TEXT; | ||
784 | effect: SOFT_SHADOW; | ||
785 | mouse_events: 0; | ||
786 | scale: 1; | ||
787 | description { | ||
788 | state: "default" 0.0; | ||
789 | // min: 16 16; | ||
790 | rel1 { | ||
791 | to_x: "elm.swallow.icon"; | ||
792 | relative: 1.0 0.0; | ||
793 | offset: 4 4; | ||
794 | } | ||
795 | rel2 { | ||
796 | to_x: "elm.swallow.end"; | ||
797 | relative: 0.0 1.0; | ||
798 | offset: -1 -5; | ||
799 | } | ||
800 | color: 0 0 0 255; | ||
801 | color3: 0 0 0 0; | ||
802 | text { | ||
803 | font: "Sans"; | ||
804 | size: 10; | ||
805 | // min: 1 1; | ||
806 | min: 0 1; | ||
807 | align: 0.0 0.5; | ||
808 | text_class: "list_item"; | ||
809 | } | ||
810 | } | ||
811 | description { state: "selected" 0.0; | ||
812 | inherit: "default" 0.0; | ||
813 | color: 224 224 224 255; | ||
814 | color3: 0 0 0 64; | ||
815 | } | ||
816 | } | ||
817 | part { name: "fg1"; | ||
818 | mouse_events: 0; | ||
819 | description { state: "default" 0.0; | ||
820 | visible: 0; | ||
821 | color: 255 255 255 0; | ||
822 | rel1.to: "bg"; | ||
823 | rel2.relative: 1.0 0.5; | ||
824 | rel2.to: "bg"; | ||
825 | image { | ||
826 | normal: "bt_sm_hilight.png"; | ||
827 | border: 6 6 6 0; | ||
828 | } | ||
829 | } | ||
830 | description { state: "selected" 0.0; | ||
831 | inherit: "default" 0.0; | ||
832 | visible: 1; | ||
833 | color: 255 255 255 255; | ||
834 | } | ||
835 | } | ||
836 | part { name: "fg2"; | ||
837 | mouse_events: 0; | ||
838 | description { state: "default" 0.0; | ||
839 | visible: 0; | ||
840 | color: 255 255 255 0; | ||
841 | rel1.to: "bg"; | ||
842 | rel2.to: "bg"; | ||
843 | image { | ||
844 | normal: "bt_sm_shine.png"; | ||
845 | border: 6 6 6 0; | ||
846 | } | ||
847 | } | ||
848 | description { state: "selected" 0.0; | ||
849 | inherit: "default" 0.0; | ||
850 | visible: 1; | ||
851 | color: 255 255 255 255; | ||
852 | } | ||
853 | } | ||
854 | } | ||
855 | programs { | ||
856 | program { | ||
857 | name: "go_active"; | ||
858 | signal: "elm,state,selected"; | ||
859 | source: "elm"; | ||
860 | action: STATE_SET "selected" 0.0; | ||
861 | target: "bg"; | ||
862 | target: "fg1"; | ||
863 | target: "fg2"; | ||
864 | target: "elm.text"; | ||
865 | } | ||
866 | program { | ||
867 | name: "go_passive"; | ||
868 | signal: "elm,state,unselected"; | ||
869 | source: "elm"; | ||
870 | action: STATE_SET "default" 0.0; | ||
871 | target: "bg"; | ||
872 | target: "fg1"; | ||
873 | target: "fg2"; | ||
874 | target: "elm.text"; | ||
875 | transition: LINEAR 0.1; | ||
876 | } | ||
877 | } | ||
878 | } | ||
879 | |||
880 | /////////////////////////////////////////////////////////////////////////////// | ||
881 | group { name: "elm/list/h_item/default"; | ||
882 | data.item: "stacking" "above"; | ||
883 | images { | ||
884 | image: "bt_sm_base1.png" COMP; | ||
885 | image: "bt_sm_shine.png" COMP; | ||
886 | image: "bt_sm_hilight.png" COMP; | ||
887 | image: "ilist_1_h.png" COMP; | ||
888 | image: "ilist_item_shadow_h.png" COMP; | ||
889 | } | ||
890 | parts { | ||
891 | part { | ||
892 | name: "event"; | ||
893 | type: RECT; | ||
894 | repeat_events: 1; | ||
895 | description { | ||
896 | state: "default" 0.0; | ||
897 | color: 0 0 0 0; | ||
898 | } | ||
899 | } | ||
900 | part { | ||
901 | name: "base_sh"; | ||
902 | mouse_events: 0; | ||
903 | description { | ||
904 | state: "default" 0.0; | ||
905 | align: 0.0 0.0; | ||
906 | min: 10 0; | ||
907 | fixed: 1 1; | ||
908 | rel1 { | ||
909 | to: "base"; | ||
910 | relative: 1.0 0.0; | ||
911 | offset: 0 0; | ||
912 | } | ||
913 | rel2 { | ||
914 | to: "base"; | ||
915 | relative: 1.0 1.0; | ||
916 | offset: 0 -1; | ||
917 | } | ||
918 | image { | ||
919 | normal: "ilist_item_shadow_h.png"; | ||
920 | } | ||
921 | fill.smooth: 0; | ||
922 | } | ||
923 | } | ||
924 | part { | ||
925 | name: "base"; | ||
926 | mouse_events: 0; | ||
927 | description { | ||
928 | state: "default" 0.0; | ||
929 | image { | ||
930 | normal: "ilist_1_h.png"; | ||
931 | border: 2 2 2 2; | ||
932 | } | ||
933 | fill.smooth: 0; | ||
934 | } | ||
935 | } | ||
936 | part { name: "bg"; | ||
937 | mouse_events: 0; | ||
938 | description { state: "default" 0.0; | ||
939 | visible: 0; | ||
940 | color: 255 255 255 0; | ||
941 | rel1 { | ||
942 | relative: 0.0 0.0; | ||
943 | offset: -5 -5; | ||
944 | } | ||
945 | rel2 { | ||
946 | relative: 1.0 1.0; | ||
947 | offset: 4 4; | ||
948 | } | ||
949 | image { | ||
950 | normal: "bt_sm_base1.png"; | ||
951 | border: 6 6 6 6; | ||
952 | } | ||
953 | image.middle: SOLID; | ||
954 | } | ||
955 | description { state: "selected" 0.0; | ||
956 | inherit: "default" 0.0; | ||
957 | visible: 1; | ||
958 | color: 255 255 255 255; | ||
959 | rel1 { | ||
960 | relative: 0.0 0.0; | ||
961 | offset: -2 -2; | ||
962 | } | ||
963 | rel2 { | ||
964 | relative: 1.0 1.0; | ||
965 | offset: 1 1; | ||
966 | } | ||
967 | } | ||
968 | } | ||
969 | part { name: "elm.swallow.icon"; | ||
970 | type: SWALLOW; | ||
971 | description { state: "default" 0.0; | ||
972 | fixed: 0 1; | ||
973 | align: 0.5 0.0; | ||
974 | rel1 { | ||
975 | relative: 0.0 0.0; | ||
976 | offset: 4 4; | ||
977 | } | ||
978 | rel2 { | ||
979 | relative: 1.0 0.0; | ||
980 | offset: -5 4; | ||
981 | } | ||
982 | } | ||
983 | } | ||
984 | part { name: "elm.swallow.end"; | ||
985 | type: SWALLOW; | ||
986 | description { state: "default" 0.0; | ||
987 | fixed: 0 1; | ||
988 | align: 0.5 1.0; | ||
989 | rel1 { | ||
990 | relative: 0.0 1.0; | ||
991 | offset: 4 -5; | ||
992 | } | ||
993 | rel2 { | ||
994 | relative: 1.0 1.0; | ||
995 | offset: -5 -5; | ||
996 | } | ||
997 | } | ||
998 | } | ||
999 | part { name: "elm.text"; | ||
1000 | type: TEXT; | ||
1001 | effect: SOFT_SHADOW; | ||
1002 | mouse_events: 0; | ||
1003 | scale: 1; | ||
1004 | description { | ||
1005 | state: "default" 0.0; | ||
1006 | fixed: 0 1; | ||
1007 | rel1 { | ||
1008 | to_x: "elm.swallow.icon"; | ||
1009 | relative: 0.0 1.0; | ||
1010 | offset: 4 4; | ||
1011 | } | ||
1012 | rel2 { | ||
1013 | to_x: "elm.swallow.end"; | ||
1014 | relative: 1.0 0.0; | ||
1015 | offset: -5 -1; | ||
1016 | } | ||
1017 | color: 0 0 0 255; | ||
1018 | color3: 0 0 0 0; | ||
1019 | text { | ||
1020 | font: "Sans"; | ||
1021 | size: 10; | ||
1022 | min: 1 1; | ||
1023 | align: 0.5 0.5; | ||
1024 | text_class: "list_item"; | ||
1025 | } | ||
1026 | } | ||
1027 | description { state: "selected" 0.0; | ||
1028 | inherit: "default" 0.0; | ||
1029 | color: 224 224 224 255; | ||
1030 | color3: 0 0 0 64; | ||
1031 | } | ||
1032 | } | ||
1033 | part { name: "fg1"; | ||
1034 | mouse_events: 0; | ||
1035 | description { state: "default" 0.0; | ||
1036 | visible: 0; | ||
1037 | color: 255 255 255 0; | ||
1038 | rel1.to: "bg"; | ||
1039 | rel2.relative: 1.0 0.5; | ||
1040 | rel2.to: "bg"; | ||
1041 | image { | ||
1042 | normal: "bt_sm_hilight.png"; | ||
1043 | border: 6 6 6 0; | ||
1044 | } | ||
1045 | } | ||
1046 | description { state: "selected" 0.0; | ||
1047 | inherit: "default" 0.0; | ||
1048 | visible: 1; | ||
1049 | color: 255 255 255 255; | ||
1050 | } | ||
1051 | } | ||
1052 | part { name: "fg2"; | ||
1053 | mouse_events: 0; | ||
1054 | description { state: "default" 0.0; | ||
1055 | visible: 0; | ||
1056 | color: 255 255 255 0; | ||
1057 | rel1.to: "bg"; | ||
1058 | rel2.to: "bg"; | ||
1059 | image { | ||
1060 | normal: "bt_sm_shine.png"; | ||
1061 | border: 6 6 6 0; | ||
1062 | } | ||
1063 | } | ||
1064 | description { state: "selected" 0.0; | ||
1065 | inherit: "default" 0.0; | ||
1066 | visible: 1; | ||
1067 | color: 255 255 255 255; | ||
1068 | } | ||
1069 | } | ||
1070 | } | ||
1071 | programs { | ||
1072 | program { | ||
1073 | name: "go_active"; | ||
1074 | signal: "elm,state,selected"; | ||
1075 | source: "elm"; | ||
1076 | action: STATE_SET "selected" 0.0; | ||
1077 | target: "bg"; | ||
1078 | target: "fg1"; | ||
1079 | target: "fg2"; | ||
1080 | target: "elm.text"; | ||
1081 | } | ||
1082 | program { | ||
1083 | name: "go_passive"; | ||
1084 | signal: "elm,state,unselected"; | ||
1085 | source: "elm"; | ||
1086 | action: STATE_SET "default" 0.0; | ||
1087 | target: "bg"; | ||
1088 | target: "fg1"; | ||
1089 | target: "fg2"; | ||
1090 | target: "elm.text"; | ||
1091 | transition: LINEAR 0.1; | ||
1092 | } | ||
1093 | } | ||
1094 | } | ||
1095 | group { name: "elm/list/h_item_odd/default"; | ||
1096 | data.item: "stacking" "below"; | ||
1097 | data.item: "selectraise" "on"; | ||
1098 | images { | ||
1099 | image: "bt_sm_base1.png" COMP; | ||
1100 | image: "bt_sm_shine.png" COMP; | ||
1101 | image: "bt_sm_hilight.png" COMP; | ||
1102 | image: "ilist_2_h.png" COMP; | ||
1103 | } | ||
1104 | parts { | ||
1105 | part { | ||
1106 | name: "event"; | ||
1107 | type: RECT; | ||
1108 | repeat_events: 1; | ||
1109 | description { | ||
1110 | state: "default" 0.0; | ||
1111 | color: 0 0 0 0; | ||
1112 | } | ||
1113 | } | ||
1114 | part { | ||
1115 | name: "base"; | ||
1116 | mouse_events: 0; | ||
1117 | description { | ||
1118 | state: "default" 0.0; | ||
1119 | image { | ||
1120 | normal: "ilist_2_h.png"; | ||
1121 | border: 2 2 2 2; | ||
1122 | } | ||
1123 | fill.smooth: 0; | ||
1124 | } | ||
1125 | } | ||
1126 | part { name: "bg"; | ||
1127 | mouse_events: 0; | ||
1128 | description { state: "default" 0.0; | ||
1129 | visible: 0; | ||
1130 | color: 255 255 255 0; | ||
1131 | rel1 { | ||
1132 | relative: 0.0 0.0; | ||
1133 | offset: -5 -5; | ||
1134 | } | ||
1135 | rel2 { | ||
1136 | relative: 1.0 1.0; | ||
1137 | offset: 4 4; | ||
1138 | } | ||
1139 | image { | ||
1140 | normal: "bt_sm_base1.png"; | ||
1141 | border: 6 6 6 6; | ||
1142 | } | ||
1143 | image.middle: SOLID; | ||
1144 | } | ||
1145 | description { state: "selected" 0.0; | ||
1146 | inherit: "default" 0.0; | ||
1147 | visible: 1; | ||
1148 | color: 255 255 255 255; | ||
1149 | rel1 { | ||
1150 | relative: 0.0 0.0; | ||
1151 | offset: -2 -2; | ||
1152 | } | ||
1153 | rel2 { | ||
1154 | relative: 1.0 1.0; | ||
1155 | offset: 1 1; | ||
1156 | } | ||
1157 | } | ||
1158 | } | ||
1159 | part { | ||
1160 | name: "elm.swallow.icon"; | ||
1161 | type: SWALLOW; | ||
1162 | description { state: "default" 0.0; | ||
1163 | fixed: 0 1; | ||
1164 | align: 0.5 0.0; | ||
1165 | rel1 { | ||
1166 | relative: 0.0 0.0; | ||
1167 | offset: 4 4; | ||
1168 | } | ||
1169 | rel2 { | ||
1170 | relative: 1.0 0.0; | ||
1171 | offset: -5 4; | ||
1172 | } | ||
1173 | } | ||
1174 | } | ||
1175 | part { | ||
1176 | name: "elm.swallow.end"; | ||
1177 | type: SWALLOW; | ||
1178 | description { state: "default" 0.0; | ||
1179 | fixed: 0 1; | ||
1180 | align: 0.5 1.0; | ||
1181 | rel1 { | ||
1182 | relative: 0.0 1.0; | ||
1183 | offset: 4 -5; | ||
1184 | } | ||
1185 | rel2 { | ||
1186 | relative: 1.0 1.0; | ||
1187 | offset: -5 -5; | ||
1188 | } | ||
1189 | } | ||
1190 | } | ||
1191 | part { name: "elm.text"; | ||
1192 | type: TEXT; | ||
1193 | effect: SOFT_SHADOW; | ||
1194 | mouse_events: 0; | ||
1195 | scale: 1; | ||
1196 | description { | ||
1197 | state: "default" 0.0; | ||
1198 | fixed: 1 1; | ||
1199 | rel1 { | ||
1200 | to_x: "elm.swallow.icon"; | ||
1201 | relative: 0.0 1.0; | ||
1202 | offset: 4 4; | ||
1203 | } | ||
1204 | rel2 { | ||
1205 | to_x: "elm.swallow.end"; | ||
1206 | relative: 1.0 0.0; | ||
1207 | offset: -5 -1; | ||
1208 | } | ||
1209 | color: 0 0 0 255; | ||
1210 | color3: 0 0 0 0; | ||
1211 | text { | ||
1212 | font: "Sans"; | ||
1213 | size: 10; | ||
1214 | min: 1 1; | ||
1215 | align: 0.5 0.5; | ||
1216 | text_class: "list_item"; | ||
1217 | } | ||
1218 | } | ||
1219 | description { state: "selected" 0.0; | ||
1220 | inherit: "default" 0.0; | ||
1221 | color: 224 224 224 255; | ||
1222 | color3: 0 0 0 64; | ||
1223 | } | ||
1224 | } | ||
1225 | part { name: "fg1"; | ||
1226 | mouse_events: 0; | ||
1227 | description { state: "default" 0.0; | ||
1228 | visible: 0; | ||
1229 | color: 255 255 255 0; | ||
1230 | rel1.to: "bg"; | ||
1231 | rel2.relative: 1.0 0.5; | ||
1232 | rel2.to: "bg"; | ||
1233 | image { | ||
1234 | normal: "bt_sm_hilight.png"; | ||
1235 | border: 6 6 6 0; | ||
1236 | } | ||
1237 | } | ||
1238 | description { state: "selected" 0.0; | ||
1239 | inherit: "default" 0.0; | ||
1240 | visible: 1; | ||
1241 | color: 255 255 255 255; | ||
1242 | } | ||
1243 | } | ||
1244 | part { name: "fg2"; | ||
1245 | mouse_events: 0; | ||
1246 | description { state: "default" 0.0; | ||
1247 | visible: 0; | ||
1248 | color: 255 255 255 0; | ||
1249 | rel1.to: "bg"; | ||
1250 | rel2.to: "bg"; | ||
1251 | image { | ||
1252 | normal: "bt_sm_shine.png"; | ||
1253 | border: 6 6 6 0; | ||
1254 | } | ||
1255 | } | ||
1256 | description { state: "selected" 0.0; | ||
1257 | inherit: "default" 0.0; | ||
1258 | visible: 1; | ||
1259 | color: 255 255 255 255; | ||
1260 | } | ||
1261 | } | ||
1262 | } | ||
1263 | programs { | ||
1264 | program { | ||
1265 | name: "go_active"; | ||
1266 | signal: "elm,state,selected"; | ||
1267 | source: "elm"; | ||
1268 | action: STATE_SET "selected" 0.0; | ||
1269 | target: "bg"; | ||
1270 | target: "fg1"; | ||
1271 | target: "fg2"; | ||
1272 | target: "elm.text"; | ||
1273 | } | ||
1274 | program { | ||
1275 | name: "go_passive"; | ||
1276 | signal: "elm,state,unselected"; | ||
1277 | source: "elm"; | ||
1278 | action: STATE_SET "default" 0.0; | ||
1279 | target: "bg"; | ||
1280 | target: "fg1"; | ||
1281 | target: "fg2"; | ||
1282 | target: "elm.text"; | ||
1283 | transition: LINEAR 0.1; | ||
1284 | } | ||
1285 | } | ||
1286 | } | ||
1287 | group { name: "elm/list/h_item_compress/default"; | ||
1288 | data.item: "stacking" "above"; | ||
1289 | data.item: "selectraise" "on"; | ||
1290 | images { | ||
1291 | image: "bt_sm_base1.png" COMP; | ||
1292 | image: "bt_sm_shine.png" COMP; | ||
1293 | image: "bt_sm_hilight.png" COMP; | ||
1294 | image: "ilist_1_h.png" COMP; | ||
1295 | image: "ilist_item_shadow_h.png" COMP; | ||
1296 | } | ||
1297 | parts { | ||
1298 | part { | ||
1299 | name: "event"; | ||
1300 | type: RECT; | ||
1301 | repeat_events: 1; | ||
1302 | description { | ||
1303 | state: "default" 0.0; | ||
1304 | color: 0 0 0 0; | ||
1305 | } | ||
1306 | } | ||
1307 | part { | ||
1308 | name: "base_sh"; | ||
1309 | mouse_events: 0; | ||
1310 | description { state: "default" 0.0; | ||
1311 | fixed: 1 1; | ||
1312 | align: 0.0 0.0; | ||
1313 | min: 10 0; | ||
1314 | rel1 { | ||
1315 | to: "base"; | ||
1316 | relative: 1.0 0.0; | ||
1317 | offset: 0 0; | ||
1318 | } | ||
1319 | rel2 { | ||
1320 | to: "base"; | ||
1321 | relative: 1.0 1.0; | ||
1322 | offset: 0 -1; | ||
1323 | } | ||
1324 | image { | ||
1325 | normal: "ilist_item_shadow_h.png"; | ||
1326 | } | ||
1327 | fill.smooth: 0; | ||
1328 | } | ||
1329 | } | ||
1330 | part { | ||
1331 | name: "base"; | ||
1332 | mouse_events: 0; | ||
1333 | description { | ||
1334 | state: "default" 0.0; | ||
1335 | image { | ||
1336 | normal: "ilist_1_h.png"; | ||
1337 | border: 2 2 2 2; | ||
1338 | } | ||
1339 | fill.smooth: 0; | ||
1340 | } | ||
1341 | } | ||
1342 | part { name: "bg"; | ||
1343 | mouse_events: 0; | ||
1344 | description { state: "default" 0.0; | ||
1345 | visible: 0; | ||
1346 | color: 255 255 255 0; | ||
1347 | rel1 { | ||
1348 | relative: 0.0 0.0; | ||
1349 | offset: -5 -5; | ||
1350 | } | ||
1351 | rel2 { | ||
1352 | relative: 1.0 1.0; | ||
1353 | offset: 4 4; | ||
1354 | } | ||
1355 | image { | ||
1356 | normal: "bt_sm_base1.png"; | ||
1357 | border: 6 6 6 6; | ||
1358 | } | ||
1359 | image.middle: SOLID; | ||
1360 | } | ||
1361 | description { state: "selected" 0.0; | ||
1362 | inherit: "default" 0.0; | ||
1363 | visible: 1; | ||
1364 | color: 255 255 255 255; | ||
1365 | rel1 { | ||
1366 | relative: 0.0 0.0; | ||
1367 | offset: -2 -2; | ||
1368 | } | ||
1369 | rel2 { | ||
1370 | relative: 1.0 1.0; | ||
1371 | offset: 1 1; | ||
1372 | } | ||
1373 | } | ||
1374 | } | ||
1375 | part { name: "elm.swallow.icon"; | ||
1376 | type: SWALLOW; | ||
1377 | description { state: "default" 0.0; | ||
1378 | fixed: 0 1; | ||
1379 | align: 0.5 0.0; | ||
1380 | rel1 { | ||
1381 | relative: 0.0 0.0; | ||
1382 | offset: 4 4; | ||
1383 | } | ||
1384 | rel2 { | ||
1385 | relative: 1.0 0.0; | ||
1386 | offset: -5 4; | ||
1387 | } | ||
1388 | } | ||
1389 | } | ||
1390 | part { name: "elm.swallow.end"; | ||
1391 | type: SWALLOW; | ||
1392 | description { state: "default" 0.0; | ||
1393 | fixed: 0 1; | ||
1394 | align: 0.5 1.0; | ||
1395 | rel1 { | ||
1396 | relative: 0.0 1.0; | ||
1397 | offset: 4 -5; | ||
1398 | } | ||
1399 | rel2 { | ||
1400 | relative: 1.0 1.0; | ||
1401 | offset: -5 -5; | ||
1402 | } | ||
1403 | } | ||
1404 | } | ||
1405 | part { | ||
1406 | name: "elm.text"; | ||
1407 | type: TEXT; | ||
1408 | effect: SOFT_SHADOW; | ||
1409 | mouse_events: 0; | ||
1410 | scale: 1; | ||
1411 | description { state: "default" 0.0; | ||
1412 | fixed: 1 1; | ||
1413 | rel1 { | ||
1414 | to_x: "elm.swallow.icon"; | ||
1415 | relative: 0.0 1.0; | ||
1416 | offset: 4 4; | ||
1417 | } | ||
1418 | rel2 { | ||
1419 | to_x: "elm.swallow.end"; | ||
1420 | relative: 1.0 0.0; | ||
1421 | offset: -5 -1; | ||
1422 | } | ||
1423 | color: 0 0 0 255; | ||
1424 | color3: 0 0 0 0; | ||
1425 | text { | ||
1426 | font: "Sans"; | ||
1427 | size: 10; | ||
1428 | min: 1 1; | ||
1429 | align: 0.5 0.5; | ||
1430 | text_class: "list_item"; | ||
1431 | } | ||
1432 | } | ||
1433 | description { state: "selected" 0.0; | ||
1434 | inherit: "default" 0.0; | ||
1435 | color: 224 224 224 255; | ||
1436 | color3: 0 0 0 64; | ||
1437 | } | ||
1438 | } | ||
1439 | part { name: "fg1"; | ||
1440 | mouse_events: 0; | ||
1441 | description { state: "default" 0.0; | ||
1442 | visible: 0; | ||
1443 | color: 255 255 255 0; | ||
1444 | rel1.to: "bg"; | ||
1445 | rel2.relative: 1.0 0.5; | ||
1446 | rel2.to: "bg"; | ||
1447 | image { | ||
1448 | normal: "bt_sm_hilight.png"; | ||
1449 | border: 6 6 6 0; | ||
1450 | } | ||
1451 | } | ||
1452 | description { state: "selected" 0.0; | ||
1453 | inherit: "default" 0.0; | ||
1454 | visible: 1; | ||
1455 | color: 255 255 255 255; | ||
1456 | } | ||
1457 | } | ||
1458 | part { name: "fg2"; | ||
1459 | mouse_events: 0; | ||
1460 | description { state: "default" 0.0; | ||
1461 | visible: 0; | ||
1462 | color: 255 255 255 0; | ||
1463 | rel1.to: "bg"; | ||
1464 | rel2.to: "bg"; | ||
1465 | image { | ||
1466 | normal: "bt_sm_shine.png"; | ||
1467 | border: 6 6 6 0; | ||
1468 | } | ||
1469 | } | ||
1470 | description { state: "selected" 0.0; | ||
1471 | inherit: "default" 0.0; | ||
1472 | visible: 1; | ||
1473 | color: 255 255 255 255; | ||
1474 | } | ||
1475 | } | ||
1476 | } | ||
1477 | programs { | ||
1478 | program { | ||
1479 | name: "go_active"; | ||
1480 | signal: "elm,state,selected"; | ||
1481 | source: "elm"; | ||
1482 | action: STATE_SET "selected" 0.0; | ||
1483 | target: "bg"; | ||
1484 | target: "fg1"; | ||
1485 | target: "fg2"; | ||
1486 | target: "elm.text"; | ||
1487 | } | ||
1488 | program { | ||
1489 | name: "go_passive"; | ||
1490 | signal: "elm,state,unselected"; | ||
1491 | source: "elm"; | ||
1492 | action: STATE_SET "default" 0.0; | ||
1493 | target: "bg"; | ||
1494 | target: "fg1"; | ||
1495 | target: "fg2"; | ||
1496 | target: "elm.text"; | ||
1497 | transition: LINEAR 0.1; | ||
1498 | } | ||
1499 | } | ||
1500 | } | ||
1501 | group { name: "elm/list/h_item_compress_odd/default"; | ||
1502 | data.item: "stacking" "below"; | ||
1503 | data.item: "selectraise" "on"; | ||
1504 | images { | ||
1505 | image: "bt_sm_base1.png" COMP; | ||
1506 | image: "bt_sm_shine.png" COMP; | ||
1507 | image: "bt_sm_hilight.png" COMP; | ||
1508 | image: "ilist_2_h.png" COMP; | ||
1509 | } | ||
1510 | parts { | ||
1511 | part { | ||
1512 | name: "event"; | ||
1513 | type: RECT; | ||
1514 | repeat_events: 1; | ||
1515 | description { | ||
1516 | state: "default" 0.0; | ||
1517 | color: 0 0 0 0; | ||
1518 | } | ||
1519 | } | ||
1520 | part { | ||
1521 | name: "base"; | ||
1522 | mouse_events: 0; | ||
1523 | description { | ||
1524 | state: "default" 0.0; | ||
1525 | image { | ||
1526 | normal: "ilist_2_h.png"; | ||
1527 | border: 2 2 2 2; | ||
1528 | } | ||
1529 | fill.smooth: 0; | ||
1530 | } | ||
1531 | } | ||
1532 | part { name: "bg"; | ||
1533 | mouse_events: 0; | ||
1534 | description { state: "default" 0.0; | ||
1535 | visible: 0; | ||
1536 | color: 255 255 255 0; | ||
1537 | rel1 { | ||
1538 | relative: 0.0 0.0; | ||
1539 | offset: -5 -5; | ||
1540 | } | ||
1541 | rel2 { | ||
1542 | relative: 1.0 1.0; | ||
1543 | offset: 4 4; | ||
1544 | } | ||
1545 | image { | ||
1546 | normal: "bt_sm_base1.png"; | ||
1547 | border: 6 6 6 6; | ||
1548 | } | ||
1549 | image.middle: SOLID; | ||
1550 | } | ||
1551 | description { state: "selected" 0.0; | ||
1552 | inherit: "default" 0.0; | ||
1553 | visible: 1; | ||
1554 | color: 255 255 255 255; | ||
1555 | rel1 { | ||
1556 | relative: 0.0 0.0; | ||
1557 | offset: -2 -2; | ||
1558 | } | ||
1559 | rel2 { | ||
1560 | relative: 1.0 1.0; | ||
1561 | offset: 1 1; | ||
1562 | } | ||
1563 | } | ||
1564 | } | ||
1565 | part { name: "elm.swallow.icon"; | ||
1566 | type: SWALLOW; | ||
1567 | description { state: "default" 0.0; | ||
1568 | fixed: 0 1; | ||
1569 | align: 0.5 0.0; | ||
1570 | rel1 { | ||
1571 | relative: 0.0 0.0; | ||
1572 | offset: 4 4; | ||
1573 | } | ||
1574 | rel2 { | ||
1575 | relative: 1.0 0.0; | ||
1576 | offset: -5 4; | ||
1577 | } | ||
1578 | } | ||
1579 | } | ||
1580 | part { name: "elm.swallow.end"; | ||
1581 | type: SWALLOW; | ||
1582 | description { state: "default" 0.0; | ||
1583 | fixed: 0 1; | ||
1584 | align: 0.5 1.0; | ||
1585 | rel1 { | ||
1586 | relative: 0.0 1.0; | ||
1587 | offset: 4 -5; | ||
1588 | } | ||
1589 | rel2 { | ||
1590 | relative: 1.0 1.0; | ||
1591 | offset: -5 -5; | ||
1592 | } | ||
1593 | } | ||
1594 | } | ||
1595 | part { name: "elm.text"; | ||
1596 | type: TEXT; | ||
1597 | effect: SOFT_SHADOW; | ||
1598 | mouse_events: 0; | ||
1599 | scale: 1; | ||
1600 | description { | ||
1601 | state: "default" 0.0; | ||
1602 | fixed: 1 1; | ||
1603 | rel1 { | ||
1604 | to_x: "elm.swallow.icon"; | ||
1605 | relative: 0.0 1.0; | ||
1606 | offset: 4 4; | ||
1607 | } | ||
1608 | rel2 { | ||
1609 | to_x: "elm.swallow.end"; | ||
1610 | relative: 1.0 0.0; | ||
1611 | offset: -5 -1; | ||
1612 | } | ||
1613 | color: 0 0 0 255; | ||
1614 | color3: 0 0 0 0; | ||
1615 | text { | ||
1616 | font: "Sans"; | ||
1617 | size: 10; | ||
1618 | min: 1 1; | ||
1619 | align: 0.5 0.5; | ||
1620 | text_class: "list_item"; | ||
1621 | } | ||
1622 | } | ||
1623 | description { state: "selected" 0.0; | ||
1624 | inherit: "default" 0.0; | ||
1625 | color: 224 224 224 255; | ||
1626 | color3: 0 0 0 64; | ||
1627 | } | ||
1628 | } | ||
1629 | part { name: "fg1"; | ||
1630 | mouse_events: 0; | ||
1631 | description { state: "default" 0.0; | ||
1632 | visible: 0; | ||
1633 | color: 255 255 255 0; | ||
1634 | rel1.to: "bg"; | ||
1635 | rel2.relative: 1.0 0.5; | ||
1636 | rel2.to: "bg"; | ||
1637 | image { | ||
1638 | normal: "bt_sm_hilight.png"; | ||
1639 | border: 6 6 6 0; | ||
1640 | } | ||
1641 | } | ||
1642 | description { state: "selected" 0.0; | ||
1643 | inherit: "default" 0.0; | ||
1644 | visible: 1; | ||
1645 | color: 255 255 255 255; | ||
1646 | } | ||
1647 | } | ||
1648 | part { name: "fg2"; | ||
1649 | mouse_events: 0; | ||
1650 | description { state: "default" 0.0; | ||
1651 | visible: 0; | ||
1652 | color: 255 255 255 0; | ||
1653 | rel1.to: "bg"; | ||
1654 | rel2.to: "bg"; | ||
1655 | image { | ||
1656 | normal: "bt_sm_shine.png"; | ||
1657 | border: 6 6 6 0; | ||
1658 | } | ||
1659 | } | ||
1660 | description { state: "selected" 0.0; | ||
1661 | inherit: "default" 0.0; | ||
1662 | visible: 1; | ||
1663 | color: 255 255 255 255; | ||
1664 | } | ||
1665 | } | ||
1666 | } | ||
1667 | programs { | ||
1668 | program { | ||
1669 | name: "go_active"; | ||
1670 | signal: "elm,state,selected"; | ||
1671 | source: "elm"; | ||
1672 | action: STATE_SET "selected" 0.0; | ||
1673 | target: "bg"; | ||
1674 | target: "fg1"; | ||
1675 | target: "fg2"; | ||
1676 | target: "elm.text"; | ||
1677 | } | ||
1678 | program { | ||
1679 | name: "go_passive"; | ||
1680 | signal: "elm,state,unselected"; | ||
1681 | source: "elm"; | ||
1682 | action: STATE_SET "default" 0.0; | ||
1683 | target: "bg"; | ||
1684 | target: "fg1"; | ||
1685 | target: "fg2"; | ||
1686 | target: "elm.text"; | ||
1687 | transition: LINEAR 0.1; | ||
1688 | } | ||
1689 | } | ||
1690 | } | ||
1691 | |||
diff --git a/libraries/elementary/data/themes/widgets/map.edc b/libraries/elementary/data/themes/widgets/map.edc new file mode 100644 index 0000000..2d7b177 --- /dev/null +++ b/libraries/elementary/data/themes/widgets/map.edc | |||
@@ -0,0 +1,800 @@ | |||
1 | group { name: "elm/map/base/default"; | ||
2 | script { | ||
3 | public sbvis_v, sbvis_h, sbalways_v, sbalways_h, sbvis_timer; | ||
4 | public timer0(val) { | ||
5 | new v; | ||
6 | v = get_int(sbvis_v); | ||
7 | if (v) { | ||
8 | v = get_int(sbalways_v); | ||
9 | if (!v) { | ||
10 | emit("do-hide-vbar", ""); | ||
11 | set_int(sbvis_v, 0); | ||
12 | } | ||
13 | } | ||
14 | v = get_int(sbvis_h); | ||
15 | if (v) { | ||
16 | v = get_int(sbalways_h); | ||
17 | if (!v) { | ||
18 | emit("do-hide-hbar", ""); | ||
19 | set_int(sbvis_h, 0); | ||
20 | } | ||
21 | } | ||
22 | set_int(sbvis_timer, 0); | ||
23 | return 0; | ||
24 | } | ||
25 | } | ||
26 | images { | ||
27 | image: "shelf_inset.png" COMP; | ||
28 | image: "bt_sm_base2.png" COMP; | ||
29 | image: "bt_sm_shine.png" COMP; | ||
30 | image: "bt_sm_hilight.png" COMP; | ||
31 | image: "busy-1.png" COMP; | ||
32 | image: "busy-2.png" COMP; | ||
33 | image: "busy-3.png" COMP; | ||
34 | image: "busy-4.png" COMP; | ||
35 | image: "busy-5.png" COMP; | ||
36 | image: "busy-6.png" COMP; | ||
37 | image: "busy-7.png" COMP; | ||
38 | image: "busy-8.png" COMP; | ||
39 | image: "busy-9.png" COMP; | ||
40 | } | ||
41 | parts { | ||
42 | part { name: "bg"; | ||
43 | type: RECT; | ||
44 | description { state: "default" 0.0; | ||
45 | rel1.offset: 1 1; | ||
46 | rel2.offset: -2 -2; | ||
47 | color: 255 255 255 0; | ||
48 | } | ||
49 | } | ||
50 | part { name: "clipper"; | ||
51 | type: RECT; | ||
52 | mouse_events: 0; | ||
53 | description { state: "default" 0.0; | ||
54 | rel1.to: "bg"; | ||
55 | rel2.to: "bg"; | ||
56 | } | ||
57 | } | ||
58 | part { name: "elm.swallow.content"; | ||
59 | clip_to: "clipper"; | ||
60 | type: SWALLOW; | ||
61 | description { state: "default" 0.0; | ||
62 | rel1.offset: 1 1; | ||
63 | rel2.offset: -2 -2; | ||
64 | } | ||
65 | } | ||
66 | part { name: "busy_clip"; | ||
67 | type: RECT; | ||
68 | mouse_events: 0; | ||
69 | description { state: "default" 0.0; | ||
70 | visible: 0; | ||
71 | color: 255 255 255 0; | ||
72 | } | ||
73 | description { state: "active" 0.0; | ||
74 | visible: 1; | ||
75 | color: 255 255 255 255; | ||
76 | } | ||
77 | } | ||
78 | part { name: "busy"; | ||
79 | clip_to: "busy_clip"; | ||
80 | mouse_events: 0; | ||
81 | description { state: "default" 0.0; | ||
82 | fixed: 1 1; | ||
83 | min: 32 32; | ||
84 | aspect: 1.0 1.0; | ||
85 | align: 1.0 1.0; | ||
86 | aspect_preference: BOTH; | ||
87 | rel1 { | ||
88 | relative: 0.9 0.9; | ||
89 | offset: -9 -9; | ||
90 | } | ||
91 | rel2 { | ||
92 | relative: 0.9 0.9; | ||
93 | offset: -9 -9; | ||
94 | } | ||
95 | image { | ||
96 | normal: "busy-9.png"; | ||
97 | tween: "busy-1.png"; | ||
98 | tween: "busy-2.png"; | ||
99 | tween: "busy-3.png"; | ||
100 | tween: "busy-4.png"; | ||
101 | tween: "busy-5.png"; | ||
102 | tween: "busy-6.png"; | ||
103 | tween: "busy-7.png"; | ||
104 | tween: "busy-8.png"; | ||
105 | } | ||
106 | } | ||
107 | } | ||
108 | part { name: "conf_over"; | ||
109 | mouse_events: 0; | ||
110 | description { state: "default" 0.0; | ||
111 | rel1.offset: 0 0; | ||
112 | rel2.offset: -1 -1; | ||
113 | image { | ||
114 | normal: "shelf_inset.png"; | ||
115 | border: 7 7 7 7; | ||
116 | middle: 0; | ||
117 | } | ||
118 | fill.smooth : 0; | ||
119 | } | ||
120 | } | ||
121 | part { name: "sb_vbar_clip_master"; | ||
122 | type: RECT; | ||
123 | mouse_events: 0; | ||
124 | description { state: "default" 0.0; | ||
125 | } | ||
126 | description { state: "hidden" 0.0; | ||
127 | visible: 0; | ||
128 | color: 255 255 255 0; | ||
129 | } | ||
130 | } | ||
131 | part { name: "sb_vbar_clip"; | ||
132 | clip_to: "sb_vbar_clip_master"; | ||
133 | type: RECT; | ||
134 | mouse_events: 0; | ||
135 | description { state: "default" 0.0; | ||
136 | } | ||
137 | description { state: "hidden" 0.0; | ||
138 | visible: 0; | ||
139 | color: 255 255 255 0; | ||
140 | } | ||
141 | } | ||
142 | part { name: "sb_vbar"; | ||
143 | type: RECT; | ||
144 | mouse_events: 0; | ||
145 | description { state: "default" 0.0; | ||
146 | fixed: 1 1; | ||
147 | visible: 0; | ||
148 | min: 10 17; | ||
149 | align: 1.0 0.0; | ||
150 | rel1 { | ||
151 | relative: 1.0 0.0; | ||
152 | offset: -2 0; | ||
153 | } | ||
154 | rel2 { | ||
155 | relative: 1.0 0.0; | ||
156 | offset: -2 -1; | ||
157 | to_y: "sb_hbar"; | ||
158 | } | ||
159 | } | ||
160 | } | ||
161 | part { name: "elm.dragable.vbar"; | ||
162 | clip_to: "sb_vbar_clip"; | ||
163 | mouse_events: 0; | ||
164 | dragable { | ||
165 | x: 0 0 0; | ||
166 | y: 1 1 0; | ||
167 | confine: "sb_vbar"; | ||
168 | } | ||
169 | description { state: "default" 0.0; | ||
170 | fixed: 1 1; | ||
171 | min: 10 17; | ||
172 | max: 10 99999; | ||
173 | rel1 { | ||
174 | relative: 0.5 0.5; | ||
175 | offset: 0 0; | ||
176 | to: "sb_vbar"; | ||
177 | } | ||
178 | rel2 { | ||
179 | relative: 0.5 0.5; | ||
180 | offset: 0 0; | ||
181 | to: "sb_vbar"; | ||
182 | } | ||
183 | image { | ||
184 | normal: "bt_sm_base2.png"; | ||
185 | border: 6 6 6 6; | ||
186 | middle: SOLID; | ||
187 | } | ||
188 | } | ||
189 | } | ||
190 | part { name: "sb_vbar_over1"; | ||
191 | clip_to: "sb_vbar_clip"; | ||
192 | mouse_events: 0; | ||
193 | description { state: "default" 0.0; | ||
194 | rel1.to: "elm.dragable.vbar"; | ||
195 | rel2.relative: 1.0 0.5; | ||
196 | rel2.to: "elm.dragable.vbar"; | ||
197 | image { | ||
198 | normal: "bt_sm_hilight.png"; | ||
199 | border: 6 6 6 0; | ||
200 | } | ||
201 | } | ||
202 | } | ||
203 | part { name: "sb_vbar_over2"; | ||
204 | clip_to: "sb_vbar_clip"; | ||
205 | mouse_events: 0; | ||
206 | description { state: "default" 0.0; | ||
207 | rel1.to: "elm.dragable.vbar"; | ||
208 | rel2.to: "elm.dragable.vbar"; | ||
209 | image { | ||
210 | normal: "bt_sm_shine.png"; | ||
211 | border: 6 6 6 0; | ||
212 | } | ||
213 | } | ||
214 | } | ||
215 | |||
216 | part { name: "sb_hbar_clip_master"; | ||
217 | type: RECT; | ||
218 | mouse_events: 0; | ||
219 | description { state: "default" 0.0; | ||
220 | } | ||
221 | description { state: "hidden" 0.0; | ||
222 | visible: 0; | ||
223 | color: 255 255 255 0; | ||
224 | } | ||
225 | } | ||
226 | part { name: "sb_hbar_clip"; | ||
227 | clip_to: "sb_hbar_clip_master"; | ||
228 | type: RECT; | ||
229 | mouse_events: 0; | ||
230 | description { state: "default" 0.0; | ||
231 | } | ||
232 | description { state: "hidden" 0.0; | ||
233 | visible: 0; | ||
234 | color: 255 255 255 0; | ||
235 | } | ||
236 | } | ||
237 | part { name: "sb_hbar"; | ||
238 | type: RECT; | ||
239 | mouse_events: 0; | ||
240 | description { state: "default" 0.0; | ||
241 | fixed: 1 1; | ||
242 | visible: 0; | ||
243 | min: 17 10; | ||
244 | align: 0.0 1.0; | ||
245 | rel1 { | ||
246 | relative: 0.0 1.0; | ||
247 | offset: 0 -2; | ||
248 | } | ||
249 | rel2 { | ||
250 | relative: 0.0 1.0; | ||
251 | offset: -1 -2; | ||
252 | to_x: "sb_vbar"; | ||
253 | } | ||
254 | } | ||
255 | } | ||
256 | part { name: "elm.dragable.hbar"; | ||
257 | clip_to: "sb_hbar_clip"; | ||
258 | mouse_events: 0; | ||
259 | dragable { | ||
260 | x: 1 1 0; | ||
261 | y: 0 0 0; | ||
262 | confine: "sb_hbar"; | ||
263 | } | ||
264 | description { state: "default" 0.0; | ||
265 | fixed: 1 1; | ||
266 | min: 17 10; | ||
267 | max: 99999 10; | ||
268 | rel1 { | ||
269 | relative: 0.5 0.5; | ||
270 | offset: 0 0; | ||
271 | to: "sb_hbar"; | ||
272 | } | ||
273 | rel2 { | ||
274 | relative: 0.5 0.5; | ||
275 | offset: 0 0; | ||
276 | to: "sb_hbar"; | ||
277 | } | ||
278 | image { | ||
279 | normal: "bt_sm_base2.png"; | ||
280 | border: 4 4 4 4; | ||
281 | middle: SOLID; | ||
282 | } | ||
283 | } | ||
284 | } | ||
285 | part { name: "sb_hbar_over1"; | ||
286 | clip_to: "sb_hbar_clip"; | ||
287 | mouse_events: 0; | ||
288 | description { state: "default" 0.0; | ||
289 | rel1.to: "elm.dragable.hbar"; | ||
290 | rel2.relative: 1.0 0.5; | ||
291 | rel2.to: "elm.dragable.hbar"; | ||
292 | image { | ||
293 | normal: "bt_sm_hilight.png"; | ||
294 | border: 4 4 4 0; | ||
295 | } | ||
296 | } | ||
297 | } | ||
298 | part { name: "sb_hbar_over2"; | ||
299 | clip_to: "sb_hbar_clip"; | ||
300 | mouse_events: 0; | ||
301 | description { state: "default" 0.0; | ||
302 | rel1.to: "elm.dragable.hbar"; | ||
303 | rel2.to: "elm.dragable.hbar"; | ||
304 | image { | ||
305 | normal: "bt_sm_shine.png"; | ||
306 | border: 4 4 4 0; | ||
307 | } | ||
308 | } | ||
309 | } | ||
310 | } | ||
311 | programs { | ||
312 | program { name: "load"; | ||
313 | signal: "load"; | ||
314 | source: ""; | ||
315 | script { | ||
316 | set_state(PART:"sb_hbar_clip", "hidden", 0.0); | ||
317 | set_state(PART:"sb_vbar_clip", "hidden", 0.0); | ||
318 | set_int(sbvis_h, 0); | ||
319 | set_int(sbvis_v, 0); | ||
320 | set_int(sbalways_v, 0); | ||
321 | set_int(sbalways_h, 0); | ||
322 | set_int(sbvis_timer, 0); | ||
323 | } | ||
324 | } | ||
325 | |||
326 | program { name: "vbar_show"; | ||
327 | signal: "elm,action,show,vbar"; | ||
328 | source: "elm"; | ||
329 | action: STATE_SET "default" 0.0; | ||
330 | target: "sb_vbar_clip_master"; | ||
331 | } | ||
332 | program { name: "vbar_hide"; | ||
333 | signal: "elm,action,hide,vbar"; | ||
334 | source: "elm"; | ||
335 | action: STATE_SET "hidden" 0.0; | ||
336 | target: "sb_vbar_clip_master"; | ||
337 | } | ||
338 | program { name: "vbar_show_always"; | ||
339 | signal: "elm,action,show_always,vbar"; | ||
340 | source: "elm"; | ||
341 | script { | ||
342 | new v; | ||
343 | v = get_int(sbvis_v); | ||
344 | v |= get_int(sbalways_v); | ||
345 | if (!v) { | ||
346 | set_int(sbalways_v, 1); | ||
347 | emit("do-show-vbar", ""); | ||
348 | set_int(sbvis_v, 1); | ||
349 | } | ||
350 | } | ||
351 | } | ||
352 | program { name: "vbar_show_notalways"; | ||
353 | signal: "elm,action,show_notalways,vbar"; | ||
354 | source: "elm"; | ||
355 | script { | ||
356 | new v; | ||
357 | v = get_int(sbalways_v); | ||
358 | if (v) { | ||
359 | set_int(sbalways_v, 0); | ||
360 | v = get_int(sbvis_v); | ||
361 | if (!v) { | ||
362 | emit("do-hide-vbar", ""); | ||
363 | set_int(sbvis_v, 0); | ||
364 | } | ||
365 | } | ||
366 | } | ||
367 | } | ||
368 | program { name: "sb_vbar_show"; | ||
369 | signal: "do-show-vbar"; | ||
370 | source: ""; | ||
371 | action: STATE_SET "default" 0.0; | ||
372 | transition: LINEAR 0.5; | ||
373 | target: "sb_vbar_clip"; | ||
374 | } | ||
375 | program { name: "sb_vbar_hide"; | ||
376 | signal: "do-hide-vbar"; | ||
377 | source: ""; | ||
378 | action: STATE_SET "hidden" 0.0; | ||
379 | transition: LINEAR 0.5; | ||
380 | target: "sb_vbar_clip"; | ||
381 | } | ||
382 | |||
383 | program { name: "hbar_show"; | ||
384 | signal: "elm,action,show,hbar"; | ||
385 | source: "elm"; | ||
386 | action: STATE_SET "default" 0.0; | ||
387 | target: "sb_hbar_clip_master"; | ||
388 | } | ||
389 | program { name: "hbar_hide"; | ||
390 | signal: "elm,action,hide,hbar"; | ||
391 | source: "elm"; | ||
392 | action: STATE_SET "hidden" 0.0; | ||
393 | target: "sb_hbar_clip_master"; | ||
394 | } | ||
395 | program { name: "hbar_show_always"; | ||
396 | signal: "elm,action,show_always,hbar"; | ||
397 | source: "elm"; | ||
398 | script { | ||
399 | new v; | ||
400 | v = get_int(sbvis_h); | ||
401 | v |= get_int(sbalways_h); | ||
402 | if (!v) { | ||
403 | set_int(sbalways_h, 1); | ||
404 | emit("do-show-hbar", ""); | ||
405 | set_int(sbvis_h, 1); | ||
406 | } | ||
407 | } | ||
408 | } | ||
409 | program { name: "hbar_show_notalways"; | ||
410 | signal: "elm,action,show_notalways,hbar"; | ||
411 | source: "elm"; | ||
412 | script { | ||
413 | new v; | ||
414 | v = get_int(sbalways_h); | ||
415 | if (v) { | ||
416 | set_int(sbalways_h, 0); | ||
417 | v = get_int(sbvis_h); | ||
418 | if (!v) { | ||
419 | emit("do-hide-hbar", ""); | ||
420 | set_int(sbvis_h, 0); | ||
421 | } | ||
422 | } | ||
423 | } | ||
424 | } | ||
425 | program { name: "sb_hbar_show"; | ||
426 | signal: "do-show-hbar"; | ||
427 | source: ""; | ||
428 | action: STATE_SET "default" 0.0; | ||
429 | transition: LINEAR 0.5; | ||
430 | target: "sb_hbar_clip"; | ||
431 | } | ||
432 | program { name: "sb_hbar_hide"; | ||
433 | signal: "do-hide-hbar"; | ||
434 | source: ""; | ||
435 | action: STATE_SET "hidden" 0.0; | ||
436 | transition: LINEAR 0.5; | ||
437 | target: "sb_hbar_clip"; | ||
438 | } | ||
439 | |||
440 | program { name: "scroll"; | ||
441 | signal: "elm,action,scroll"; | ||
442 | source: "elm"; | ||
443 | script { | ||
444 | new v; | ||
445 | v = get_int(sbvis_v); | ||
446 | v |= get_int(sbalways_v); | ||
447 | if (!v) { | ||
448 | emit("do-show-vbar", ""); | ||
449 | set_int(sbvis_v, 1); | ||
450 | } | ||
451 | v = get_int(sbvis_h); | ||
452 | v |= get_int(sbalways_h); | ||
453 | if (!v) { | ||
454 | emit("do-show-hbar", ""); | ||
455 | set_int(sbvis_h, 1); | ||
456 | } | ||
457 | v = get_int(sbvis_timer); | ||
458 | if (v > 0) cancel_timer(v); | ||
459 | v = timer(1.0, "timer0", 0); | ||
460 | set_int(sbvis_timer, v); | ||
461 | } | ||
462 | } | ||
463 | program { name: "go1"; | ||
464 | signal: "elm,state,busy,start"; | ||
465 | source: "elm"; | ||
466 | action: STATE_SET "active" 0.0; | ||
467 | transition: SINUSOIDAL 1.0; | ||
468 | target: "busy_clip"; | ||
469 | } | ||
470 | program { name: "go2"; | ||
471 | signal: "elm,state,busy,start"; | ||
472 | source: "elm"; | ||
473 | action: STATE_SET "default" 0.0; | ||
474 | transition: LINEAR 0.5; | ||
475 | target: "busy"; | ||
476 | after: "go2"; | ||
477 | } | ||
478 | program { name: "stop1"; | ||
479 | signal: "elm,state,busy,stop"; | ||
480 | source: "elm"; | ||
481 | action: STATE_SET "default" 0.0; | ||
482 | transition: SINUSOIDAL 1.0; | ||
483 | target: "busy_clip"; | ||
484 | after: "stop2"; | ||
485 | } | ||
486 | program { name: "stop2"; | ||
487 | action: ACTION_STOP; | ||
488 | target: "go2"; | ||
489 | } | ||
490 | } | ||
491 | } | ||
492 | group { name: "elm/map/marker/radio/default"; | ||
493 | data { | ||
494 | item: size_w 24; | ||
495 | item: size_h 24; | ||
496 | item: size_max_w 58; | ||
497 | item: size_max_h 58; | ||
498 | } | ||
499 | images { | ||
500 | image: "radio2.png" COMP; | ||
501 | } | ||
502 | parts { | ||
503 | part { name: "whole"; | ||
504 | type: RECT; | ||
505 | description { state: "default" 0.0; | ||
506 | } | ||
507 | } | ||
508 | part { name: "base"; | ||
509 | ignore_flags: ON_HOLD; | ||
510 | description { state: "default" 0.0; | ||
511 | image.normal: "radio2.png"; | ||
512 | } | ||
513 | } | ||
514 | part { name: "elm.icon"; | ||
515 | type: SWALLOW; | ||
516 | clip_to: "whole"; | ||
517 | mouse_events: 0; | ||
518 | description { state: "default" 0.0; | ||
519 | rel1.relative: 0.27 0.27; | ||
520 | rel2.relative: 0.73 0.73; | ||
521 | } | ||
522 | } | ||
523 | part { name: "elm.text"; | ||
524 | type: TEXT; | ||
525 | effect: SOFT_SHADOW; | ||
526 | mouse_events: 0; | ||
527 | scale: 1; | ||
528 | description { state: "default" 0.0; | ||
529 | align: 0.5 0.5; | ||
530 | color: 224 224 224 255; | ||
531 | color3: 0 0 0 64; | ||
532 | rel1.relative: 0.28 0.25; | ||
533 | rel2.relative: 0.75 0.75; | ||
534 | text { | ||
535 | font: "Sans,Edje-Vera"; | ||
536 | size: 10; | ||
537 | min: 0 0; | ||
538 | align: 0.5 0.5; | ||
539 | } | ||
540 | } | ||
541 | } | ||
542 | } | ||
543 | programs { | ||
544 | program { name: "open"; | ||
545 | signal: "mouse,clicked,1"; | ||
546 | source: "base"; | ||
547 | action: SIGNAL_EMIT "open" "elm"; | ||
548 | } | ||
549 | program { name: "bringin"; | ||
550 | signal: "mouse,down,1,double"; | ||
551 | source: "base"; | ||
552 | action: SIGNAL_EMIT "bringin" "elm"; | ||
553 | } | ||
554 | } | ||
555 | } | ||
556 | group { name: "elm/map/marker/radio2/default"; | ||
557 | data { | ||
558 | item: size_w 24; | ||
559 | item: size_h 24; | ||
560 | item: size_max_w 58; | ||
561 | item: size_max_h 58; | ||
562 | } | ||
563 | images { | ||
564 | image: "map_item_2.png" COMP; | ||
565 | } | ||
566 | parts { | ||
567 | part { name: "base"; | ||
568 | ignore_flags: ON_HOLD; | ||
569 | description { state: "default" 0.0; | ||
570 | image.normal: "map_item_2.png"; | ||
571 | } | ||
572 | } | ||
573 | part { name: "elm.text"; | ||
574 | type: TEXT; | ||
575 | effect: SOFT_SHADOW; | ||
576 | mouse_events: 0; | ||
577 | scale: 1; | ||
578 | description { state: "default" 0.0; | ||
579 | align: 0.5 0.5; | ||
580 | color: 224 224 224 255; | ||
581 | color3: 0 0 0 64; | ||
582 | rel1.relative: 0.28 0.25; | ||
583 | rel2.relative: 0.75 0.75; | ||
584 | text { | ||
585 | font: "Sans,Edje-Vera"; | ||
586 | size: 10; | ||
587 | min: 0 0; | ||
588 | align: 0.5 0.5; | ||
589 | } | ||
590 | } | ||
591 | } | ||
592 | } | ||
593 | programs { | ||
594 | program { name: "open"; | ||
595 | signal: "mouse,clicked,1"; | ||
596 | source: "base"; | ||
597 | action: SIGNAL_EMIT "open" "elm"; | ||
598 | } | ||
599 | program { name: "bringin"; | ||
600 | signal: "mouse,down,1,double"; | ||
601 | source: "base"; | ||
602 | action: SIGNAL_EMIT "bringin" "elm"; | ||
603 | } | ||
604 | } | ||
605 | } | ||
606 | group { name: "elm/map/marker/empty/default"; | ||
607 | data { | ||
608 | item: size_w 22; | ||
609 | item: size_h 22; | ||
610 | item: size_max_w 64; | ||
611 | item: size_max_h 64; | ||
612 | } | ||
613 | parts { | ||
614 | part { name: "whole"; | ||
615 | type: RECT; | ||
616 | description { state: "default" 0.0; | ||
617 | } | ||
618 | } | ||
619 | part { name: "base"; | ||
620 | ignore_flags: ON_HOLD; | ||
621 | description { state: "default" 0.0; | ||
622 | } | ||
623 | } | ||
624 | part { name: "elm.icon"; | ||
625 | type: SWALLOW; | ||
626 | clip_to: "whole"; | ||
627 | mouse_events: 0; | ||
628 | description { state: "default" 0.0; | ||
629 | } | ||
630 | } | ||
631 | part { name: "elm.text"; | ||
632 | type: TEXT; | ||
633 | effect: SOFT_SHADOW; | ||
634 | mouse_events: 0; | ||
635 | scale: 1; | ||
636 | description { state: "default" 0.0; | ||
637 | align: 0.5 0.5; | ||
638 | color: 224 224 224 255; | ||
639 | color3: 0 0 0 64; | ||
640 | rel1.relative: 0.28 0.25; | ||
641 | rel2.relative: 0.75 0.75; | ||
642 | text { | ||
643 | font: "Sans,Edje-Vera"; | ||
644 | size: 10; | ||
645 | min: 0 0; | ||
646 | align: 0.5 0.5; | ||
647 | } | ||
648 | } | ||
649 | } | ||
650 | } | ||
651 | programs { | ||
652 | program { name: "open"; | ||
653 | signal: "mouse,clicked,1"; | ||
654 | source: "base"; | ||
655 | action: SIGNAL_EMIT "open" "elm"; | ||
656 | } | ||
657 | program { name: "bringin"; | ||
658 | signal: "mouse,down,1,double"; | ||
659 | source: "base"; | ||
660 | action: SIGNAL_EMIT "bringin" "elm"; | ||
661 | } | ||
662 | } | ||
663 | } | ||
664 | group { name: "elm/map/marker_bubble/default"; | ||
665 | images { | ||
666 | image: "bubble.png" COMP; | ||
667 | image: "bubble_shine.png" COMP; | ||
668 | } | ||
669 | data { | ||
670 | item: size_w 400; | ||
671 | item: size_h 100; | ||
672 | } | ||
673 | parts { | ||
674 | part { name: "clipper"; | ||
675 | type: RECT; | ||
676 | mouse_events: 1; | ||
677 | description { state: "default" 0.0; | ||
678 | color: 255 255 255 0; | ||
679 | } | ||
680 | description { state: "show" 0.0; | ||
681 | inherit: "default" 0.0; | ||
682 | color: 255 255 255 255; | ||
683 | } | ||
684 | } | ||
685 | part { name: "base0"; | ||
686 | mouse_events: 0; | ||
687 | clip_to: "clipper"; | ||
688 | description { state: "default" 0.0; | ||
689 | image { | ||
690 | normal: "bubble.png"; | ||
691 | border: 11 36 10 19; | ||
692 | } | ||
693 | image.middle: SOLID; | ||
694 | fill.smooth: 0; | ||
695 | } | ||
696 | description { state: "rtl" 0.0; | ||
697 | inherit: "default" 0.0; | ||
698 | image { | ||
699 | normal: "bubble_4.png"; | ||
700 | border: 11 36 18 9; | ||
701 | } | ||
702 | } | ||
703 | } | ||
704 | part { name: "elm.swallow.content"; | ||
705 | type: SWALLOW; | ||
706 | clip_to: "clipper"; | ||
707 | description { state: "default" 0.0; | ||
708 | align: 0.5 0.5; | ||
709 | rel1 { | ||
710 | offset: 9 8; | ||
711 | } | ||
712 | rel2 { | ||
713 | offset: -10 -17; | ||
714 | } | ||
715 | } | ||
716 | } | ||
717 | part { name: "shine"; | ||
718 | mouse_events: 0; | ||
719 | clip_to: "clipper"; | ||
720 | description { state: "default" 0.0; | ||
721 | rel1 { | ||
722 | to: "base0"; | ||
723 | } | ||
724 | rel2 { | ||
725 | to: "base0"; | ||
726 | relative: 1.0 0.5; | ||
727 | } | ||
728 | image { | ||
729 | normal: "bubble_shine.png"; | ||
730 | border: 5 5 5 0; | ||
731 | } | ||
732 | fill.smooth: 0; | ||
733 | } | ||
734 | } | ||
735 | } | ||
736 | programs { | ||
737 | program { name: "show"; | ||
738 | signal: "show"; | ||
739 | action: STATE_SET "show" 0.0; | ||
740 | target: "clipper"; | ||
741 | transition: ACCELERATE 0.5; | ||
742 | } | ||
743 | } | ||
744 | } | ||
745 | group { name: "elm/map/circle/base/default"; | ||
746 | images { | ||
747 | image: "map_circle.png" COMP; | ||
748 | } | ||
749 | parts { | ||
750 | part { name: "base"; | ||
751 | ignore_flags: ON_HOLD; | ||
752 | description { state: "default" 0.0; | ||
753 | image.normal: "map_circle.png"; | ||
754 | } | ||
755 | } | ||
756 | } | ||
757 | } | ||
758 | group { name: "elm/map/scale/base/default"; | ||
759 | data { | ||
760 | item: size_w 100; | ||
761 | item: size_h 25; | ||
762 | } | ||
763 | images { | ||
764 | image: "map_scale.png" COMP; | ||
765 | } | ||
766 | parts { | ||
767 | part { name: "base"; | ||
768 | ignore_flags: ON_HOLD; | ||
769 | description { state: "default" 0.0; | ||
770 | image.normal: "map_scale.png"; | ||
771 | image.border: 10 10 10 10; | ||
772 | } | ||
773 | } | ||
774 | part { name: "elm.text"; | ||
775 | type: TEXT; | ||
776 | ignore_flags: ON_HOLD; | ||
777 | effect: SOFT_SHADOW; | ||
778 | mouse_events: 0; | ||
779 | scale: 1; | ||
780 | description { state: "default" 0.0; | ||
781 | color: 224 224 224 255; | ||
782 | color3: 0 0 0 64; | ||
783 | rel1 { | ||
784 | relative: 0 0; | ||
785 | offset: 1 1; | ||
786 | } | ||
787 | rel2 { | ||
788 | relative: 1 1; | ||
789 | offset: -1 -1; | ||
790 | } | ||
791 | text { | ||
792 | font: "Sans,Edje-Vera"; | ||
793 | size: 10; | ||
794 | min: 0 0; | ||
795 | align: 0.1 0.5; | ||
796 | } | ||
797 | } | ||
798 | } | ||
799 | } | ||
800 | } | ||
diff --git a/libraries/elementary/data/themes/widgets/menu.edc b/libraries/elementary/data/themes/widgets/menu.edc new file mode 100644 index 0000000..6e09f11 --- /dev/null +++ b/libraries/elementary/data/themes/widgets/menu.edc | |||
@@ -0,0 +1,769 @@ | |||
1 | group { name: "elm/menu/item/default"; | ||
2 | images { | ||
3 | image: "bt_base1.png" COMP; | ||
4 | image: "bt_base2.png" COMP; | ||
5 | image: "bt_hilight.png" COMP; | ||
6 | image: "bt_shine.png" COMP; | ||
7 | image: "bt_glow.png" COMP; | ||
8 | image: "bt_dis_base.png" COMP; | ||
9 | image: "bt_dis_hilight.png" COMP; | ||
10 | } | ||
11 | script { | ||
12 | public menu_text_visible; //0:hide (default), 1:visible | ||
13 | public menu_disable; //0:enable, 1:disable | ||
14 | } | ||
15 | parts { | ||
16 | part { name: "item_image"; | ||
17 | mouse_events: 1; | ||
18 | description { state: "default" 0.0; | ||
19 | color: 255 255 255 0; | ||
20 | image { | ||
21 | normal: "bt_base2.png"; | ||
22 | border: 7 7 7 7; | ||
23 | } | ||
24 | image.middle: SOLID; | ||
25 | } | ||
26 | description { state: "visible" 0.0; | ||
27 | inherit: "default" 0.0; | ||
28 | color: 255 255 255 255; | ||
29 | } | ||
30 | description { state: "clicked" 0.0; | ||
31 | inherit: "default" 0.0; | ||
32 | inherit: "visible" 0.0; | ||
33 | image.normal: "bt_base1.png"; | ||
34 | image.middle: SOLID; | ||
35 | } | ||
36 | description { state: "disabled" 0.0; | ||
37 | inherit: "default" 0.0; | ||
38 | } | ||
39 | } | ||
40 | part { name: "item_image_disabled"; | ||
41 | mouse_events: 1; | ||
42 | description { state: "default" 0.0; | ||
43 | color: 255 255 255 0; | ||
44 | image { | ||
45 | normal: "bt_dis_base.png"; | ||
46 | border: 4 4 4 4; | ||
47 | } | ||
48 | image.middle: SOLID; | ||
49 | } | ||
50 | description { state: "disabled" 0.0; | ||
51 | inherit: "default" 0.0; | ||
52 | color: 255 255 255 255; | ||
53 | } | ||
54 | } | ||
55 | part { name: "elm.swallow.content"; | ||
56 | type: SWALLOW; | ||
57 | description { state: "default" 0.0; | ||
58 | fixed: 1 0; | ||
59 | visible: 1; | ||
60 | align: 0.0 0.5; | ||
61 | rel1.offset: 4 4; | ||
62 | rel2.offset: 3 -5; | ||
63 | rel2.relative: 0.0 1.0; | ||
64 | aspect: 1.0 1.0; | ||
65 | aspect_preference: VERTICAL; | ||
66 | rel2.offset: 4 -5; | ||
67 | } | ||
68 | } | ||
69 | part { | ||
70 | name: "elm.text"; | ||
71 | type: TEXT; | ||
72 | mouse_events: 0; | ||
73 | scale: 1; | ||
74 | description { state: "default" 0.0; | ||
75 | visible: 0; | ||
76 | rel1.to_x: "elm.swallow.content"; | ||
77 | rel1.relative: 1.0 0.0; | ||
78 | rel1.offset: 5 7; | ||
79 | rel2.offset: -10 -8; | ||
80 | color: 0 0 0 255; | ||
81 | text { | ||
82 | font: "Sans,Edje-Vera"; | ||
83 | size: 10; | ||
84 | min: 1 1; | ||
85 | align: 0.0 0.5; | ||
86 | text_class: "menu_item"; | ||
87 | } | ||
88 | } | ||
89 | description { state: "visible" 0.0; | ||
90 | inherit: "default" 0.0; | ||
91 | visible: 1; | ||
92 | text.min: 1 1; | ||
93 | } | ||
94 | description { state: "selected" 0.0; | ||
95 | inherit: "default" 0.0; | ||
96 | inherit: "visible" 0.0; | ||
97 | color: 254 254 254 255; | ||
98 | } | ||
99 | description { state: "disabled" 0.0; | ||
100 | inherit: "default" 0.0; | ||
101 | color: 0 0 0 128; | ||
102 | } | ||
103 | description { state: "disabled_visible" 0.0; | ||
104 | inherit: "default" 0.0; | ||
105 | inherit: "visible" 0.0; | ||
106 | color: 0 0 0 128; | ||
107 | } | ||
108 | } | ||
109 | part { name: "over1"; | ||
110 | mouse_events: 0; | ||
111 | description { state: "default" 0.0; | ||
112 | color: 255 255 255 0; | ||
113 | rel2.relative: 1.0 0.5; | ||
114 | image { | ||
115 | normal: "bt_hilight.png"; | ||
116 | border: 7 7 7 0; | ||
117 | } | ||
118 | } | ||
119 | description { state: "visible" 0.0; | ||
120 | inherit: "default" 0.0; | ||
121 | color: 255 255 255 255; | ||
122 | } | ||
123 | description { state: "disabled" 0.0; | ||
124 | inherit: "default" 0.0; | ||
125 | } | ||
126 | } | ||
127 | part { name: "over_disabled"; | ||
128 | mouse_events: 0; | ||
129 | description { state: "default" 0.0; | ||
130 | color: 255 255 255 0; | ||
131 | rel2.relative: 1.0 0.5; | ||
132 | image { | ||
133 | normal: "bt_dis_hilight.png"; | ||
134 | border: 4 4 4 0; | ||
135 | } | ||
136 | } | ||
137 | description { state: "disabled" 0.0; | ||
138 | inherit: "default" 0.0; | ||
139 | color: 255 255 255 255; | ||
140 | } | ||
141 | } | ||
142 | part { name: "over2"; | ||
143 | mouse_events: 1; | ||
144 | repeat_events: 1; | ||
145 | ignore_flags: ON_HOLD; | ||
146 | description { state: "default" 0.0; | ||
147 | image { | ||
148 | normal: "bt_shine.png"; | ||
149 | border: 7 7 7 7; | ||
150 | } | ||
151 | } | ||
152 | description { state: "disabled" 0.0; | ||
153 | inherit: "default" 0.0; | ||
154 | visible: 0; | ||
155 | } | ||
156 | } | ||
157 | part { name: "over3"; | ||
158 | mouse_events: 1; | ||
159 | repeat_events: 1; | ||
160 | description { state: "default" 0.0; | ||
161 | color: 255 255 255 0; | ||
162 | image { | ||
163 | normal: "bt_glow.png"; | ||
164 | border: 12 12 12 12; | ||
165 | } | ||
166 | fill.smooth : 0; | ||
167 | } | ||
168 | description { state: "clicked" 0.0; | ||
169 | inherit: "default" 0.0; | ||
170 | visible: 1; | ||
171 | color: 255 255 255 255; | ||
172 | } | ||
173 | } | ||
174 | part { name: "disabler"; | ||
175 | type: RECT; | ||
176 | description { state: "default" 0.0; | ||
177 | color: 0 0 0 0; | ||
178 | visible: 0; | ||
179 | } | ||
180 | description { state: "disabled" 0.0; | ||
181 | inherit: "default" 0.0; | ||
182 | visible: 1; | ||
183 | } | ||
184 | } | ||
185 | } | ||
186 | programs { | ||
187 | // | ||
188 | program { | ||
189 | name: "item_mouse_in"; | ||
190 | signal: "mouse,in"; | ||
191 | source: "over2"; | ||
192 | action: SIGNAL_EMIT "elm,action,activate" ""; | ||
193 | after: "item_mouse_in_2"; | ||
194 | after: "item_mouse_in_3"; | ||
195 | } | ||
196 | program { | ||
197 | name: "item_mouse_in_2"; | ||
198 | transition: DECELERATE 0.5; | ||
199 | script { | ||
200 | new v, d; | ||
201 | v = get_int(menu_text_visible); | ||
202 | d = get_int(menu_disable); | ||
203 | |||
204 | if (v==1 && d==0) | ||
205 | run_program(PROGRAM:"selected_text"); | ||
206 | } | ||
207 | } | ||
208 | program { | ||
209 | name: "item_mouse_in_3"; | ||
210 | action : STATE_SET "visible" 0.0; | ||
211 | target: "item_image"; | ||
212 | target: "over1"; | ||
213 | transition: DECELERATE 0.5; | ||
214 | } | ||
215 | program { | ||
216 | name: "selected_text"; | ||
217 | action: STATE_SET "selected" 0.0; | ||
218 | target: "elm.text"; | ||
219 | transition: DECELERATE 0.5; | ||
220 | } | ||
221 | // | ||
222 | |||
223 | // | ||
224 | program { | ||
225 | name: "item_mouse_out"; | ||
226 | signal: "mouse,out"; | ||
227 | source: "over2"; | ||
228 | action: SIGNAL_EMIT "elm,action,inactivate" ""; | ||
229 | after: "item_mouse_out_2"; | ||
230 | after: "item_mouse_out_3"; | ||
231 | } | ||
232 | program { | ||
233 | name: "item_mouse_out_2"; | ||
234 | transition: DECELERATE 0.5; | ||
235 | script { | ||
236 | new v, d; | ||
237 | v = get_int(menu_text_visible); | ||
238 | d = get_int(menu_disable); | ||
239 | |||
240 | if (v==1 && d==0) | ||
241 | run_program(PROGRAM:"visible_text"); | ||
242 | } | ||
243 | } | ||
244 | program { | ||
245 | name: "item_mouse_out_3"; | ||
246 | action: STATE_SET "default" 0.0; | ||
247 | target: "item_image"; | ||
248 | target: "over1"; | ||
249 | transition: DECELERATE 0.5; | ||
250 | } | ||
251 | program { | ||
252 | name: "visible_text"; | ||
253 | action: STATE_SET "visible" 0.0; | ||
254 | target: "elm.text"; | ||
255 | transition: DECELERATE 0.5; | ||
256 | } | ||
257 | // | ||
258 | |||
259 | program { | ||
260 | name: "item_unclick"; | ||
261 | signal: "mouse,up,1"; | ||
262 | source: "over2"; | ||
263 | action: STATE_SET "visible" 0.0; | ||
264 | target: "item_image"; | ||
265 | } | ||
266 | program { | ||
267 | name: "item_click2"; | ||
268 | signal: "mouse,down,1"; | ||
269 | source: "over3"; | ||
270 | action: STATE_SET "clicked" 0.0; | ||
271 | target: "over3"; | ||
272 | } | ||
273 | program { | ||
274 | name: "item_unclick2"; | ||
275 | signal: "mouse,up,1"; | ||
276 | source: "over3"; | ||
277 | action: STATE_SET "default" 0.0; | ||
278 | transition: DECELERATE 0.5; | ||
279 | target: "over3"; | ||
280 | } | ||
281 | program { | ||
282 | name: "item_unclick3"; | ||
283 | signal: "mouse,up,1"; | ||
284 | source: "over2"; | ||
285 | action: SIGNAL_EMIT "elm,action,click" ""; | ||
286 | } | ||
287 | program { name: "text_show"; | ||
288 | signal: "elm,state,text,visible"; | ||
289 | source: "elm"; | ||
290 | script { | ||
291 | set_int(menu_text_visible, 1); | ||
292 | set_state(PART:"elm.text", "visible", 0.0); | ||
293 | } | ||
294 | } | ||
295 | program { name: "text_hide"; | ||
296 | signal: "elm,state,text,hidden"; | ||
297 | source: "elm"; | ||
298 | script { | ||
299 | set_int(menu_text_visible, 0); | ||
300 | set_state(PART:"elm.text", "default", 0.0); | ||
301 | } | ||
302 | } | ||
303 | program { name: "disable"; | ||
304 | signal: "elm,state,disabled"; | ||
305 | source: "elm"; | ||
306 | action: STATE_SET "disabled" 0.0; | ||
307 | target: "item_image"; | ||
308 | target: "item_image_disabled"; | ||
309 | target: "over1"; | ||
310 | target: "over2"; | ||
311 | target: "over_disabled"; | ||
312 | target: "disabler"; | ||
313 | after: "disable_text"; | ||
314 | } | ||
315 | program { name: "disable_text"; | ||
316 | script { | ||
317 | new v; | ||
318 | v = get_int(menu_text_visible); | ||
319 | if (v==1) | ||
320 | set_state(PART:"elm.text", "disabled_visible", 0.0); | ||
321 | else if (v==0) | ||
322 | set_state(PART:"elm.text", "disabled", 0.0); | ||
323 | set_int(menu_disable, 1); | ||
324 | } | ||
325 | } | ||
326 | program { name: "item_select"; | ||
327 | signal: "elm,state,selected"; | ||
328 | source: "elm"; | ||
329 | after: "item_mouse_in_2"; | ||
330 | after: "item_mouse_in_3"; | ||
331 | } | ||
332 | program { name: "item_unselect"; | ||
333 | signal: "elm,state,unselected"; | ||
334 | source: "elm"; | ||
335 | after: "item_mouse_out_2"; | ||
336 | after: "item_mouse_out_3"; | ||
337 | } | ||
338 | program { name: "enable"; | ||
339 | signal: "elm,state,enabled"; | ||
340 | source: "elm"; | ||
341 | action: STATE_SET "default" 0.0; | ||
342 | target: "item_image"; | ||
343 | target: "item_image_disabled"; | ||
344 | target: "over1"; | ||
345 | target: "over2"; | ||
346 | target: "over_disabled"; | ||
347 | target: "disabler"; | ||
348 | after: "enable_text"; | ||
349 | } | ||
350 | program { name: "enable_text"; | ||
351 | script { | ||
352 | new v; | ||
353 | v = get_int(menu_text_visible); | ||
354 | if (v==1) | ||
355 | set_state(PART:"elm.text", "visible", 0.0); | ||
356 | else if (v==0) | ||
357 | set_state(PART:"elm.text", "default", 0.0); | ||
358 | set_int(menu_disable, 0); | ||
359 | } | ||
360 | } | ||
361 | } | ||
362 | } | ||
363 | |||
364 | group { name: "elm/menu/item_with_submenu/default"; | ||
365 | images { | ||
366 | image: "bt_base1.png" COMP; | ||
367 | image: "bt_base2.png" COMP; | ||
368 | image: "bt_hilight.png" COMP; | ||
369 | image: "bt_shine.png" COMP; | ||
370 | image: "bt_glow.png" COMP; | ||
371 | image: "bt_dis_base.png" COMP; | ||
372 | image: "bt_dis_hilight.png" COMP; | ||
373 | image: "arrow_right.png" COMP; | ||
374 | image: "arrow_left.png" COMP; | ||
375 | } | ||
376 | script { | ||
377 | public menu_text_visible; //0:hide (default), 1:visible | ||
378 | public menu_disable; //0:enable, 1:disable | ||
379 | } | ||
380 | parts { | ||
381 | part { name: "item_image"; | ||
382 | mouse_events: 1; | ||
383 | description { state: "default" 0.0; | ||
384 | color: 255 255 255 0; | ||
385 | image { | ||
386 | normal: "bt_base2.png"; | ||
387 | border: 7 7 7 7; | ||
388 | } | ||
389 | image.middle: SOLID; | ||
390 | } | ||
391 | description { state: "visible" 0.0; | ||
392 | inherit: "default" 0.0; | ||
393 | color: 255 255 255 255; | ||
394 | } | ||
395 | description { state: "clicked" 0.0; | ||
396 | inherit: "default" 0.0; | ||
397 | inherit: "visible" 0.0; | ||
398 | image.normal: "bt_base1.png"; | ||
399 | image.middle: SOLID; | ||
400 | } | ||
401 | description { state: "disabled" 0.0; | ||
402 | inherit: "default" 0.0; | ||
403 | } | ||
404 | } | ||
405 | part { name: "item_image_disabled"; | ||
406 | mouse_events: 1; | ||
407 | description { state: "default" 0.0; | ||
408 | color: 255 255 255 0; | ||
409 | image { | ||
410 | normal: "bt_dis_base.png"; | ||
411 | border: 4 4 4 4; | ||
412 | } | ||
413 | image.middle: SOLID; | ||
414 | } | ||
415 | description { state: "disabled" 0.0; | ||
416 | inherit: "default" 0.0; | ||
417 | color: 255 255 255 255; | ||
418 | } | ||
419 | } | ||
420 | part { name: "arrow"; | ||
421 | mouse_events: 1; | ||
422 | description { state: "default" 0.0; | ||
423 | color: 255 255 255 255; | ||
424 | align: 1.0 0.5; | ||
425 | aspect: 1 1; | ||
426 | aspect_preference: BOTH; | ||
427 | image { | ||
428 | normal: "arrow_right.png"; | ||
429 | } | ||
430 | } | ||
431 | description { state: "rtl" 0.0; | ||
432 | inherit: "default" 0.0; | ||
433 | image.normal: "arrow_left.png"; | ||
434 | } | ||
435 | } | ||
436 | part { name: "elm.swallow.content"; | ||
437 | type: SWALLOW; | ||
438 | description { state: "default" 0.0; | ||
439 | fixed: 1 0; | ||
440 | visible: 1; | ||
441 | align: 0.0 0.5; | ||
442 | rel1.offset: 4 4; | ||
443 | rel2.offset: 3 -5; | ||
444 | rel2.relative: 0.0 1.0; | ||
445 | aspect: 1.0 1.0; | ||
446 | aspect_preference: VERTICAL; | ||
447 | rel2.offset: 4 -5; | ||
448 | } | ||
449 | } | ||
450 | part { | ||
451 | name: "elm.text"; | ||
452 | type: TEXT; | ||
453 | mouse_events: 0; | ||
454 | scale: 1; | ||
455 | description { state: "default" 0.0; | ||
456 | visible: 0; | ||
457 | rel1.to_x: "elm.swallow.content"; | ||
458 | rel1.relative: 1.0 0.0; | ||
459 | rel1.offset: 5 7; | ||
460 | rel2.offset: -10 -8; | ||
461 | color: 0 0 0 255; | ||
462 | text { | ||
463 | font: "Sans,Edje-Vera"; | ||
464 | size: 10; | ||
465 | min: 1 1; | ||
466 | align: 0.0 0.5; | ||
467 | text_class: "menu_item"; | ||
468 | } | ||
469 | } | ||
470 | description { state: "visible" 0.0; | ||
471 | inherit: "default" 0.0; | ||
472 | visible: 1; | ||
473 | text.min: 1 1; | ||
474 | } | ||
475 | description { state: "selected" 0.0; | ||
476 | inherit: "default" 0.0; | ||
477 | inherit: "visible" 0.0; | ||
478 | color: 254 254 254 255; | ||
479 | } | ||
480 | description { state: "disabled" 0.0; | ||
481 | inherit: "default" 0.0; | ||
482 | color: 0 0 0 128; | ||
483 | } | ||
484 | description { state: "disabled_visible" 0.0; | ||
485 | inherit: "default" 0.0; | ||
486 | inherit: "visible" 0.0; | ||
487 | color: 0 0 0 128; | ||
488 | } | ||
489 | } | ||
490 | part { name: "over1"; | ||
491 | mouse_events: 0; | ||
492 | description { state: "default" 0.0; | ||
493 | color: 255 255 255 0; | ||
494 | rel2.relative: 1.0 0.5; | ||
495 | image { | ||
496 | normal: "bt_hilight.png"; | ||
497 | border: 7 7 7 0; | ||
498 | } | ||
499 | } | ||
500 | description { state: "visible" 0.0; | ||
501 | inherit: "default" 0.0; | ||
502 | color: 255 255 255 255; | ||
503 | } | ||
504 | description { state: "disabled" 0.0; | ||
505 | inherit: "default" 0.0; | ||
506 | } | ||
507 | } | ||
508 | part { name: "over_disabled"; | ||
509 | mouse_events: 0; | ||
510 | description { state: "default" 0.0; | ||
511 | color: 255 255 255 0; | ||
512 | rel2.relative: 1.0 0.5; | ||
513 | image { | ||
514 | normal: "bt_dis_hilight.png"; | ||
515 | border: 4 4 4 0; | ||
516 | } | ||
517 | } | ||
518 | description { state: "disabled" 0.0; | ||
519 | inherit: "default" 0.0; | ||
520 | color: 255 255 255 255; | ||
521 | } | ||
522 | } | ||
523 | part { name: "over2"; | ||
524 | mouse_events: 1; | ||
525 | repeat_events: 1; | ||
526 | ignore_flags: ON_HOLD; | ||
527 | description { state: "default" 0.0; | ||
528 | image { | ||
529 | normal: "bt_shine.png"; | ||
530 | border: 7 7 7 7; | ||
531 | } | ||
532 | } | ||
533 | description { state: "disabled" 0.0; | ||
534 | inherit: "default" 0.0; | ||
535 | visible: 0; | ||
536 | } | ||
537 | } | ||
538 | part { name: "over3"; | ||
539 | mouse_events: 1; | ||
540 | repeat_events: 1; | ||
541 | description { state: "default" 0.0; | ||
542 | color: 255 255 255 0; | ||
543 | image { | ||
544 | normal: "bt_glow.png"; | ||
545 | border: 12 12 12 12; | ||
546 | } | ||
547 | fill.smooth : 0; | ||
548 | } | ||
549 | description { state: "clicked" 0.0; | ||
550 | inherit: "default" 0.0; | ||
551 | visible: 1; | ||
552 | color: 255 255 255 255; | ||
553 | } | ||
554 | } | ||
555 | part { name: "disabler"; | ||
556 | type: RECT; | ||
557 | description { state: "default" 0.0; | ||
558 | color: 0 0 0 0; | ||
559 | visible: 0; | ||
560 | } | ||
561 | description { state: "disabled" 0.0; | ||
562 | inherit: "default" 0.0; | ||
563 | visible: 1; | ||
564 | } | ||
565 | } | ||
566 | } | ||
567 | programs { | ||
568 | // | ||
569 | program { | ||
570 | name: "item_mouse_in"; | ||
571 | signal: "mouse,in"; | ||
572 | source: "over2"; | ||
573 | action: SIGNAL_EMIT "elm,action,activate" ""; | ||
574 | after: "item_mouse_in_2"; | ||
575 | after: "item_mouse_in_3"; | ||
576 | } | ||
577 | program { | ||
578 | name: "item_mouse_in_2"; | ||
579 | transition: DECELERATE 0.5; | ||
580 | script { | ||
581 | new v, d; | ||
582 | v = get_int(menu_text_visible); | ||
583 | d = get_int(menu_disable); | ||
584 | |||
585 | if (v==1 && d==0) | ||
586 | run_program(PROGRAM:"selected_text"); | ||
587 | } | ||
588 | } | ||
589 | program { | ||
590 | name: "item_mouse_in_3"; | ||
591 | action : STATE_SET "visible" 0.0; | ||
592 | target: "item_image"; | ||
593 | target: "over1"; | ||
594 | transition: DECELERATE 0.5; | ||
595 | } | ||
596 | program { | ||
597 | name: "selected_text"; | ||
598 | action: STATE_SET "selected" 0.0; | ||
599 | target: "elm.text"; | ||
600 | transition: DECELERATE 0.5; | ||
601 | } | ||
602 | // | ||
603 | |||
604 | // | ||
605 | program { | ||
606 | name: "item_mouse_out"; | ||
607 | signal: "mouse,out"; | ||
608 | source: "over2"; | ||
609 | after: "item_mouse_out_2"; | ||
610 | after: "item_mouse_out_3"; | ||
611 | } | ||
612 | program { | ||
613 | name: "item_mouse_out_2"; | ||
614 | transition: DECELERATE 0.5; | ||
615 | script { | ||
616 | new v, d; | ||
617 | v = get_int(menu_text_visible); | ||
618 | d = get_int(menu_disable); | ||
619 | |||
620 | if (v==1 && d==0) | ||
621 | run_program(PROGRAM:"visible_text"); | ||
622 | } | ||
623 | } | ||
624 | program { | ||
625 | name: "item_mouse_out_3"; | ||
626 | action: STATE_SET "default" 0.0; | ||
627 | target: "item_image"; | ||
628 | target: "over1"; | ||
629 | transition: DECELERATE 0.5; | ||
630 | } | ||
631 | program { | ||
632 | name: "visible_text"; | ||
633 | action: STATE_SET "visible" 0.0; | ||
634 | target: "elm.text"; | ||
635 | transition: DECELERATE 0.5; | ||
636 | } | ||
637 | // | ||
638 | |||
639 | program { | ||
640 | name: "item_unclick"; | ||
641 | signal: "mouse,up,1"; | ||
642 | source: "over2"; | ||
643 | action: STATE_SET "visible" 0.0; | ||
644 | target: "item_image"; | ||
645 | } | ||
646 | program { | ||
647 | name: "item_click2"; | ||
648 | signal: "mouse,down,1"; | ||
649 | source: "over3"; | ||
650 | action: STATE_SET "clicked" 0.0; | ||
651 | target: "over3"; | ||
652 | } | ||
653 | program { | ||
654 | name: "item_unclick2"; | ||
655 | signal: "mouse,up,1"; | ||
656 | source: "over3"; | ||
657 | action: STATE_SET "default" 0.0; | ||
658 | transition: DECELERATE 0.5; | ||
659 | target: "over3"; | ||
660 | } | ||
661 | program { | ||
662 | name: "item_unclick3"; | ||
663 | signal: "mouse,up,1"; | ||
664 | source: "over2"; | ||
665 | action: SIGNAL_EMIT "elm,action,click" ""; | ||
666 | } | ||
667 | program { | ||
668 | name: "menu_open"; | ||
669 | signal: "mouse,in"; | ||
670 | source: "over2"; | ||
671 | action: SIGNAL_EMIT "elm,action,open" ""; | ||
672 | } | ||
673 | program { name: "text_show"; | ||
674 | signal: "elm,state,text,visible"; | ||
675 | source: "elm"; | ||
676 | script { | ||
677 | set_int(menu_text_visible, 1); | ||
678 | set_state(PART:"elm.text", "visible", 0.0); | ||
679 | } | ||
680 | } | ||
681 | program { name: "text_hide"; | ||
682 | signal: "elm,state,text,hidden"; | ||
683 | source: "elm"; | ||
684 | script { | ||
685 | set_int(menu_text_visible, 0); | ||
686 | set_state(PART:"elm.text", "default", 0.0); | ||
687 | } | ||
688 | } | ||
689 | program { name: "disable"; | ||
690 | signal: "elm,state,disabled"; | ||
691 | source: "elm"; | ||
692 | action: STATE_SET "disabled" 0.0; | ||
693 | target: "item_image"; | ||
694 | target: "item_image_disabled"; | ||
695 | target: "over1"; | ||
696 | target: "over2"; | ||
697 | target: "over_disabled"; | ||
698 | target: "disabler"; | ||
699 | after: "disable_text"; | ||
700 | } | ||
701 | program { name: "disable_text"; | ||
702 | script { | ||
703 | new st[31]; | ||
704 | new Float:vl; | ||
705 | get_state(PART:"elm.text", st, 30, vl); | ||
706 | if (!strcmp(st, "visible")) | ||
707 | set_state(PART:"elm.text", "disabled_visible", 0.0); | ||
708 | else if (!strcmp(st, "default")) | ||
709 | set_state(PART:"elm.text", "disabled", 0.0); | ||
710 | } | ||
711 | } | ||
712 | program { name: "enable"; | ||
713 | signal: "elm,state,enabled"; | ||
714 | source: "elm"; | ||
715 | action: STATE_SET "default" 0.0; | ||
716 | target: "item_image"; | ||
717 | target: "item_image_disabled"; | ||
718 | target: "over1"; | ||
719 | target: "over2"; | ||
720 | target: "over_disabled"; | ||
721 | target: "disabler"; | ||
722 | after: "enable_text"; | ||
723 | } | ||
724 | program { name: "enable_text"; | ||
725 | script { | ||
726 | new v; | ||
727 | v = get_int(menu_text_visible); | ||
728 | if (v==1) | ||
729 | set_state(PART:"elm.text", "visible", 0.0); | ||
730 | else if (v==0) | ||
731 | set_state(PART:"elm.text", "default", 0.0); | ||
732 | set_int(menu_disable, 0); | ||
733 | } | ||
734 | } | ||
735 | program { name: "to_rtl"; | ||
736 | signal: "edje,state,rtl"; | ||
737 | source: "edje"; | ||
738 | action: STATE_SET "rtl" 0.0; | ||
739 | target: "arrow"; | ||
740 | } | ||
741 | program { name: "to_ltr"; | ||
742 | signal: "edje,state,ltr"; | ||
743 | source: "edje"; | ||
744 | action: STATE_SET "default" 0.0; | ||
745 | target: "arrow"; | ||
746 | } | ||
747 | } | ||
748 | } | ||
749 | |||
750 | group { name: "elm/menu/separator/default"; | ||
751 | images { | ||
752 | image: "separator_h.png" COMP; | ||
753 | } | ||
754 | parts { | ||
755 | part { name: "separator"; // separator group | ||
756 | description { state: "default" 0.0; | ||
757 | min: 2 2; | ||
758 | rel1.offset: 4 4; | ||
759 | rel2.offset: -5 -5; | ||
760 | image { | ||
761 | normal: "separator_h.png"; | ||
762 | } | ||
763 | fill { | ||
764 | smooth: 0; | ||
765 | } | ||
766 | } | ||
767 | } | ||
768 | } | ||
769 | } | ||
diff --git a/libraries/elementary/data/themes/widgets/multibuttonentry.edc b/libraries/elementary/data/themes/widgets/multibuttonentry.edc new file mode 100644 index 0000000..af6c358 --- /dev/null +++ b/libraries/elementary/data/themes/widgets/multibuttonentry.edc | |||
@@ -0,0 +1,468 @@ | |||
1 | group { | ||
2 | name: "elm/multibuttonentry/base/default"; | ||
3 | data.item: "closed_button_type" "image"; /* image, label, default : label */ | ||
4 | data.item: "closed_height" 46; | ||
5 | parts { | ||
6 | part { | ||
7 | name: "elm.base"; | ||
8 | type: RECT; | ||
9 | scale: 1; | ||
10 | description { | ||
11 | state: "default" 0.0; | ||
12 | align: 0 0; | ||
13 | color: 0 0 0 0; | ||
14 | } | ||
15 | } | ||
16 | part { | ||
17 | name: "top.left.pad"; | ||
18 | type: RECT; | ||
19 | scale: 1; | ||
20 | description { | ||
21 | state: "default" 0.0; | ||
22 | min : 6 8; | ||
23 | fixed: 1 1; | ||
24 | rel1 { relative: 0.0 0.0;to:elm.base; } | ||
25 | rel2 { relative: 0.0 0.0;to:elm.base; } | ||
26 | align: 0 0; | ||
27 | color: 0 0 0 0; | ||
28 | } | ||
29 | } | ||
30 | part { | ||
31 | name: "bottom.right.pad"; | ||
32 | type: RECT; | ||
33 | scale: 1; | ||
34 | description { | ||
35 | state: "default" 0.0; | ||
36 | min : 6 8; | ||
37 | fixed: 1 1; | ||
38 | rel1 { relative: 1.0 1.0;to:elm.base; } | ||
39 | rel2 { relative: 1.0 1.0;to:elm.base; } | ||
40 | align: 1 1; | ||
41 | color: 0 0 0 0; | ||
42 | } | ||
43 | } | ||
44 | part { | ||
45 | name: "box.swallow"; | ||
46 | type: SWALLOW; | ||
47 | description { | ||
48 | state: "default" 0.0; | ||
49 | rel1 { relative: 1.0 1.0; to: "top.left.pad"; } | ||
50 | rel2 { relative: 0.0 0.0; to: "bottom.right.pad"; } | ||
51 | align: 0.0 0.0; | ||
52 | } | ||
53 | } | ||
54 | } | ||
55 | } | ||
56 | |||
57 | group { | ||
58 | name: "elm/multibuttonentry/guidetext/default"; | ||
59 | parts { | ||
60 | part { | ||
61 | name: "elm.text.bg"; | ||
62 | type: RECT; | ||
63 | mouse_events: 0; | ||
64 | scale: 1; | ||
65 | description { | ||
66 | state: "default" 0.0; | ||
67 | color: 0 0 0 0; | ||
68 | visible: 0; | ||
69 | rel1.to: "elm.text"; | ||
70 | rel2.to: "elm.text"; | ||
71 | } | ||
72 | } | ||
73 | part { | ||
74 | name: "elm.text"; | ||
75 | type: TEXT; | ||
76 | scale: 1; | ||
77 | description { | ||
78 | state: "default" 0.0; | ||
79 | color: 130 130 130 255; | ||
80 | text { | ||
81 | font: "Sans:style=Roman"; | ||
82 | size: 16; | ||
83 | min: 0 1; | ||
84 | align: 0.0 0.5; | ||
85 | } | ||
86 | } | ||
87 | } | ||
88 | } | ||
89 | } | ||
90 | |||
91 | group { | ||
92 | name: "elm/multibuttonentry/btn/default"; | ||
93 | data.item: "button_max_size" 130; | ||
94 | styles { | ||
95 | style { name: "multibuttonentry_textblock_style"; | ||
96 | base: "font=Arial:style=Medium align=0.5 font_size=16 color=#FFFFFF text_class=label ellipsis=1.0"; | ||
97 | tag: "br" "\n"; | ||
98 | tag: "ps" "ps"; | ||
99 | tag: "hilight" "+ font=Sans:style=Bold"; | ||
100 | tag: "b" "+ font=Sans:style=Bold"; | ||
101 | tag: "tab" "\t"; | ||
102 | } | ||
103 | } | ||
104 | parts { | ||
105 | part { | ||
106 | name: "elm.base"; | ||
107 | type: RECT; | ||
108 | mouse_events: 1; | ||
109 | scale: 1; | ||
110 | description { | ||
111 | state: "default" 0.0; | ||
112 | min: 0 33; | ||
113 | max: 3000 33; | ||
114 | fixed: 1 1; | ||
115 | color: 255 255 255 0; | ||
116 | } | ||
117 | } | ||
118 | part{ | ||
119 | name: "top.padding"; | ||
120 | type: RECT; | ||
121 | scale: 1; | ||
122 | description { | ||
123 | state: "default" 0.0; | ||
124 | min : 3 5; | ||
125 | fixed: 1 1; | ||
126 | rel1 { relative: 0.0 0.0;to:elm.base; } | ||
127 | rel2 { relative: 1.0 0.0;to:elm.base; } | ||
128 | color: 255 0 0 0; | ||
129 | align: 0 0; | ||
130 | } | ||
131 | } | ||
132 | part{ | ||
133 | name: "bottom.padding"; | ||
134 | type: RECT; | ||
135 | scale: 1; | ||
136 | description { | ||
137 | state: "default" 0.0; | ||
138 | min : 3 5; | ||
139 | fixed: 1 1; | ||
140 | rel1 { relative: 0.0 1.0;to:elm.base; } | ||
141 | rel2 { relative: 1.0 1.0;to:elm.base; } | ||
142 | color: 0 255 0 0; | ||
143 | align: 0 1; | ||
144 | } | ||
145 | } | ||
146 | part { | ||
147 | name: "left.padding"; | ||
148 | type: RECT; | ||
149 | scale: 1; | ||
150 | description { | ||
151 | state: "default" 0.0; | ||
152 | min : 0 0; | ||
153 | fixed: 0 0; | ||
154 | rel1 { relative: 0.0 0.0; to: "elm.base"; } | ||
155 | rel2 { relative: 0.0 1.0; to: "elm.base"; } | ||
156 | color: 255 0 255 0; | ||
157 | align: 0 0; | ||
158 | } | ||
159 | } | ||
160 | part { | ||
161 | name: "right.padding"; | ||
162 | type: RECT; | ||
163 | scale: 1; | ||
164 | description { | ||
165 | state: "default" 0.0; | ||
166 | min : 5 0; | ||
167 | fixed: 0 0; | ||
168 | rel1 { relative: 1.0 0.0; to: "elm.base"; } | ||
169 | rel2 { relative: 1.0 1.0; to: "elm.base"; } | ||
170 | color: 0 0 255 0; | ||
171 | align: 1 1.0; | ||
172 | } | ||
173 | } | ||
174 | part { | ||
175 | name: "elm.btn.bg"; | ||
176 | type: RECT; | ||
177 | mouse_events: 1; | ||
178 | scale: 1; | ||
179 | description { | ||
180 | state: "default" 0.0; | ||
181 | min : 10 6; | ||
182 | max : 500 50; | ||
183 | fixed: 0 0; | ||
184 | rel1 { relative: 1.0 1.0; to_x:"left.padding";to_y:"top.padding";} | ||
185 | rel2 { relative: 0.0 0.0; to_x:"right.padding";to_y:"bottom.padding";} | ||
186 | color: 80 80 80 255; | ||
187 | } | ||
188 | description { | ||
189 | state: "focused" 0.0; | ||
190 | inherit: "default" 0.0; | ||
191 | color: 170 170 170 255; | ||
192 | } | ||
193 | } | ||
194 | part { | ||
195 | name: "elm.btn.text"; | ||
196 | type: TEXTBLOCK; | ||
197 | mouse_events: 1; | ||
198 | scale:1; | ||
199 | description { | ||
200 | state: "default" 0.0; | ||
201 | min: 6 6; | ||
202 | max: 120 33; | ||
203 | fixed: 0 1; | ||
204 | text { | ||
205 | text: "Auto Resized textblock"; | ||
206 | style: "multibuttonentry_textblock_style"; | ||
207 | min: 1 1; | ||
208 | align: 0.5 0.5; | ||
209 | } | ||
210 | rel1.to:"elm.btn.bg"; | ||
211 | rel2.to:"elm.btn.bg"; | ||
212 | rel1.offset: 10 10; | ||
213 | rel2.offset: -11 -11; | ||
214 | } | ||
215 | } | ||
216 | } | ||
217 | programs { | ||
218 | program { | ||
219 | name: "clicked"; | ||
220 | signal: "mouse,clicked,1"; | ||
221 | source: "elm.btn.bg"; | ||
222 | action: SIGNAL_EMIT "clicked" "elm"; | ||
223 | } | ||
224 | program { | ||
225 | name: "default"; | ||
226 | signal: "default"; | ||
227 | action: STATE_SET "default" 0.0; | ||
228 | target: "elm.btn.bg"; | ||
229 | } | ||
230 | program { | ||
231 | name: "focused"; | ||
232 | signal: "focused"; | ||
233 | action: STATE_SET "focused" 0.0; | ||
234 | target: "elm.btn.bg"; | ||
235 | } | ||
236 | } | ||
237 | } | ||
238 | group { | ||
239 | name: "elm/label/base/extended/multibuttonentry_default"; | ||
240 | |||
241 | styles { | ||
242 | style { | ||
243 | name: "textblock_style_multibuttonentry_default"; | ||
244 | base: "font=Sans:style=Medium font_size=16 color=#000000 wrap=char"; | ||
245 | tag: "br" "\n"; | ||
246 | tag: "ps" "ps"; | ||
247 | tag: "hilight" "+ font=Sans:style=Bold"; | ||
248 | tag: "b" "+ font=Sans:style=Bold"; | ||
249 | tag: "tab" "\t"; | ||
250 | } | ||
251 | } | ||
252 | parts { | ||
253 | part { | ||
254 | name: "label.swallow.background"; | ||
255 | type: SWALLOW; | ||
256 | description { | ||
257 | state: "default" 0.0; | ||
258 | visible: 1; | ||
259 | rel1 { relative: 0 0; to: "elm.text"; } | ||
260 | rel2 { relative: 1 1; to: "elm.text"; } | ||
261 | } | ||
262 | } | ||
263 | part { | ||
264 | name: "elm.text"; | ||
265 | type: TEXTBLOCK; | ||
266 | mouse_events: 0; | ||
267 | scale: 1; | ||
268 | description { | ||
269 | state: "default" 0.0; | ||
270 | text { | ||
271 | style: "textblock_style_multibuttonentry_default"; | ||
272 | min: 1 1; | ||
273 | } | ||
274 | } | ||
275 | } | ||
276 | } | ||
277 | } | ||
278 | |||
279 | group { | ||
280 | name: "elm/multibuttonentry/closedbutton/default"; | ||
281 | images { | ||
282 | image: "bt_basew.png" COMP; | ||
283 | image: "bt_base1.png" COMP; | ||
284 | image: "arrow_down.png" COMP; | ||
285 | image: "down.png" COMP; | ||
286 | } | ||
287 | data.item: "closed_button_height" 26; | ||
288 | data.item: "closed_button_width" 26; | ||
289 | |||
290 | parts { | ||
291 | part { | ||
292 | name: "closed_button_bg"; | ||
293 | scale: 1; | ||
294 | mouse_events: 0; | ||
295 | type: IMAGE; | ||
296 | description { | ||
297 | state: "default" 0.0; | ||
298 | align: 0.5 0.5; | ||
299 | min: 26 26; | ||
300 | visible: 1; | ||
301 | image.normal: "bt_basew.png"; | ||
302 | rel1 { relative: 0.0 0.0; } | ||
303 | rel2 { relative: 1.0 1.0; } | ||
304 | } | ||
305 | description { | ||
306 | state: "clicked" 0.0; | ||
307 | inherit: "default" 0.0; | ||
308 | image.normal: "bt_base1.png"; | ||
309 | } | ||
310 | } | ||
311 | part { | ||
312 | name: "closed_button"; | ||
313 | scale: 1; | ||
314 | mouse_events: 1; | ||
315 | type: IMAGE; | ||
316 | description { | ||
317 | state: "default" 0.0; | ||
318 | align: 0.5 0.5; | ||
319 | min: 26 26; | ||
320 | visible: 1; | ||
321 | image.normal: "arrow_down.png"; | ||
322 | rel1 { relative: 0.0 0.0; } | ||
323 | rel2 { relative: 1.0 1.0; } | ||
324 | } | ||
325 | description { | ||
326 | state: "clicked" 0.0; | ||
327 | inherit: "default" 0.0; | ||
328 | image.normal: "down.png"; | ||
329 | } | ||
330 | } | ||
331 | } | ||
332 | |||
333 | programs { | ||
334 | program { | ||
335 | name: "button_click"; | ||
336 | signal: "mouse,down,1"; | ||
337 | source: "closed_button"; | ||
338 | action: STATE_SET "clicked" 0.0; | ||
339 | target: "closed_button_bg"; | ||
340 | target: "closed_button"; | ||
341 | } | ||
342 | program { | ||
343 | name: "button_unclick"; | ||
344 | signal: "mouse,up,1"; | ||
345 | source: "closed_button"; | ||
346 | action: STATE_SET "default" 0.0; | ||
347 | target: "closed_button_bg"; | ||
348 | target: "closed_button"; | ||
349 | } | ||
350 | } | ||
351 | } | ||
352 | |||
353 | group { | ||
354 | name: "elm/multibuttonentry/label/default"; | ||
355 | parts { | ||
356 | part { | ||
357 | name: "mbe.label.bg"; | ||
358 | type: RECT; | ||
359 | scale: 1; | ||
360 | mouse_events: 0; | ||
361 | description { | ||
362 | state: "default" 0.0; | ||
363 | color: 0 0 0 0; | ||
364 | min: 0 0; | ||
365 | fixed: 1 1; | ||
366 | } | ||
367 | description { | ||
368 | state: "no_text" 0.0; | ||
369 | inherit: "default" 0.0; | ||
370 | visible: 0; | ||
371 | } | ||
372 | } | ||
373 | part { | ||
374 | name: "mbe.label.left.padding"; | ||
375 | type: RECT; | ||
376 | mouse_events: 0; | ||
377 | scale: 1; | ||
378 | description { | ||
379 | state: "default" 0.0; | ||
380 | color: 0 0 0 0; | ||
381 | min: 3 0; | ||
382 | fixed: 1 1; | ||
383 | rel1.to: "mbe.label.bg"; | ||
384 | rel2 { | ||
385 | to: "mbe.label.bg"; | ||
386 | relative: 0.0 1.0; | ||
387 | } | ||
388 | align: 0 0.5; | ||
389 | } | ||
390 | description { | ||
391 | state: "no_text" 0.0; | ||
392 | inherit: "default" 0.0; | ||
393 | visible: 0; | ||
394 | } | ||
395 | } | ||
396 | part { | ||
397 | name: "mbe.label.right.padding"; | ||
398 | type: RECT; | ||
399 | mouse_events: 0; | ||
400 | scale: 1; | ||
401 | description { | ||
402 | state: "default" 0.0; | ||
403 | color: 0 0 0 0; | ||
404 | min: 3 0; | ||
405 | fixed: 1 1; | ||
406 | rel1 { | ||
407 | to: "mbe.label.bg"; | ||
408 | relative: 1.0 0.0; | ||
409 | } | ||
410 | rel2.to: "mbe.label.bg"; | ||
411 | align: 1 1.0; | ||
412 | } | ||
413 | description { | ||
414 | state: "no_text" 0.0; | ||
415 | inherit: "default" 0.0; | ||
416 | visible: 0; | ||
417 | } | ||
418 | } | ||
419 | part { | ||
420 | name: "mbe.label"; | ||
421 | type: TEXT; | ||
422 | mouse_events: 0; | ||
423 | scale: 1; | ||
424 | description { | ||
425 | state: "default" 0.0; | ||
426 | color: 0 0 0 255; | ||
427 | min: 0 33; | ||
428 | fixed: 1 1; | ||
429 | text { | ||
430 | font: "Sans:style=Roman"; | ||
431 | size: 16; | ||
432 | min: 1 1; | ||
433 | align: 0.0 0.428; | ||
434 | } | ||
435 | rel1 { relative: 1.0 1.0; to: "mbe.label.left.padding"; } | ||
436 | rel2 { relative: 0.0 0.0; to: "mbe.label.right.padding"; } | ||
437 | } | ||
438 | description { | ||
439 | state: "no_text" 0.0; | ||
440 | inherit: "default" 0.0; | ||
441 | min: 6 33; | ||
442 | } | ||
443 | } | ||
444 | } | ||
445 | programs { | ||
446 | program { | ||
447 | name: "has_text"; | ||
448 | signal: "elm,mbe,set_text"; | ||
449 | source: ""; | ||
450 | action: STATE_SET "default" 0.0; | ||
451 | target: "mbe.label.bg"; | ||
452 | target: "mbe.label.left.padding"; | ||
453 | target: "mbe.label.right.padding"; | ||
454 | target: "mbe.label"; | ||
455 | } | ||
456 | program { | ||
457 | name: "no_text"; | ||
458 | signal: "elm,mbe,clear_text"; | ||
459 | source: ""; | ||
460 | action: STATE_SET "no_text" 0.0; | ||
461 | target: "mbe.label.bg"; | ||
462 | target: "mbe.label.left.padding"; | ||
463 | target: "mbe.label.right.padding"; | ||
464 | target: "mbe.label"; | ||
465 | } | ||
466 | } | ||
467 | } | ||
468 | |||
diff --git a/libraries/elementary/data/themes/widgets/naviframe.edc b/libraries/elementary/data/themes/widgets/naviframe.edc new file mode 100644 index 0000000..0867700 --- /dev/null +++ b/libraries/elementary/data/themes/widgets/naviframe.edc | |||
@@ -0,0 +1,548 @@ | |||
1 | group { name: "elm/naviframe/base/default"; | ||
2 | name: "elm/naviframe/base/pager"; | ||
3 | parts { | ||
4 | part { name: "base0"; | ||
5 | description { state: "default" 0.0; | ||
6 | } | ||
7 | } | ||
8 | } | ||
9 | } | ||
10 | group { name: "elm/naviframe/item/basic/default"; | ||
11 | parts { | ||
12 | part { name: "title_clip"; | ||
13 | type: RECT; | ||
14 | description { state: "default" 0.0; | ||
15 | min: 1 55; | ||
16 | align: 0.0 0.0; | ||
17 | fixed: 0 1; | ||
18 | rel1 { relative: 0.0 0.0; } | ||
19 | rel2 { relative: 1.0 0.0; } | ||
20 | } | ||
21 | description { state: "hide" 0.0; | ||
22 | inherit: "default" 0.0; | ||
23 | min: 0 0; | ||
24 | max: 0 0; | ||
25 | fixed: 1 1; | ||
26 | } | ||
27 | } | ||
28 | part { name: "content_clip"; | ||
29 | type: RECT; | ||
30 | mouse_events: 0; | ||
31 | description { state: "default" 0.0; | ||
32 | rel1.to_y: "title_clip"; | ||
33 | rel1.relative: 0 1; | ||
34 | } | ||
35 | } | ||
36 | part { name: "content_base"; | ||
37 | type: RECT; | ||
38 | clip_to: "content_clip"; | ||
39 | description { state: "default" 0.0; | ||
40 | rel1 { to: "elm.swallow.content"; } | ||
41 | rel2 { to: "elm.swallow.content"; } | ||
42 | color: 225 225 225 255; | ||
43 | } | ||
44 | } | ||
45 | part { name: "elm.swallow.content"; | ||
46 | type: SWALLOW; | ||
47 | scale: 1; | ||
48 | clip_to: "content_clip"; | ||
49 | description { state: "default" 0.0; | ||
50 | align: 0.0 0.0; | ||
51 | rel1.relative: 0.0 1.0; | ||
52 | rel1.to_y: "title_clip"; | ||
53 | rel2.relative: 1.0 1.0; | ||
54 | } | ||
55 | description { state: "left" 0.0; | ||
56 | inherit: "default" 0.0; | ||
57 | rel1.relative: -1.0 1.0; | ||
58 | rel2.relative: 0.0 1.0; | ||
59 | } | ||
60 | description { state: "right" 0.0; | ||
61 | inherit: "default" 0.0; | ||
62 | rel1.relative: 1.0 1.0; | ||
63 | rel2.relative: 2.0 1.0; | ||
64 | } | ||
65 | } | ||
66 | part { name: "title_base"; | ||
67 | type: RECT; | ||
68 | description { state: "default" 0.0; | ||
69 | rel1 { to: "title_clip"; } | ||
70 | rel2 { to: "title_clip"; } | ||
71 | color: 225 225 225 255; | ||
72 | } | ||
73 | } | ||
74 | part { name: "title_separator"; | ||
75 | type: RECT; | ||
76 | clip_to: "title_clip"; | ||
77 | description { state: "default" 0.0; | ||
78 | min: 0 5; | ||
79 | align: 0.5 1; | ||
80 | fixed: 0 1; | ||
81 | rel1 { to: "title_clip"; relative: 0 1; } | ||
82 | rel2 { to: "title_clip"; } | ||
83 | color: 150 150 150 255; | ||
84 | } | ||
85 | } | ||
86 | part { name: "elm.swallow.prev_btn"; | ||
87 | type: SWALLOW; | ||
88 | scale: 1; | ||
89 | clip_to: "title_clip"; | ||
90 | description { state: "default" 0.0; | ||
91 | min: 80 40; | ||
92 | max: 80 40; | ||
93 | align: 0 0; | ||
94 | fixed: 1 1; | ||
95 | rel1.offset: 5 5; | ||
96 | rel1.to: "title_base"; | ||
97 | rel2.offset: -1 -6; | ||
98 | rel2.to: "title_base"; | ||
99 | } | ||
100 | } | ||
101 | part { name: "elm.swallow.next_btn"; | ||
102 | type: SWALLOW; | ||
103 | scale: 1; | ||
104 | clip_to: "title_clip"; | ||
105 | description { state: "default" 0.0; | ||
106 | min: 80 40; | ||
107 | max: 80 40; | ||
108 | align: 1 0; | ||
109 | fixed: 1 1; | ||
110 | rel1.offset: 0 5; | ||
111 | rel1.to: "title_base"; | ||
112 | rel2.offset: -6 -6; | ||
113 | rel2.to: "title_base"; | ||
114 | } | ||
115 | } | ||
116 | part { name: "elm.swallow.icon"; | ||
117 | type: SWALLOW; | ||
118 | scale: 1; | ||
119 | clip_to: "title_clip"; | ||
120 | description { state: "default" 0.0; | ||
121 | min: 40 40; | ||
122 | max: 40 40; | ||
123 | fixed: 1 1; | ||
124 | align: 1 0.5; | ||
125 | rel1.to: "elm.text.title"; | ||
126 | rel1.relative: 0 0; | ||
127 | rel2.to: "elm.text.title"; | ||
128 | rel2.relative: 0 1; | ||
129 | } | ||
130 | } | ||
131 | part { name: "elm.text.title"; | ||
132 | type: TEXT; | ||
133 | scale: 1; | ||
134 | repeat_events: 1; | ||
135 | clip_to: "title_clip"; | ||
136 | description { state: "default" 0.0; | ||
137 | text { font: "Sans:style=Bold"; | ||
138 | size: 12; | ||
139 | min: 0 0; | ||
140 | max: 1 0; | ||
141 | align: 0.5 0.5; | ||
142 | } | ||
143 | color: 0 0 0 255; | ||
144 | align: 0.5 0.5; | ||
145 | rel1.to: "title_base"; | ||
146 | rel2.to: "title_base"; | ||
147 | } | ||
148 | } | ||
149 | part { name: "elm.text.subtitle"; | ||
150 | type: TEXT; | ||
151 | scale: 1; | ||
152 | repeat_events: 1; | ||
153 | clip_to: "title_clip"; | ||
154 | description { state: "default" 0.0; | ||
155 | text { font: "Sans,Edje-Vera"; | ||
156 | size: 10; | ||
157 | min: 0 0; | ||
158 | max: 1 0; | ||
159 | align: 0.5 1; | ||
160 | } | ||
161 | rel1.to_y: "elm.text.title"; | ||
162 | rel1.relative: 0 1; | ||
163 | rel1.to: "title_base"; | ||
164 | rel1.offset: 0 -3; | ||
165 | rel2.to: "title_base"; | ||
166 | rel2.offset: -1 -4; | ||
167 | color: 50 50 50 255; | ||
168 | align: 0.5 0; | ||
169 | } | ||
170 | } | ||
171 | } | ||
172 | programs { | ||
173 | program { name: "content_new_pusehd"; | ||
174 | signal: "elm,state,new,pushed,internal"; | ||
175 | source: ""; | ||
176 | action: STATE_SET "default" 0.0; | ||
177 | transition: DECELERATE 0.5; | ||
178 | target: "elm.swallow.content"; | ||
179 | after: "show_finished"; | ||
180 | } | ||
181 | program { name: "content_cur_pusehd"; | ||
182 | signal: "elm,state,cur,pushed,internal"; | ||
183 | source: ""; | ||
184 | action: STATE_SET "left" 0.0; | ||
185 | target: "elm.swallow.content"; | ||
186 | transition: DECELERATE 0.5; | ||
187 | after: "pushed_finished"; | ||
188 | } | ||
189 | program { name: "content_prev_popped"; | ||
190 | signal: "elm,state,prev,popped,internal"; | ||
191 | source: ""; | ||
192 | action: STATE_SET "default" 0.0; | ||
193 | target: "elm.swallow.content"; | ||
194 | transition: DECELERATE 0.5; | ||
195 | after: "show_finished"; | ||
196 | } | ||
197 | program { name: "content_cur_popped"; | ||
198 | signal: "elm,state,cur,popped,internal"; | ||
199 | source: ""; | ||
200 | action: STATE_SET "right" 0.0; | ||
201 | target: "elm.swallow.content"; | ||
202 | transition: DECELERATE 0.5; | ||
203 | after: "popped_finished"; | ||
204 | } | ||
205 | program { name: "cur_pushed"; | ||
206 | signal: "elm,state,cur,pushed"; | ||
207 | source: "elm"; | ||
208 | script { | ||
209 | set_state(PART:"elm.swallow.content", "default", 0.0); | ||
210 | emit("elm,state,cur,pushed,internal", ""); | ||
211 | } | ||
212 | } | ||
213 | program { name: "new_pushed"; | ||
214 | signal: "elm,state,new,pushed"; | ||
215 | source: "elm"; | ||
216 | script { | ||
217 | set_state(PART:"elm.swallow.content", "right", 0.0); | ||
218 | emit("elm,state,new,pushed,internal", ""); | ||
219 | } | ||
220 | } | ||
221 | program { name: "prev_popped"; | ||
222 | signal: "elm,state,prev,popped"; | ||
223 | source: "elm"; | ||
224 | script { | ||
225 | set_state(PART:"elm.swallow.content", "left", 0.0); | ||
226 | emit("elm,state,prev,popped,internal", ""); | ||
227 | } | ||
228 | } | ||
229 | program { name: "cur_popped"; | ||
230 | signal: "elm,state,cur,popped"; | ||
231 | source: "elm"; | ||
232 | script { | ||
233 | set_state(PART:"elm.swallow.content", "default", 0.0); | ||
234 | emit("elm,state,cur,popped,internal", ""); | ||
235 | } | ||
236 | } | ||
237 | program { name: "visible"; | ||
238 | signal: "elm,state,visible"; | ||
239 | source: "elm"; | ||
240 | action: STATE_SET "default" 0.0; | ||
241 | target: "elm.swallow.content"; | ||
242 | } | ||
243 | program { name: "title_show"; | ||
244 | signal: "elm,state,title,show"; | ||
245 | source: "elm"; | ||
246 | action: STATE_SET "default" 0.0; | ||
247 | target: "title_clip"; | ||
248 | } | ||
249 | program { name: "title_hide"; | ||
250 | signal: "elm,state,title,hide"; | ||
251 | source: "elm"; | ||
252 | action: STATE_SET "hide" 0.0; | ||
253 | target: "title_clip"; | ||
254 | } | ||
255 | program { | ||
256 | name: "title_clicked"; | ||
257 | signal: "mouse,clicked,1"; | ||
258 | source: "title_base"; | ||
259 | action: SIGNAL_EMIT "elm,action,title,clicked" ""; | ||
260 | } | ||
261 | program { name: "show_finished"; | ||
262 | action: SIGNAL_EMIT "elm,action,show,finished" ""; | ||
263 | } | ||
264 | program { name: "pushed_finished"; | ||
265 | action: SIGNAL_EMIT "elm,action,pushed,finished" ""; | ||
266 | } | ||
267 | program { name: "popped_finished"; | ||
268 | action: SIGNAL_EMIT "elm,action,popped,finished" ""; | ||
269 | } | ||
270 | } | ||
271 | } | ||
272 | group { name: "elm/naviframe/item/overlap/default"; | ||
273 | parts { | ||
274 | part { name: "title_clip"; | ||
275 | type: RECT; | ||
276 | description { state: "default" 0.0; | ||
277 | min: 1 55; | ||
278 | align: 0.0 0.0; | ||
279 | fixed: 0 1; | ||
280 | rel1 { relative: 0.0 0.0; } | ||
281 | rel2 { relative: 1.0 0.0; } | ||
282 | } | ||
283 | description { state: "hide" 0.0; | ||
284 | inherit: "default" 0.0; | ||
285 | min: 0 0; | ||
286 | max: 0 0; | ||
287 | fixed: 1 1; | ||
288 | } | ||
289 | } | ||
290 | part { name: "content_clip"; | ||
291 | type: RECT; | ||
292 | mouse_events: 0; | ||
293 | description { state: "default" 0.0; | ||
294 | rel1.to_y: "title_clip"; | ||
295 | rel1.relative: 0 1; | ||
296 | color: 255 255 255 255; | ||
297 | visible: 1; | ||
298 | } | ||
299 | description { state: "left" 0.0; | ||
300 | inherit: "default" 0.0; | ||
301 | } | ||
302 | description { state: "right" 0.0; | ||
303 | inherit: "default" 0.0; | ||
304 | color: 0 0 0 0; | ||
305 | } | ||
306 | } | ||
307 | part { name: "content_base"; | ||
308 | type: RECT; | ||
309 | clip_to: "content_clip"; | ||
310 | description { state: "default" 0.0; | ||
311 | rel1 { to: "elm.swallow.content"; } | ||
312 | rel2 { to: "elm.swallow.content"; } | ||
313 | } | ||
314 | } | ||
315 | part { name: "elm.swallow.content"; | ||
316 | type: SWALLOW; | ||
317 | scale: 1; | ||
318 | clip_to: "content_clip"; | ||
319 | description { state: "default" 0.0; | ||
320 | align: 0.0 0.0; | ||
321 | rel1.relative: 0.0 1.0; | ||
322 | rel1.to_y: "title_clip"; | ||
323 | rel2.relative: 1.0 1.0; | ||
324 | } | ||
325 | description { state: "left" 0.0; | ||
326 | inherit: "default" 0.0; | ||
327 | } | ||
328 | description { state: "right" 0.0; | ||
329 | inherit: "default" 0.0; | ||
330 | rel1.relative: 1.0 1.0; | ||
331 | rel2.relative: 2.0 1.0; | ||
332 | } | ||
333 | } | ||
334 | part { name: "title_base"; | ||
335 | type: RECT; | ||
336 | description { state: "default" 0.0; | ||
337 | rel1 { to: "title_clip"; } | ||
338 | rel2 { to: "title_clip"; } | ||
339 | color: 225 225 225 255; | ||
340 | } | ||
341 | } | ||
342 | part { name: "title_separator"; | ||
343 | type: RECT; | ||
344 | clip_to: "title_clip"; | ||
345 | description { state: "default" 0.0; | ||
346 | min: 0 5; | ||
347 | align: 0.5 1; | ||
348 | fixed: 0 1; | ||
349 | rel1 { to: "title_clip"; relative: 0 1; } | ||
350 | rel2 { to: "title_clip"; } | ||
351 | color: 150 150 150 255; | ||
352 | } | ||
353 | } | ||
354 | part { name: "elm.swallow.prev_btn"; | ||
355 | type: SWALLOW; | ||
356 | scale: 1; | ||
357 | clip_to: "title_clip"; | ||
358 | description { state: "default" 0.0; | ||
359 | min: 80 40; | ||
360 | max: 80 40; | ||
361 | align: 0 0; | ||
362 | fixed: 1 1; | ||
363 | rel1.offset: 5 5; | ||
364 | rel1.to: "title_base"; | ||
365 | rel2.offset: -1 -6; | ||
366 | rel2.to: "title_base"; | ||
367 | } | ||
368 | } | ||
369 | part { name: "elm.swallow.next_btn"; | ||
370 | type: SWALLOW; | ||
371 | scale: 1; | ||
372 | clip_to: "title_clip"; | ||
373 | description { state: "default" 0.0; | ||
374 | min: 80 40; | ||
375 | max: 80 40; | ||
376 | align: 1 0; | ||
377 | fixed: 1 1; | ||
378 | rel1.offset: 0 5; | ||
379 | rel1.to: "title_base"; | ||
380 | rel2.offset: -6 -6; | ||
381 | rel2.to: "title_base"; | ||
382 | } | ||
383 | } | ||
384 | part { name: "elm.swallow.icon"; | ||
385 | type: SWALLOW; | ||
386 | scale: 1; | ||
387 | clip_to: "title_clip"; | ||
388 | description { state: "default" 0.0; | ||
389 | min: 40 40; | ||
390 | max: 40 40; | ||
391 | fixed: 1 1; | ||
392 | align: 1 0.5; | ||
393 | rel1.to: "elm.text.title"; | ||
394 | rel1.relative: 0 0; | ||
395 | rel2.to: "elm.text.title"; | ||
396 | rel2.relative: 0 1; | ||
397 | } | ||
398 | } | ||
399 | part { name: "elm.text.title"; | ||
400 | type: TEXT; | ||
401 | scale: 1; | ||
402 | repeat_events: 1; | ||
403 | clip_to: "title_clip"; | ||
404 | description { state: "default" 0.0; | ||
405 | text { font: "Sans:style=Bold"; | ||
406 | size: 12; | ||
407 | min: 0 0; | ||
408 | max: 1 0; | ||
409 | align: 0.5 0.5; | ||
410 | } | ||
411 | color: 0 0 0 255; | ||
412 | align: 0.5 0.5; | ||
413 | rel1.to: "title_base"; | ||
414 | rel2.to: "title_base"; | ||
415 | } | ||
416 | } | ||
417 | part { name: "elm.text.subtitle"; | ||
418 | type: TEXT; | ||
419 | scale: 1; | ||
420 | repeat_events: 1; | ||
421 | clip_to: "title_clip"; | ||
422 | description { state: "default" 0.0; | ||
423 | text { font: "Sans,Edje-Vera"; | ||
424 | size: 10; | ||
425 | min: 0 0; | ||
426 | max: 1 0; | ||
427 | align: 0.5 1; | ||
428 | } | ||
429 | rel1.to_y: "elm.text.title"; | ||
430 | rel1.relative: 0 1; | ||
431 | rel1.to: "title_base"; | ||
432 | rel1.offset: 0 -3; | ||
433 | rel2.to: "title_base"; | ||
434 | rel2.offset: -1 -4; | ||
435 | color: 50 50 50 255; | ||
436 | align: 0.5 0; | ||
437 | } | ||
438 | } | ||
439 | } | ||
440 | programs { | ||
441 | program { name: "content_new_pusehd"; | ||
442 | signal: "elm,state,new,pushed,internal"; | ||
443 | source: ""; | ||
444 | action: STATE_SET "default" 0.0; | ||
445 | transition: DECELERATE 0.5; | ||
446 | target: "elm.swallow.content"; | ||
447 | target: "content_clip"; | ||
448 | after: "show_finished"; | ||
449 | } | ||
450 | program { name: "content_cur_pusehd"; | ||
451 | signal: "elm,state,cur,pushed,internal"; | ||
452 | source: ""; | ||
453 | action: STATE_SET "left" 0.0; | ||
454 | target: "elm.swallow.content"; | ||
455 | target: "content_clip"; | ||
456 | transition: DECELERATE 0.5; | ||
457 | after: "pushed_finished"; | ||
458 | } | ||
459 | program { name: "content_prev_popped"; | ||
460 | signal: "elm,state,prev,popped,internal"; | ||
461 | source: ""; | ||
462 | action: STATE_SET "default" 0.0; | ||
463 | target: "elm.swallow.content"; | ||
464 | target: "content_clip"; | ||
465 | transition: DECELERATE 0.5; | ||
466 | after: "show_finished"; | ||
467 | } | ||
468 | program { name: "content_cur_popped"; | ||
469 | signal: "elm,state,cur,popped,internal"; | ||
470 | source: ""; | ||
471 | action: STATE_SET "right" 0.0; | ||
472 | target: "elm.swallow.content"; | ||
473 | target: "content_clip"; | ||
474 | transition: DECELERATE 0.5; | ||
475 | after: "popped_finished"; | ||
476 | } | ||
477 | program { name: "cur_pushed"; | ||
478 | signal: "elm,state,cur,pushed"; | ||
479 | source: "elm"; | ||
480 | script { | ||
481 | set_state(PART:"elm.swallow.content", "default", 0.0); | ||
482 | set_state(PART:"content_clip", "default", 0.0); | ||
483 | emit("elm,state,cur,pushed,internal", ""); | ||
484 | } | ||
485 | } | ||
486 | program { name: "new_pushed"; | ||
487 | signal: "elm,state,new,pushed"; | ||
488 | source: "elm"; | ||
489 | script { | ||
490 | set_state(PART:"elm.swallow.content", "right", 0.0); | ||
491 | set_state(PART:"content_clip", "right", 0.0); | ||
492 | emit("elm,state,new,pushed,internal", ""); | ||
493 | } | ||
494 | } | ||
495 | program { name: "prev_popped"; | ||
496 | signal: "elm,state,prev,popped"; | ||
497 | source: "elm"; | ||
498 | script { | ||
499 | set_state(PART:"elm.swallow.content", "left", 0.0); | ||
500 | set_state(PART:"content_clip", "left", 0.0); | ||
501 | emit("elm,state,prev,popped,internal", ""); | ||
502 | } | ||
503 | } | ||
504 | program { name: "cur_popped"; | ||
505 | signal: "elm,state,cur,popped"; | ||
506 | source: "elm"; | ||
507 | script { | ||
508 | set_state(PART:"elm.swallow.content", "default", 0.0); | ||
509 | set_state(PART:"content_clip", "default", 0.0); | ||
510 | emit("elm,state,cur,popped,internal", ""); | ||
511 | } | ||
512 | } | ||
513 | program { name: "visible"; | ||
514 | signal: "elm,state,visible"; | ||
515 | source: "elm"; | ||
516 | action: STATE_SET "default" 0.0; | ||
517 | target: "elm.swallow.content"; | ||
518 | target: "content_clip"; | ||
519 | } | ||
520 | program { name: "title_show"; | ||
521 | signal: "elm,state,title,show"; | ||
522 | source: "elm"; | ||
523 | action: STATE_SET "default" 0.0; | ||
524 | target: "title_clip"; | ||
525 | } | ||
526 | program { name: "title_hide"; | ||
527 | signal: "elm,state,title,hide"; | ||
528 | source: "elm"; | ||
529 | action: STATE_SET "hide" 0.0; | ||
530 | target: "title_clip"; | ||
531 | } | ||
532 | program { | ||
533 | name: "title_clicked"; | ||
534 | signal: "mouse,clicked,1"; | ||
535 | source: "title_base"; | ||
536 | action: SIGNAL_EMIT "elm,action,title,clicked" ""; | ||
537 | } | ||
538 | program { name: "show_finished"; | ||
539 | action: SIGNAL_EMIT "elm,action,show,finished" ""; | ||
540 | } | ||
541 | program { name: "pushed_finished"; | ||
542 | action: SIGNAL_EMIT "elm,action,pushed,finished" ""; | ||
543 | } | ||
544 | program { name: "popped_finished"; | ||
545 | action: SIGNAL_EMIT "elm,action,popped,finished" ""; | ||
546 | } | ||
547 | } | ||
548 | } | ||
diff --git a/libraries/elementary/data/themes/widgets/notify.edc b/libraries/elementary/data/themes/widgets/notify.edc new file mode 100644 index 0000000..429696d --- /dev/null +++ b/libraries/elementary/data/themes/widgets/notify.edc | |||
@@ -0,0 +1,862 @@ | |||
1 | group { name: "elm/notify/block_events/default"; | ||
2 | parts { | ||
3 | part { name: "block_events"; | ||
4 | type: RECT; | ||
5 | description { state: "default" 0.0; | ||
6 | color: 0 0 0 64; | ||
7 | visible: 1; | ||
8 | } | ||
9 | } | ||
10 | } | ||
11 | programs { | ||
12 | program { | ||
13 | name: "block_clicked"; | ||
14 | signal: "mouse,clicked,1"; | ||
15 | source: "block_events"; | ||
16 | action: SIGNAL_EMIT "elm,action,click" "elm"; | ||
17 | } | ||
18 | } | ||
19 | } | ||
20 | group { name: "elm/notify/top/default"; | ||
21 | //this group is a design similar to the inwin group | ||
22 | images { | ||
23 | image: "shad_circ.png" COMP; | ||
24 | image: "bt_dis_base.png" COMP; | ||
25 | image: "bt_dis_hilight.png" COMP; | ||
26 | } | ||
27 | parts { | ||
28 | part { name: "base"; | ||
29 | type: RECT; | ||
30 | mouse_events: 0; | ||
31 | repeat_events: 1; | ||
32 | description { state: "default" 0.0; | ||
33 | color: 0 0 0 0; | ||
34 | rel1.offset: 10 10; | ||
35 | rel2.offset: -10 -10; | ||
36 | rel1.relative: 0.0 -1.0; | ||
37 | rel2.relative: 1.0 0.0; | ||
38 | } | ||
39 | description { state: "visible" 0.0; | ||
40 | inherit: "default" 0.0; | ||
41 | color: 0 0 0 64; | ||
42 | rel1.relative: 0.0 0.0; | ||
43 | rel2.relative: 1.0 1.0; | ||
44 | } | ||
45 | } | ||
46 | part { name: "shad"; | ||
47 | mouse_events: 0; | ||
48 | description { state: "default" 0.0; | ||
49 | image.normal: "shad_circ.png"; | ||
50 | rel1.to: "elm.swallow.content"; | ||
51 | rel1.offset: -64 -64; | ||
52 | rel2.to: "elm.swallow.content"; | ||
53 | rel2.offset: 63 63; | ||
54 | fill.smooth: 0; | ||
55 | } | ||
56 | } | ||
57 | part { name: "pop"; | ||
58 | mouse_events: 1; | ||
59 | description { state: "default" 0.0; | ||
60 | rel1.to: "elm.swallow.content"; | ||
61 | rel1.offset: -5 -5; | ||
62 | rel2.to: "elm.swallow.content"; | ||
63 | rel2.offset: 4 4; | ||
64 | image { | ||
65 | normal: "bt_dis_base.png"; | ||
66 | border: 4 4 4 4; | ||
67 | } | ||
68 | image.middle: SOLID; | ||
69 | } | ||
70 | } | ||
71 | part { name: "popover"; | ||
72 | mouse_events: 0; | ||
73 | description { state: "default" 0.0; | ||
74 | rel1.to: "pop"; | ||
75 | rel2.to: "pop"; | ||
76 | rel2.relative: 1.0 0.5; | ||
77 | image { | ||
78 | normal: "bt_dis_hilight.png"; | ||
79 | border: 4 4 4 0; | ||
80 | } | ||
81 | } | ||
82 | } | ||
83 | part { name: "elm.swallow.content"; | ||
84 | type: SWALLOW; | ||
85 | description { state: "default" 0.0; | ||
86 | rel1.to: "base"; | ||
87 | rel2.to: "base"; | ||
88 | } | ||
89 | } | ||
90 | } | ||
91 | programs { | ||
92 | program { name: "show"; | ||
93 | signal: "elm,action,show"; | ||
94 | source: "elm"; | ||
95 | action: STATE_SET "visible" 0.0; | ||
96 | target: "base"; | ||
97 | } | ||
98 | program { name: "show_2"; | ||
99 | signal: "show"; | ||
100 | action: STATE_SET "default" 0.0; | ||
101 | target: "base"; | ||
102 | after: "show_3"; | ||
103 | } | ||
104 | program { name: "show_3"; | ||
105 | signal: "show"; | ||
106 | action: STATE_SET "visible" 0.0; | ||
107 | target: "base"; | ||
108 | transition: LINEAR 0.5; | ||
109 | } | ||
110 | program { name: "hide"; | ||
111 | signal: "elm,action,hide"; | ||
112 | source: "elm"; | ||
113 | action: STATE_SET "default" 0.0; | ||
114 | target: "base"; | ||
115 | } | ||
116 | } | ||
117 | } | ||
118 | group { name: "elm/notify/center/default"; | ||
119 | //this group is a design similar to the inwin group | ||
120 | images { | ||
121 | image: "bt_dis_base.png" COMP; | ||
122 | } | ||
123 | parts { | ||
124 | part { name: "base"; | ||
125 | type: RECT; | ||
126 | mouse_events: 0; | ||
127 | repeat_events: 1; | ||
128 | description { state: "default" 0.0; | ||
129 | color: 0 0 0 0; | ||
130 | rel1.relative: 0.0 0.0; | ||
131 | rel2.relative: 1.0 1.0; | ||
132 | } | ||
133 | } | ||
134 | part { name: "pop"; | ||
135 | mouse_events: 1; | ||
136 | description { state: "default" 0.0; | ||
137 | rel1.to: "elm.swallow.content"; | ||
138 | rel1.offset: -5 -5; | ||
139 | rel2.to: "elm.swallow.content"; | ||
140 | rel2.offset: 4 4; | ||
141 | image { | ||
142 | normal: "bt_dis_base.png"; | ||
143 | border: 4 4 4 4; | ||
144 | } | ||
145 | } | ||
146 | } | ||
147 | part { name: "elm.swallow.content"; | ||
148 | type: SWALLOW; | ||
149 | description { state: "default" 0.0; | ||
150 | rel1.to: "base"; | ||
151 | rel2.to: "base"; | ||
152 | } | ||
153 | } | ||
154 | } | ||
155 | programs { | ||
156 | program { name: "show"; | ||
157 | signal: "elm,action,show"; | ||
158 | source: "elm"; | ||
159 | action: STATE_SET "default" 0.0; | ||
160 | target: "base"; | ||
161 | } | ||
162 | program { name: "show_2"; | ||
163 | signal: "show"; | ||
164 | action: STATE_SET "default" 0.0; | ||
165 | target: "base"; | ||
166 | } | ||
167 | program { name: "hide"; | ||
168 | signal: "elm,action,hide"; | ||
169 | source: "elm"; | ||
170 | action: STATE_SET "default" 0.0; | ||
171 | target: "base"; | ||
172 | } | ||
173 | } | ||
174 | } | ||
175 | group { name: "elm/notify/bottom/default"; | ||
176 | //this group is a design similar to the inwin group | ||
177 | images { | ||
178 | image: "shad_circ.png" COMP; | ||
179 | image: "bt_dis_base.png" COMP; | ||
180 | image: "bt_dis_hilight.png" COMP; | ||
181 | } | ||
182 | parts { | ||
183 | part { name: "base"; | ||
184 | type: RECT; | ||
185 | mouse_events: 0; | ||
186 | repeat_events: 1; | ||
187 | description { state: "default" 0.0; | ||
188 | color: 0 0 0 0; | ||
189 | rel1.offset: 10 10; | ||
190 | rel2.offset: -10 -10; | ||
191 | rel1.relative: 0.0 1.0; | ||
192 | rel2.relative: 1.0 2.0; | ||
193 | } | ||
194 | description { state: "visible" 0.0; | ||
195 | inherit: "default" 0.0; | ||
196 | color: 0 0 0 64; | ||
197 | rel1.relative: 0.0 0.0; | ||
198 | rel2.relative: 1.0 1.0; | ||
199 | } | ||
200 | } | ||
201 | part { name: "shad"; | ||
202 | mouse_events: 0; | ||
203 | description { state: "default" 0.0; | ||
204 | image.normal: "shad_circ.png"; | ||
205 | rel1.to: "elm.swallow.content"; | ||
206 | rel1.offset: -64 -64; | ||
207 | rel2.to: "elm.swallow.content"; | ||
208 | rel2.offset: 63 63; | ||
209 | fill.smooth: 0; | ||
210 | } | ||
211 | } | ||
212 | part { name: "pop"; | ||
213 | mouse_events: 1; | ||
214 | description { state: "default" 0.0; | ||
215 | rel1.to: "elm.swallow.content"; | ||
216 | rel1.offset: -5 -5; | ||
217 | rel2.to: "elm.swallow.content"; | ||
218 | rel2.offset: 4 4; | ||
219 | image { | ||
220 | normal: "bt_dis_base.png"; | ||
221 | border: 4 4 4 4; | ||
222 | } | ||
223 | image.middle: SOLID; | ||
224 | } | ||
225 | } | ||
226 | part { name: "popover"; | ||
227 | mouse_events: 0; | ||
228 | description { state: "default" 0.0; | ||
229 | rel1.to: "pop"; | ||
230 | rel2.to: "pop"; | ||
231 | rel2.relative: 1.0 0.5; | ||
232 | image { | ||
233 | normal: "bt_dis_hilight.png"; | ||
234 | border: 4 4 4 0; | ||
235 | } | ||
236 | } | ||
237 | } | ||
238 | part { name: "elm.swallow.content"; | ||
239 | type: SWALLOW; | ||
240 | description { state: "default" 0.0; | ||
241 | rel1.to: "base"; | ||
242 | rel2.to: "base"; | ||
243 | } | ||
244 | } | ||
245 | } | ||
246 | programs { | ||
247 | program { name: "show"; | ||
248 | signal: "elm,action,show"; | ||
249 | source: "elm"; | ||
250 | action: STATE_SET "visible" 0.0; | ||
251 | target: "base"; | ||
252 | } | ||
253 | program { name: "show_2"; | ||
254 | signal: "show"; | ||
255 | action: STATE_SET "default" 0.0; | ||
256 | target: "base"; | ||
257 | after: "show_3"; | ||
258 | } | ||
259 | program { name: "show_3"; | ||
260 | signal: "show"; | ||
261 | action: STATE_SET "visible" 0.0; | ||
262 | target: "base"; | ||
263 | transition: LINEAR 0.5; | ||
264 | } | ||
265 | program { name: "hide"; | ||
266 | signal: "elm,action,hide"; | ||
267 | source: "elm"; | ||
268 | action: STATE_SET "default" 0.0; | ||
269 | target: "base"; | ||
270 | } | ||
271 | } | ||
272 | } | ||
273 | group { name: "elm/notify/left/default"; | ||
274 | //this group is a design similar to the inwin group | ||
275 | images { | ||
276 | image: "shad_circ.png" COMP; | ||
277 | image: "bt_dis_base.png" COMP; | ||
278 | image: "bt_dis_hilight.png" COMP; | ||
279 | } | ||
280 | parts { | ||
281 | part { name: "base"; | ||
282 | type: RECT; | ||
283 | mouse_events: 0; | ||
284 | repeat_events: 1; | ||
285 | description { state: "default" 0.0; | ||
286 | color: 0 0 0 0; | ||
287 | rel1.offset: 10 10; | ||
288 | rel2.offset: -10 -10; | ||
289 | rel1.relative: -1.0 0.0; | ||
290 | rel2.relative: 0.0 1.0; | ||
291 | } | ||
292 | description { state: "visible" 0.0; | ||
293 | inherit: "default" 0.0; | ||
294 | color: 0 0 0 64; | ||
295 | rel1.relative: 0.0 0.0; | ||
296 | rel2.relative: 1.0 1.0; | ||
297 | } | ||
298 | } | ||
299 | part { name: "shad"; | ||
300 | mouse_events: 0; | ||
301 | description { state: "default" 0.0; | ||
302 | image.normal: "shad_circ.png"; | ||
303 | rel1.to: "elm.swallow.content"; | ||
304 | rel1.offset: -64 -64; | ||
305 | rel2.to: "elm.swallow.content"; | ||
306 | rel2.offset: 63 63; | ||
307 | fill.smooth: 0; | ||
308 | } | ||
309 | } | ||
310 | part { name: "pop"; | ||
311 | mouse_events: 1; | ||
312 | description { state: "default" 0.0; | ||
313 | rel1.to: "elm.swallow.content"; | ||
314 | rel1.offset: -5 -5; | ||
315 | rel2.to: "elm.swallow.content"; | ||
316 | rel2.offset: 4 4; | ||
317 | image { | ||
318 | normal: "bt_dis_base.png"; | ||
319 | border: 4 4 4 4; | ||
320 | } | ||
321 | image.middle: SOLID; | ||
322 | } | ||
323 | } | ||
324 | part { name: "popover"; | ||
325 | mouse_events: 0; | ||
326 | description { state: "default" 0.0; | ||
327 | rel1.to: "pop"; | ||
328 | rel2.to: "pop"; | ||
329 | rel2.relative: 1.0 0.5; | ||
330 | image { | ||
331 | normal: "bt_dis_hilight.png"; | ||
332 | border: 4 4 4 0; | ||
333 | } | ||
334 | } | ||
335 | } | ||
336 | part { name: "elm.swallow.content"; | ||
337 | type: SWALLOW; | ||
338 | description { state: "default" 0.0; | ||
339 | rel1.to: "base"; | ||
340 | rel2.to: "base"; | ||
341 | } | ||
342 | } | ||
343 | } | ||
344 | programs { | ||
345 | program { name: "show"; | ||
346 | signal: "elm,action,show"; | ||
347 | source: "elm"; | ||
348 | action: STATE_SET "visible" 0.0; | ||
349 | target: "base"; | ||
350 | } | ||
351 | program { name: "show_2"; | ||
352 | signal: "show"; | ||
353 | action: STATE_SET "default" 0.0; | ||
354 | target: "base"; | ||
355 | after: "show_3"; | ||
356 | } | ||
357 | program { name: "show_3"; | ||
358 | signal: "show"; | ||
359 | action: STATE_SET "visible" 0.0; | ||
360 | target: "base"; | ||
361 | transition: LINEAR 0.5; | ||
362 | } | ||
363 | program { name: "hide"; | ||
364 | signal: "elm,action,hide"; | ||
365 | source: "elm"; | ||
366 | action: STATE_SET "default" 0.0; | ||
367 | target: "base"; | ||
368 | } | ||
369 | } | ||
370 | } | ||
371 | group { name: "elm/notify/right/default"; | ||
372 | //this group is a design similar to the inwin group | ||
373 | images { | ||
374 | image: "shad_circ.png" COMP; | ||
375 | image: "bt_dis_base.png" COMP; | ||
376 | image: "bt_dis_hilight.png" COMP; | ||
377 | } | ||
378 | parts { | ||
379 | part { name: "base"; | ||
380 | type: RECT; | ||
381 | mouse_events: 0; | ||
382 | repeat_events: 1; | ||
383 | description { state: "default" 0.0; | ||
384 | color: 0 0 0 0; | ||
385 | rel1.offset: 10 10; | ||
386 | rel2.offset: -10 -10; | ||
387 | rel1.relative: 1.0 0.0; | ||
388 | rel2.relative: 2.0 1.0; | ||
389 | } | ||
390 | description { state: "visible" 0.0; | ||
391 | inherit: "default" 0.0; | ||
392 | color: 0 0 0 64; | ||
393 | rel1.relative: 0.0 0.0; | ||
394 | rel2.relative: 1.0 1.0; | ||
395 | } | ||
396 | } | ||
397 | part { name: "shad"; | ||
398 | mouse_events: 0; | ||
399 | description { state: "default" 0.0; | ||
400 | image.normal: "shad_circ.png"; | ||
401 | rel1.to: "elm.swallow.content"; | ||
402 | rel1.offset: -64 -64; | ||
403 | rel2.to: "elm.swallow.content"; | ||
404 | rel2.offset: 63 63; | ||
405 | fill.smooth: 0; | ||
406 | } | ||
407 | } | ||
408 | part { name: "pop"; | ||
409 | mouse_events: 1; | ||
410 | description { state: "default" 0.0; | ||
411 | rel1.to: "elm.swallow.content"; | ||
412 | rel1.offset: -5 -5; | ||
413 | rel2.to: "elm.swallow.content"; | ||
414 | rel2.offset: 4 4; | ||
415 | image { | ||
416 | normal: "bt_dis_base.png"; | ||
417 | border: 4 4 4 4; | ||
418 | } | ||
419 | image.middle: SOLID; | ||
420 | } | ||
421 | } | ||
422 | part { name: "popover"; | ||
423 | mouse_events: 0; | ||
424 | description { state: "default" 0.0; | ||
425 | rel1.to: "pop"; | ||
426 | rel2.to: "pop"; | ||
427 | rel2.relative: 1.0 0.5; | ||
428 | image { | ||
429 | normal: "bt_dis_hilight.png"; | ||
430 | border: 4 4 4 0; | ||
431 | } | ||
432 | } | ||
433 | } | ||
434 | part { name: "elm.swallow.content"; | ||
435 | type: SWALLOW; | ||
436 | description { state: "default" 0.0; | ||
437 | rel1.to: "base"; | ||
438 | rel2.to: "base"; | ||
439 | } | ||
440 | } | ||
441 | } | ||
442 | programs { | ||
443 | program { name: "show"; | ||
444 | signal: "elm,action,show"; | ||
445 | source: "elm"; | ||
446 | action: STATE_SET "visible" 0.0; | ||
447 | target: "base"; | ||
448 | } | ||
449 | program { name: "show_2"; | ||
450 | signal: "show"; | ||
451 | action: STATE_SET "default" 0.0; | ||
452 | target: "base"; | ||
453 | after: "show_3"; | ||
454 | } | ||
455 | program { name: "show_3"; | ||
456 | signal: "show"; | ||
457 | action: STATE_SET "visible" 0.0; | ||
458 | target: "base"; | ||
459 | transition: LINEAR 0.5; | ||
460 | } | ||
461 | program { name: "hide"; | ||
462 | signal: "elm,action,hide"; | ||
463 | source: "elm"; | ||
464 | action: STATE_SET "default" 0.0; | ||
465 | target: "base"; | ||
466 | } | ||
467 | } | ||
468 | } | ||
469 | group { name: "elm/notify/top_left/default"; | ||
470 | //this group is a design similar to the inwin group | ||
471 | images { | ||
472 | image: "shad_circ.png" COMP; | ||
473 | image: "bt_dis_base.png" COMP; | ||
474 | image: "bt_dis_hilight.png" COMP; | ||
475 | } | ||
476 | parts { | ||
477 | part { name: "base"; | ||
478 | type: RECT; | ||
479 | mouse_events: 0; | ||
480 | repeat_events: 1; | ||
481 | description { state: "default" 0.0; | ||
482 | color: 0 0 0 0; | ||
483 | rel1.offset: 10 10; | ||
484 | rel2.offset: -10 -10; | ||
485 | rel1.relative: 0.0 -1.0; | ||
486 | rel2.relative: 1.0 0.0; | ||
487 | } | ||
488 | description { state: "visible" 0.0; | ||
489 | inherit: "default" 0.0; | ||
490 | color: 0 0 0 64; | ||
491 | rel1.relative: 0.0 0.0; | ||
492 | rel2.relative: 1.0 1.0; | ||
493 | } | ||
494 | } | ||
495 | part { name: "shad"; | ||
496 | mouse_events: 0; | ||
497 | description { state: "default" 0.0; | ||
498 | image.normal: "shad_circ.png"; | ||
499 | rel1.to: "elm.swallow.content"; | ||
500 | rel1.offset: -64 -64; | ||
501 | rel2.to: "elm.swallow.content"; | ||
502 | rel2.offset: 63 63; | ||
503 | fill.smooth: 0; | ||
504 | } | ||
505 | } | ||
506 | part { name: "pop"; | ||
507 | mouse_events: 1; | ||
508 | description { state: "default" 0.0; | ||
509 | rel1.to: "elm.swallow.content"; | ||
510 | rel1.offset: -5 -5; | ||
511 | rel2.to: "elm.swallow.content"; | ||
512 | rel2.offset: 4 4; | ||
513 | image { | ||
514 | normal: "bt_dis_base.png"; | ||
515 | border: 4 4 4 4; | ||
516 | } | ||
517 | image.middle: SOLID; | ||
518 | } | ||
519 | } | ||
520 | part { name: "popover"; | ||
521 | mouse_events: 0; | ||
522 | description { state: "default" 0.0; | ||
523 | rel1.to: "pop"; | ||
524 | rel2.to: "pop"; | ||
525 | rel2.relative: 1.0 0.5; | ||
526 | image { | ||
527 | normal: "bt_dis_hilight.png"; | ||
528 | border: 4 4 4 0; | ||
529 | } | ||
530 | } | ||
531 | } | ||
532 | part { name: "elm.swallow.content"; | ||
533 | type: SWALLOW; | ||
534 | description { state: "default" 0.0; | ||
535 | rel1.to: "base"; | ||
536 | rel2.to: "base"; | ||
537 | } | ||
538 | } | ||
539 | } | ||
540 | programs { | ||
541 | program { name: "show"; | ||
542 | signal: "elm,action,show"; | ||
543 | source: "elm"; | ||
544 | action: STATE_SET "visible" 0.0; | ||
545 | target: "base"; | ||
546 | } | ||
547 | program { name: "show_2"; | ||
548 | signal: "show"; | ||
549 | action: STATE_SET "default" 0.0; | ||
550 | target: "base"; | ||
551 | after: "show_3"; | ||
552 | } | ||
553 | program { name: "show_3"; | ||
554 | signal: "show"; | ||
555 | action: STATE_SET "visible" 0.0; | ||
556 | target: "base"; | ||
557 | transition: LINEAR 0.5; | ||
558 | } | ||
559 | program { name: "hide"; | ||
560 | signal: "elm,action,hide"; | ||
561 | source: "elm"; | ||
562 | action: STATE_SET "default" 0.0; | ||
563 | target: "base"; | ||
564 | } | ||
565 | } | ||
566 | } | ||
567 | group { name: "elm/notify/top_right/default"; | ||
568 | //this group is a design similar to the inwin group | ||
569 | images { | ||
570 | image: "shad_circ.png" COMP; | ||
571 | image: "bt_dis_base.png" COMP; | ||
572 | image: "bt_dis_hilight.png" COMP; | ||
573 | } | ||
574 | parts { | ||
575 | part { name: "base"; | ||
576 | type: RECT; | ||
577 | mouse_events: 0; | ||
578 | repeat_events: 1; | ||
579 | description { state: "default" 0.0; | ||
580 | color: 0 0 0 0; | ||
581 | rel1.offset: 10 10; | ||
582 | rel2.offset: -10 -10; | ||
583 | rel1.relative: 0.0 -1.0; | ||
584 | rel2.relative: 1.0 0.0; | ||
585 | } | ||
586 | description { state: "visible" 0.0; | ||
587 | inherit: "default" 0.0; | ||
588 | color: 0 0 0 64; | ||
589 | rel1.relative: 0.0 0.0; | ||
590 | rel2.relative: 1.0 1.0; | ||
591 | } | ||
592 | } | ||
593 | part { name: "shad"; | ||
594 | mouse_events: 0; | ||
595 | description { state: "default" 0.0; | ||
596 | image.normal: "shad_circ.png"; | ||
597 | rel1.to: "elm.swallow.content"; | ||
598 | rel1.offset: -64 -64; | ||
599 | rel2.to: "elm.swallow.content"; | ||
600 | rel2.offset: 63 63; | ||
601 | fill.smooth: 0; | ||
602 | } | ||
603 | } | ||
604 | part { name: "pop"; | ||
605 | mouse_events: 1; | ||
606 | description { state: "default" 0.0; | ||
607 | rel1.to: "elm.swallow.content"; | ||
608 | rel1.offset: -5 -5; | ||
609 | rel2.to: "elm.swallow.content"; | ||
610 | rel2.offset: 4 4; | ||
611 | image { | ||
612 | normal: "bt_dis_base.png"; | ||
613 | border: 4 4 4 4; | ||
614 | } | ||
615 | image.middle: SOLID; | ||
616 | } | ||
617 | } | ||
618 | part { name: "popover"; | ||
619 | mouse_events: 0; | ||
620 | description { state: "default" 0.0; | ||
621 | rel1.to: "pop"; | ||
622 | rel2.to: "pop"; | ||
623 | rel2.relative: 1.0 0.5; | ||
624 | image { | ||
625 | normal: "bt_dis_hilight.png"; | ||
626 | border: 4 4 4 0; | ||
627 | } | ||
628 | } | ||
629 | } | ||
630 | part { name: "elm.swallow.content"; | ||
631 | type: SWALLOW; | ||
632 | description { state: "default" 0.0; | ||
633 | rel1.to: "base"; | ||
634 | rel2.to: "base"; | ||
635 | } | ||
636 | } | ||
637 | } | ||
638 | programs { | ||
639 | program { name: "show"; | ||
640 | signal: "elm,action,show"; | ||
641 | source: "elm"; | ||
642 | action: STATE_SET "visible" 0.0; | ||
643 | target: "base"; | ||
644 | } | ||
645 | program { name: "show_2"; | ||
646 | signal: "show"; | ||
647 | action: STATE_SET "default" 0.0; | ||
648 | target: "base"; | ||
649 | after: "show_3"; | ||
650 | } | ||
651 | program { name: "show_3"; | ||
652 | signal: "show"; | ||
653 | action: STATE_SET "visible" 0.0; | ||
654 | target: "base"; | ||
655 | transition: LINEAR 0.5; | ||
656 | } | ||
657 | program { name: "hide"; | ||
658 | signal: "elm,action,hide"; | ||
659 | source: "elm"; | ||
660 | action: STATE_SET "default" 0.0; | ||
661 | target: "base"; | ||
662 | } | ||
663 | } | ||
664 | } | ||
665 | group { name: "elm/notify/bottom_left/default"; | ||
666 | //this group is a design similar to the inwin group | ||
667 | images { | ||
668 | image: "shad_circ.png" COMP; | ||
669 | image: "bt_dis_base.png" COMP; | ||
670 | image: "bt_dis_hilight.png" COMP; | ||
671 | } | ||
672 | parts { | ||
673 | part { name: "base"; | ||
674 | type: RECT; | ||
675 | mouse_events: 0; | ||
676 | repeat_events: 1; | ||
677 | description { state: "default" 0.0; | ||
678 | color: 0 0 0 0; | ||
679 | rel1.offset: 10 10; | ||
680 | rel2.offset: -10 -10; | ||
681 | rel1.relative: 0.0 1.0; | ||
682 | rel2.relative: 1.0 2.0; | ||
683 | } | ||
684 | description { state: "visible" 0.0; | ||
685 | inherit: "default" 0.0; | ||
686 | color: 0 0 0 64; | ||
687 | rel1.relative: 0.0 0.0; | ||
688 | rel2.relative: 1.0 1.0; | ||
689 | } | ||
690 | } | ||
691 | part { name: "shad"; | ||
692 | mouse_events: 0; | ||
693 | description { state: "default" 0.0; | ||
694 | image.normal: "shad_circ.png"; | ||
695 | rel1.to: "elm.swallow.content"; | ||
696 | rel1.offset: -64 -64; | ||
697 | rel2.to: "elm.swallow.content"; | ||
698 | rel2.offset: 63 63; | ||
699 | fill.smooth: 0; | ||
700 | } | ||
701 | } | ||
702 | part { name: "pop"; | ||
703 | mouse_events: 1; | ||
704 | description { state: "default" 0.0; | ||
705 | rel1.to: "elm.swallow.content"; | ||
706 | rel1.offset: -5 -5; | ||
707 | rel2.to: "elm.swallow.content"; | ||
708 | rel2.offset: 4 4; | ||
709 | image { | ||
710 | normal: "bt_dis_base.png"; | ||
711 | border: 4 4 4 4; | ||
712 | } | ||
713 | image.middle: SOLID; | ||
714 | } | ||
715 | } | ||
716 | part { name: "popover"; | ||
717 | mouse_events: 0; | ||
718 | description { state: "default" 0.0; | ||
719 | rel1.to: "pop"; | ||
720 | rel2.to: "pop"; | ||
721 | rel2.relative: 1.0 0.5; | ||
722 | image { | ||
723 | normal: "bt_dis_hilight.png"; | ||
724 | border: 4 4 4 0; | ||
725 | } | ||
726 | } | ||
727 | } | ||
728 | part { name: "elm.swallow.content"; | ||
729 | type: SWALLOW; | ||
730 | description { state: "default" 0.0; | ||
731 | rel1.to: "base"; | ||
732 | rel2.to: "base"; | ||
733 | } | ||
734 | } | ||
735 | } | ||
736 | programs { | ||
737 | program { name: "show"; | ||
738 | signal: "elm,action,show"; | ||
739 | source: "elm"; | ||
740 | action: STATE_SET "visible" 0.0; | ||
741 | target: "base"; | ||
742 | } | ||
743 | program { name: "show_2"; | ||
744 | signal: "show"; | ||
745 | action: STATE_SET "default" 0.0; | ||
746 | target: "base"; | ||
747 | after: "show_3"; | ||
748 | } | ||
749 | program { name: "show_3"; | ||
750 | signal: "show"; | ||
751 | action: STATE_SET "visible" 0.0; | ||
752 | target: "base"; | ||
753 | transition: LINEAR 0.5; | ||
754 | } | ||
755 | program { name: "hide"; | ||
756 | signal: "elm,action,hide"; | ||
757 | source: "elm"; | ||
758 | action: STATE_SET "default" 0.0; | ||
759 | target: "base"; | ||
760 | } | ||
761 | } | ||
762 | } | ||
763 | group { name: "elm/notify/bottom_right/default"; | ||
764 | //this group is a design similar to the inwin group | ||
765 | images { | ||
766 | image: "shad_circ.png" COMP; | ||
767 | image: "bt_dis_base.png" COMP; | ||
768 | image: "bt_dis_hilight.png" COMP; | ||
769 | } | ||
770 | parts { | ||
771 | part { name: "base"; | ||
772 | type: RECT; | ||
773 | mouse_events: 0; | ||
774 | repeat_events: 1; | ||
775 | description { state: "default" 0.0; | ||
776 | color: 0 0 0 0; | ||
777 | rel1.offset: 10 10; | ||
778 | rel2.offset: -10 -10; | ||
779 | rel1.relative: 0.0 1.0; | ||
780 | rel2.relative: 1.0 2.0; | ||
781 | } | ||
782 | description { state: "visible" 0.0; | ||
783 | inherit: "default" 0.0; | ||
784 | color: 0 0 0 64; | ||
785 | rel1.relative: 0.0 0.0; | ||
786 | rel2.relative: 1.0 1.0; | ||
787 | } | ||
788 | } | ||
789 | part { name: "shad"; | ||
790 | mouse_events: 0; | ||
791 | description { state: "default" 0.0; | ||
792 | image.normal: "shad_circ.png"; | ||
793 | rel1.to: "elm.swallow.content"; | ||
794 | rel1.offset: -64 -64; | ||
795 | rel2.to: "elm.swallow.content"; | ||
796 | rel2.offset: 63 63; | ||
797 | fill.smooth: 0; | ||
798 | } | ||
799 | } | ||
800 | part { name: "pop"; | ||
801 | mouse_events: 1; | ||
802 | description { state: "default" 0.0; | ||
803 | rel1.to: "elm.swallow.content"; | ||
804 | rel1.offset: -5 -5; | ||
805 | rel2.to: "elm.swallow.content"; | ||
806 | rel2.offset: 4 4; | ||
807 | image { | ||
808 | normal: "bt_dis_base.png"; | ||
809 | border: 4 4 4 4; | ||
810 | } | ||
811 | image.middle: SOLID; | ||
812 | } | ||
813 | } | ||
814 | part { name: "popover"; | ||
815 | mouse_events: 0; | ||
816 | description { state: "default" 0.0; | ||
817 | rel1.to: "pop"; | ||
818 | rel2.to: "pop"; | ||
819 | rel2.relative: 1.0 0.5; | ||
820 | image { | ||
821 | normal: "bt_dis_hilight.png"; | ||
822 | border: 4 4 4 0; | ||
823 | } | ||
824 | } | ||
825 | } | ||
826 | part { name: "elm.swallow.content"; | ||
827 | type: SWALLOW; | ||
828 | description { state: "default" 0.0; | ||
829 | rel1.to: "base"; | ||
830 | rel2.to: "base"; | ||
831 | } | ||
832 | } | ||
833 | } | ||
834 | programs { | ||
835 | program { name: "show"; | ||
836 | signal: "elm,action,show"; | ||
837 | source: "elm"; | ||
838 | action: STATE_SET "visible" 0.0; | ||
839 | target: "base"; | ||
840 | } | ||
841 | program { name: "show_2"; | ||
842 | signal: "show"; | ||
843 | action: STATE_SET "default" 0.0; | ||
844 | target: "base"; | ||
845 | after: "show_3"; | ||
846 | } | ||
847 | program { name: "show_3"; | ||
848 | signal: "show"; | ||
849 | action: STATE_SET "visible" 0.0; | ||
850 | target: "base"; | ||
851 | transition: LINEAR 0.5; | ||
852 | } | ||
853 | program { name: "hide"; | ||
854 | signal: "elm,action,hide"; | ||
855 | source: "elm"; | ||
856 | action: STATE_SET "default" 0.0; | ||
857 | target: "base"; | ||
858 | } | ||
859 | } | ||
860 | } | ||
861 | |||
862 | /////////////////////////////////////////////////////////////////////////////// | ||
diff --git a/libraries/elementary/data/themes/widgets/panel.edc b/libraries/elementary/data/themes/widgets/panel.edc new file mode 100644 index 0000000..f571d70 --- /dev/null +++ b/libraries/elementary/data/themes/widgets/panel.edc | |||
@@ -0,0 +1,1250 @@ | |||
1 | group { | ||
2 | name: "elm/panel/base/left"; | ||
3 | images | ||
4 | { | ||
5 | image: "bt_base1.png" COMP; | ||
6 | image: "bt_hilight.png" COMP; | ||
7 | image: "bt_shine.png" COMP; | ||
8 | image: "bt_glow.png" COMP; | ||
9 | image: "bt_dis_base.png" COMP; | ||
10 | image: "icon_arrow_left.png" COMP; | ||
11 | image: "icon_arrow_right.png" COMP; | ||
12 | } | ||
13 | data { | ||
14 | item: "focus_highlight" "on"; | ||
15 | } | ||
16 | parts | ||
17 | { | ||
18 | part { name: "focus_highlight"; | ||
19 | description { state: "default" 0.0; | ||
20 | visible: 0; | ||
21 | color: 255 255 255 0; | ||
22 | rel1 { | ||
23 | to: "btn"; | ||
24 | offset: -8 -8; | ||
25 | } | ||
26 | rel2 { | ||
27 | to: "btn"; | ||
28 | offset: 7 7; | ||
29 | } | ||
30 | image { | ||
31 | normal: "frame_2.png"; | ||
32 | border: 5 5 32 26; | ||
33 | middle: 0; | ||
34 | } | ||
35 | } | ||
36 | description { state: "enabled" 0.0; | ||
37 | inherit: "default" 0.0; | ||
38 | visible: 1; | ||
39 | color: 255 255 255 255; | ||
40 | } | ||
41 | } | ||
42 | part | ||
43 | { | ||
44 | name: "bg"; | ||
45 | type: RECT; | ||
46 | mouse_events: 0; | ||
47 | description | ||
48 | { | ||
49 | state: "default" 0.0; | ||
50 | color: 255 255 255 0; | ||
51 | rel2.offset: -1 -1; | ||
52 | } | ||
53 | description | ||
54 | { | ||
55 | state: "hidden" 0.0; | ||
56 | inherit: "default" 0.0; | ||
57 | rel1.relative: -1.0 0.0; | ||
58 | rel1.offset: 21 0; | ||
59 | rel2.relative: 0.0 1.0; | ||
60 | rel2.offset: 20 -1; | ||
61 | } | ||
62 | } | ||
63 | part | ||
64 | { | ||
65 | name: "clipper"; | ||
66 | type: RECT; | ||
67 | mouse_events: 0; | ||
68 | description | ||
69 | { | ||
70 | state: "default" 0.0; | ||
71 | rel1 | ||
72 | { | ||
73 | offset: 4 4; | ||
74 | to: "base"; | ||
75 | } | ||
76 | rel2 | ||
77 | { | ||
78 | offset: -5 -5; | ||
79 | to: "base"; | ||
80 | } | ||
81 | } | ||
82 | } | ||
83 | part | ||
84 | { | ||
85 | name: "btn"; | ||
86 | type: IMAGE; | ||
87 | mouse_events: 1; | ||
88 | description | ||
89 | { | ||
90 | state: "default" 0.0; | ||
91 | max: 32 48; | ||
92 | fixed: 1 1; | ||
93 | align: 0.0 0.5; | ||
94 | rel1 | ||
95 | { | ||
96 | relative: 1.0 0.0; | ||
97 | offset: -3 0; | ||
98 | to_x: "base"; | ||
99 | } | ||
100 | rel2.to_x: "bg"; | ||
101 | image | ||
102 | { | ||
103 | normal: "bt_base1.png"; | ||
104 | border: 0 5 4 12; | ||
105 | } | ||
106 | fill.smooth: 0; | ||
107 | } | ||
108 | description | ||
109 | { | ||
110 | state: "clicked" 0.0; | ||
111 | inherit: "default" 0.0; | ||
112 | } | ||
113 | } | ||
114 | part | ||
115 | { | ||
116 | name: "btn_over"; | ||
117 | type: IMAGE; | ||
118 | mouse_events: 0; | ||
119 | description | ||
120 | { | ||
121 | state: "default" 0.0; | ||
122 | rel1.to: "btn"; | ||
123 | rel2 | ||
124 | { | ||
125 | relative: 1.0 0.5; | ||
126 | to: "btn"; | ||
127 | } | ||
128 | image | ||
129 | { | ||
130 | normal: "bt_hilight.png"; | ||
131 | border: 0 7 7 0; | ||
132 | } | ||
133 | } | ||
134 | } | ||
135 | part | ||
136 | { | ||
137 | name: "btn_over2"; | ||
138 | type: IMAGE; | ||
139 | mouse_events: 1; | ||
140 | repeat_events: 1; | ||
141 | ignore_flags: ON_HOLD; | ||
142 | description | ||
143 | { | ||
144 | state: "default" 0.0; | ||
145 | rel1.to: "btn"; | ||
146 | rel2.to: "btn"; | ||
147 | image | ||
148 | { | ||
149 | normal: "bt_shine.png"; | ||
150 | border: 0 7 7 7; | ||
151 | } | ||
152 | } | ||
153 | } | ||
154 | part | ||
155 | { | ||
156 | name: "btn_over3"; | ||
157 | type: IMAGE; | ||
158 | mouse_events: 1; | ||
159 | repeat_events: 1; | ||
160 | description | ||
161 | { | ||
162 | state: "default" 0.0; | ||
163 | color: 255 255 255 0; | ||
164 | rel1.to: "btn"; | ||
165 | rel2.to: "btn"; | ||
166 | image | ||
167 | { | ||
168 | normal: "bt_glow.png"; | ||
169 | border: 12 12 12 12; | ||
170 | } | ||
171 | fill.smooth: 0; | ||
172 | } | ||
173 | description | ||
174 | { | ||
175 | state: "clicked" 0.0; | ||
176 | inherit: "default" 0.0; | ||
177 | visible: 1; | ||
178 | color: 255 255 255 255; | ||
179 | } | ||
180 | } | ||
181 | part | ||
182 | { | ||
183 | name: "btn_icon"; | ||
184 | type: IMAGE; | ||
185 | repeat_events: 1; | ||
186 | description | ||
187 | { | ||
188 | state: "default" 0.0; | ||
189 | rel1.to: "btn"; | ||
190 | rel2.to: "btn"; | ||
191 | align: 0.5 0.5; | ||
192 | min: 16 16; | ||
193 | max: 16 16; | ||
194 | image.normal: "icon_arrow_left.png"; | ||
195 | } | ||
196 | description | ||
197 | { | ||
198 | state: "hidden" 0.0; | ||
199 | inherit: "default" 0.0; | ||
200 | image.normal: "icon_arrow_right.png"; | ||
201 | } | ||
202 | } | ||
203 | part | ||
204 | { | ||
205 | name: "base"; | ||
206 | type: IMAGE; | ||
207 | mouse_events: 0; | ||
208 | description | ||
209 | { | ||
210 | state: "default" 0.0; | ||
211 | rel1.to: "bg"; | ||
212 | rel2.to: "bg"; | ||
213 | rel2.offset: -20 -1; | ||
214 | image | ||
215 | { | ||
216 | normal: "bt_dis_base.png"; | ||
217 | border: 4 4 4 4; | ||
218 | } | ||
219 | } | ||
220 | } | ||
221 | part | ||
222 | { | ||
223 | name: "elm.swallow.content"; | ||
224 | type: SWALLOW; | ||
225 | clip_to: "clipper"; | ||
226 | description | ||
227 | { | ||
228 | state: "default" 0.0; | ||
229 | rel1.to: "clipper"; | ||
230 | rel2.to: "clipper"; | ||
231 | } | ||
232 | } | ||
233 | } | ||
234 | programs | ||
235 | { | ||
236 | program | ||
237 | { | ||
238 | name: "show"; | ||
239 | signal: "elm,action,show"; | ||
240 | source: "elm"; | ||
241 | action: STATE_SET "default" 0.0; | ||
242 | target: "bg"; | ||
243 | target: "btn_icon"; | ||
244 | transition: LINEAR 0.5; | ||
245 | } | ||
246 | program | ||
247 | { | ||
248 | name: "hide"; | ||
249 | signal: "elm,action,hide"; | ||
250 | source: "elm"; | ||
251 | action: STATE_SET "hidden" 0.0; | ||
252 | target: "bg"; | ||
253 | target: "btn_icon"; | ||
254 | transition: LINEAR 0.5; | ||
255 | } | ||
256 | program | ||
257 | { | ||
258 | name: "btn_click"; | ||
259 | signal: "mouse,down,1"; | ||
260 | source: "btn_over2"; | ||
261 | action: STATE_SET "clicked" 0.0; | ||
262 | target: "btn"; | ||
263 | } | ||
264 | program | ||
265 | { | ||
266 | name: "btn_unclick"; | ||
267 | signal: "mouse,up,1"; | ||
268 | source: "btn_over2"; | ||
269 | action: STATE_SET "default" 0.0; | ||
270 | target: "btn"; | ||
271 | } | ||
272 | program | ||
273 | { | ||
274 | name: "btn_click2"; | ||
275 | signal: "mouse,down,1"; | ||
276 | source: "btn_over3"; | ||
277 | action: STATE_SET "clicked" 0.0; | ||
278 | target: "btn_over3"; | ||
279 | } | ||
280 | program | ||
281 | { | ||
282 | name: "btn_unclick2"; | ||
283 | signal: "mouse,up,1"; | ||
284 | source: "btn_over3"; | ||
285 | action: STATE_SET "default" 0.0; | ||
286 | transition: DECELERATE 0.5; | ||
287 | target: "btn_over3"; | ||
288 | } | ||
289 | program | ||
290 | { | ||
291 | name: "btn_unclick3"; | ||
292 | signal: "mouse,clicked,1"; | ||
293 | source: "btn_over2"; | ||
294 | action: SIGNAL_EMIT "elm,action,panel,toggle" ""; | ||
295 | } | ||
296 | program { name: "highlight_show"; | ||
297 | signal: "elm,action,focus_highlight,show"; | ||
298 | source: "elm"; | ||
299 | action: STATE_SET "enabled" 0.0; | ||
300 | transition: ACCELERATE 0.3; | ||
301 | target: "focus_highlight"; | ||
302 | } | ||
303 | program { name: "highlight_hide"; | ||
304 | signal: "elm,action,focus_highlight,hide"; | ||
305 | source: "elm"; | ||
306 | action: STATE_SET "default" 0.0; | ||
307 | transition: DECELERATE 0.3; | ||
308 | target: "focus_highlight"; | ||
309 | } | ||
310 | } | ||
311 | } | ||
312 | |||
313 | group { | ||
314 | name: "elm/panel/base/top"; | ||
315 | images | ||
316 | { | ||
317 | image: "bt_base1.png" COMP; | ||
318 | image: "bt_hilight.png" COMP; | ||
319 | image: "bt_shine.png" COMP; | ||
320 | image: "bt_glow.png" COMP; | ||
321 | image: "bt_dis_base.png" COMP; | ||
322 | image: "icon_arrow_up.png" COMP; | ||
323 | image: "icon_arrow_down.png" COMP; | ||
324 | } | ||
325 | data { | ||
326 | item: "focus_highlight" "on"; | ||
327 | } | ||
328 | parts | ||
329 | { | ||
330 | part { name: "focus_highlight"; | ||
331 | description { state: "default" 0.0; | ||
332 | visible: 0; | ||
333 | color: 255 255 255 0; | ||
334 | rel1 { | ||
335 | to: "btn"; | ||
336 | offset: -8 -8; | ||
337 | } | ||
338 | rel2 { | ||
339 | to: "btn"; | ||
340 | offset: 7 7; | ||
341 | } | ||
342 | image { | ||
343 | normal: "frame_2.png"; | ||
344 | border: 5 5 32 26; | ||
345 | middle: 0; | ||
346 | } | ||
347 | } | ||
348 | description { state: "enabled" 0.0; | ||
349 | inherit: "default" 0.0; | ||
350 | visible: 1; | ||
351 | color: 255 255 255 255; | ||
352 | } | ||
353 | } | ||
354 | part | ||
355 | { | ||
356 | name: "bg"; | ||
357 | type: RECT; | ||
358 | mouse_events: 0; | ||
359 | description | ||
360 | { | ||
361 | state: "default" 0.0; | ||
362 | color: 255 255 255 0; | ||
363 | rel2.offset: -1 -1; | ||
364 | } | ||
365 | description | ||
366 | { | ||
367 | state: "hidden" 0.0; | ||
368 | inherit: "default" 0.0; | ||
369 | rel1.relative: 0.0 -1.0; | ||
370 | rel1.offset: 0 20; | ||
371 | rel2.relative: 1.0 0.0; | ||
372 | rel2.offset: -1 20; | ||
373 | } | ||
374 | } | ||
375 | part | ||
376 | { | ||
377 | name: "clipper"; | ||
378 | type: RECT; | ||
379 | mouse_events: 0; | ||
380 | description | ||
381 | { | ||
382 | state: "default" 0.0; | ||
383 | rel1 | ||
384 | { | ||
385 | offset: 4 4; | ||
386 | to: "base"; | ||
387 | } | ||
388 | rel2 | ||
389 | { | ||
390 | offset: -5 -5; | ||
391 | to: "base"; | ||
392 | } | ||
393 | } | ||
394 | } | ||
395 | part | ||
396 | { | ||
397 | name: "btn"; | ||
398 | type: IMAGE; | ||
399 | mouse_events: 1; | ||
400 | description | ||
401 | { | ||
402 | state: "default" 0.0; | ||
403 | max: 48 32; | ||
404 | fixed: 1 1; | ||
405 | align: 0.5 0.0; | ||
406 | rel1 | ||
407 | { | ||
408 | relative: 0.0 1.0; | ||
409 | offset: 0 -6; | ||
410 | to_y: "base"; | ||
411 | } | ||
412 | rel2.to_y: "bg"; | ||
413 | image | ||
414 | { | ||
415 | normal: "bt_base1.png"; | ||
416 | border: 12 4 0 5; | ||
417 | } | ||
418 | fill.smooth: 0; | ||
419 | } | ||
420 | description | ||
421 | { | ||
422 | state: "clicked" 0.0; | ||
423 | inherit: "default" 0.0; | ||
424 | } | ||
425 | } | ||
426 | part | ||
427 | { | ||
428 | name: "btn_over"; | ||
429 | type: IMAGE; | ||
430 | mouse_events: 0; | ||
431 | description | ||
432 | { | ||
433 | state: "default" 0.0; | ||
434 | rel1.to: "btn"; | ||
435 | rel2 | ||
436 | { | ||
437 | relative: 1.0 0.5; | ||
438 | to: "btn"; | ||
439 | } | ||
440 | image | ||
441 | { | ||
442 | normal: "bt_hilight.png"; | ||
443 | border: 0 7 7 0; | ||
444 | } | ||
445 | } | ||
446 | } | ||
447 | part | ||
448 | { | ||
449 | name: "btn_over2"; | ||
450 | type: IMAGE; | ||
451 | mouse_events: 1; | ||
452 | repeat_events: 1; | ||
453 | ignore_flags: ON_HOLD; | ||
454 | description | ||
455 | { | ||
456 | state: "default" 0.0; | ||
457 | rel1.to: "btn"; | ||
458 | rel2.to: "btn"; | ||
459 | image | ||
460 | { | ||
461 | normal: "bt_shine.png"; | ||
462 | border: 0 7 7 7; | ||
463 | } | ||
464 | } | ||
465 | } | ||
466 | part | ||
467 | { | ||
468 | name: "btn_over3"; | ||
469 | type: IMAGE; | ||
470 | mouse_events: 1; | ||
471 | repeat_events: 1; | ||
472 | description | ||
473 | { | ||
474 | state: "default" 0.0; | ||
475 | color: 255 255 255 0; | ||
476 | rel1.to: "btn"; | ||
477 | rel2.to: "btn"; | ||
478 | image | ||
479 | { | ||
480 | normal: "bt_glow.png"; | ||
481 | border: 12 12 12 12; | ||
482 | } | ||
483 | fill.smooth: 0; | ||
484 | } | ||
485 | description | ||
486 | { | ||
487 | state: "clicked" 0.0; | ||
488 | inherit: "default" 0.0; | ||
489 | visible: 1; | ||
490 | color: 255 255 255 255; | ||
491 | } | ||
492 | } | ||
493 | part | ||
494 | { | ||
495 | name: "btn_icon"; | ||
496 | type: IMAGE; | ||
497 | repeat_events: 1; | ||
498 | description | ||
499 | { | ||
500 | state: "default" 0.0; | ||
501 | rel1.to: "btn"; | ||
502 | rel2.to: "btn"; | ||
503 | align: 0.5 0.5; | ||
504 | min: 16 16; | ||
505 | max: 16 16; | ||
506 | image.normal: "icon_arrow_up.png"; | ||
507 | } | ||
508 | description | ||
509 | { | ||
510 | state: "hidden" 0.0; | ||
511 | inherit: "default" 0.0; | ||
512 | image.normal: "icon_arrow_down.png"; | ||
513 | } | ||
514 | } | ||
515 | part | ||
516 | { | ||
517 | name: "base"; | ||
518 | type: IMAGE; | ||
519 | mouse_events: 0; | ||
520 | description | ||
521 | { | ||
522 | state: "default" 0.0; | ||
523 | rel1.to: "bg"; | ||
524 | rel2.to: "bg"; | ||
525 | rel2.offset: -1 -20; | ||
526 | image | ||
527 | { | ||
528 | normal: "bt_dis_base.png"; | ||
529 | border: 4 4 4 4; | ||
530 | } | ||
531 | } | ||
532 | } | ||
533 | part | ||
534 | { | ||
535 | name: "elm.swallow.content"; | ||
536 | type: SWALLOW; | ||
537 | clip_to: "clipper"; | ||
538 | description | ||
539 | { | ||
540 | state: "default" 0.0; | ||
541 | rel1.to: "clipper"; | ||
542 | rel2.to: "clipper"; | ||
543 | } | ||
544 | } | ||
545 | } | ||
546 | programs | ||
547 | { | ||
548 | program | ||
549 | { | ||
550 | name: "show"; | ||
551 | signal: "elm,action,show"; | ||
552 | source: "elm"; | ||
553 | action: STATE_SET "default" 0.0; | ||
554 | target: "bg"; | ||
555 | target: "btn_icon"; | ||
556 | transition: LINEAR 0.5; | ||
557 | } | ||
558 | program | ||
559 | { | ||
560 | name: "hide"; | ||
561 | signal: "elm,action,hide"; | ||
562 | source: "elm"; | ||
563 | action: STATE_SET "hidden" 0.0; | ||
564 | target: "bg"; | ||
565 | target: "btn_icon"; | ||
566 | transition: LINEAR 0.5; | ||
567 | } | ||
568 | program | ||
569 | { | ||
570 | name: "btn_click"; | ||
571 | signal: "mouse,down,1"; | ||
572 | source: "btn_over2"; | ||
573 | action: STATE_SET "clicked" 0.0; | ||
574 | target: "btn"; | ||
575 | } | ||
576 | program | ||
577 | { | ||
578 | name: "btn_unclick"; | ||
579 | signal: "mouse,up,1"; | ||
580 | source: "btn_over2"; | ||
581 | action: STATE_SET "default" 0.0; | ||
582 | target: "btn"; | ||
583 | } | ||
584 | program | ||
585 | { | ||
586 | name: "btn_click2"; | ||
587 | signal: "mouse,down,1"; | ||
588 | source: "btn_over3"; | ||
589 | action: STATE_SET "clicked" 0.0; | ||
590 | target: "btn_over3"; | ||
591 | } | ||
592 | program | ||
593 | { | ||
594 | name: "btn_unclick2"; | ||
595 | signal: "mouse,up,1"; | ||
596 | source: "btn_over3"; | ||
597 | action: STATE_SET "default" 0.0; | ||
598 | transition: DECELERATE 0.5; | ||
599 | target: "btn_over3"; | ||
600 | } | ||
601 | program | ||
602 | { | ||
603 | name: "btn_unclick3"; | ||
604 | signal: "mouse,clicked,1"; | ||
605 | source: "btn_over2"; | ||
606 | action: SIGNAL_EMIT "elm,action,panel,toggle" ""; | ||
607 | } | ||
608 | program { name: "highlight_show"; | ||
609 | signal: "elm,action,focus_highlight,show"; | ||
610 | source: "elm"; | ||
611 | action: STATE_SET "enabled" 0.0; | ||
612 | transition: ACCELERATE 0.3; | ||
613 | target: "focus_highlight"; | ||
614 | } | ||
615 | program { name: "highlight_hide"; | ||
616 | signal: "elm,action,focus_highlight,hide"; | ||
617 | source: "elm"; | ||
618 | action: STATE_SET "default" 0.0; | ||
619 | transition: DECELERATE 0.3; | ||
620 | target: "focus_highlight"; | ||
621 | } | ||
622 | } | ||
623 | } | ||
624 | |||
625 | group { | ||
626 | name: "elm/panel/base/bottom"; | ||
627 | images | ||
628 | { | ||
629 | image: "bt_base1.png" COMP; | ||
630 | image: "bt_hilight.png" COMP; | ||
631 | image: "bt_shine.png" COMP; | ||
632 | image: "bt_glow.png" COMP; | ||
633 | image: "bt_dis_base.png" COMP; | ||
634 | image: "icon_arrow_up.png" COMP; | ||
635 | image: "icon_arrow_down.png" COMP; | ||
636 | } | ||
637 | data { | ||
638 | item: "focus_highlight" "on"; | ||
639 | } | ||
640 | parts | ||
641 | { | ||
642 | part { name: "focus_highlight"; | ||
643 | description { state: "default" 0.0; | ||
644 | visible: 0; | ||
645 | color: 255 255 255 0; | ||
646 | rel1 { | ||
647 | to: "btn"; | ||
648 | offset: -8 -8; | ||
649 | } | ||
650 | rel2 { | ||
651 | to: "btn"; | ||
652 | offset: 7 7; | ||
653 | } | ||
654 | image { | ||
655 | normal: "frame_2.png"; | ||
656 | border: 5 5 32 26; | ||
657 | middle: 0; | ||
658 | } | ||
659 | } | ||
660 | description { state: "enabled" 0.0; | ||
661 | inherit: "default" 0.0; | ||
662 | visible: 1; | ||
663 | color: 255 255 255 255; | ||
664 | } | ||
665 | } | ||
666 | part | ||
667 | { | ||
668 | name: "bg"; | ||
669 | type: RECT; | ||
670 | mouse_events: 0; | ||
671 | description | ||
672 | { | ||
673 | state: "default" 0.0; | ||
674 | color: 255 255 255 0; | ||
675 | rel2.offset: -1 -1; | ||
676 | } | ||
677 | description | ||
678 | { | ||
679 | state: "hidden" 0.0; | ||
680 | inherit: "default" 0.0; | ||
681 | rel1.relative: 0.0 1.0; | ||
682 | rel1.offset: -1 -24; | ||
683 | rel2.relative: 1.0 2.0; | ||
684 | rel2.offset: 0 -21; | ||
685 | } | ||
686 | } | ||
687 | part | ||
688 | { | ||
689 | name: "clipper"; | ||
690 | type: RECT; | ||
691 | mouse_events: 0; | ||
692 | description | ||
693 | { | ||
694 | state: "default" 0.0; | ||
695 | rel1 | ||
696 | { | ||
697 | offset: 4 4; | ||
698 | to: "base"; | ||
699 | } | ||
700 | rel2 | ||
701 | { | ||
702 | offset: -5 -5; | ||
703 | to: "base"; | ||
704 | } | ||
705 | } | ||
706 | } | ||
707 | part | ||
708 | { | ||
709 | name: "btn"; | ||
710 | type: IMAGE; | ||
711 | mouse_events: 1; | ||
712 | description | ||
713 | { | ||
714 | state: "default" 0.0; | ||
715 | max: 48 32; | ||
716 | fixed: 1 1; | ||
717 | align: 0.5 0.0; | ||
718 | rel1.to_y: "bg"; | ||
719 | rel2{ | ||
720 | relative: 1.0 0.0; | ||
721 | offset: 0 5; | ||
722 | to_y: "base"; | ||
723 | } | ||
724 | image | ||
725 | { | ||
726 | normal: "bt_base1.png"; | ||
727 | border: 4 12 5 0; | ||
728 | } | ||
729 | fill.smooth: 0; | ||
730 | } | ||
731 | description | ||
732 | { | ||
733 | state: "clicked" 0.0; | ||
734 | inherit: "default" 0.0; | ||
735 | } | ||
736 | } | ||
737 | part | ||
738 | { | ||
739 | name: "btn_over"; | ||
740 | type: IMAGE; | ||
741 | mouse_events: 0; | ||
742 | description | ||
743 | { | ||
744 | state: "default" 0.0; | ||
745 | rel1.to: "btn"; | ||
746 | rel2 | ||
747 | { | ||
748 | relative: 1.0 0.5; | ||
749 | to: "btn"; | ||
750 | } | ||
751 | image | ||
752 | { | ||
753 | normal: "bt_hilight.png"; | ||
754 | border: 0 7 7 0; | ||
755 | } | ||
756 | } | ||
757 | } | ||
758 | part | ||
759 | { | ||
760 | name: "btn_over2"; | ||
761 | type: IMAGE; | ||
762 | mouse_events: 1; | ||
763 | repeat_events: 1; | ||
764 | ignore_flags: ON_HOLD; | ||
765 | description | ||
766 | { | ||
767 | state: "default" 0.0; | ||
768 | rel1.to: "btn"; | ||
769 | rel2.to: "btn"; | ||
770 | image | ||
771 | { | ||
772 | normal: "bt_shine.png"; | ||
773 | border: 0 7 7 7; | ||
774 | } | ||
775 | } | ||
776 | } | ||
777 | part | ||
778 | { | ||
779 | name: "btn_over3"; | ||
780 | type: IMAGE; | ||
781 | mouse_events: 1; | ||
782 | repeat_events: 1; | ||
783 | description | ||
784 | { | ||
785 | state: "default" 0.0; | ||
786 | color: 255 255 255 0; | ||
787 | rel1.to: "btn"; | ||
788 | rel2.to: "btn"; | ||
789 | image | ||
790 | { | ||
791 | normal: "bt_glow.png"; | ||
792 | border: 12 12 12 12; | ||
793 | } | ||
794 | fill.smooth: 0; | ||
795 | } | ||
796 | description | ||
797 | { | ||
798 | state: "clicked" 0.0; | ||
799 | inherit: "default" 0.0; | ||
800 | visible: 1; | ||
801 | color: 255 255 255 255; | ||
802 | } | ||
803 | } | ||
804 | part | ||
805 | { | ||
806 | name: "btn_icon"; | ||
807 | type: IMAGE; | ||
808 | repeat_events: 1; | ||
809 | description | ||
810 | { | ||
811 | state: "default" 0.0; | ||
812 | rel1.to: "btn"; | ||
813 | rel2.to: "btn"; | ||
814 | align: 0.5 0.5; | ||
815 | min: 16 16; | ||
816 | max: 16 16; | ||
817 | image.normal: "icon_arrow_down.png"; | ||
818 | } | ||
819 | description | ||
820 | { | ||
821 | state: "hidden" 0.0; | ||
822 | inherit: "default" 0.0; | ||
823 | image.normal: "icon_arrow_up.png"; | ||
824 | } | ||
825 | } | ||
826 | part | ||
827 | { | ||
828 | name: "base"; | ||
829 | type: IMAGE; | ||
830 | mouse_events: 0; | ||
831 | description | ||
832 | { | ||
833 | state: "default" 0.0; | ||
834 | rel1.to: "bg"; | ||
835 | rel1.offset: -1 20; | ||
836 | rel2.to: "bg"; | ||
837 | image | ||
838 | { | ||
839 | normal: "bt_dis_base.png"; | ||
840 | border: 4 4 4 4; | ||
841 | } | ||
842 | } | ||
843 | } | ||
844 | part | ||
845 | { | ||
846 | name: "elm.swallow.content"; | ||
847 | type: SWALLOW; | ||
848 | clip_to: "clipper"; | ||
849 | description | ||
850 | { | ||
851 | state: "default" 0.0; | ||
852 | rel1.to: "clipper"; | ||
853 | rel2.to: "clipper"; | ||
854 | } | ||
855 | } | ||
856 | } | ||
857 | programs | ||
858 | { | ||
859 | program | ||
860 | { | ||
861 | name: "show"; | ||
862 | signal: "elm,action,show"; | ||
863 | source: "elm"; | ||
864 | action: STATE_SET "default" 0.0; | ||
865 | target: "bg"; | ||
866 | target: "btn_icon"; | ||
867 | transition: LINEAR 0.5; | ||
868 | } | ||
869 | program | ||
870 | { | ||
871 | name: "hide"; | ||
872 | signal: "elm,action,hide"; | ||
873 | source: "elm"; | ||
874 | action: STATE_SET "hidden" 0.0; | ||
875 | target: "bg"; | ||
876 | target: "btn_icon"; | ||
877 | transition: LINEAR 0.5; | ||
878 | } | ||
879 | program | ||
880 | { | ||
881 | name: "btn_click"; | ||
882 | signal: "mouse,down,1"; | ||
883 | source: "btn_over2"; | ||
884 | action: STATE_SET "clicked" 0.0; | ||
885 | target: "btn"; | ||
886 | } | ||
887 | program | ||
888 | { | ||
889 | name: "btn_unclick"; | ||
890 | signal: "mouse,up,1"; | ||
891 | source: "btn_over2"; | ||
892 | action: STATE_SET "default" 0.0; | ||
893 | target: "btn"; | ||
894 | } | ||
895 | program | ||
896 | { | ||
897 | name: "btn_click2"; | ||
898 | signal: "mouse,down,1"; | ||
899 | source: "btn_over3"; | ||
900 | action: STATE_SET "clicked" 0.0; | ||
901 | target: "btn_over3"; | ||
902 | } | ||
903 | program | ||
904 | { | ||
905 | name: "btn_unclick2"; | ||
906 | signal: "mouse,up,1"; | ||
907 | source: "btn_over3"; | ||
908 | action: STATE_SET "default" 0.0; | ||
909 | transition: DECELERATE 0.5; | ||
910 | target: "btn_over3"; | ||
911 | } | ||
912 | program | ||
913 | { | ||
914 | name: "btn_unclick3"; | ||
915 | signal: "mouse,clicked,1"; | ||
916 | source: "btn_over2"; | ||
917 | action: SIGNAL_EMIT "elm,action,panel,toggle" ""; | ||
918 | } | ||
919 | program { name: "highlight_show"; | ||
920 | signal: "elm,action,focus_highlight,show"; | ||
921 | source: "elm"; | ||
922 | action: STATE_SET "enabled" 0.0; | ||
923 | transition: ACCELERATE 0.3; | ||
924 | target: "focus_highlight"; | ||
925 | } | ||
926 | program { name: "highlight_hide"; | ||
927 | signal: "elm,action,focus_highlight,hide"; | ||
928 | source: "elm"; | ||
929 | action: STATE_SET "default" 0.0; | ||
930 | transition: DECELERATE 0.3; | ||
931 | target: "focus_highlight"; | ||
932 | } | ||
933 | } | ||
934 | } | ||
935 | |||
936 | group { | ||
937 | name: "elm/panel/base/right"; | ||
938 | images | ||
939 | { | ||
940 | image: "bt_base1.png" COMP; | ||
941 | image: "bt_hilight.png" COMP; | ||
942 | image: "bt_shine.png" COMP; | ||
943 | image: "bt_glow.png" COMP; | ||
944 | image: "bt_dis_base.png" COMP; | ||
945 | image: "icon_arrow_left.png" COMP; | ||
946 | image: "icon_arrow_right.png" COMP; | ||
947 | } | ||
948 | parts | ||
949 | { | ||
950 | part { name: "focus_highlight"; | ||
951 | description { state: "default" 0.0; | ||
952 | visible: 0; | ||
953 | color: 255 255 255 0; | ||
954 | rel1 { | ||
955 | to: "btn"; | ||
956 | offset: -8 -8; | ||
957 | } | ||
958 | rel2 { | ||
959 | to: "btn"; | ||
960 | offset: 7 7; | ||
961 | } | ||
962 | image { | ||
963 | normal: "frame_2.png"; | ||
964 | border: 5 5 32 26; | ||
965 | middle: 0; | ||
966 | } | ||
967 | } | ||
968 | description { state: "enabled" 0.0; | ||
969 | inherit: "default" 0.0; | ||
970 | visible: 1; | ||
971 | color: 255 255 255 255; | ||
972 | } | ||
973 | } | ||
974 | part | ||
975 | { | ||
976 | name: "bg"; | ||
977 | type: RECT; | ||
978 | mouse_events: 0; | ||
979 | description | ||
980 | { | ||
981 | state: "default" 0.0; | ||
982 | color: 255 255 255 0; | ||
983 | rel1.relative: 0.0 0.0; | ||
984 | rel1.offset: 0 0; | ||
985 | rel2.relative: 1.0 1.0; | ||
986 | rel2.offset: -1 -1; | ||
987 | } | ||
988 | description | ||
989 | { | ||
990 | state: "hidden" 0.0; | ||
991 | inherit: "default" 0.0; | ||
992 | rel1.relative: 1.0 0.0; | ||
993 | rel1.offset: -22 0; | ||
994 | rel2.relative: 2.0 1.0; | ||
995 | rel2.offset: -23 -1; | ||
996 | } | ||
997 | } | ||
998 | part | ||
999 | { | ||
1000 | name: "clipper"; | ||
1001 | type: RECT; | ||
1002 | mouse_events: 0; | ||
1003 | description | ||
1004 | { | ||
1005 | state: "default" 0.0; | ||
1006 | rel1 | ||
1007 | { | ||
1008 | offset: 4 4; | ||
1009 | to: "base"; | ||
1010 | } | ||
1011 | rel2 | ||
1012 | { | ||
1013 | offset: -5 -5; | ||
1014 | to: "base"; | ||
1015 | } | ||
1016 | } | ||
1017 | } | ||
1018 | part | ||
1019 | { | ||
1020 | name: "btn"; | ||
1021 | type: IMAGE; | ||
1022 | mouse_events: 1; | ||
1023 | description | ||
1024 | { | ||
1025 | state: "default" 0.0; | ||
1026 | max: 32 48; | ||
1027 | fixed: 1 1; | ||
1028 | align: 1 0.5; | ||
1029 | rel1 | ||
1030 | { | ||
1031 | to_x: "bg"; | ||
1032 | } | ||
1033 | rel2 | ||
1034 | { | ||
1035 | offset: 2 0; | ||
1036 | relative: 0.0 1; | ||
1037 | to_x: "base"; | ||
1038 | } | ||
1039 | image | ||
1040 | { | ||
1041 | normal: "bt_base1.png"; | ||
1042 | border: 5 0 4 12; | ||
1043 | } | ||
1044 | fill.smooth: 0; | ||
1045 | } | ||
1046 | description | ||
1047 | { | ||
1048 | state: "clicked" 0.0; | ||
1049 | inherit: "default" 0.0; | ||
1050 | } | ||
1051 | } | ||
1052 | part | ||
1053 | { | ||
1054 | name: "btn_over"; | ||
1055 | type: IMAGE; | ||
1056 | mouse_events: 0; | ||
1057 | description | ||
1058 | { | ||
1059 | state: "default" 0.0; | ||
1060 | rel1.to: "btn"; | ||
1061 | rel2 | ||
1062 | { | ||
1063 | relative: 1.0 0.5; | ||
1064 | to: "btn"; | ||
1065 | } | ||
1066 | image | ||
1067 | { | ||
1068 | normal: "bt_hilight.png"; | ||
1069 | border: 7 0 7 0; | ||
1070 | } | ||
1071 | } | ||
1072 | } | ||
1073 | part | ||
1074 | { | ||
1075 | name: "btn_over2"; | ||
1076 | type: IMAGE; | ||
1077 | mouse_events: 1; | ||
1078 | repeat_events: 1; | ||
1079 | ignore_flags: ON_HOLD; | ||
1080 | description | ||
1081 | { | ||
1082 | state: "default" 0.0; | ||
1083 | rel1.to: "btn"; | ||
1084 | rel2.to: "btn"; | ||
1085 | image | ||
1086 | { | ||
1087 | normal: "bt_shine.png"; | ||
1088 | border: 7 0 7 7; | ||
1089 | } | ||
1090 | } | ||
1091 | } | ||
1092 | part | ||
1093 | { | ||
1094 | name: "btn_over3"; | ||
1095 | type: IMAGE; | ||
1096 | mouse_events: 1; | ||
1097 | repeat_events: 1; | ||
1098 | description | ||
1099 | { | ||
1100 | state: "default" 0.0; | ||
1101 | color: 255 255 255 0; | ||
1102 | rel1.to: "btn"; | ||
1103 | rel2.to: "btn"; | ||
1104 | image | ||
1105 | { | ||
1106 | normal: "bt_glow.png"; | ||
1107 | border: 12 12 12 12; | ||
1108 | } | ||
1109 | fill.smooth: 0; | ||
1110 | } | ||
1111 | description | ||
1112 | { | ||
1113 | state: "clicked" 0.0; | ||
1114 | inherit: "default" 0.0; | ||
1115 | visible: 1; | ||
1116 | color: 255 255 255 255; | ||
1117 | } | ||
1118 | } | ||
1119 | part | ||
1120 | { | ||
1121 | name: "btn_icon"; | ||
1122 | type: IMAGE; | ||
1123 | repeat_events: 1; | ||
1124 | description | ||
1125 | { | ||
1126 | state: "default" 0.0; | ||
1127 | rel1.to: "btn"; | ||
1128 | rel2.to: "btn"; | ||
1129 | align: 0.5 0.5; | ||
1130 | min: 16 16; | ||
1131 | max: 16 16; | ||
1132 | image.normal: "icon_arrow_right.png"; | ||
1133 | } | ||
1134 | description | ||
1135 | { | ||
1136 | state: "hidden" 0.0; | ||
1137 | inherit: "default" 0.0; | ||
1138 | image.normal: "icon_arrow_left.png"; | ||
1139 | } | ||
1140 | } | ||
1141 | part | ||
1142 | { | ||
1143 | name: "base"; | ||
1144 | type: IMAGE; | ||
1145 | mouse_events: 0; | ||
1146 | description | ||
1147 | { | ||
1148 | state: "default" 0.0; | ||
1149 | rel1.to: "bg"; | ||
1150 | rel1.offset: 20 0; | ||
1151 | rel2.to: "bg"; | ||
1152 | image | ||
1153 | { | ||
1154 | normal: "bt_dis_base.png"; | ||
1155 | border: 4 4 4 4; | ||
1156 | } | ||
1157 | } | ||
1158 | } | ||
1159 | part | ||
1160 | { | ||
1161 | name: "elm.swallow.content"; | ||
1162 | type: SWALLOW; | ||
1163 | clip_to: "clipper"; | ||
1164 | description | ||
1165 | { | ||
1166 | state: "default" 0.0; | ||
1167 | rel1.to: "clipper"; | ||
1168 | rel2.to: "clipper"; | ||
1169 | } | ||
1170 | } | ||
1171 | } | ||
1172 | programs | ||
1173 | { | ||
1174 | program | ||
1175 | { | ||
1176 | name: "show"; | ||
1177 | signal: "elm,action,show"; | ||
1178 | source: "elm"; | ||
1179 | action: STATE_SET "default" 0.0; | ||
1180 | target: "bg"; | ||
1181 | target: "btn_icon"; | ||
1182 | transition: LINEAR 0.5; | ||
1183 | } | ||
1184 | program | ||
1185 | { | ||
1186 | name: "hide"; | ||
1187 | signal: "elm,action,hide"; | ||
1188 | source: "elm"; | ||
1189 | action: STATE_SET "hidden" 0.0; | ||
1190 | target: "bg"; | ||
1191 | target: "btn_icon"; | ||
1192 | transition: LINEAR 0.5; | ||
1193 | } | ||
1194 | program | ||
1195 | { | ||
1196 | name: "btn_click"; | ||
1197 | signal: "mouse,down,1"; | ||
1198 | source: "btn_over2"; | ||
1199 | action: STATE_SET "clicked" 0.0; | ||
1200 | target: "btn"; | ||
1201 | } | ||
1202 | program | ||
1203 | { | ||
1204 | name: "btn_unclick"; | ||
1205 | signal: "mouse,up,1"; | ||
1206 | source: "btn_over2"; | ||
1207 | action: STATE_SET "default" 0.0; | ||
1208 | target: "btn"; | ||
1209 | } | ||
1210 | program | ||
1211 | { | ||
1212 | name: "btn_click2"; | ||
1213 | signal: "mouse,down,1"; | ||
1214 | source: "btn_over3"; | ||
1215 | action: STATE_SET "clicked" 0.0; | ||
1216 | target: "btn_over3"; | ||
1217 | } | ||
1218 | program | ||
1219 | { | ||
1220 | name: "btn_unclick2"; | ||
1221 | signal: "mouse,up,1"; | ||
1222 | source: "btn_over3"; | ||
1223 | action: STATE_SET "default" 0.0; | ||
1224 | transition: DECELERATE 0.5; | ||
1225 | target: "btn_over3"; | ||
1226 | } | ||
1227 | program | ||
1228 | { | ||
1229 | name: "btn_unclick3"; | ||
1230 | signal: "mouse,up,1"; | ||
1231 | source: "btn_over2"; | ||
1232 | action: SIGNAL_EMIT "elm,action,panel,toggle" ""; | ||
1233 | } | ||
1234 | program { name: "highlight_show"; | ||
1235 | signal: "elm,action,focus"; | ||
1236 | source: "elm"; | ||
1237 | action: STATE_SET "enabled" 0.0; | ||
1238 | transition: ACCELERATE 0.3; | ||
1239 | target: "focus_highlight"; | ||
1240 | } | ||
1241 | program { name: "highlight_hide"; | ||
1242 | signal: "elm,action,unfocus"; | ||
1243 | source: "elm"; | ||
1244 | action: STATE_SET "default" 0.0; | ||
1245 | transition: DECELERATE 0.3; | ||
1246 | target: "focus_highlight"; | ||
1247 | } | ||
1248 | } | ||
1249 | } | ||
1250 | |||
diff --git a/libraries/elementary/data/themes/widgets/panes.edc b/libraries/elementary/data/themes/widgets/panes.edc new file mode 100644 index 0000000..10423e8 --- /dev/null +++ b/libraries/elementary/data/themes/widgets/panes.edc | |||
@@ -0,0 +1,853 @@ | |||
1 | group { | ||
2 | name: "elm/panes/vertical/default"; | ||
3 | images { | ||
4 | image: "bt_base1.png" COMP; | ||
5 | image: "bt_base2.png" COMP; | ||
6 | image: "bt_hilight.png" COMP; | ||
7 | image: "bt_shine.png" COMP; | ||
8 | image: "bt_glow.png" COMP; | ||
9 | image: "arrow_right.png" COMP; | ||
10 | image: "arrow_left.png" COMP; | ||
11 | } | ||
12 | parts | ||
13 | { | ||
14 | part | ||
15 | { | ||
16 | name: "whole"; | ||
17 | type: RECT; | ||
18 | mouse_events: 0; | ||
19 | description | ||
20 | { | ||
21 | state: "default" 0.0; | ||
22 | visible: 0; | ||
23 | } | ||
24 | } | ||
25 | |||
26 | //2 contents | ||
27 | part | ||
28 | { | ||
29 | name: "whole_left"; | ||
30 | type: RECT; | ||
31 | mouse_events: 0; | ||
32 | description | ||
33 | { | ||
34 | state: "default" 0.0; | ||
35 | rel2.to_x: "elm.bar"; | ||
36 | rel2.relative: 0.0 1.0; | ||
37 | visible: 1; | ||
38 | } | ||
39 | } | ||
40 | part | ||
41 | { | ||
42 | name: "elm.swallow.left"; | ||
43 | type: SWALLOW; | ||
44 | clip_to: "whole_left"; | ||
45 | description | ||
46 | { | ||
47 | state: "default" 0.0; | ||
48 | rel1.to: "whole_left"; | ||
49 | rel2.to: "whole_left"; | ||
50 | } | ||
51 | } | ||
52 | |||
53 | part | ||
54 | { | ||
55 | name: "whole_right"; | ||
56 | type: RECT; | ||
57 | mouse_events: 0; | ||
58 | description | ||
59 | { | ||
60 | state: "default" 0.0; | ||
61 | rel1.to_x: "elm.bar"; | ||
62 | rel1.relative: 1.0 0.0; | ||
63 | visible: 1; | ||
64 | } | ||
65 | } | ||
66 | part | ||
67 | { | ||
68 | name: "elm.swallow.right"; | ||
69 | type: SWALLOW; | ||
70 | clip_to: "whole_right"; | ||
71 | description | ||
72 | { | ||
73 | state: "default" 0.0; | ||
74 | rel1.to: "whole_right"; | ||
75 | rel2.to: "whole_right"; | ||
76 | } | ||
77 | } | ||
78 | //BAR | ||
79 | part { name: "elm.bar"; | ||
80 | mouse_events: 1; | ||
81 | dragable { | ||
82 | confine: "whole"; | ||
83 | x: 1 1 1; | ||
84 | y: 0 0 0; | ||
85 | } | ||
86 | description { state: "default" 0.0; | ||
87 | max: 15 9999; | ||
88 | min: 15 100; | ||
89 | rel1.relative: 0.0 0.5; | ||
90 | rel2.relative: 1.0 0.5; | ||
91 | image { | ||
92 | normal: "bt_base2.png"; | ||
93 | border: 7 7 7 7; | ||
94 | } | ||
95 | image.middle: SOLID; | ||
96 | } | ||
97 | description { state: "clicked" 0.0; | ||
98 | inherit: "default" 0.0; | ||
99 | image.normal: "bt_base1.png"; | ||
100 | image.middle: SOLID; | ||
101 | } | ||
102 | description { state: "disabled" 0.0; | ||
103 | inherit: "default" 0.0; | ||
104 | visible: 0; | ||
105 | } | ||
106 | } | ||
107 | part { name: "over1"; | ||
108 | mouse_events: 0; | ||
109 | description { state: "default" 0.0; | ||
110 | rel1.to: "elm.bar"; | ||
111 | rel2.to: "elm.bar"; | ||
112 | rel2.relative: 1.0 0.5; | ||
113 | image { | ||
114 | normal: "bt_hilight.png"; | ||
115 | border: 7 7 7 0; | ||
116 | } | ||
117 | } | ||
118 | description { state: "disabled" 0.0; | ||
119 | inherit: "default" 0.0; | ||
120 | visible: 0; | ||
121 | } | ||
122 | } | ||
123 | part { name: "over2"; | ||
124 | mouse_events: 1; | ||
125 | repeat_events: 1; | ||
126 | ignore_flags: ON_HOLD; | ||
127 | description { state: "default" 0.0; | ||
128 | rel1.to: "elm.bar"; | ||
129 | rel2.to: "elm.bar"; | ||
130 | image { | ||
131 | normal: "bt_shine.png"; | ||
132 | border: 7 7 7 7; | ||
133 | } | ||
134 | } | ||
135 | description { state: "disabled" 0.0; | ||
136 | inherit: "default" 0.0; | ||
137 | visible: 0; | ||
138 | } | ||
139 | } | ||
140 | part { name: "over3"; | ||
141 | mouse_events: 1; | ||
142 | repeat_events: 1; | ||
143 | description { state: "default" 0.0; | ||
144 | color: 255 255 255 0; | ||
145 | rel1.to: "elm.bar"; | ||
146 | rel2.to: "elm.bar"; | ||
147 | image { | ||
148 | normal: "bt_glow.png"; | ||
149 | border: 12 12 12 12; | ||
150 | } | ||
151 | fill.smooth : 0; | ||
152 | } | ||
153 | description { state: "clicked" 0.0; | ||
154 | inherit: "default" 0.0; | ||
155 | visible: 1; | ||
156 | color: 255 255 255 255; | ||
157 | } | ||
158 | } | ||
159 | part { name:"bar_disabled"; | ||
160 | type: RECT; | ||
161 | description { state:"default" 0.0; | ||
162 | rel1.to_x: "elm.bar"; | ||
163 | rel2.to_x: "elm.bar"; | ||
164 | color: 0 0 0 0; | ||
165 | visible: 0; | ||
166 | } | ||
167 | description { state: "disabled" 0.0; | ||
168 | inherit: "default" 0.0; | ||
169 | visible: 1; | ||
170 | } | ||
171 | } | ||
172 | |||
173 | //Arrow | ||
174 | part { | ||
175 | name: "arrow_right"; | ||
176 | repeat_events: 1; | ||
177 | description { state: "default" 0.0; | ||
178 | min: 45 45; | ||
179 | max: 45 45; | ||
180 | color: 255 255 255 0; | ||
181 | |||
182 | rel1.relative: 1.0 0.5; | ||
183 | rel1.to_x: "elm.bar"; | ||
184 | rel1.offset: 45/2 -45/2; | ||
185 | |||
186 | rel2.relative: 1.0 0.5; | ||
187 | rel2.to_x: "elm.bar"; | ||
188 | rel2.offset: 45/2 45/2; | ||
189 | |||
190 | image.normal: "arrow_right.png"; | ||
191 | |||
192 | fixed: 1 1; | ||
193 | } | ||
194 | description { state: "default" 0.1; | ||
195 | inherit: "default" 0.0; | ||
196 | image.normal: "arrow_left.png"; | ||
197 | } | ||
198 | description { state: "anim_1" 0.0; | ||
199 | inherit: "default" 0.0; | ||
200 | color: 255 255 255 200; | ||
201 | rel1.offset: (45/2 + 10) -45/2; | ||
202 | rel2.offset: (45/2 +10) 45/2; | ||
203 | } | ||
204 | description { state: "anim_1" 0.1; | ||
205 | inherit: "default" 0.0; | ||
206 | image.normal: "arrow_left.png"; | ||
207 | color: 255 255 255 200; | ||
208 | rel1.offset: (45/2 + 10) -45/2; | ||
209 | rel2.offset: (45/2 +10) 45/2; | ||
210 | } | ||
211 | description { state: "anim_2" 0.0; | ||
212 | inherit: "default" 0.0; | ||
213 | color: 255 255 255 0; | ||
214 | rel1.offset: (45/2 + 20) -45/2; | ||
215 | rel2.offset: (45/2 + 20) 45/2; | ||
216 | } | ||
217 | description { state: "anim_2" 0.1; | ||
218 | inherit: "default" 0.0; | ||
219 | image.normal: "arrow_left.png"; | ||
220 | color: 255 255 255 0; | ||
221 | rel1.offset: (45/2 + 20) -45/2; | ||
222 | rel2.offset: (45/2 + 20) 45/2; | ||
223 | } | ||
224 | } | ||
225 | part { | ||
226 | name: "arrow_left"; | ||
227 | repeat_events: 1; | ||
228 | description { state: "default" 0.0; | ||
229 | min: 45 45; | ||
230 | max: 45 45; | ||
231 | color: 255 255 255 0; | ||
232 | |||
233 | rel1.relative: 0.0 0.5; | ||
234 | rel1.to_x: "elm.bar"; | ||
235 | rel1.offset: -45/2 -45/2; | ||
236 | |||
237 | rel2.relative: 0.0 0.5; | ||
238 | rel2.to_x: "elm.bar"; | ||
239 | rel2.offset: -45/2 45/2; | ||
240 | |||
241 | image.normal: "arrow_left.png"; | ||
242 | |||
243 | fixed: 1 1; | ||
244 | } | ||
245 | description { state: "default" 0.1; | ||
246 | inherit: "default" 0.0; | ||
247 | image.normal: "arrow_right.png"; | ||
248 | } | ||
249 | description { state: "anim_1" 0.0; | ||
250 | inherit: "default" 0.0; | ||
251 | color: 255 255 255 200; | ||
252 | rel1.offset: (-45/2 - 10) -45/2; | ||
253 | rel2.offset: (-45/2 - 10) 45/2; | ||
254 | } | ||
255 | description { state: "anim_1" 0.1; | ||
256 | inherit: "default" 0.0; | ||
257 | image.normal: "arrow_right.png"; | ||
258 | color: 255 255 255 200; | ||
259 | rel1.offset: (-45/2 - 10) -45/2; | ||
260 | rel2.offset: (-45/2 - 10) 45/2; | ||
261 | } | ||
262 | description { state: "anim_2" 0.0; | ||
263 | inherit: "default" 0.0; | ||
264 | color: 255 255 255 0; | ||
265 | rel1.offset: (-45/2 - 20) -45/2; | ||
266 | rel2.offset: (-45/2 - 20) 45/2; | ||
267 | } | ||
268 | description { state: "anim_2" 0.1; | ||
269 | inherit: "default" 0.0; | ||
270 | image.normal: "arrow_right.png"; | ||
271 | color: 255 255 255 0; | ||
272 | rel1.offset: (-45/2 - 20) -45/2; | ||
273 | rel2.offset: (-45/2 - 20) 45/2; | ||
274 | } | ||
275 | } | ||
276 | |||
277 | } | ||
278 | programs { | ||
279 | program { | ||
280 | name: "button_click"; | ||
281 | signal: "mouse,down,1"; | ||
282 | source: "over2"; | ||
283 | action: SIGNAL_EMIT "elm,action,press" ""; | ||
284 | after: "button_click_anim"; | ||
285 | after: "arrow_anim_start"; | ||
286 | } | ||
287 | program { | ||
288 | name: "button_click_anim"; | ||
289 | action: STATE_SET "clicked" 0.0; | ||
290 | target: "elm.bar"; | ||
291 | } | ||
292 | program { | ||
293 | name: "button_unclick"; | ||
294 | signal: "mouse,up,1"; | ||
295 | source: "over2"; | ||
296 | action: SIGNAL_EMIT "elm,action,unpress" ""; | ||
297 | after: "button_unclick_anim"; | ||
298 | after: "arrow_anim_stop"; | ||
299 | } | ||
300 | program { | ||
301 | name: "button_unclick_anim"; | ||
302 | action: STATE_SET "default" 0.0; | ||
303 | target: "elm.bar"; | ||
304 | } | ||
305 | program { | ||
306 | name: "button_click2"; | ||
307 | signal: "mouse,down,1"; | ||
308 | source: "over3"; | ||
309 | action: STATE_SET "clicked" 0.0; | ||
310 | target: "over3"; | ||
311 | } | ||
312 | program { | ||
313 | name: "button_unclick2"; | ||
314 | signal: "mouse,up,1"; | ||
315 | source: "over3"; | ||
316 | action: STATE_SET "default" 0.0; | ||
317 | transition: DECELERATE 0.5; | ||
318 | target: "over3"; | ||
319 | } | ||
320 | program { | ||
321 | name: "button_unclick3"; | ||
322 | signal: "mouse,up,1"; | ||
323 | source: "over2"; | ||
324 | action: SIGNAL_EMIT "elm,action,click" ""; | ||
325 | } | ||
326 | program { | ||
327 | name: "button_down_double"; | ||
328 | signal: "mouse,down,1,double"; | ||
329 | source: "over3"; | ||
330 | action: SIGNAL_EMIT "elm,action,click,double" ""; | ||
331 | } | ||
332 | |||
333 | //arrows animation | ||
334 | program { | ||
335 | name: "arrow_anim_start"; | ||
336 | script { | ||
337 | new st[31]; | ||
338 | new Float:vl; | ||
339 | get_state(PART:"arrow_left", st, 30, vl); | ||
340 | if (vl == 0.0) { | ||
341 | run_program(PROGRAM:"arrow_anim_start_ltr"); | ||
342 | } | ||
343 | else { | ||
344 | run_program(PROGRAM:"arrow_anim_start_rtl"); | ||
345 | } | ||
346 | } | ||
347 | } | ||
348 | program { | ||
349 | name: "arrow_anim_stop"; | ||
350 | script { | ||
351 | new st[31]; | ||
352 | new Float:vl; | ||
353 | get_state(PART:"arrow_left", st, 30, vl); | ||
354 | if (vl == 0.0) { | ||
355 | run_program(PROGRAM:"arrow_anim_stop_ltr"); | ||
356 | } | ||
357 | else { | ||
358 | run_program(PROGRAM:"arrow_anim_stop_rtl"); | ||
359 | } | ||
360 | } | ||
361 | } | ||
362 | |||
363 | program { | ||
364 | name: "arrow_anim_start_ltr"; | ||
365 | action: STATE_SET "anim_1" 0.0; | ||
366 | target: "arrow_right"; | ||
367 | target: "arrow_left"; | ||
368 | transition: LINEAR 0.6; | ||
369 | after: "arrow_anim_1_ltr"; | ||
370 | } | ||
371 | program { | ||
372 | name: "arrow_anim_1_ltr"; | ||
373 | action: STATE_SET "anim_2" 0.0; | ||
374 | target: "arrow_right"; | ||
375 | target: "arrow_left"; | ||
376 | transition: LINEAR 0.6; | ||
377 | after: "arrow_anim_2_ltr"; | ||
378 | } | ||
379 | program { | ||
380 | name: "arrow_anim_2_ltr"; | ||
381 | action: STATE_SET "default" 0.0; | ||
382 | target: "arrow_right"; | ||
383 | target: "arrow_left"; | ||
384 | after: "arrow_anim_start_ltr"; | ||
385 | } | ||
386 | program { | ||
387 | name: "arrow_anim_stop_ltr"; | ||
388 | action: ACTION_STOP; | ||
389 | target: "arrow_anim_start_ltr"; | ||
390 | target: "arrow_anim_1_ltr"; | ||
391 | target: "arrow_anim_2_ltr"; | ||
392 | after: "arrow_anim_stop_1_ltr"; | ||
393 | } | ||
394 | program { | ||
395 | name: "arrow_anim_stop_1_ltr"; | ||
396 | action: STATE_SET "default" 0.0; | ||
397 | target: "arrow_right"; | ||
398 | target: "arrow_left"; | ||
399 | transition: DECELERATE 0.4; | ||
400 | } | ||
401 | program { | ||
402 | name: "arrow_anim_start_rtl"; | ||
403 | action: STATE_SET "anim_1" 0.1; | ||
404 | target: "arrow_right"; | ||
405 | target: "arrow_left"; | ||
406 | transition: LINEAR 0.6; | ||
407 | after: "arrow_anim_1_rtl"; | ||
408 | } | ||
409 | program { | ||
410 | name: "arrow_anim_1_rtl"; | ||
411 | action: STATE_SET "anim_2" 0.1; | ||
412 | target: "arrow_right"; | ||
413 | target: "arrow_left"; | ||
414 | transition: LINEAR 0.6; | ||
415 | after: "arrow_anim_2_rtl"; | ||
416 | } | ||
417 | program { | ||
418 | name: "arrow_anim_2_rtl"; | ||
419 | action: STATE_SET "default" 0.1; | ||
420 | target: "arrow_right"; | ||
421 | target: "arrow_left"; | ||
422 | after: "arrow_anim_start_rtl"; | ||
423 | } | ||
424 | program { | ||
425 | name: "arrow_anim_stop_rtl"; | ||
426 | action: ACTION_STOP; | ||
427 | target: "arrow_anim_start_rtl"; | ||
428 | target: "arrow_anim_1_rtl"; | ||
429 | target: "arrow_anim_2_rtl"; | ||
430 | after: "arrow_anim_stop_1_rtl"; | ||
431 | } | ||
432 | program { | ||
433 | name: "arrow_anim_stop_1_rtl"; | ||
434 | action: STATE_SET "default" 0.1; | ||
435 | target: "arrow_right"; | ||
436 | target: "arrow_left"; | ||
437 | transition: DECELERATE 0.4; | ||
438 | } | ||
439 | program { name: "to_rtl"; | ||
440 | signal: "edje,state,rtl"; | ||
441 | source: "edje"; | ||
442 | script { | ||
443 | new st[31]; | ||
444 | new Float:vl; | ||
445 | get_state(PART:"arrow_left", st, 30, vl); | ||
446 | if (vl == 0.0) { | ||
447 | set_state(PART:"arrow_left", st, 0.1); | ||
448 | } | ||
449 | get_state(PART:"arrow_right", st, 30, vl); | ||
450 | if (vl == 0.0) { | ||
451 | set_state(PART:"arrow_right", st, 0.1); | ||
452 | } | ||
453 | } | ||
454 | } | ||
455 | program { name: "to_ltr"; | ||
456 | signal: "edje,state,ltr"; | ||
457 | source: "edje"; | ||
458 | script { | ||
459 | new st[31]; | ||
460 | new Float:vl; | ||
461 | get_state(PART:"arrow_left", st, 30, vl); | ||
462 | if (vl == 0.1) { | ||
463 | set_state(PART:"arrow_left", st, 0.0); | ||
464 | } | ||
465 | get_state(PART:"arrow_right", st, 30, vl); | ||
466 | if (vl == 0.1) { | ||
467 | set_state(PART:"arrow_right", st, 0.0); | ||
468 | } | ||
469 | } | ||
470 | } | ||
471 | //fix the pane | ||
472 | program { | ||
473 | name: "panes_fixed"; | ||
474 | signal: "elm.panes.fixed"; | ||
475 | source: "elm"; | ||
476 | action: STATE_SET "disabled" 0.0; | ||
477 | target: "elm.bar"; | ||
478 | target: "over1"; | ||
479 | target: "bar_disabled"; | ||
480 | } | ||
481 | //allow the movement by interaction | ||
482 | program { | ||
483 | name: "panes_unfixed"; | ||
484 | signal: "elm.panes.unfixed"; | ||
485 | source: "elm"; | ||
486 | action: STATE_SET "default" 0.0; | ||
487 | target: "elm.bar"; | ||
488 | target: "over1"; | ||
489 | target: "bar_disabled"; | ||
490 | } | ||
491 | } | ||
492 | } | ||
493 | |||
494 | group { | ||
495 | name: "elm/panes/horizontal/default"; | ||
496 | images { | ||
497 | image: "bt_base1.png" COMP; | ||
498 | image: "bt_base2.png" COMP; | ||
499 | image: "bt_hilight.png" COMP; | ||
500 | image: "bt_shine.png" COMP; | ||
501 | image: "bt_glow.png" COMP; | ||
502 | image: "arrow_up.png" COMP; | ||
503 | image: "arrow_down.png" COMP; | ||
504 | } | ||
505 | parts | ||
506 | { | ||
507 | part | ||
508 | { | ||
509 | name: "whole"; | ||
510 | type: RECT; | ||
511 | mouse_events: 0; | ||
512 | description | ||
513 | { | ||
514 | state: "default" 0.0; | ||
515 | visible: 0; | ||
516 | } | ||
517 | } | ||
518 | |||
519 | //2 contents | ||
520 | part | ||
521 | { | ||
522 | name: "whole_left"; | ||
523 | type: RECT; | ||
524 | mouse_events: 0; | ||
525 | description | ||
526 | { | ||
527 | state: "default" 0.0; | ||
528 | rel2.to_y: "elm.bar"; | ||
529 | rel2.relative: 1.0 0.0; | ||
530 | visible: 1; | ||
531 | } | ||
532 | } | ||
533 | part | ||
534 | { | ||
535 | name: "elm.swallow.left"; | ||
536 | type: SWALLOW; | ||
537 | clip_to: "whole_left"; | ||
538 | description | ||
539 | { | ||
540 | state: "default" 0.0; | ||
541 | rel1.to: "whole_left"; | ||
542 | rel2.to: "whole_left"; | ||
543 | } | ||
544 | } | ||
545 | |||
546 | part | ||
547 | { | ||
548 | name: "whole_right"; | ||
549 | type: RECT; | ||
550 | mouse_events: 0; | ||
551 | description | ||
552 | { | ||
553 | state: "default" 0.0; | ||
554 | rel1.to_y: "elm.bar"; | ||
555 | rel1.relative: 0.0 1.0; | ||
556 | visible: 1; | ||
557 | } | ||
558 | } | ||
559 | part | ||
560 | { | ||
561 | name: "elm.swallow.right"; | ||
562 | type: SWALLOW; | ||
563 | clip_to: "whole_right"; | ||
564 | description | ||
565 | { | ||
566 | state: "default" 0.0; | ||
567 | rel1.to: "whole_right"; | ||
568 | rel2.to: "whole_right"; | ||
569 | } | ||
570 | } | ||
571 | //BAR | ||
572 | part { name: "elm.bar"; | ||
573 | mouse_events: 1; | ||
574 | dragable { | ||
575 | confine: "whole"; | ||
576 | x: 0 0 0; | ||
577 | y: 1 1 1; | ||
578 | } | ||
579 | description { state: "default" 0.0; | ||
580 | max: 999 15; | ||
581 | min: 100 15; | ||
582 | rel1.relative: 0.5 0.0; | ||
583 | rel2.relative: 0.5 1.0; | ||
584 | image { | ||
585 | normal: "bt_base2.png"; | ||
586 | border: 7 7 7 7; | ||
587 | } | ||
588 | image.middle: SOLID; | ||
589 | } | ||
590 | description { state: "clicked" 0.0; | ||
591 | inherit: "default" 0.0; | ||
592 | image.normal: "bt_base1.png"; | ||
593 | image.middle: SOLID; | ||
594 | } | ||
595 | description { state: "disabled" 0.0; | ||
596 | inherit: "default" 0.0; | ||
597 | visible: 0; | ||
598 | } | ||
599 | } | ||
600 | part { name: "over1"; | ||
601 | mouse_events: 0; | ||
602 | description { state: "default" 0.0; | ||
603 | rel1.to: "elm.bar"; | ||
604 | rel2.to: "elm.bar"; | ||
605 | rel2.relative: 1.0 0.5; | ||
606 | image { | ||
607 | normal: "bt_hilight.png"; | ||
608 | border: 7 7 7 0; | ||
609 | } | ||
610 | } | ||
611 | description { state: "disabled" 0.0; | ||
612 | inherit: "default" 0.0; | ||
613 | visible: 0; | ||
614 | } | ||
615 | } | ||
616 | part { name: "over2"; | ||
617 | mouse_events: 1; | ||
618 | repeat_events: 1; | ||
619 | ignore_flags: ON_HOLD; | ||
620 | description { state: "default" 0.0; | ||
621 | rel1.to: "elm.bar"; | ||
622 | rel2.to: "elm.bar"; | ||
623 | image { | ||
624 | normal: "bt_shine.png"; | ||
625 | border: 7 7 7 7; | ||
626 | } | ||
627 | } | ||
628 | description { state: "disabled" 0.0; | ||
629 | inherit: "default" 0.0; | ||
630 | visible: 0; | ||
631 | } | ||
632 | } | ||
633 | part { name: "over3"; | ||
634 | mouse_events: 1; | ||
635 | repeat_events: 1; | ||
636 | description { state: "default" 0.0; | ||
637 | color: 255 255 255 0; | ||
638 | rel1.to: "elm.bar"; | ||
639 | rel2.to: "elm.bar"; | ||
640 | image { | ||
641 | normal: "bt_glow.png"; | ||
642 | border: 12 12 12 12; | ||
643 | } | ||
644 | fill.smooth : 0; | ||
645 | } | ||
646 | description { state: "clicked" 0.0; | ||
647 | inherit: "default" 0.0; | ||
648 | visible: 1; | ||
649 | color: 255 255 255 255; | ||
650 | } | ||
651 | } | ||
652 | part { name:"bar_disabled"; | ||
653 | type: RECT; | ||
654 | description { state:"default" 0.0; | ||
655 | rel1.to_y: "elm.bar"; | ||
656 | rel2.to_y: "elm.bar"; | ||
657 | color: 0 0 0 0; | ||
658 | visible: 0; | ||
659 | } | ||
660 | description { state: "disabled" 0.0; | ||
661 | inherit: "default" 0.0; | ||
662 | visible: 1; | ||
663 | } | ||
664 | } | ||
665 | |||
666 | //Arrow | ||
667 | part { | ||
668 | name: "arrow_right"; | ||
669 | repeat_events: 1; | ||
670 | description { state: "default" 0.0; | ||
671 | min: 45 45; | ||
672 | max: 45 45; | ||
673 | color: 255 255 255 0; | ||
674 | |||
675 | rel1.relative: 0.5 1.0; | ||
676 | rel1.to_y: "elm.bar"; | ||
677 | rel1.offset: -45/2 45/2; | ||
678 | |||
679 | rel2.relative: 0.5 1.0; | ||
680 | rel2.to_y: "elm.bar"; | ||
681 | rel2.offset: 45/2 45/2; | ||
682 | |||
683 | image.normal: "arrow_down.png"; | ||
684 | |||
685 | fixed: 1 1; | ||
686 | } | ||
687 | description { state: "anim_1" 0.0; | ||
688 | inherit: "default" 0.0; | ||
689 | color: 255 255 255 200; | ||
690 | rel1.offset: -45/2 (45/2 +10); | ||
691 | rel2.offset: 45/2 (45/2 +10); | ||
692 | } | ||
693 | description { state: "anim_2" 0.0; | ||
694 | inherit: "default" 0.0; | ||
695 | color: 255 255 255 0; | ||
696 | rel1.offset: -45/2 (45/2 + 20); | ||
697 | rel2.offset: 45/2 (45/2 + 20); | ||
698 | } | ||
699 | } | ||
700 | part { | ||
701 | name: "arrow_left"; | ||
702 | repeat_events: 1; | ||
703 | description { state: "default" 0.0; | ||
704 | min: 45 45; | ||
705 | max: 45 45; | ||
706 | color: 255 255 255 0; | ||
707 | |||
708 | rel1.relative: 0.5 0.0; | ||
709 | rel1.to_y: "elm.bar"; | ||
710 | rel1.offset: -45/2 -45/2; | ||
711 | |||
712 | rel2.relative: 0.5 0.0; | ||
713 | rel2.to_y: "elm.bar"; | ||
714 | rel2.offset: 45/2 -45/2; | ||
715 | |||
716 | image.normal: "arrow_up.png"; | ||
717 | |||
718 | fixed: 1 1; | ||
719 | } | ||
720 | description { state: "anim_1" 0.0; | ||
721 | inherit: "default" 0.0; | ||
722 | color: 255 255 255 200; | ||
723 | rel1.offset: -45/2 (-45/2 - 10); | ||
724 | rel2.offset: 45/2 (-45/2 - 10); | ||
725 | } | ||
726 | description { state: "anim_2" 0.0; | ||
727 | inherit: "default" 0.0; | ||
728 | color: 255 255 255 0; | ||
729 | rel1.offset: -45/2 (-45/2 - 20); | ||
730 | rel2.offset: 45/2 (-45/2 - 20); | ||
731 | } | ||
732 | } | ||
733 | |||
734 | } | ||
735 | programs { | ||
736 | program { | ||
737 | name: "button_click"; | ||
738 | signal: "mouse,down,1"; | ||
739 | source: "over2"; | ||
740 | action: SIGNAL_EMIT "elm,action,press" ""; | ||
741 | after: "button_click_anim"; | ||
742 | after: "arrow_anim_start"; | ||
743 | } | ||
744 | program { | ||
745 | name: "button_click_anim"; | ||
746 | action: STATE_SET "clicked" 0.0; | ||
747 | target: "elm.bar"; | ||
748 | } | ||
749 | program { | ||
750 | name: "button_unclick"; | ||
751 | signal: "mouse,up,1"; | ||
752 | source: "over2"; | ||
753 | action: SIGNAL_EMIT "elm,action,unpress" ""; | ||
754 | after: "button_unclick_anim"; | ||
755 | after: "arrow_anim_stop"; | ||
756 | } | ||
757 | program { | ||
758 | name: "button_unclick_anim"; | ||
759 | action: STATE_SET "default" 0.0; | ||
760 | target: "elm.bar"; | ||
761 | } | ||
762 | program { | ||
763 | name: "button_click2"; | ||
764 | signal: "mouse,down,1"; | ||
765 | source: "over3"; | ||
766 | action: STATE_SET "clicked" 0.0; | ||
767 | target: "over3"; | ||
768 | } | ||
769 | program { | ||
770 | name: "button_unclick2"; | ||
771 | signal: "mouse,up,1"; | ||
772 | source: "over3"; | ||
773 | action: STATE_SET "default" 0.0; | ||
774 | transition: DECELERATE 0.5; | ||
775 | target: "over3"; | ||
776 | } | ||
777 | program { | ||
778 | name: "button_unclick3"; | ||
779 | signal: "mouse,up,1"; | ||
780 | source: "over2"; | ||
781 | action: SIGNAL_EMIT "elm,action,click" ""; | ||
782 | } | ||
783 | program { | ||
784 | name: "button_down_double"; | ||
785 | signal: "mouse,down,1,double"; | ||
786 | source: "over3"; | ||
787 | action: SIGNAL_EMIT "elm,action,click,double" ""; | ||
788 | } | ||
789 | |||
790 | //arrows animation | ||
791 | program { | ||
792 | name: "arrow_anim_start"; | ||
793 | action: STATE_SET "anim_1" 0.0; | ||
794 | target: "arrow_right"; | ||
795 | target: "arrow_left"; | ||
796 | transition: LINEAR 0.6; | ||
797 | after: "arrow_anim_1"; | ||
798 | } | ||
799 | program { | ||
800 | name: "arrow_anim_1"; | ||
801 | action: STATE_SET "anim_2" 0.0; | ||
802 | target: "arrow_right"; | ||
803 | target: "arrow_left"; | ||
804 | transition: LINEAR 0.6; | ||
805 | after: "arrow_anim_2"; | ||
806 | } | ||
807 | program { | ||
808 | name: "arrow_anim_2"; | ||
809 | action: STATE_SET "default" 0.0; | ||
810 | target: "arrow_right"; | ||
811 | target: "arrow_left"; | ||
812 | after: "arrow_anim_start"; | ||
813 | } | ||
814 | program { | ||
815 | name: "arrow_anim_stop"; | ||
816 | action: ACTION_STOP; | ||
817 | target: "arrow_anim_start"; | ||
818 | target: "arrow_anim_1"; | ||
819 | target: "arrow_anim_2"; | ||
820 | after: "arrow_anim_stop_1"; | ||
821 | } | ||
822 | program { | ||
823 | name: "arrow_anim_stop_1"; | ||
824 | action: STATE_SET "default" 0.0; | ||
825 | target: "arrow_right"; | ||
826 | target: "arrow_left"; | ||
827 | transition: DECELERATE 0.4; | ||
828 | } | ||
829 | //fix the pane | ||
830 | program { | ||
831 | name: "panes_fixed"; | ||
832 | signal: "elm.panes.fixed"; | ||
833 | source: "elm"; | ||
834 | action: STATE_SET "disabled" 0.0; | ||
835 | target: "elm.bar"; | ||
836 | target: "over1"; | ||
837 | target: "bar_disabled"; | ||
838 | } | ||
839 | //allow the movement by interaction | ||
840 | program { | ||
841 | name: "panes_unfixed"; | ||
842 | signal: "elm.panes.unfixed"; | ||
843 | source: "elm"; | ||
844 | action: STATE_SET "default" 0.0; | ||
845 | target: "elm.bar"; | ||
846 | target: "over1"; | ||
847 | target: "bar_disabled"; | ||
848 | } | ||
849 | } | ||
850 | } | ||
851 | |||
852 | |||
853 | |||
diff --git a/libraries/elementary/data/themes/widgets/photo.edc b/libraries/elementary/data/themes/widgets/photo.edc new file mode 100644 index 0000000..399450c --- /dev/null +++ b/libraries/elementary/data/themes/widgets/photo.edc | |||
@@ -0,0 +1,150 @@ | |||
1 | group { name: "elm/photo/base/default"; | ||
2 | images { | ||
3 | image: "frame_1.png" COMP; | ||
4 | image: "frame_2.png" COMP; | ||
5 | image: "dia_grad.png" COMP; | ||
6 | image: "head.png" COMP; | ||
7 | } | ||
8 | parts { | ||
9 | part { name: "base0"; | ||
10 | mouse_events: 0; | ||
11 | description { state: "default" 0.0; | ||
12 | image.normal: "dia_grad.png"; | ||
13 | rel1.to: "over"; | ||
14 | rel2.to: "over"; | ||
15 | fill { | ||
16 | smooth: 0; | ||
17 | size { | ||
18 | relative: 0.0 1.0; | ||
19 | offset: 64 0; | ||
20 | } | ||
21 | } | ||
22 | } | ||
23 | } | ||
24 | part { name: "base"; | ||
25 | mouse_events: 0; | ||
26 | description { state: "default" 0.0; | ||
27 | image { | ||
28 | normal: "frame_2.png"; | ||
29 | border: 5 5 32 26; | ||
30 | middle: 0; | ||
31 | } | ||
32 | fill.smooth : 0; | ||
33 | } | ||
34 | } | ||
35 | part { name: "head"; | ||
36 | mouse_events: 0; | ||
37 | description { state: "default" 0.0; | ||
38 | rel1.offset: 4 4; | ||
39 | rel2.offset: -5 -5; | ||
40 | aspect: 1.0 1.0; | ||
41 | aspect_preference: BOTH; | ||
42 | image.normal: "head.png"; | ||
43 | } | ||
44 | } | ||
45 | part { name: "clip"; | ||
46 | mouse_events: 0; | ||
47 | type: RECT; | ||
48 | description { state: "default" 0.0; | ||
49 | rel1.offset: 4 4; | ||
50 | rel2.offset: -5 -5; | ||
51 | color: 255 255 255 255; | ||
52 | } | ||
53 | } | ||
54 | part { name: "elm.swallow.content"; | ||
55 | type: SWALLOW; | ||
56 | clip_to: "clip"; | ||
57 | description { state: "default" 0.0; | ||
58 | rel1.offset: 4 4; | ||
59 | rel2.offset: -5 -5; | ||
60 | } | ||
61 | } | ||
62 | part { name: "over"; | ||
63 | mouse_events: 0; | ||
64 | description { state: "default" 0.0; | ||
65 | rel1.offset: 4 4; | ||
66 | rel2.offset: -5 -5; | ||
67 | image { | ||
68 | normal: "frame_1.png"; | ||
69 | border: 2 2 28 22; | ||
70 | middle: 0; | ||
71 | } | ||
72 | fill.smooth: 0; | ||
73 | } | ||
74 | } | ||
75 | } | ||
76 | } | ||
77 | |||
78 | group { name: "elm/photo/base/shadow"; | ||
79 | images { | ||
80 | image: "shadow.png" COMP; | ||
81 | image: "black.png" COMP; | ||
82 | } | ||
83 | script { | ||
84 | public message(Msg_Type:type, id, ...) { | ||
85 | if( (type==MSG_INT_SET) && (id==0) ) | ||
86 | { | ||
87 | new w; | ||
88 | new h; | ||
89 | |||
90 | custom_state(PART:"size", "default", 0.0); | ||
91 | |||
92 | w = getarg(2); | ||
93 | h = getarg(3); | ||
94 | set_state_val(PART:"size", STATE_REL1_OFFSET, - w/2, - h/2); | ||
95 | set_state_val(PART:"size", STATE_REL2_OFFSET, w/2 + 1, h/2 + 1); | ||
96 | set_state(PART:"size", "custom", 0.0); | ||
97 | } | ||
98 | } | ||
99 | } | ||
100 | parts { | ||
101 | part { name: "size"; | ||
102 | type: SWALLOW; | ||
103 | description { state: "default" 0.0; | ||
104 | rel1.relative: 0.5 0.5; | ||
105 | rel2.relative: 0.5 0.5; | ||
106 | } | ||
107 | } | ||
108 | part { | ||
109 | name: "shadow"; | ||
110 | type: IMAGE; | ||
111 | repeat_events: 1; | ||
112 | description { | ||
113 | state: "default" 0.0; | ||
114 | rel1.to: "size"; | ||
115 | rel2.to: "size"; | ||
116 | rel1.relative: -0.06 -0.06; | ||
117 | rel2.relative: 1.07 1.07; | ||
118 | image.normal: "shadow.png"; | ||
119 | } | ||
120 | } | ||
121 | |||
122 | |||
123 | part { name: "elm.swallow.content"; | ||
124 | type: SWALLOW; | ||
125 | description { state: "default" 0.0; | ||
126 | rel1.offset: 3 3; | ||
127 | rel2.offset: -3 -3; | ||
128 | fixed: 1 1; | ||
129 | } | ||
130 | } | ||
131 | |||
132 | part { | ||
133 | name: "border"; | ||
134 | type: IMAGE; | ||
135 | repeat_events: 1; | ||
136 | description { | ||
137 | state: "default" 0.0; | ||
138 | visible: 1; | ||
139 | color: 0 0 0 255; | ||
140 | rel1.to: "size"; | ||
141 | rel2.to: "size"; | ||
142 | image.normal: "black.png"; | ||
143 | image.border: 1 1 1 1; | ||
144 | image.middle: 0; | ||
145 | } | ||
146 | } | ||
147 | } | ||
148 | } | ||
149 | |||
150 | /////////////////////////////////////////////////////////////////////////////// | ||
diff --git a/libraries/elementary/data/themes/widgets/photocam.edc b/libraries/elementary/data/themes/widgets/photocam.edc new file mode 100644 index 0000000..8a1e197 --- /dev/null +++ b/libraries/elementary/data/themes/widgets/photocam.edc | |||
@@ -0,0 +1,493 @@ | |||
1 | group { name: "elm/photocam/base/default"; | ||
2 | script { | ||
3 | public sbvis_v, sbvis_h, sbalways_v, sbalways_h, sbvis_timer; | ||
4 | public timer0(val) { | ||
5 | new v; | ||
6 | v = get_int(sbvis_v); | ||
7 | if (v) { | ||
8 | v = get_int(sbalways_v); | ||
9 | if (!v) { | ||
10 | emit("do-hide-vbar", ""); | ||
11 | set_int(sbvis_v, 0); | ||
12 | } | ||
13 | } | ||
14 | v = get_int(sbvis_h); | ||
15 | if (v) { | ||
16 | v = get_int(sbalways_h); | ||
17 | if (!v) { | ||
18 | emit("do-hide-hbar", ""); | ||
19 | set_int(sbvis_h, 0); | ||
20 | } | ||
21 | } | ||
22 | set_int(sbvis_timer, 0); | ||
23 | return 0; | ||
24 | } | ||
25 | } | ||
26 | images { | ||
27 | image: "shelf_inset.png" COMP; | ||
28 | image: "bt_sm_base2.png" COMP; | ||
29 | image: "bt_sm_shine.png" COMP; | ||
30 | image: "bt_sm_hilight.png" COMP; | ||
31 | image: "busy-1.png" COMP; | ||
32 | image: "busy-2.png" COMP; | ||
33 | image: "busy-3.png" COMP; | ||
34 | image: "busy-4.png" COMP; | ||
35 | image: "busy-5.png" COMP; | ||
36 | image: "busy-6.png" COMP; | ||
37 | image: "busy-7.png" COMP; | ||
38 | image: "busy-8.png" COMP; | ||
39 | image: "busy-9.png" COMP; | ||
40 | } | ||
41 | parts { | ||
42 | part { name: "bg"; | ||
43 | type: RECT; | ||
44 | description { state: "default" 0.0; | ||
45 | rel1.offset: 1 1; | ||
46 | rel2.offset: -2 -2; | ||
47 | color: 255 255 255 0; | ||
48 | } | ||
49 | } | ||
50 | part { name: "clipper"; | ||
51 | type: RECT; | ||
52 | mouse_events: 0; | ||
53 | description { state: "default" 0.0; | ||
54 | rel1.to: "bg"; | ||
55 | rel2.to: "bg"; | ||
56 | } | ||
57 | } | ||
58 | part { name: "elm.swallow.content"; | ||
59 | clip_to: "clipper"; | ||
60 | type: SWALLOW; | ||
61 | description { state: "default" 0.0; | ||
62 | rel1.offset: 1 1; | ||
63 | rel2.offset: -2 -2; | ||
64 | } | ||
65 | } | ||
66 | part { name: "busy_clip"; | ||
67 | type: RECT; | ||
68 | mouse_events: 0; | ||
69 | description { state: "default" 0.0; | ||
70 | visible: 0; | ||
71 | color: 255 255 255 0; | ||
72 | } | ||
73 | description { state: "active" 0.0; | ||
74 | visible: 1; | ||
75 | color: 255 255 255 255; | ||
76 | } | ||
77 | } | ||
78 | part { name: "busy"; | ||
79 | clip_to: "busy_clip"; | ||
80 | mouse_events: 0; | ||
81 | description { state: "default" 0.0; | ||
82 | fixed: 1 1; | ||
83 | min: 32 32; | ||
84 | aspect: 1.0 1.0; | ||
85 | align: 1.0 1.0; | ||
86 | aspect_preference: BOTH; | ||
87 | rel1 { | ||
88 | relative: 0.9 0.9; | ||
89 | offset: -9 -9; | ||
90 | } | ||
91 | rel2 { | ||
92 | relative: 0.9 0.9; | ||
93 | offset: -9 -9; | ||
94 | } | ||
95 | image { | ||
96 | normal: "busy-9.png"; | ||
97 | tween: "busy-1.png"; | ||
98 | tween: "busy-2.png"; | ||
99 | tween: "busy-3.png"; | ||
100 | tween: "busy-4.png"; | ||
101 | tween: "busy-5.png"; | ||
102 | tween: "busy-6.png"; | ||
103 | tween: "busy-7.png"; | ||
104 | tween: "busy-8.png"; | ||
105 | } | ||
106 | } | ||
107 | } | ||
108 | part { name: "conf_over"; | ||
109 | mouse_events: 0; | ||
110 | description { state: "default" 0.0; | ||
111 | rel1.offset: 0 0; | ||
112 | rel2.offset: -1 -1; | ||
113 | image { | ||
114 | normal: "shelf_inset.png"; | ||
115 | border: 7 7 7 7; | ||
116 | middle: 0; | ||
117 | } | ||
118 | fill.smooth : 0; | ||
119 | } | ||
120 | } | ||
121 | part { name: "sb_vbar_clip_master"; | ||
122 | type: RECT; | ||
123 | mouse_events: 0; | ||
124 | description { state: "default" 0.0; | ||
125 | } | ||
126 | description { state: "hidden" 0.0; | ||
127 | visible: 0; | ||
128 | color: 255 255 255 0; | ||
129 | } | ||
130 | } | ||
131 | part { name: "sb_vbar_clip"; | ||
132 | clip_to: "sb_vbar_clip_master"; | ||
133 | type: RECT; | ||
134 | mouse_events: 0; | ||
135 | description { state: "default" 0.0; | ||
136 | } | ||
137 | description { state: "hidden" 0.0; | ||
138 | visible: 0; | ||
139 | color: 255 255 255 0; | ||
140 | } | ||
141 | } | ||
142 | part { name: "sb_vbar"; | ||
143 | type: RECT; | ||
144 | mouse_events: 0; | ||
145 | description { state: "default" 0.0; | ||
146 | fixed: 1 1; | ||
147 | visible: 0; | ||
148 | min: 10 17; | ||
149 | align: 1.0 0.0; | ||
150 | rel1 { | ||
151 | relative: 1.0 0.0; | ||
152 | offset: -2 0; | ||
153 | } | ||
154 | rel2 { | ||
155 | relative: 1.0 0.0; | ||
156 | offset: -2 -1; | ||
157 | to_y: "sb_hbar"; | ||
158 | } | ||
159 | } | ||
160 | } | ||
161 | part { name: "elm.dragable.vbar"; | ||
162 | clip_to: "sb_vbar_clip"; | ||
163 | mouse_events: 0; | ||
164 | dragable { | ||
165 | x: 0 0 0; | ||
166 | y: 1 1 0; | ||
167 | confine: "sb_vbar"; | ||
168 | } | ||
169 | description { state: "default" 0.0; | ||
170 | fixed: 1 1; | ||
171 | min: 10 17; | ||
172 | max: 10 99999; | ||
173 | rel1 { | ||
174 | relative: 0.5 0.5; | ||
175 | offset: 0 0; | ||
176 | to: "sb_vbar"; | ||
177 | } | ||
178 | rel2 { | ||
179 | relative: 0.5 0.5; | ||
180 | offset: 0 0; | ||
181 | to: "sb_vbar"; | ||
182 | } | ||
183 | image { | ||
184 | normal: "bt_sm_base2.png"; | ||
185 | border: 6 6 6 6; | ||
186 | middle: SOLID; | ||
187 | } | ||
188 | } | ||
189 | } | ||
190 | part { name: "sb_vbar_over1"; | ||
191 | clip_to: "sb_vbar_clip"; | ||
192 | mouse_events: 0; | ||
193 | description { state: "default" 0.0; | ||
194 | rel1.to: "elm.dragable.vbar"; | ||
195 | rel2.relative: 1.0 0.5; | ||
196 | rel2.to: "elm.dragable.vbar"; | ||
197 | image { | ||
198 | normal: "bt_sm_hilight.png"; | ||
199 | border: 6 6 6 0; | ||
200 | } | ||
201 | } | ||
202 | } | ||
203 | part { name: "sb_vbar_over2"; | ||
204 | clip_to: "sb_vbar_clip"; | ||
205 | mouse_events: 0; | ||
206 | description { state: "default" 0.0; | ||
207 | rel1.to: "elm.dragable.vbar"; | ||
208 | rel2.to: "elm.dragable.vbar"; | ||
209 | image { | ||
210 | normal: "bt_sm_shine.png"; | ||
211 | border: 6 6 6 0; | ||
212 | } | ||
213 | } | ||
214 | } | ||
215 | |||
216 | part { name: "sb_hbar_clip_master"; | ||
217 | type: RECT; | ||
218 | mouse_events: 0; | ||
219 | description { state: "default" 0.0; | ||
220 | } | ||
221 | description { state: "hidden" 0.0; | ||
222 | visible: 0; | ||
223 | color: 255 255 255 0; | ||
224 | } | ||
225 | } | ||
226 | part { name: "sb_hbar_clip"; | ||
227 | clip_to: "sb_hbar_clip_master"; | ||
228 | type: RECT; | ||
229 | mouse_events: 0; | ||
230 | description { state: "default" 0.0; | ||
231 | } | ||
232 | description { state: "hidden" 0.0; | ||
233 | visible: 0; | ||
234 | color: 255 255 255 0; | ||
235 | } | ||
236 | } | ||
237 | part { name: "sb_hbar"; | ||
238 | type: RECT; | ||
239 | mouse_events: 0; | ||
240 | description { state: "default" 0.0; | ||
241 | fixed: 1 1; | ||
242 | visible: 0; | ||
243 | min: 17 10; | ||
244 | align: 0.0 1.0; | ||
245 | rel1 { | ||
246 | relative: 0.0 1.0; | ||
247 | offset: 0 -2; | ||
248 | } | ||
249 | rel2 { | ||
250 | relative: 0.0 1.0; | ||
251 | offset: -1 -2; | ||
252 | to_x: "sb_vbar"; | ||
253 | } | ||
254 | } | ||
255 | } | ||
256 | part { name: "elm.dragable.hbar"; | ||
257 | clip_to: "sb_hbar_clip"; | ||
258 | mouse_events: 0; | ||
259 | dragable { | ||
260 | x: 1 1 0; | ||
261 | y: 0 0 0; | ||
262 | confine: "sb_hbar"; | ||
263 | } | ||
264 | description { state: "default" 0.0; | ||
265 | fixed: 1 1; | ||
266 | min: 17 10; | ||
267 | max: 99999 10; | ||
268 | rel1 { | ||
269 | relative: 0.5 0.5; | ||
270 | offset: 0 0; | ||
271 | to: "sb_hbar"; | ||
272 | } | ||
273 | rel2 { | ||
274 | relative: 0.5 0.5; | ||
275 | offset: 0 0; | ||
276 | to: "sb_hbar"; | ||
277 | } | ||
278 | image { | ||
279 | normal: "bt_sm_base2.png"; | ||
280 | border: 4 4 4 4; | ||
281 | middle: SOLID; | ||
282 | } | ||
283 | } | ||
284 | } | ||
285 | part { name: "sb_hbar_over1"; | ||
286 | clip_to: "sb_hbar_clip"; | ||
287 | mouse_events: 0; | ||
288 | description { state: "default" 0.0; | ||
289 | rel1.to: "elm.dragable.hbar"; | ||
290 | rel2.relative: 1.0 0.5; | ||
291 | rel2.to: "elm.dragable.hbar"; | ||
292 | image { | ||
293 | normal: "bt_sm_hilight.png"; | ||
294 | border: 4 4 4 0; | ||
295 | } | ||
296 | } | ||
297 | } | ||
298 | part { name: "sb_hbar_over2"; | ||
299 | clip_to: "sb_hbar_clip"; | ||
300 | mouse_events: 0; | ||
301 | description { state: "default" 0.0; | ||
302 | rel1.to: "elm.dragable.hbar"; | ||
303 | rel2.to: "elm.dragable.hbar"; | ||
304 | image { | ||
305 | normal: "bt_sm_shine.png"; | ||
306 | border: 4 4 4 0; | ||
307 | } | ||
308 | } | ||
309 | } | ||
310 | } | ||
311 | programs { | ||
312 | program { name: "load"; | ||
313 | signal: "load"; | ||
314 | source: ""; | ||
315 | script { | ||
316 | set_state(PART:"sb_hbar_clip", "hidden", 0.0); | ||
317 | set_state(PART:"sb_vbar_clip", "hidden", 0.0); | ||
318 | set_int(sbvis_h, 0); | ||
319 | set_int(sbvis_v, 0); | ||
320 | set_int(sbalways_v, 0); | ||
321 | set_int(sbalways_h, 0); | ||
322 | set_int(sbvis_timer, 0); | ||
323 | } | ||
324 | } | ||
325 | |||
326 | program { name: "vbar_show"; | ||
327 | signal: "elm,action,show,vbar"; | ||
328 | source: "elm"; | ||
329 | action: STATE_SET "default" 0.0; | ||
330 | target: "sb_vbar_clip_master"; | ||
331 | } | ||
332 | program { name: "vbar_hide"; | ||
333 | signal: "elm,action,hide,vbar"; | ||
334 | source: "elm"; | ||
335 | action: STATE_SET "hidden" 0.0; | ||
336 | target: "sb_vbar_clip_master"; | ||
337 | } | ||
338 | program { name: "vbar_show_always"; | ||
339 | signal: "elm,action,show_always,vbar"; | ||
340 | source: "elm"; | ||
341 | script { | ||
342 | new v; | ||
343 | v = get_int(sbvis_v); | ||
344 | v |= get_int(sbalways_v); | ||
345 | if (!v) { | ||
346 | set_int(sbalways_v, 1); | ||
347 | emit("do-show-vbar", ""); | ||
348 | set_int(sbvis_v, 1); | ||
349 | } | ||
350 | } | ||
351 | } | ||
352 | program { name: "vbar_show_notalways"; | ||
353 | signal: "elm,action,show_notalways,vbar"; | ||
354 | source: "elm"; | ||
355 | script { | ||
356 | new v; | ||
357 | v = get_int(sbalways_v); | ||
358 | if (v) { | ||
359 | set_int(sbalways_v, 0); | ||
360 | v = get_int(sbvis_v); | ||
361 | if (!v) { | ||
362 | emit("do-hide-vbar", ""); | ||
363 | set_int(sbvis_v, 0); | ||
364 | } | ||
365 | } | ||
366 | } | ||
367 | } | ||
368 | program { name: "sb_vbar_show"; | ||
369 | signal: "do-show-vbar"; | ||
370 | source: ""; | ||
371 | action: STATE_SET "default" 0.0; | ||
372 | transition: LINEAR 0.5; | ||
373 | target: "sb_vbar_clip"; | ||
374 | } | ||
375 | program { name: "sb_vbar_hide"; | ||
376 | signal: "do-hide-vbar"; | ||
377 | source: ""; | ||
378 | action: STATE_SET "hidden" 0.0; | ||
379 | transition: LINEAR 0.5; | ||
380 | target: "sb_vbar_clip"; | ||
381 | } | ||
382 | |||
383 | program { name: "hbar_show"; | ||
384 | signal: "elm,action,show,hbar"; | ||
385 | source: "elm"; | ||
386 | action: STATE_SET "default" 0.0; | ||
387 | target: "sb_hbar_clip_master"; | ||
388 | } | ||
389 | program { name: "hbar_hide"; | ||
390 | signal: "elm,action,hide,hbar"; | ||
391 | source: "elm"; | ||
392 | action: STATE_SET "hidden" 0.0; | ||
393 | target: "sb_hbar_clip_master"; | ||
394 | } | ||
395 | program { name: "hbar_show_always"; | ||
396 | signal: "elm,action,show_always,hbar"; | ||
397 | source: "elm"; | ||
398 | script { | ||
399 | new v; | ||
400 | v = get_int(sbvis_h); | ||
401 | v |= get_int(sbalways_h); | ||
402 | if (!v) { | ||
403 | set_int(sbalways_h, 1); | ||
404 | emit("do-show-hbar", ""); | ||
405 | set_int(sbvis_h, 1); | ||
406 | } | ||
407 | } | ||
408 | } | ||
409 | program { name: "hbar_show_notalways"; | ||
410 | signal: "elm,action,show_notalways,hbar"; | ||
411 | source: "elm"; | ||
412 | script { | ||
413 | new v; | ||
414 | v = get_int(sbalways_h); | ||
415 | if (v) { | ||
416 | set_int(sbalways_h, 0); | ||
417 | v = get_int(sbvis_h); | ||
418 | if (!v) { | ||
419 | emit("do-hide-hbar", ""); | ||
420 | set_int(sbvis_h, 0); | ||
421 | } | ||
422 | } | ||
423 | } | ||
424 | } | ||
425 | program { name: "sb_hbar_show"; | ||
426 | signal: "do-show-hbar"; | ||
427 | source: ""; | ||
428 | action: STATE_SET "default" 0.0; | ||
429 | transition: LINEAR 0.5; | ||
430 | target: "sb_hbar_clip"; | ||
431 | } | ||
432 | program { name: "sb_hbar_hide"; | ||
433 | signal: "do-hide-hbar"; | ||
434 | source: ""; | ||
435 | action: STATE_SET "hidden" 0.0; | ||
436 | transition: LINEAR 0.5; | ||
437 | target: "sb_hbar_clip"; | ||
438 | } | ||
439 | |||
440 | program { name: "scroll"; | ||
441 | signal: "elm,action,scroll"; | ||
442 | source: "elm"; | ||
443 | script { | ||
444 | new v; | ||
445 | v = get_int(sbvis_v); | ||
446 | v |= get_int(sbalways_v); | ||
447 | if (!v) { | ||
448 | emit("do-show-vbar", ""); | ||
449 | set_int(sbvis_v, 1); | ||
450 | } | ||
451 | v = get_int(sbvis_h); | ||
452 | v |= get_int(sbalways_h); | ||
453 | if (!v) { | ||
454 | emit("do-show-hbar", ""); | ||
455 | set_int(sbvis_h, 1); | ||
456 | } | ||
457 | v = get_int(sbvis_timer); | ||
458 | if (v > 0) cancel_timer(v); | ||
459 | v = timer(1.0, "timer0", 0); | ||
460 | set_int(sbvis_timer, v); | ||
461 | } | ||
462 | } | ||
463 | program { name: "go1"; | ||
464 | signal: "elm,state,busy,start"; | ||
465 | source: "elm"; | ||
466 | action: STATE_SET "active" 0.0; | ||
467 | transition: SINUSOIDAL 1.0; | ||
468 | target: "busy_clip"; | ||
469 | } | ||
470 | program { name: "go2"; | ||
471 | signal: "elm,state,busy,start"; | ||
472 | source: "elm"; | ||
473 | action: STATE_SET "default" 0.0; | ||
474 | transition: LINEAR 0.5; | ||
475 | target: "busy"; | ||
476 | after: "go2"; | ||
477 | } | ||
478 | program { name: "stop1"; | ||
479 | signal: "elm,state,busy,stop"; | ||
480 | source: "elm"; | ||
481 | action: STATE_SET "default" 0.0; | ||
482 | transition: SINUSOIDAL 1.0; | ||
483 | target: "busy_clip"; | ||
484 | after: "stop2"; | ||
485 | } | ||
486 | program { name: "stop2"; | ||
487 | action: ACTION_STOP; | ||
488 | target: "go2"; | ||
489 | } | ||
490 | } | ||
491 | } | ||
492 | |||
493 | /////////////////////////////////////////////////////////////////////////////// | ||
diff --git a/libraries/elementary/data/themes/widgets/player.edc b/libraries/elementary/data/themes/widgets/player.edc new file mode 100644 index 0000000..e6f1996 --- /dev/null +++ b/libraries/elementary/data/themes/widgets/player.edc | |||
@@ -0,0 +1,185 @@ | |||
1 | group { | ||
2 | name: "elm/player/base/default"; | ||
3 | min: 290 26; | ||
4 | |||
5 | parts { | ||
6 | part { | ||
7 | type: SWALLOW; | ||
8 | name: "media_player/slider"; | ||
9 | |||
10 | description { | ||
11 | rel2 { | ||
12 | relative: 1.0 0.0; | ||
13 | to_x: "media_player/forward"; | ||
14 | } | ||
15 | } | ||
16 | } | ||
17 | part { | ||
18 | type: SWALLOW; | ||
19 | name: "media_player/rewind"; | ||
20 | |||
21 | description { | ||
22 | rel1 { | ||
23 | to_y: "media_player/slider"; | ||
24 | offset: 42 0; | ||
25 | relative: 0.0 1.0; | ||
26 | } | ||
27 | rel2 { | ||
28 | relative: 0.0 1.0; | ||
29 | } | ||
30 | } | ||
31 | } | ||
32 | part { | ||
33 | type: SWALLOW; | ||
34 | name: "media_player/prev"; | ||
35 | |||
36 | description { | ||
37 | rel1 { | ||
38 | to: "media_player/rewind"; | ||
39 | relative: 1.0 0.0; | ||
40 | } | ||
41 | rel2 { | ||
42 | to: "media_player/rewind"; | ||
43 | relative: 2.0 1.0; | ||
44 | } | ||
45 | } | ||
46 | } | ||
47 | part { | ||
48 | type: SWALLOW; | ||
49 | name: "media_player/play"; | ||
50 | |||
51 | description { | ||
52 | rel1 { | ||
53 | to: "media_player/prev"; | ||
54 | relative: 1.0 0.0; | ||
55 | } | ||
56 | rel2 { | ||
57 | to: "media_player/prev"; | ||
58 | relative: 2.0 1.0; | ||
59 | } | ||
60 | } | ||
61 | description { | ||
62 | state: hidden 0.0; | ||
63 | inherit: default 0.0; | ||
64 | visible: 0; | ||
65 | } | ||
66 | } | ||
67 | part { | ||
68 | type: SWALLOW; | ||
69 | name: "media_player/pause"; | ||
70 | |||
71 | description { | ||
72 | rel1.to: "media_player/play"; | ||
73 | rel2.to: "media_player/play"; | ||
74 | } | ||
75 | description { | ||
76 | state: hidden 0.0; | ||
77 | inherit: default 0.0; | ||
78 | visible: 0; | ||
79 | } | ||
80 | } | ||
81 | part { | ||
82 | type: SWALLOW; | ||
83 | name: "media_player/info"; | ||
84 | description { | ||
85 | rel1 { | ||
86 | to: "media_player/play"; | ||
87 | relative: 1.0 0.0; | ||
88 | } | ||
89 | rel2 { | ||
90 | to: "media_player/play"; | ||
91 | relative: 2.0 1.0; | ||
92 | } | ||
93 | } | ||
94 | } | ||
95 | |||
96 | part { | ||
97 | type: SWALLOW; | ||
98 | name: "media_player/stop"; | ||
99 | description { | ||
100 | rel1 { | ||
101 | to: "media_player/info"; | ||
102 | relative: 3.0 0.0; | ||
103 | } | ||
104 | rel2 { | ||
105 | to: "media_player/info"; | ||
106 | relative: 4.0 1.0; | ||
107 | } | ||
108 | } | ||
109 | } | ||
110 | part { | ||
111 | type: SWALLOW; | ||
112 | name: "media_player/next"; | ||
113 | description { | ||
114 | rel1 { | ||
115 | to: "media_player/stop"; | ||
116 | relative: 1.0 0.0; | ||
117 | } | ||
118 | rel2 { | ||
119 | to: "media_player/stop"; | ||
120 | relative: 2.0 1.0; | ||
121 | } | ||
122 | } | ||
123 | } | ||
124 | part { | ||
125 | type: SWALLOW; | ||
126 | name: "media_player/forward"; | ||
127 | description { | ||
128 | rel1 { | ||
129 | to: "media_player/next"; | ||
130 | relative: 1.0 0.0; | ||
131 | } | ||
132 | rel2 { | ||
133 | to: "media_player/next"; | ||
134 | relative: 2.0 1.0; | ||
135 | } | ||
136 | } | ||
137 | } | ||
138 | } | ||
139 | programs { | ||
140 | program { | ||
141 | signal: "show"; | ||
142 | source: ""; | ||
143 | after: "pause/0"; | ||
144 | } | ||
145 | program { | ||
146 | signal: "elm,player,play"; | ||
147 | source: "elm"; | ||
148 | after: "play/0"; | ||
149 | } | ||
150 | program { | ||
151 | signal: "elm,player,pause"; | ||
152 | source: "elm"; | ||
153 | after: "pause/0"; | ||
154 | } | ||
155 | program { | ||
156 | name: "play/0"; | ||
157 | |||
158 | action: STATE_SET "hidden" 0.0; | ||
159 | target: "media_player/play"; | ||
160 | |||
161 | after: "play/1"; | ||
162 | } | ||
163 | program { | ||
164 | name: "play/1"; | ||
165 | |||
166 | action: STATE_SET "default" 0.0; | ||
167 | target: "media_player/pause"; | ||
168 | } | ||
169 | program { | ||
170 | name: "pause/0"; | ||
171 | |||
172 | action: STATE_SET "hidden" 0.0; | ||
173 | target: "media_player/pause"; | ||
174 | |||
175 | after: "pause/1"; | ||
176 | } | ||
177 | program { | ||
178 | name: "pause/1"; | ||
179 | |||
180 | action: STATE_SET "default" 0.0; | ||
181 | target: "media_player/play"; | ||
182 | } | ||
183 | } | ||
184 | } | ||
185 | |||
diff --git a/libraries/elementary/data/themes/widgets/pointer.edc b/libraries/elementary/data/themes/widgets/pointer.edc new file mode 100644 index 0000000..2e04370 --- /dev/null +++ b/libraries/elementary/data/themes/widgets/pointer.edc | |||
@@ -0,0 +1,190 @@ | |||
1 | group { | ||
2 | name: "elm/pointer/base/default"; | ||
3 | images { | ||
4 | image: "pointer.png" COMP; | ||
5 | image: "pointer_glow.png" COMP; | ||
6 | image: "pointer_glint_01.png" COMP; | ||
7 | image: "pointer_glint_02.png" COMP; | ||
8 | image: "pointer_glint_03.png" COMP; | ||
9 | image: "pointer_glint_04.png" COMP; | ||
10 | image: "pointer_glint_05.png" COMP; | ||
11 | image: "pointer_glint_06.png" COMP; | ||
12 | image: "pointer_glint_07.png" COMP; | ||
13 | image: "pointer_glint_08.png" COMP; | ||
14 | image: "pointer_glint_09.png" COMP; | ||
15 | image: "pointer_glint_10.png" COMP; | ||
16 | image: "pointer_glint_11.png" COMP; | ||
17 | image: "pointer_glint_12.png" COMP; | ||
18 | } | ||
19 | parts { | ||
20 | part { | ||
21 | name: "base"; | ||
22 | mouse_events: 0; | ||
23 | description { | ||
24 | state: "default" 0.0; | ||
25 | aspect: 0.71875 0.71875; | ||
26 | min: 23 32; | ||
27 | /* force a specific aspect ratio so | ||
28 | * when it gets scaled it wont squash | ||
29 | * or stretch */ | ||
30 | aspect_preference: BOTH; | ||
31 | /* both axes control aspect - thus it | ||
32 | * will be WITHIN the bounds the axes | ||
33 | * of thre part describe */ | ||
34 | image { | ||
35 | normal: "pointer.png"; | ||
36 | } | ||
37 | } | ||
38 | } | ||
39 | part { | ||
40 | name: "glow"; | ||
41 | /* this overlay is used to put a white glow | ||
42 | * around the pointer, so when the pointer is | ||
43 | * idle every now and again it will pulsate | ||
44 | * with this glow to just remind you where the | ||
45 | * pointer is (if you lose a black-ish | ||
46 | * pointer on a black background) */ | ||
47 | mouse_events: 0; | ||
48 | description { | ||
49 | state: "default" 0.0; | ||
50 | rel1.to: "base"; | ||
51 | rel2.to: "base"; | ||
52 | visible: 0; | ||
53 | color: 255 255 255 0; | ||
54 | image.normal: "pointer_glow.png"; | ||
55 | } | ||
56 | description { | ||
57 | state: "visible" 0.0; | ||
58 | inherit: "default" 0.0; | ||
59 | visible: 1; | ||
60 | color: 255 255 255 255; | ||
61 | } | ||
62 | } | ||
63 | part { | ||
64 | name: "glint"; | ||
65 | /* this overlay flips a series of small images | ||
66 | * over the pointer. they look like a white | ||
67 | * light/refelection when put over the pointer | ||
68 | * base image - and produce a "glinting" effect | ||
69 | * when played back fast */ | ||
70 | mouse_events: 0; | ||
71 | description { | ||
72 | state: "default" 0.0; | ||
73 | rel1.to: "base"; | ||
74 | rel2.to: "base"; | ||
75 | visible: 0; | ||
76 | image.normal: "pointer_glint_12.png"; | ||
77 | } | ||
78 | description { | ||
79 | state: "visible" 0.0; | ||
80 | inherit: "default" 0.0; | ||
81 | visible: 1; | ||
82 | image.tween: "pointer_glint_01.png"; | ||
83 | image.tween: "pointer_glint_02.png"; | ||
84 | image.tween: "pointer_glint_03.png"; | ||
85 | image.tween: "pointer_glint_04.png"; | ||
86 | image.tween: "pointer_glint_05.png"; | ||
87 | image.tween: "pointer_glint_06.png"; | ||
88 | image.tween: "pointer_glint_07.png"; | ||
89 | image.tween: "pointer_glint_08.png"; | ||
90 | image.tween: "pointer_glint_09.png"; | ||
91 | image.tween: "pointer_glint_10.png"; | ||
92 | image.tween: "pointer_glint_11.png"; | ||
93 | image.normal: "pointer_glint_12.png"; | ||
94 | } | ||
95 | } | ||
96 | part { | ||
97 | name: "elm.swallow.hotspot"; | ||
98 | /* this is a "fake" swallow part | ||
99 | * that is used by e to determine | ||
100 | * the pointer hotspot - or where | ||
101 | * the actual mouse events get | ||
102 | * reported from on the cursor */ | ||
103 | type: SWALLOW; | ||
104 | description { | ||
105 | state: "default" 0.0; | ||
106 | visible: 0; | ||
107 | rel1 { | ||
108 | /* the hotspot will scale with the cursor here */ | ||
109 | to: "base"; | ||
110 | relative: 0.27 0.125; | ||
111 | offset: 0 0; | ||
112 | } | ||
113 | rel2 { | ||
114 | to: "base"; | ||
115 | relative: 0.27 0.125; | ||
116 | offset: 0 0; | ||
117 | } | ||
118 | } | ||
119 | } | ||
120 | } | ||
121 | programs { | ||
122 | program { | ||
123 | name: "mouse_down"; | ||
124 | /* called every time elm detects a mouse | ||
125 | * press */ | ||
126 | signal: "elm,action,mouse,down"; | ||
127 | source: "elm"; | ||
128 | action: STATE_SET "visible" 0.0; | ||
129 | transition: LINEAR 0.3; | ||
130 | target: "glint"; | ||
131 | after: "mouse_down2"; | ||
132 | } | ||
133 | program { | ||
134 | name: "mouse_down2"; | ||
135 | action: STATE_SET "default" 0.0; | ||
136 | target: "glint"; | ||
137 | } | ||
138 | program { | ||
139 | name: "mouse_idle"; | ||
140 | /* called when e thinks the mouse went | ||
141 | * idle and isn't moving */ | ||
142 | signal: "elm,state,mouse,idle"; | ||
143 | source: "elm"; | ||
144 | action: STATE_SET "visible" 0.0; | ||
145 | in: 5.0 0.0; | ||
146 | transition: SINUSOIDAL 1.0; | ||
147 | target: "glow"; | ||
148 | after: "mouse_idle2"; | ||
149 | } | ||
150 | program { | ||
151 | name: "mouse_idle2"; | ||
152 | action: STATE_SET "default" 0.0; | ||
153 | transition: SINUSOIDAL 2.0; | ||
154 | target: "glow"; | ||
155 | after: "mouse_idle"; | ||
156 | } | ||
157 | program { | ||
158 | name: "mouse_active"; | ||
159 | /* called when e sees the mouse become | ||
160 | * active again */ | ||
161 | signal: "elm,state,mouse,active"; | ||
162 | source: "elm"; | ||
163 | action: STATE_SET "default" 0.0; | ||
164 | target: "glow"; | ||
165 | after: "mouse_active2"; | ||
166 | } | ||
167 | program { | ||
168 | name: "mouse_active2"; | ||
169 | action: ACTION_STOP; | ||
170 | target: "mouse_idle"; | ||
171 | target: "mouse_idle2"; | ||
172 | } | ||
173 | // when mouse button is released. not used here | ||
174 | // program { name: "xx"; | ||
175 | // signal: "e,action,mouse,up"; | ||
176 | // source: "e"; | ||
177 | // } | ||
178 | // when mouse button is moved. not used here | ||
179 | // program { name: "xx"; | ||
180 | // signal: "e,action,mouse,move"; | ||
181 | // source: "e"; | ||
182 | // } | ||
183 | // when mouse wheel is scrolled. not used here | ||
184 | // program { name: "xx"; | ||
185 | // signal: "e,action,mouse,wheel"; | ||
186 | // source: "e"; | ||
187 | // } | ||
188 | } | ||
189 | } | ||
190 | |||
diff --git a/libraries/elementary/data/themes/widgets/popup.edc b/libraries/elementary/data/themes/widgets/popup.edc new file mode 100644 index 0000000..b5229f7 --- /dev/null +++ b/libraries/elementary/data/themes/widgets/popup.edc | |||
@@ -0,0 +1,892 @@ | |||
1 | #define POPUP_ITEM_STATE_ENABLED 0 | ||
2 | #define POPUP_ITEM_STATE_DISABLED 1 | ||
3 | |||
4 | /*popup widget specific notify style style*/ | ||
5 | group { name: "elm/notify/block_events/popup"; | ||
6 | parts { | ||
7 | part { name: "block_events"; | ||
8 | type: RECT; | ||
9 | description { state: "default" 0.0; | ||
10 | color: 61 59 56 180; | ||
11 | } | ||
12 | } | ||
13 | } | ||
14 | programs { | ||
15 | program { name: "block_clicked"; | ||
16 | signal: "mouse,clicked,1"; | ||
17 | source: "block_events"; | ||
18 | action: SIGNAL_EMIT "elm,action,click" "elm"; | ||
19 | } | ||
20 | } | ||
21 | } | ||
22 | |||
23 | group { name: "elm/label/base/popup/default"; | ||
24 | styles | ||
25 | { | ||
26 | style { name: "popup_desc_style"; | ||
27 | base: "font=Sans font_size=10 align=center color=#000000 text_class=label"; | ||
28 | tag: "br" "\n"; | ||
29 | tag: "ps" "ps"; | ||
30 | tag: "whitecolor" "+ color=#ffffff"; | ||
31 | tag: "tab" "\t"; | ||
32 | } | ||
33 | } | ||
34 | parts { | ||
35 | part { name: "left_top_padding"; | ||
36 | type: RECT; | ||
37 | scale: 1; | ||
38 | description { state: "default" 0.0; | ||
39 | fixed: 1 1; | ||
40 | visible: 0; | ||
41 | align: 0.0 0.0; | ||
42 | min: 10 0; | ||
43 | rel2.relative: 0 0; | ||
44 | } | ||
45 | } | ||
46 | part { name: "right_bottom_padding"; | ||
47 | type: RECT; | ||
48 | scale: 1; | ||
49 | description { state: "default" 0.0; | ||
50 | fixed: 1 1; | ||
51 | visible: 0; | ||
52 | align: 1.0 1.0; | ||
53 | min: 10 0; | ||
54 | rel1.relative: 1 1; | ||
55 | } | ||
56 | } | ||
57 | part { name: "elm.text"; | ||
58 | type: TEXTBLOCK; | ||
59 | mouse_events: 0; | ||
60 | scale: 1; | ||
61 | description { state: "default" 0.0; | ||
62 | min: 380 0; | ||
63 | text { | ||
64 | style: "popup_desc_style"; | ||
65 | min: 0 1; | ||
66 | max: 0 1; | ||
67 | } | ||
68 | rel1 { | ||
69 | relative: 1.0 1.0; | ||
70 | to: left_top_padding; | ||
71 | } | ||
72 | rel2 { | ||
73 | relative: 0.0 0.0; | ||
74 | to: right_bottom_padding; | ||
75 | } | ||
76 | } | ||
77 | } | ||
78 | } | ||
79 | } | ||
80 | |||
81 | group { name: "elm/popup/base/default"; | ||
82 | styles { | ||
83 | style { name: "popup_title_style"; | ||
84 | base: "font=Sans font_size=15 align=center color=#ffffff wrap=mixed ellipsis=1.0"; | ||
85 | tag: "br" "\n"; | ||
86 | tag: "tab" "\t"; | ||
87 | } | ||
88 | } | ||
89 | parts { | ||
90 | part { name: "base"; | ||
91 | type: RECT; | ||
92 | scale : 1; | ||
93 | description { state: "default" 0.0; | ||
94 | min: 400 0; | ||
95 | color: 237 237 237 255; | ||
96 | align: 0.0 0.0; | ||
97 | } | ||
98 | } | ||
99 | part { name: "elm.bg.title"; | ||
100 | type: RECT; | ||
101 | scale : 1; | ||
102 | description { state: "default" 0.0; | ||
103 | min: 400 50; | ||
104 | fixed : 1 1; | ||
105 | align: 0.5 0.0; | ||
106 | visible: 0; | ||
107 | color: 172 172 172 255; | ||
108 | rel1 { | ||
109 | relative: 0.5 0.0; | ||
110 | to: "base"; | ||
111 | } | ||
112 | rel2 { | ||
113 | relative: 0.5 0.0; | ||
114 | to: "base"; | ||
115 | } | ||
116 | } | ||
117 | description { state: "visible" 0.0; | ||
118 | inherit: "default" 0.0; | ||
119 | visible: 1; | ||
120 | } | ||
121 | } | ||
122 | part { name: "left_pad"; | ||
123 | type: RECT; | ||
124 | scale: 1; | ||
125 | description { state: "default" 0.0; | ||
126 | min: 10 0; | ||
127 | max: 10 0; | ||
128 | fixed: 1 1; | ||
129 | align: 0.0 0.0; | ||
130 | visible: 0; | ||
131 | rel1.to: "elm.bg.title"; | ||
132 | } | ||
133 | } | ||
134 | part { name: "right_pad"; | ||
135 | type: RECT; | ||
136 | scale: 1; | ||
137 | description { state: "default" 0.0; | ||
138 | min: 10 0; | ||
139 | max: 10 0; | ||
140 | fixed: 1 1; | ||
141 | align: 1.0 1.0; | ||
142 | visible: 0; | ||
143 | rel2.to: "elm.bg.title"; | ||
144 | } | ||
145 | } | ||
146 | part { name: "elm.swallow.title.icon"; | ||
147 | type: SWALLOW; | ||
148 | scale: 1; | ||
149 | description { state: "default" 0.0; | ||
150 | min: 48 48; | ||
151 | max: 48 48; | ||
152 | fixed: 1 1; | ||
153 | align: 0.0 0.5; | ||
154 | rel1 { | ||
155 | to: "left_pad"; | ||
156 | relative: 1.0 0.0; | ||
157 | } | ||
158 | rel2 { | ||
159 | to: "right_pad"; | ||
160 | relative: 0.0 1.0; | ||
161 | } | ||
162 | visible: 0; | ||
163 | } | ||
164 | description { state: "visible" 0.0; | ||
165 | inherit: "default" 0.0; | ||
166 | visible: 1; | ||
167 | } | ||
168 | } | ||
169 | part { name: "elm.text.title"; | ||
170 | type: TEXTBLOCK; | ||
171 | scale:1; | ||
172 | description { state: "default" 0.0; | ||
173 | text { | ||
174 | style: "popup_title_style"; | ||
175 | min: 0 0; | ||
176 | max: 0 1; | ||
177 | } | ||
178 | color: 255 255 255 255; | ||
179 | visible:0; | ||
180 | rel1 { | ||
181 | relative: 1.0 0.0; | ||
182 | to: "left_pad"; | ||
183 | } | ||
184 | rel2 { | ||
185 | relative: 0.0 1.0; | ||
186 | to: "right_pad"; | ||
187 | } | ||
188 | } | ||
189 | description { state: "visible" 0.0; | ||
190 | inherit: "default" 0.0; | ||
191 | visible: 1; | ||
192 | } | ||
193 | } | ||
194 | part { name: "elm.swallow.content"; | ||
195 | type: SWALLOW; | ||
196 | scale : 1; | ||
197 | description { state: "default" 0.0; | ||
198 | min: 400 0; | ||
199 | fixed: 1 0; | ||
200 | rel1 { | ||
201 | relative: 0.5 0.0; | ||
202 | to: "base"; | ||
203 | } | ||
204 | rel2 { | ||
205 | relative: 0.5 1.0; | ||
206 | to: "base"; | ||
207 | } | ||
208 | } | ||
209 | description { state: "show_title_area" 0.0; | ||
210 | inherit: "default" 0.0; | ||
211 | rel1 { | ||
212 | relative: 0.5 1.0; | ||
213 | to: "elm.bg.title"; | ||
214 | } | ||
215 | } | ||
216 | description { state: "show_action_area" 0.0; | ||
217 | inherit: "default" 0.0; | ||
218 | rel2 { | ||
219 | relative: 0.5 0.0; | ||
220 | to: "elm.bg.action_area"; | ||
221 | } | ||
222 | } | ||
223 | description { state: "show_action_title_area" 0.0; | ||
224 | inherit: "default" 0.0; | ||
225 | rel1 { | ||
226 | relative: 0.5 1.0; | ||
227 | to: "elm.bg.title"; | ||
228 | } | ||
229 | rel2 { | ||
230 | relative: 0.5 0.0; | ||
231 | to: "elm.bg.action_area"; | ||
232 | } | ||
233 | } | ||
234 | } | ||
235 | part { name: "elm.bg.action_area"; | ||
236 | type: RECT; | ||
237 | scale : 1; | ||
238 | description { state: "default" 0.0; | ||
239 | min: 400 60; | ||
240 | fixed : 1 1; | ||
241 | align: 0.5 1.0; | ||
242 | visible: 0; | ||
243 | color: 183 183 183 255; | ||
244 | rel1 { | ||
245 | relative: 0.0 1.0; | ||
246 | to: "base"; | ||
247 | } | ||
248 | rel2.to: "base"; | ||
249 | } | ||
250 | description { state: "visible" 0.0; | ||
251 | inherit: "default" 0.0; | ||
252 | visible: 1; | ||
253 | } | ||
254 | } | ||
255 | part { name: "elm.swallow.action_area"; | ||
256 | type: SWALLOW; | ||
257 | scale : 1; | ||
258 | description { state: "default" 0.0; | ||
259 | align: 0.0 0.0; | ||
260 | rel1.to: "elm.bg.action_area"; | ||
261 | rel2.to: "elm.bg.action_area"; | ||
262 | } | ||
263 | } | ||
264 | } | ||
265 | programs { | ||
266 | program { name: show_title_icon; | ||
267 | signal: "elm,state,title,icon,visible"; | ||
268 | source: "elm"; | ||
269 | action: STATE_SET "visible" 0.0; | ||
270 | target: "elm.swallow.title.icon"; | ||
271 | } | ||
272 | program { name: hide_title_icon; | ||
273 | signal: "elm,state,title,icon,hidden"; | ||
274 | source: "elm"; | ||
275 | action: STATE_SET "default" 0.0; | ||
276 | target: "elm.swallow.title.icon"; | ||
277 | } | ||
278 | program { name: show_title_text; | ||
279 | signal: "elm,state,title,text,visible"; | ||
280 | source: "elm"; | ||
281 | action: STATE_SET "visible" 0.0; | ||
282 | target: "elm.text.title"; | ||
283 | } | ||
284 | program { name: hide_title_text; | ||
285 | signal: "elm,state,title,text,hidden"; | ||
286 | source: "elm"; | ||
287 | action: STATE_SET "default" 0.0; | ||
288 | target: "elm.text.title"; | ||
289 | } | ||
290 | program { name: show_title_area; | ||
291 | signal: "elm,state,title_area,visible"; | ||
292 | source: "elm"; | ||
293 | script { | ||
294 | new st[31]; | ||
295 | new Float:vl; | ||
296 | get_state(PART:"elm.swallow.action_area", st, 30, vl); | ||
297 | if (!strcmp(st, "visible")) | ||
298 | set_state(PART:"elm.swallow.content", "show_action_title_area", 0.0); | ||
299 | else | ||
300 | set_state(PART:"elm.swallow.content", "show_title_area", 0.0); | ||
301 | set_state(PART:"elm.bg.title", "visible", 0.0); | ||
302 | } | ||
303 | } | ||
304 | program { name: hide_title_area; | ||
305 | signal: "elm,state,title_area,hidden"; | ||
306 | source: "elm"; | ||
307 | action: STATE_SET "default" 0.0; | ||
308 | script { | ||
309 | new st[31]; | ||
310 | new Float:vl; | ||
311 | get_state(PART:"elm.swallow.action_area", st, 30, vl); | ||
312 | if (!strcmp(st, "visible")) | ||
313 | set_state(PART:"elm.swallow.content", "show_action_area", 0.0); | ||
314 | else | ||
315 | set_state(PART:"elm.swallow.content", "default", 0.0); | ||
316 | set_state(PART:"elm.bg.title", "default", 0.0); | ||
317 | } | ||
318 | } | ||
319 | program { name: show_action_area; | ||
320 | signal: "elm,state,action_area,visible"; | ||
321 | source: "elm"; | ||
322 | script { | ||
323 | new st[31]; | ||
324 | new Float:vl; | ||
325 | get_state(PART:"elm.bg.title", st, 30, vl); | ||
326 | if (!strcmp(st, "visible")) | ||
327 | set_state(PART:"elm.swallow.content", "show_action_title_area", 0.0); | ||
328 | else | ||
329 | set_state(PART:"elm.swallow.content", "show_action_area", 0.0); | ||
330 | set_state(PART:"elm.bg.action_area", "visible", 0.0); | ||
331 | } | ||
332 | } | ||
333 | program { name: hide_action_area; | ||
334 | signal: "elm,state,action_area,hidden"; | ||
335 | source: "elm"; | ||
336 | action: STATE_SET "default" 0.0; | ||
337 | script { | ||
338 | new st[31]; | ||
339 | new Float:vl; | ||
340 | get_state(PART:"elm.bg.title", st, 30, vl); | ||
341 | if (!strcmp(st, "visible")) | ||
342 | set_state(PART:"elm.swallow.content", "show_title_area", 0.0); | ||
343 | else | ||
344 | set_state(PART:"elm.swallow.content", "default", 0.0); | ||
345 | set_state(PART:"elm.bg.action_area", "default", 0.0); | ||
346 | } | ||
347 | } | ||
348 | } /* end of programs */ | ||
349 | } | ||
350 | |||
351 | group { name: "elm/popup/content/default"; | ||
352 | parts{ | ||
353 | part { name: "pad_t"; | ||
354 | type: RECT; | ||
355 | scale : 1; | ||
356 | mouse_events: 0; | ||
357 | description { state: "default" 0.0; | ||
358 | align: 0.5 0.0; | ||
359 | min: 0 14; | ||
360 | fixed: 0 1; | ||
361 | visible: 0; | ||
362 | rel1 { | ||
363 | relative: 1.0 0.0; | ||
364 | to_x: "pad_l"; | ||
365 | } | ||
366 | rel2 { | ||
367 | relative: 0.0 0.0; | ||
368 | to_x: "pad_r"; | ||
369 | } | ||
370 | } | ||
371 | } | ||
372 | part { name: "pad_l"; | ||
373 | type: RECT; | ||
374 | scale: 1; | ||
375 | description { state: "default" 0.0; | ||
376 | min : 10 0; | ||
377 | fixed: 1 0; | ||
378 | rel2.relative: 0.0 1.0; | ||
379 | visible: 0; | ||
380 | align: 0.0 0.0; | ||
381 | } | ||
382 | } | ||
383 | part { name: "pad_r"; | ||
384 | type: RECT; | ||
385 | scale: 1; | ||
386 | description { state: "default" 0.0; | ||
387 | min : 10 0; | ||
388 | fixed: 1 0; | ||
389 | rel1.relative: 1.0 0.0; | ||
390 | visible: 0; | ||
391 | align: 1.0 0.0; | ||
392 | } | ||
393 | } | ||
394 | part{ name:"elm.swallow.content"; | ||
395 | type: SWALLOW; | ||
396 | scale : 1; | ||
397 | description { state: "default" 0.0; | ||
398 | min: 380 0; | ||
399 | fixed: 1 0; | ||
400 | rel1 { | ||
401 | relative: 0.5 1.0; | ||
402 | to: "pad_t"; | ||
403 | } | ||
404 | rel2 { | ||
405 | relative: 0.5 0.0; | ||
406 | to: "pad_b"; | ||
407 | } | ||
408 | } | ||
409 | } | ||
410 | part { name: "pad_b"; | ||
411 | type: RECT; | ||
412 | scale : 1; | ||
413 | mouse_events: 0; | ||
414 | description { state: "default" 0.0; | ||
415 | align: 0.5 1.0; | ||
416 | min: 0 14; | ||
417 | fixed: 0 1; | ||
418 | visible: 0; | ||
419 | rel1 { | ||
420 | relative: 0.0 1.0; | ||
421 | to_x: "pad_l"; | ||
422 | } | ||
423 | rel2.to_x: "pad_r"; | ||
424 | } | ||
425 | } | ||
426 | } | ||
427 | } | ||
428 | |||
429 | group { name: "elm/popup/item/default"; | ||
430 | script { | ||
431 | public item_state = POPUP_ITEM_STATE_ENABLED; | ||
432 | } | ||
433 | parts { | ||
434 | part { name: "event_blocker"; | ||
435 | description { state: "default" 0.0; | ||
436 | } | ||
437 | } | ||
438 | part { name: "bg"; | ||
439 | mouse_events: 0; | ||
440 | type: RECT; | ||
441 | description { state: "default" 0.0; | ||
442 | color: 240 240 240 255; | ||
443 | min: 0 71; | ||
444 | align: 0.5 0.0; | ||
445 | } | ||
446 | description { state: "clicked" 0.0; | ||
447 | color: 190 170 150 255; | ||
448 | } | ||
449 | } | ||
450 | part { name: "padding_left_top"; | ||
451 | type: RECT; | ||
452 | scale: 1; | ||
453 | mouse_events: 0; | ||
454 | description { state: "default" 0.0; | ||
455 | align: 0.0 0.0; | ||
456 | rel2.relative: 0.0 0.0; | ||
457 | min: 10 10; | ||
458 | fixed: 1 1; | ||
459 | visible: 0; | ||
460 | } | ||
461 | } | ||
462 | part { name: "padding_right_bottom"; | ||
463 | type: RECT; | ||
464 | scale: 1; | ||
465 | mouse_events: 0; | ||
466 | description { state: "default" 0.0; | ||
467 | align: 1.0 1.0; | ||
468 | rel1.relative: 1.0 1.0; | ||
469 | min: 10 10; | ||
470 | fixed: 1 1; | ||
471 | visible: 0; | ||
472 | } | ||
473 | } | ||
474 | part { name: "separator"; | ||
475 | mouse_events: 0; | ||
476 | type: RECT; | ||
477 | scale: 1; | ||
478 | description { state: "dafault" 0.0; | ||
479 | color: 180 180 180 255; | ||
480 | align: 0.5 1.0; | ||
481 | min: 0 1; | ||
482 | max: 999999 1; | ||
483 | } | ||
484 | } | ||
485 | part { name: "padding_icon_text"; | ||
486 | type: RECT; | ||
487 | scale: 1; | ||
488 | mouse_events: 0; | ||
489 | description { state: "default" 0.0; //when only icon or no icon is there | ||
490 | align: 0.0 0.0; | ||
491 | rel1 { | ||
492 | relative: 1.0 0.0; | ||
493 | to: "elm.swallow.content"; | ||
494 | } | ||
495 | rel2.to: "elm.swallow.content"; | ||
496 | fixed: 1 0; | ||
497 | min: 0 0; | ||
498 | visible: 0; | ||
499 | } | ||
500 | description { state: "visible" 0.0; //when icon is visible | ||
501 | inherit: "default" 0.0; | ||
502 | min: 10 0; | ||
503 | } | ||
504 | description { state: "icononly" 0.0; | ||
505 | inherit: "default" 0.0; | ||
506 | } | ||
507 | } | ||
508 | part { name: "elm.swallow.content"; | ||
509 | type: SWALLOW; | ||
510 | scale: 1; | ||
511 | description { state: "default" 0.0; | ||
512 | visible: 0; | ||
513 | align: 0.0 0.5; | ||
514 | rel1 { | ||
515 | relative: 1.0 1.0; | ||
516 | to: "padding_left_top"; | ||
517 | } | ||
518 | rel2 { | ||
519 | relative: 1.0 0.0; | ||
520 | to_x: "padding_left_top"; | ||
521 | to_y: "padding_right_bottom"; | ||
522 | } | ||
523 | fixed: 1 0; | ||
524 | } | ||
525 | description { state: "visible" 0.0; | ||
526 | fixed: 1 0; | ||
527 | min: 40 40; | ||
528 | max: 40 40; | ||
529 | align: 0.0 0.5; | ||
530 | rel1 { | ||
531 | relative: 1.0 1.0; | ||
532 | to: "padding_left_top"; | ||
533 | } | ||
534 | rel2 { | ||
535 | relative: 1.0 0.0; | ||
536 | to_x: "padding_left_top"; | ||
537 | to_y: "padding_right_bottom"; | ||
538 | } | ||
539 | aspect: 1.0 1.0; | ||
540 | aspect_preference: VERTICAL; | ||
541 | } | ||
542 | description { state: "icononly" 0.0; | ||
543 | min: 40 40; | ||
544 | max: 40 40; | ||
545 | rel1 { | ||
546 | relative: 1.0 1.0; | ||
547 | to: "padding_left_top"; | ||
548 | } | ||
549 | rel2 { | ||
550 | relative: 0.0 0.0; | ||
551 | to: "padding_right_bottom"; | ||
552 | } | ||
553 | aspect: 1.0 1.0; | ||
554 | aspect_preference: VERTICAL; | ||
555 | } | ||
556 | } | ||
557 | part { name: "elm.text"; | ||
558 | type: TEXT; | ||
559 | mouse_events: 0; | ||
560 | scale: 1; | ||
561 | description { state: "default" 0.0; | ||
562 | visible: 0; | ||
563 | rel1 { | ||
564 | relative: 1.0 1.0; | ||
565 | to_x: "padding_icon_text"; | ||
566 | to_y: "padding_left_top"; | ||
567 | } | ||
568 | rel2 { | ||
569 | relative: 0.0 0.0; | ||
570 | to:"padding_right_bottom"; | ||
571 | } | ||
572 | align: 0.0 0.5; | ||
573 | color: 0 0 0 255; | ||
574 | text { | ||
575 | font: "Sans:style=Bold"; | ||
576 | size: 20; | ||
577 | min: 0 0; | ||
578 | align: 0.0 0.5; | ||
579 | } | ||
580 | } | ||
581 | description { state: "visible" 0.0; | ||
582 | inherit: "default" 0.0; | ||
583 | visible: 1; | ||
584 | min: 90 40; | ||
585 | } | ||
586 | description { state: "clicked" 0.0; | ||
587 | inherit: "default" 0.0; | ||
588 | visible: 1; | ||
589 | min: 0 0; | ||
590 | color: 255 255 255 255; | ||
591 | } | ||
592 | description { state: "disabled" 0.0; | ||
593 | inherit: "default" 0.0; | ||
594 | color: 128 128 128 255; | ||
595 | } | ||
596 | description { state: "disabled_visible" 0.0; | ||
597 | inherit: "default" 0.0; | ||
598 | color: 128 128 128 255; | ||
599 | visible: 1; | ||
600 | min: 90 40; | ||
601 | } | ||
602 | } | ||
603 | part { name: "over1"; | ||
604 | repeat_events: 1; | ||
605 | ignore_flags: ON_HOLD; | ||
606 | description { state: "default" 0.0; | ||
607 | } | ||
608 | } | ||
609 | part { name: "over2"; | ||
610 | repeat_events: 1; | ||
611 | description { state: "default" 0.0; | ||
612 | } | ||
613 | } | ||
614 | part { name: "disclip"; | ||
615 | type: RECT; | ||
616 | description { state: "default" 0.0; | ||
617 | visible: 0; | ||
618 | } | ||
619 | description { state: "disabled" 0.0; | ||
620 | color: 87 87 87 128; | ||
621 | } | ||
622 | } | ||
623 | } | ||
624 | programs { | ||
625 | program { name: "item_unclick"; | ||
626 | signal: "mouse,up,1"; | ||
627 | source: "over1"; | ||
628 | action: SIGNAL_EMIT "elm,action,click" ""; | ||
629 | } | ||
630 | program { name: "disable"; | ||
631 | signal: "elm,state,item,disabled"; | ||
632 | source: "elm"; | ||
633 | action: STATE_SET "disabled" 0.0; | ||
634 | target: "disclip"; | ||
635 | after: "disable_text"; | ||
636 | } | ||
637 | program { name: "enable"; | ||
638 | signal: "elm,state,item,enabled"; | ||
639 | source: "elm"; | ||
640 | action: STATE_SET "default" 0.0; | ||
641 | target: "disclip"; | ||
642 | after: "enable_text"; | ||
643 | } | ||
644 | program { name: "item_click2"; | ||
645 | signal: "mouse,down,1"; | ||
646 | source: "over2"; | ||
647 | script { | ||
648 | new st[31]; | ||
649 | new Float:vl; | ||
650 | get_state(PART:"elm.text", st, 30, vl); | ||
651 | if (!strcmp(st, "visible")) | ||
652 | set_state(PART:"elm.text", "clicked", 0.0); | ||
653 | set_state(PART:"bg", "clicked", 0.0); | ||
654 | } | ||
655 | } | ||
656 | program { name: "item_unclick2"; | ||
657 | signal: "mouse,up,1"; | ||
658 | source: "over2"; | ||
659 | script { | ||
660 | new st[31]; | ||
661 | new Float:vl; | ||
662 | get_state(PART:"elm.text", st, 30, vl); | ||
663 | if (!strcmp(st, "clicked")) | ||
664 | set_state(PART:"elm.text", "visible", 0.0); | ||
665 | set_state(PART:"bg", "default", 0.0); | ||
666 | } | ||
667 | } | ||
668 | program { name: "disable_text"; | ||
669 | script { | ||
670 | new st[31]; | ||
671 | new Float:vl; | ||
672 | get_state(PART:"elm.text", st, 30, vl); | ||
673 | if (!strcmp(st, "visible")) | ||
674 | set_state(PART:"elm.text", "disabled_visible", 0.0); | ||
675 | else | ||
676 | set_state(PART:"elm.text", "disabled", 0.0); | ||
677 | set_int(item_state, POPUP_ITEM_STATE_DISABLED); | ||
678 | } | ||
679 | } | ||
680 | program { name: "enable_text"; | ||
681 | script { | ||
682 | new st[31]; | ||
683 | new Float:vl; | ||
684 | get_state(PART:"elm.text", st, 30, vl); | ||
685 | if (!strcmp(st, "disabled_visible")) | ||
686 | set_state(PART:"elm.text", "visible", 0.0); | ||
687 | else | ||
688 | set_state(PART:"elm.text", "default", 0.0); | ||
689 | set_int(item_state, POPUP_ITEM_STATE_ENABLED); | ||
690 | } | ||
691 | } | ||
692 | program { name: "text_show"; | ||
693 | signal: "elm,state,item,text,visible"; | ||
694 | source: "elm"; | ||
695 | script { | ||
696 | new st[31]; | ||
697 | new Float:vl; | ||
698 | get_state(PART:"elm.swallow.content", st, 30, vl); | ||
699 | if (!strcmp(st, "icononly")) { | ||
700 | set_state(PART:"elm.swallow.content", "visible", 0.0); | ||
701 | set_state(PART:"padding_icon_text", "visible", 0.0); | ||
702 | } | ||
703 | if(get_int(item_state) != POPUP_ITEM_STATE_DISABLED) | ||
704 | set_state(PART:"elm.text", "visible", 0.0); | ||
705 | else | ||
706 | set_state(PART:"elm.text", "disabled_visible", 0.0); | ||
707 | } | ||
708 | } | ||
709 | program { name: "text_hide"; | ||
710 | signal: "elm,state,item,text,hidden"; | ||
711 | source: "elm"; | ||
712 | script { | ||
713 | new st[31]; | ||
714 | new Float:vl; | ||
715 | get_state(PART:"elm.swallow.content", st, 30, vl); | ||
716 | if (!strcmp(st, "visible")) { | ||
717 | set_state(PART:"elm.swallow.content", "icononly", 0.0); | ||
718 | set_state(PART:"padding_icon_text", "icononly", 0.0); | ||
719 | } | ||
720 | set_state(PART:"elm.text", "default", 0.0); | ||
721 | } | ||
722 | } | ||
723 | program { name: "icon_show"; | ||
724 | signal: "elm,state,item,icon,visible"; | ||
725 | source: "elm"; | ||
726 | script { | ||
727 | new st[31]; | ||
728 | new Float:vl; | ||
729 | get_state(PART:"elm.text", st, 30, vl); | ||
730 | if (!strcmp(st, "visible")) { | ||
731 | set_state(PART:"elm.swallow.content", "visible", 0.0); | ||
732 | set_state(PART:"padding_icon_text", "visible", 0.0); | ||
733 | } | ||
734 | else { | ||
735 | set_state(PART:"elm.swallow.content", "icononly", 0.0); | ||
736 | set_state(PART:"padding_icon_text", "icononly", 0.0); | ||
737 | } | ||
738 | } | ||
739 | } | ||
740 | program { name: "icon_hide"; | ||
741 | signal: "elm,state,item,icon,hidden"; | ||
742 | source: "elm"; | ||
743 | action: STATE_SET "default" 0.0; | ||
744 | target: "elm.swallow.content"; | ||
745 | } | ||
746 | } | ||
747 | } | ||
748 | |||
749 | group { name: "elm/popup/buttons1/default"; | ||
750 | data.item: "action_area_height" "140"; | ||
751 | parts{ | ||
752 | part{ name:"actionbtn1"; | ||
753 | type: SWALLOW; | ||
754 | scale : 1; | ||
755 | description { state: "default" 0.0; | ||
756 | min: 252 46; | ||
757 | max: 252 46; | ||
758 | fixed : 1 1; | ||
759 | rel1.relative: 0.5 0.0; | ||
760 | rel2.relative: 0.5 1.0; | ||
761 | } | ||
762 | } | ||
763 | } | ||
764 | } | ||
765 | |||
766 | group { name: "elm/popup/buttons2/default"; | ||
767 | data.item: "action_area_height" "140"; | ||
768 | parts{ | ||
769 | part{ name:"actionbtn1"; | ||
770 | type: SWALLOW; | ||
771 | scale : 1; | ||
772 | description { state: "default" 0.0; | ||
773 | min: 172 46; | ||
774 | max: 172 46; | ||
775 | fixed : 1 1; | ||
776 | align: 1.0 0.5; | ||
777 | rel1.to: "elm.rect.pad_btn"; | ||
778 | rel2 { | ||
779 | relative: 0.0 1.0; | ||
780 | to: "elm.rect.pad_btn"; | ||
781 | } | ||
782 | } | ||
783 | } | ||
784 | part { name: "elm.rect.pad_btn"; | ||
785 | type: RECT; | ||
786 | scale : 1; | ||
787 | description { state: "default" 0.0; | ||
788 | min: 6 46; | ||
789 | max: 6 46; | ||
790 | fixed : 1 1; | ||
791 | visible: 0; | ||
792 | rel1.relative: 0.5 0.0; | ||
793 | rel2.relative: 0.5 1.0; | ||
794 | } | ||
795 | } | ||
796 | part{ name:"actionbtn2"; | ||
797 | type: SWALLOW; | ||
798 | scale : 1; | ||
799 | description { state: "default" 0.0; | ||
800 | min: 172 46; | ||
801 | max: 172 46; | ||
802 | fixed : 1 1; | ||
803 | align: 0.0 0.5; | ||
804 | rel1 { | ||
805 | relative: 1.0 0.0; | ||
806 | to: "elm.rect.pad_btn"; | ||
807 | } | ||
808 | rel2.to: "elm.rect.pad_btn"; | ||
809 | } | ||
810 | } | ||
811 | } | ||
812 | } | ||
813 | |||
814 | group { name: "elm/popup/buttons3/default"; | ||
815 | data.item: "action_area_height" "140"; | ||
816 | parts{ | ||
817 | part{ name:"actionbtn1"; | ||
818 | type: SWALLOW; | ||
819 | scale : 1; | ||
820 | description { state: "default" 0.0; | ||
821 | min: 120 46; | ||
822 | max: 120 46; | ||
823 | fixed : 1 1; | ||
824 | align: 1.0 0.5; | ||
825 | rel1.to: "elm.rect.pad_btn"; | ||
826 | rel2 { | ||
827 | relative: 0.0 1.0; | ||
828 | to: "elm.rect.pad_btn"; | ||
829 | } | ||
830 | } | ||
831 | } | ||
832 | part { name: "elm.rect.pad_btn"; | ||
833 | type: RECT; | ||
834 | scale : 1; | ||
835 | description { state: "default" 0.0; | ||
836 | min: 6 46; | ||
837 | max: 6 46; | ||
838 | fixed : 1 1; | ||
839 | visible: 0; | ||
840 | rel1.to: "actionbtn2"; | ||
841 | rel2 { | ||
842 | relative: 0.0 1.0; | ||
843 | to: "actionbtn2"; | ||
844 | } | ||
845 | } | ||
846 | } | ||
847 | part{ name:"actionbtn2"; | ||
848 | type: SWALLOW; | ||
849 | scale : 1; | ||
850 | description { state: "default" 0.0; | ||
851 | min: 120 46; | ||
852 | max: 120 46; | ||
853 | fixed : 1 1; | ||
854 | rel1.relative: 0.5 0.0; | ||
855 | rel2.relative: 0.5 1.0; | ||
856 | } | ||
857 | } | ||
858 | part { name: "elm.rect.pad_btn2"; | ||
859 | type: RECT; | ||
860 | scale : 1; | ||
861 | description { state: "default" 0.0; | ||
862 | min: 6 46; | ||
863 | max: 6 46; | ||
864 | fixed : 1 1; | ||
865 | visible: 0; | ||
866 | rel1 { | ||
867 | relative: 1.0 0.0; | ||
868 | to: "actionbtn2"; | ||
869 | } | ||
870 | rel2.to: "actionbtn2"; | ||
871 | } | ||
872 | } | ||
873 | part{ name:"actionbtn3"; | ||
874 | type: SWALLOW; | ||
875 | scale : 1; | ||
876 | description { state: "default" 0.0; | ||
877 | min: 120 46; | ||
878 | max: 120 46; | ||
879 | fixed : 1 1; | ||
880 | align: 0.0 0.5; | ||
881 | rel1 { | ||
882 | relative: 1.0 0.0; | ||
883 | to: "elm.rect.pad_btn2"; | ||
884 | } | ||
885 | rel2.to: "elm.rect.pad_btn2"; | ||
886 | } | ||
887 | } | ||
888 | } | ||
889 | } | ||
890 | |||
891 | #undef POPUP_ITEM_STATE_ENABLED | ||
892 | #undef POPUP_ITEM_STATE_DISABLED | ||
diff --git a/libraries/elementary/data/themes/widgets/progressbar.edc b/libraries/elementary/data/themes/widgets/progressbar.edc new file mode 100644 index 0000000..1f88ef2 --- /dev/null +++ b/libraries/elementary/data/themes/widgets/progressbar.edc | |||
@@ -0,0 +1,850 @@ | |||
1 | /////////////////////////////////////////////////////////////////////////////// | ||
2 | // FIXME: this doesn't look too hot. need to fix it up | ||
3 | group { name: "elm/progressbar/horizontal/default"; | ||
4 | images { | ||
5 | image: "shelf_inset.png" COMP; | ||
6 | image: "bt_sm_base2.png" COMP; | ||
7 | image: "bt_sm_hilight.png" COMP; | ||
8 | image: "bt_sm_shine.png" COMP; | ||
9 | } | ||
10 | parts { | ||
11 | part { name: "elm.background.progressbar"; | ||
12 | type: RECT; | ||
13 | mouse_events: 0; | ||
14 | description { | ||
15 | state: "default" 0.0; | ||
16 | rel1 { | ||
17 | relative: 0.0 0.0; | ||
18 | offset: 0 0; | ||
19 | } | ||
20 | rel2 { | ||
21 | relative: 1.0 1.0; | ||
22 | } | ||
23 | } | ||
24 | } | ||
25 | part { name: "elm.swallow.bar"; | ||
26 | mouse_events: 0; | ||
27 | type: SWALLOW; | ||
28 | description { | ||
29 | min: 48 28; | ||
30 | max: 99999 28; | ||
31 | state: "default" 0.0; | ||
32 | rel1 { | ||
33 | to_x: "elm.text"; | ||
34 | to_y: "elm.background.progressbar"; | ||
35 | relative: 1.0 0.0; | ||
36 | } | ||
37 | rel2 { | ||
38 | to: "elm.background.progressbar"; | ||
39 | relative: 1.0 1.0; | ||
40 | } | ||
41 | } | ||
42 | } | ||
43 | part { name: "elm.swallow.content"; | ||
44 | type: SWALLOW; | ||
45 | description { state: "default" 0.0; | ||
46 | visible: 0; | ||
47 | align: 0.0 0.5; | ||
48 | rel1 { | ||
49 | offset: 4 0; | ||
50 | to_y: "elm.background.progressbar"; | ||
51 | } | ||
52 | rel2 { | ||
53 | offset: 3 -1; | ||
54 | relative: 0.0 1.0; | ||
55 | to_y: "elm.background.progressbar"; | ||
56 | } | ||
57 | } | ||
58 | description { state: "visible" 0.0; | ||
59 | inherit: "default" 0.0; | ||
60 | visible: 1; | ||
61 | aspect: 1.0 1.0; | ||
62 | aspect_preference: VERTICAL; | ||
63 | rel2.offset: 4 -1; | ||
64 | } | ||
65 | } | ||
66 | part { name: "elm.text"; | ||
67 | type: TEXT; | ||
68 | mouse_events: 0; | ||
69 | scale: 1; | ||
70 | description { state: "default" 0.0; | ||
71 | visible: 0; | ||
72 | fixed: 1 1; | ||
73 | align: 0.0 0.5; | ||
74 | rel1.to_x: "elm.swallow.content"; | ||
75 | rel1.relative: 1.0 0.0; | ||
76 | rel1.offset: -1 4; | ||
77 | rel2.to_x: "elm.swallow.content"; | ||
78 | rel2.relative: 1.0 1.0; | ||
79 | rel2.offset: -1 -5; | ||
80 | color: 0 0 0 255; | ||
81 | text { | ||
82 | font: "Sans,Edje-Vera"; | ||
83 | size: 10; | ||
84 | min: 0 0; | ||
85 | align: 0.0 0.5; | ||
86 | } | ||
87 | } | ||
88 | description { state: "visible" 0.0; | ||
89 | inherit: "default" 0.0; | ||
90 | visible: 1; | ||
91 | text.min: 1 1; | ||
92 | rel1.offset: 0 4; | ||
93 | rel2.offset: 0 -5; | ||
94 | } | ||
95 | } | ||
96 | |||
97 | part { name: "background"; | ||
98 | mouse_events: 0; | ||
99 | clip_to: "elm.background.progressbar"; | ||
100 | description { | ||
101 | state: "default" 0.0; | ||
102 | rel1 { | ||
103 | to: "elm.swallow.bar"; | ||
104 | relative: 0.0 0.0; | ||
105 | } | ||
106 | rel2 { | ||
107 | to: "elm.swallow.bar"; | ||
108 | relative: 1.0 1.0; | ||
109 | offset: -1 -1; | ||
110 | } | ||
111 | image { | ||
112 | normal: "shelf_inset.png"; | ||
113 | border: 7 7 7 7; | ||
114 | } | ||
115 | } | ||
116 | } | ||
117 | |||
118 | part { name: "elm.text.status"; | ||
119 | type: TEXT; | ||
120 | mouse_events: 0; | ||
121 | description { state: "default" 0.0; | ||
122 | fixed: 1 1; | ||
123 | visible: 1; | ||
124 | rel1 { | ||
125 | to: "background"; | ||
126 | relative: 0.5 0.5; | ||
127 | } | ||
128 | rel2 { | ||
129 | to: "background"; | ||
130 | relative: 0.5 0.5; | ||
131 | } | ||
132 | text { | ||
133 | font: "Sans:style=Bold,Edje-Vera-Bold"; | ||
134 | size: 10; | ||
135 | min: 1 1; | ||
136 | align: 0.5 0.0; | ||
137 | } | ||
138 | color: 0 0 0 255; | ||
139 | } | ||
140 | description { state: "hidden" 0.0; | ||
141 | inherit: "default" 0.0; | ||
142 | visible: 0; | ||
143 | text.min: 0 0; | ||
144 | } | ||
145 | } | ||
146 | |||
147 | part { name: "elm.progress.progressbar"; | ||
148 | mouse_events: 0; | ||
149 | clip_to: "elm.background.progressbar"; | ||
150 | description { | ||
151 | state: "default" 0.0; | ||
152 | min: 14 28; | ||
153 | fixed: 1 1; | ||
154 | rel1 { | ||
155 | to: "elm.swallow.bar"; | ||
156 | relative: 0.0 0.0; | ||
157 | } | ||
158 | rel2 { | ||
159 | to_y: "elm.swallow.bar"; | ||
160 | to_x: "elm.cur.progressbar"; | ||
161 | offset: -1 -1; | ||
162 | } | ||
163 | image { | ||
164 | normal: "bt_sm_base2.png"; | ||
165 | border: 6 6 6 6; | ||
166 | } | ||
167 | } | ||
168 | description { | ||
169 | state: "invert" 0.0; | ||
170 | inherit: "default" 0.0; | ||
171 | rel1 { | ||
172 | to_y: "elm.swallow.bar"; | ||
173 | to_x: "elm.cur.progressbar"; | ||
174 | } | ||
175 | rel2 { | ||
176 | to: "elm.swallow.bar"; | ||
177 | relative: 1.0 1.0; | ||
178 | } | ||
179 | } | ||
180 | description { | ||
181 | state: "state_begin" 0.0; | ||
182 | inherit: "default" 0.0; | ||
183 | rel1 { | ||
184 | to: "elm.swallow.bar"; | ||
185 | relative: 0.0 0.0; | ||
186 | } | ||
187 | rel2 { | ||
188 | to: "elm.swallow.bar"; | ||
189 | relative: 0.1 1.0; | ||
190 | } | ||
191 | } | ||
192 | description { | ||
193 | state: "state_end" 0.0; | ||
194 | inherit: "default" 0.0; | ||
195 | rel1 { | ||
196 | to: "elm.swallow.bar"; | ||
197 | relative: 0.9 0.0; | ||
198 | } | ||
199 | rel2 { | ||
200 | to: "elm.swallow.bar"; | ||
201 | relative: 1.0 1.0; | ||
202 | } | ||
203 | } | ||
204 | } | ||
205 | part { name: "text-bar"; | ||
206 | type: TEXT; | ||
207 | mouse_events: 0; | ||
208 | clip_to: "progress-rect"; | ||
209 | effect: SOFT_SHADOW; | ||
210 | scale: 1; | ||
211 | description { state: "default" 0.0; | ||
212 | align: 0.0 0.0; | ||
213 | fixed: 1 1; | ||
214 | visible: 1; | ||
215 | rel1.to: "elm.text.status"; | ||
216 | rel1.offset: -1 -1; | ||
217 | rel2.to: "elm.text.status"; | ||
218 | text { | ||
219 | text_source: "elm.text.status"; | ||
220 | font: "Sans:style=Bold,Edje-Vera-Bold"; | ||
221 | size: 10; | ||
222 | min: 1 1; | ||
223 | align: 0.0 0.0; | ||
224 | } | ||
225 | color: 224 224 224 255; | ||
226 | color3: 0 0 0 64; | ||
227 | } | ||
228 | description { state: "hidden" 0.0; | ||
229 | inherit: "default" 0.0; | ||
230 | visible: 0; | ||
231 | text.min: 0 0; | ||
232 | } | ||
233 | } | ||
234 | |||
235 | part { name: "over1"; | ||
236 | mouse_events: 0; | ||
237 | description { state: "default" 0.0; | ||
238 | rel1.to: "elm.progress.progressbar"; | ||
239 | rel2.to: "elm.progress.progressbar"; | ||
240 | rel2.relative: 1.0 0.5; | ||
241 | image { | ||
242 | normal: "bt_sm_hilight.png"; | ||
243 | border: 6 6 6 0; | ||
244 | } | ||
245 | } | ||
246 | } | ||
247 | |||
248 | part { name: "over2"; | ||
249 | mouse_events: 1; | ||
250 | repeat_events: 1; | ||
251 | description { state: "default" 0.0; | ||
252 | rel1.to: "elm.progress.progressbar"; | ||
253 | rel2.to: "elm.progress.progressbar"; | ||
254 | image { | ||
255 | normal: "bt_sm_shine.png"; | ||
256 | border: 6 6 6 0; | ||
257 | } | ||
258 | } | ||
259 | } | ||
260 | |||
261 | part { name: "elm.cur.progressbar"; | ||
262 | mouse_events: 0; | ||
263 | dragable { | ||
264 | confine: "background"; | ||
265 | x: 1 1 1; | ||
266 | y: 0 0 0; | ||
267 | } | ||
268 | description { state: "default" 0.0; | ||
269 | min: 14 28; | ||
270 | fixed: 1 1; | ||
271 | visible: 0; | ||
272 | rel1 { | ||
273 | to: "background"; | ||
274 | relative: 0 0; | ||
275 | } | ||
276 | rel2.to: "background"; | ||
277 | } | ||
278 | } | ||
279 | part { name: "progress-rect"; | ||
280 | type: RECT; | ||
281 | mouse_events: 0; | ||
282 | description { | ||
283 | state: "default" 0.0; | ||
284 | rel1.to: "elm.progress.progressbar"; | ||
285 | rel2.to: "elm.progress.progressbar"; | ||
286 | } | ||
287 | } | ||
288 | } | ||
289 | programs { | ||
290 | program { name: "label_show"; | ||
291 | signal: "elm,state,text,visible"; | ||
292 | source: "elm"; | ||
293 | action: STATE_SET "visible" 0.0; | ||
294 | target: "elm.text"; | ||
295 | } | ||
296 | program { name: "label_hide"; | ||
297 | signal: "elm,state,text,hidden"; | ||
298 | source: "elm"; | ||
299 | action: STATE_SET "default" 0.0; | ||
300 | target: "elm.text"; | ||
301 | } | ||
302 | program { name: "icon_show"; | ||
303 | signal: "elm,state,icon,visible"; | ||
304 | source: "elm"; | ||
305 | action: STATE_SET "visible" 0.0; | ||
306 | target: "elm.swallow.content"; | ||
307 | } | ||
308 | program { name: "icon_hide"; | ||
309 | signal: "elm,state,icon,hidden"; | ||
310 | source: "elm"; | ||
311 | action: STATE_SET "default" 0.0; | ||
312 | target: "elm.swallow.content"; | ||
313 | } | ||
314 | program { name: "units_show"; | ||
315 | signal: "elm,state,units,visible"; | ||
316 | source: "elm"; | ||
317 | action: STATE_SET "default" 0.0; | ||
318 | target: "text-bar"; | ||
319 | target: "elm.text.status"; | ||
320 | } | ||
321 | program { name: "units_hide"; | ||
322 | signal: "elm,state,units,hidden"; | ||
323 | source: "elm"; | ||
324 | action: STATE_SET "hidden" 0.0; | ||
325 | target: "text-bar"; | ||
326 | target: "elm.text.status"; | ||
327 | } | ||
328 | program { name: "slide_to_end"; | ||
329 | action: STATE_SET "state_end" 0.0; | ||
330 | transition: LINEAR 0.5; | ||
331 | target: "elm.progress.progressbar"; | ||
332 | after: "slide_to_begin"; | ||
333 | } | ||
334 | program { name: "slide_to_begin"; | ||
335 | signal: "elm,state,slide,begin"; | ||
336 | action: STATE_SET "state_begin" 0.0; | ||
337 | target: "elm.progress.progressbar"; | ||
338 | transition: LINEAR 0.5; | ||
339 | after: "slide_to_end"; | ||
340 | } | ||
341 | program { name: "start_pulse"; | ||
342 | signal: "elm,state,pulse,start"; | ||
343 | source: "elm"; | ||
344 | after: "slide_to_end"; | ||
345 | } | ||
346 | program { name: "stop_pulse"; | ||
347 | signal: "elm,state,pulse,stop"; | ||
348 | source: "elm"; | ||
349 | action: ACTION_STOP; | ||
350 | target: "slide_to_begin"; | ||
351 | target: "slide_to_end"; | ||
352 | target: "start_pulse"; | ||
353 | after: "state_pulse"; | ||
354 | } | ||
355 | program { name: "state_pulse"; | ||
356 | signal: "elm,state,pulse"; | ||
357 | source: "elm"; | ||
358 | action: STATE_SET "state_begin" 0.0; | ||
359 | target: "elm.progress.progressbar"; | ||
360 | after: "units_hide"; | ||
361 | } | ||
362 | program { name: "state_fraction"; | ||
363 | signal: "elm,state,fraction"; | ||
364 | source: "elm"; | ||
365 | action: ACTION_STOP; | ||
366 | target: "slide_to_begin"; | ||
367 | target: "slide_to_end"; | ||
368 | target: "start_pulse"; | ||
369 | action: STATE_SET "default" 0.0; | ||
370 | target: "elm.progress.progressbar"; | ||
371 | } | ||
372 | program { name: "set_invert_on"; | ||
373 | signal: "elm,state,inverted,on"; | ||
374 | source: "elm"; | ||
375 | action: STATE_SET "invert" 0.0; | ||
376 | target: "elm.progress.progressbar"; | ||
377 | } | ||
378 | program { name: "set_invert_off"; | ||
379 | signal: "elm,state,inverted,off"; | ||
380 | source: "elm"; | ||
381 | action: STATE_SET "default" 0.0; | ||
382 | target: "elm.progress.progressbar"; | ||
383 | } | ||
384 | } | ||
385 | } | ||
386 | |||
387 | /////////////////////////////////////////////////////////////////////////////// | ||
388 | group { name: "elm/progressbar/vertical/default"; | ||
389 | images { | ||
390 | image: "shelf_inset.png" COMP; | ||
391 | image: "bt_sm_base2.png" COMP; | ||
392 | image: "bt_sm_hilight.png" COMP; | ||
393 | image: "bt_sm_shine.png" COMP; | ||
394 | } | ||
395 | parts { | ||
396 | part { name: "elm.background.progressbar"; | ||
397 | type: RECT; | ||
398 | mouse_events: 0; | ||
399 | description { | ||
400 | state: "default" 0.0; | ||
401 | rel1 { | ||
402 | relative: 0.0 0.0; | ||
403 | offset: 0 0; | ||
404 | } | ||
405 | rel2 { | ||
406 | relative: 1.0 1.0; | ||
407 | offset: -1 -1; | ||
408 | } | ||
409 | } | ||
410 | } | ||
411 | part { name: "elm.swallow.bar"; | ||
412 | type: SWALLOW; | ||
413 | scale: 1; | ||
414 | description { state: "default" 0.0; | ||
415 | min: 28 48; | ||
416 | max: 28 9999; | ||
417 | align: 0.5 1.0; | ||
418 | rel1 { | ||
419 | to_y: "elm.text"; | ||
420 | relative: 0.0 1.0; | ||
421 | offset: 0 2; | ||
422 | } | ||
423 | rel2 { | ||
424 | to_y: "elm.text.box"; | ||
425 | relative: 1.0 0.0; | ||
426 | offset: -1 -3; | ||
427 | } | ||
428 | } | ||
429 | } | ||
430 | part { name: "elm.swallow.content"; | ||
431 | type: SWALLOW; | ||
432 | description { state: "default" 0.0; | ||
433 | visible: 0; | ||
434 | align: 0.5 0.0; | ||
435 | rel1 { | ||
436 | offset: 0 4; | ||
437 | to_x: "elm.swallow.bar"; | ||
438 | } | ||
439 | rel2 { | ||
440 | offset: -1 3; | ||
441 | relative: 1.0 0.0; | ||
442 | to_x: "elm.swallow.bar"; | ||
443 | } | ||
444 | } | ||
445 | description { state: "visible" 0.0; | ||
446 | inherit: "default" 0.0; | ||
447 | visible: 1; | ||
448 | aspect: 1.0 1.0; | ||
449 | aspect_preference: HORIZONTAL; | ||
450 | rel2.offset: -1 4; | ||
451 | } | ||
452 | } | ||
453 | part { name: "elm.text"; | ||
454 | type: TEXT; | ||
455 | mouse_events: 0; | ||
456 | scale: 1; | ||
457 | description { state: "default" 0.0; | ||
458 | visible: 0; | ||
459 | fixed: 1 1; | ||
460 | align: 0.5 0.0; | ||
461 | rel1.to_y: "elm.swallow.content"; | ||
462 | rel1.relative: 0.5 1.0; | ||
463 | rel1.offset: 0 -1; | ||
464 | rel2.to_y: "elm.swallow.content"; | ||
465 | rel2.relative: 0.5 1.0; | ||
466 | rel2.offset: -1 -1; | ||
467 | color: 0 0 0 255; | ||
468 | text { | ||
469 | font: "Sans,Edje-Vera"; | ||
470 | size: 10; | ||
471 | min: 0 0; | ||
472 | align: 0.5 0.0; | ||
473 | } | ||
474 | } | ||
475 | description { state: "visible" 0.0; | ||
476 | inherit: "default" 0.0; | ||
477 | visible: 1; | ||
478 | text.min: 1 1; | ||
479 | rel1.offset: 4 0; | ||
480 | rel2.offset: -5 0; | ||
481 | } | ||
482 | } | ||
483 | |||
484 | part { name: "background"; | ||
485 | mouse_events: 0; | ||
486 | clip_to: "elm.background.progressbar"; | ||
487 | description { | ||
488 | state: "default" 0.0; | ||
489 | rel1 { | ||
490 | to: "elm.swallow.bar"; | ||
491 | relative: 0.0 0.0; | ||
492 | } | ||
493 | rel2 { | ||
494 | to: "elm.swallow.bar"; | ||
495 | relative: 1.0 1.0; | ||
496 | offset: -1 -1; | ||
497 | } | ||
498 | image { | ||
499 | normal: "shelf_inset.png"; | ||
500 | border: 7 7 7 7; | ||
501 | } | ||
502 | } | ||
503 | } | ||
504 | |||
505 | part { name: "elm.progress.progressbar"; | ||
506 | mouse_events: 0; | ||
507 | clip_to: "elm.background.progressbar"; | ||
508 | description { | ||
509 | state: "default" 0.0; | ||
510 | min: 28 14; | ||
511 | fixed: 1 1; | ||
512 | rel1 { | ||
513 | to: "elm.swallow.bar"; | ||
514 | relative: 0.0 0.0; | ||
515 | } | ||
516 | rel2 { | ||
517 | to_x: "elm.swallow.bar"; | ||
518 | to_y: "elm.cur.progressbar"; | ||
519 | offset: -1 -1; | ||
520 | } | ||
521 | image { | ||
522 | normal: "bt_sm_base2.png"; | ||
523 | border: 6 6 6 6; | ||
524 | } | ||
525 | } | ||
526 | description { | ||
527 | state: "invert" 0.0; | ||
528 | inherit: "default" 0.0; | ||
529 | rel1 { | ||
530 | to_x: "elm.swallow.bar"; | ||
531 | to_y: "elm.cur.progressbar"; | ||
532 | } | ||
533 | rel2 { | ||
534 | to: "elm.swallow.bar"; | ||
535 | relative: 1.0 1.0; | ||
536 | } | ||
537 | } | ||
538 | description { | ||
539 | state: "state_begin" 0.0; | ||
540 | inherit: "default" 0.0; | ||
541 | rel1 { | ||
542 | to: "elm.swallow.bar"; | ||
543 | relative: 0.0 0.0; | ||
544 | } | ||
545 | rel2 { | ||
546 | to: "elm.swallow.bar"; | ||
547 | relative: 1.0 0.1; | ||
548 | } | ||
549 | } | ||
550 | description { | ||
551 | state: "state_end" 0.0; | ||
552 | inherit: "default" 0.0; | ||
553 | rel1 { | ||
554 | to: "elm.swallow.bar"; | ||
555 | relative: 0.0 0.9; | ||
556 | } | ||
557 | rel2 { | ||
558 | to: "elm.swallow.bar"; | ||
559 | relative: 1.0 1.0; | ||
560 | } | ||
561 | } | ||
562 | } | ||
563 | |||
564 | part { name: "over1"; | ||
565 | mouse_events: 0; | ||
566 | description { state: "default" 0.0; | ||
567 | rel1.to: "elm.progress.progressbar"; | ||
568 | rel2.to: "elm.progress.progressbar"; | ||
569 | rel2.relative: 1.0 0.5; | ||
570 | image { | ||
571 | normal: "bt_sm_hilight.png"; | ||
572 | border: 6 6 6 0; | ||
573 | } | ||
574 | } | ||
575 | } | ||
576 | |||
577 | part { name: "over2"; | ||
578 | mouse_events: 1; | ||
579 | repeat_events: 1; | ||
580 | description { state: "default" 0.0; | ||
581 | rel1.to: "elm.progress.progressbar"; | ||
582 | rel2.to: "elm.progress.progressbar"; | ||
583 | image { | ||
584 | normal: "bt_sm_shine.png"; | ||
585 | border: 6 6 6 0; | ||
586 | } | ||
587 | } | ||
588 | } | ||
589 | |||
590 | part { name: "elm.cur.progressbar"; | ||
591 | mouse_events: 0; | ||
592 | dragable { | ||
593 | confine: "background"; | ||
594 | x: 0 0 0; | ||
595 | y: 1 1 1; | ||
596 | } | ||
597 | description { state: "default" 0.0; | ||
598 | min: 28 14; | ||
599 | fixed: 1 1; | ||
600 | visible: 0; | ||
601 | rel1 { | ||
602 | to: "background"; | ||
603 | relative: 0 0; | ||
604 | } | ||
605 | rel2.to: "background"; | ||
606 | } | ||
607 | } | ||
608 | |||
609 | part { name: "elm.text.box"; | ||
610 | mouse_events: 0; | ||
611 | type: RECT; | ||
612 | description { state: "default" 0.0; | ||
613 | visible: 0; | ||
614 | rel1 { | ||
615 | to: "elm.text.status"; | ||
616 | offset: -2 -2; | ||
617 | } | ||
618 | rel2 { | ||
619 | to: "elm.text.status"; | ||
620 | offset: 2 2; | ||
621 | } | ||
622 | color: 255 255 255 0; | ||
623 | } | ||
624 | description { state: "visible" 0.0; | ||
625 | inherit: "default" 0.0; | ||
626 | visible: 1; | ||
627 | } | ||
628 | } | ||
629 | part { name: "elm.text.status"; | ||
630 | type: TEXT; | ||
631 | mouse_events: 0; | ||
632 | scale: 1; | ||
633 | description { state: "default" 0.0; | ||
634 | visible: 0; | ||
635 | fixed: 1 1; | ||
636 | align: 0.5 1.0; | ||
637 | rel1.relative: 0.0 1.0; | ||
638 | rel1.offset: 2 0; | ||
639 | rel2.relative: 1.0 1.0; | ||
640 | rel2.offset: -2 0; | ||
641 | color: 0 0 0 255; | ||
642 | text { | ||
643 | font: "Sans:style=Bold,Edje-Vera-Bold"; | ||
644 | size: 10; | ||
645 | min: 0 0; | ||
646 | align: 0.5 0.0; | ||
647 | } | ||
648 | } | ||
649 | description { state: "visible" 0.0; | ||
650 | inherit: "default" 0.0; | ||
651 | fixed: 1 1; | ||
652 | visible: 1; | ||
653 | text.min: 1 1; | ||
654 | rel1.offset: 8 -9; | ||
655 | rel2.offset: -9 -9; | ||
656 | } | ||
657 | } | ||
658 | } | ||
659 | programs { | ||
660 | program { name: "label_show"; | ||
661 | signal: "elm,state,text,visible"; | ||
662 | source: "elm"; | ||
663 | action: STATE_SET "visible" 0.0; | ||
664 | target: "elm.text"; | ||
665 | } | ||
666 | program { name: "label_hide"; | ||
667 | signal: "elm,state,text,hidden"; | ||
668 | source: "elm"; | ||
669 | action: STATE_SET "default" 0.0; | ||
670 | target: "elm.text"; | ||
671 | } | ||
672 | program { name: "icon_show"; | ||
673 | signal: "elm,state,icon,visible"; | ||
674 | source: "elm"; | ||
675 | action: STATE_SET "visible" 0.0; | ||
676 | target: "elm.swallow.content"; | ||
677 | } | ||
678 | program { name: "icon_hide"; | ||
679 | signal: "elm,state,icon,hidden"; | ||
680 | source: "elm"; | ||
681 | action: STATE_SET "default" 0.0; | ||
682 | target: "elm.swallow.content"; | ||
683 | } | ||
684 | program { name: "units_show"; | ||
685 | signal: "elm,state,units,visible"; | ||
686 | source: "elm"; | ||
687 | action: STATE_SET "visible" 0.0; | ||
688 | target: "elm.text.status"; | ||
689 | target: "elm.text.box"; | ||
690 | } | ||
691 | program { name: "units_hide"; | ||
692 | signal: "elm,state,units,hidden"; | ||
693 | source: "elm"; | ||
694 | action: STATE_SET "default" 0.0; | ||
695 | target: "elm.text.status"; | ||
696 | target: "elm.text.box"; | ||
697 | } | ||
698 | program { name: "slide_to_end"; | ||
699 | action: STATE_SET "state_end" 0.0; | ||
700 | transition: LINEAR 0.5; | ||
701 | target: "elm.progress.progressbar"; | ||
702 | after: "slide_to_begin"; | ||
703 | } | ||
704 | program { name: "slide_to_begin"; | ||
705 | action: STATE_SET "state_begin" 0.0; | ||
706 | target: "elm.progress.progressbar"; | ||
707 | transition: LINEAR 0.5; | ||
708 | after: "slide_to_end"; | ||
709 | } | ||
710 | program { name: "start_pulse"; | ||
711 | signal: "elm,state,pulse,start"; | ||
712 | source: "elm"; | ||
713 | action: STATE_SET "state_begin" 0.0; | ||
714 | target: "elm.progress.progressbar"; | ||
715 | after: "slide_to_end"; | ||
716 | } | ||
717 | program { name: "stop_pulse"; | ||
718 | signal: "elm,state,pulse,stop"; | ||
719 | source: "elm"; | ||
720 | action: ACTION_STOP; | ||
721 | target: "slide_to_begin"; | ||
722 | target: "slide_to_end"; | ||
723 | target: "start_pulse"; | ||
724 | after: "state_pulse"; | ||
725 | } | ||
726 | program { name: "state_pulse"; | ||
727 | signal: "elm,state,pulse"; | ||
728 | source: "elm"; | ||
729 | action: STATE_SET "state_begin" 0.0; | ||
730 | target: "elm.progress.progressbar"; | ||
731 | after: "units_hide"; | ||
732 | } | ||
733 | program { name: "state_fraction"; | ||
734 | signal: "elm,state,fraction"; | ||
735 | source: "elm"; | ||
736 | action: ACTION_STOP; | ||
737 | target: "slide_to_begin"; | ||
738 | target: "slide_to_end"; | ||
739 | target: "start_pulse"; | ||
740 | action: STATE_SET "default" 0.0; | ||
741 | target: "elm.progress.progressbar"; | ||
742 | } | ||
743 | program { name: "set_invert_on"; | ||
744 | signal: "elm,state,inverted,on"; | ||
745 | source: "elm"; | ||
746 | action: STATE_SET "invert" 0.0; | ||
747 | target: "elm.progress.progressbar"; | ||
748 | target: "elm.cur.progressbar"; | ||
749 | } | ||
750 | program { name: "set_invert_off"; | ||
751 | signal: "elm,state,inverted,off"; | ||
752 | source: "elm"; | ||
753 | action: STATE_SET "default" 0.0; | ||
754 | target: "elm.progress.progressbar"; | ||
755 | target: "elm.cur.progressbar"; | ||
756 | } | ||
757 | } | ||
758 | } | ||
759 | |||
760 | /////////////////////////////////////////////////////////////////////////////// | ||
761 | group { name: "elm/progressbar/horizontal/wheel"; | ||
762 | images { | ||
763 | image: "busy-1.png" COMP; | ||
764 | image: "busy-2.png" COMP; | ||
765 | image: "busy-3.png" COMP; | ||
766 | image: "busy-4.png" COMP; | ||
767 | image: "busy-5.png" COMP; | ||
768 | image: "busy-6.png" COMP; | ||
769 | image: "busy-7.png" COMP; | ||
770 | image: "busy-8.png" COMP; | ||
771 | image: "busy-9.png" COMP; | ||
772 | } | ||
773 | parts { | ||
774 | part { name: "elm.background.progressbar"; | ||
775 | mouse_events: 0; | ||
776 | type: RECT; | ||
777 | description { | ||
778 | state: "default" 0.0; | ||
779 | } | ||
780 | } | ||
781 | part { name: "elm.swallow.bar"; | ||
782 | mouse_events: 0; | ||
783 | type: SWALLOW; | ||
784 | description { state: "default" 0.0; | ||
785 | min: 0 0; | ||
786 | max: 0 0; | ||
787 | visible: 0; | ||
788 | } | ||
789 | } | ||
790 | part { name: "elm.swallow.content"; | ||
791 | type: SWALLOW; | ||
792 | description { state: "default" 0.0; | ||
793 | min: 0 0; | ||
794 | max: 0 0; | ||
795 | visible: 0; | ||
796 | } | ||
797 | } | ||
798 | part { name: "background"; | ||
799 | mouse_events: 0; | ||
800 | clip_to: "elm.background.progressbar"; | ||
801 | description { | ||
802 | state: "default" 0.0; | ||
803 | min: 32 32; | ||
804 | max: 32 32; | ||
805 | visible: 1; | ||
806 | aspect: 1.0 1.0; | ||
807 | aspect_preference: BOTH; | ||
808 | image { | ||
809 | normal: "busy-9.png"; | ||
810 | border: 7 7 7 7; | ||
811 | } | ||
812 | } | ||
813 | description { | ||
814 | state: "pulse" 0.0; | ||
815 | inherit: "default" 0.0; | ||
816 | image { | ||
817 | normal: "busy-9.png"; | ||
818 | tween: "busy-1.png"; | ||
819 | tween: "busy-2.png"; | ||
820 | tween: "busy-3.png"; | ||
821 | tween: "busy-4.png"; | ||
822 | tween: "busy-5.png"; | ||
823 | tween: "busy-6.png"; | ||
824 | tween: "busy-7.png"; | ||
825 | tween: "busy-8.png"; | ||
826 | border: 7 7 7 7; | ||
827 | } | ||
828 | } | ||
829 | } | ||
830 | } | ||
831 | programs { | ||
832 | program { name: "start_pulse"; | ||
833 | signal: "elm,state,pulse,start"; | ||
834 | source: "elm"; | ||
835 | action: STATE_SET "pulse" 0.0; | ||
836 | target: "background"; | ||
837 | transition: LINEAR 0.5; | ||
838 | after: "start_pulse"; | ||
839 | } | ||
840 | program { name: "stop_pulse"; | ||
841 | signal: "elm,state,pulse,stop"; | ||
842 | source: "elm"; | ||
843 | action: STATE_SET "default" 0.0; | ||
844 | target: "background"; | ||
845 | } | ||
846 | } | ||
847 | } | ||
848 | |||
849 | |||
850 | /////////////////////////////////////////////////////////////////////////////// | ||
diff --git a/libraries/elementary/data/themes/widgets/radio.edc b/libraries/elementary/data/themes/widgets/radio.edc new file mode 100644 index 0000000..59f93fd --- /dev/null +++ b/libraries/elementary/data/themes/widgets/radio.edc | |||
@@ -0,0 +1,215 @@ | |||
1 | group { name: "elm/radio/base/default"; | ||
2 | images { | ||
3 | image: "radio_base.png" COMP; | ||
4 | image: "radio.png" COMP; | ||
5 | image: "radio2.png" COMP; | ||
6 | } | ||
7 | parts { | ||
8 | part { name: "bg"; | ||
9 | mouse_events: 0; | ||
10 | scale: 1; | ||
11 | description { state: "default" 0.0; | ||
12 | rel1.offset: 1 1; | ||
13 | rel2.relative: 0.0 1.0; | ||
14 | rel2.offset: 1 -2; | ||
15 | align: 0.0 0.5; | ||
16 | min: 16 16; | ||
17 | max: 16 16; | ||
18 | aspect: 1.0 1.0; | ||
19 | aspect_preference: VERTICAL; | ||
20 | image.normal: "radio_base.png"; | ||
21 | } | ||
22 | } | ||
23 | part { name: "radio"; | ||
24 | mouse_events: 0; | ||
25 | scale: 1; | ||
26 | description { state: "default" 0.0; | ||
27 | rel1.to: "bg"; | ||
28 | rel2.to: "bg"; | ||
29 | visible: 0; | ||
30 | image.normal: "radio.png"; | ||
31 | } | ||
32 | description { state: "visible" 0.0; | ||
33 | inherit: "default" 0.0; | ||
34 | visible: 1; | ||
35 | } | ||
36 | } | ||
37 | part { name: "elm.swallow.content"; | ||
38 | type: SWALLOW; | ||
39 | description { state: "default" 0.0; | ||
40 | fixed: 1 0; | ||
41 | visible: 0; | ||
42 | align: 0.0 0.5; | ||
43 | color: 0 0 0 0; | ||
44 | rel1.to_x: "bg"; | ||
45 | rel1.relative: 1.0 0.0; | ||
46 | rel1.offset: 1 1; | ||
47 | rel2.to_x: "bg"; | ||
48 | rel2.relative: 1.0 1.0; | ||
49 | rel2.offset: 2 -2; | ||
50 | } | ||
51 | description { state: "visible" 0.0; | ||
52 | inherit: "default" 0.0; | ||
53 | visible: 1; | ||
54 | color: 255 255 255 255; | ||
55 | aspect: 1.0 1.0; | ||
56 | } | ||
57 | description { state: "disabled" 0.0; | ||
58 | inherit: "default" 0.0; | ||
59 | color: 128 128 128 128; | ||
60 | } | ||
61 | description { state: "disabled_visible" 0.0; | ||
62 | inherit: "default" 0.0; | ||
63 | color: 128 128 128 128; | ||
64 | visible: 1; | ||
65 | aspect: 1.0 1.0; | ||
66 | } | ||
67 | } | ||
68 | part { name: "elm.text"; | ||
69 | type: TEXT; | ||
70 | mouse_events: 0; | ||
71 | scale: 1; | ||
72 | description { state: "default" 0.0; | ||
73 | visible: 0; | ||
74 | rel1.to_x: "elm.swallow.content"; | ||
75 | rel1.relative: 1.0 0.0; | ||
76 | rel1.offset: 1 1; | ||
77 | rel2.relative: 1.0 1.0; | ||
78 | rel2.offset: -2 -2; | ||
79 | color: 0 0 0 255; | ||
80 | text { | ||
81 | font: "Sans,Edje-Vera"; | ||
82 | size: 10; | ||
83 | min: 0 0; | ||
84 | align: -1.0 0.5; | ||
85 | } | ||
86 | } | ||
87 | description { state: "visible" 0.0; | ||
88 | inherit: "default" 0.0; | ||
89 | visible: 1; | ||
90 | text.min: 1 1; | ||
91 | } | ||
92 | description { state: "disabled" 0.0; | ||
93 | inherit: "default" 0.0; | ||
94 | color: 0 0 0 128; | ||
95 | color3: 0 0 0 0; | ||
96 | } | ||
97 | description { state: "disabled_visible" 0.0; | ||
98 | inherit: "default" 0.0; | ||
99 | color: 0 0 0 128; | ||
100 | color3: 0 0 0 0; | ||
101 | visible: 1; | ||
102 | text.min: 1 1; | ||
103 | } | ||
104 | } | ||
105 | part { name: "events"; | ||
106 | type: RECT; | ||
107 | ignore_flags: ON_HOLD; | ||
108 | description { state: "default" 0.0; | ||
109 | color: 0 0 0 0; | ||
110 | } | ||
111 | } | ||
112 | part { name: "disabler"; | ||
113 | type: RECT; | ||
114 | description { state: "default" 0.0; | ||
115 | color: 0 0 0 0; | ||
116 | visible: 0; | ||
117 | } | ||
118 | description { state: "disabled" 0.0; | ||
119 | inherit: "default" 0.0; | ||
120 | visible: 1; | ||
121 | } | ||
122 | } | ||
123 | } | ||
124 | programs { | ||
125 | program { name: "click"; | ||
126 | signal: "mouse,up,1"; | ||
127 | source: "events"; | ||
128 | action: SIGNAL_EMIT "elm,action,radio,toggle" ""; | ||
129 | } | ||
130 | program { name: "radio_on"; | ||
131 | signal: "elm,state,radio,on"; | ||
132 | source: "elm"; | ||
133 | action: STATE_SET "visible" 0.0; | ||
134 | target: "radio"; | ||
135 | } | ||
136 | program { name: "radio_off"; | ||
137 | signal: "elm,state,radio,off"; | ||
138 | source: "elm"; | ||
139 | action: STATE_SET "default" 0.0; | ||
140 | target: "radio"; | ||
141 | } | ||
142 | program { name: "text_show"; | ||
143 | signal: "elm,state,text,visible"; | ||
144 | source: "elm"; | ||
145 | action: STATE_SET "visible" 0.0; | ||
146 | target: "elm.text"; | ||
147 | } | ||
148 | program { name: "text_hide"; | ||
149 | signal: "elm,state,text,hidden"; | ||
150 | source: "elm"; | ||
151 | action: STATE_SET "default" 0.0; | ||
152 | target: "elm.text"; | ||
153 | } | ||
154 | program { name: "icon_show"; | ||
155 | signal: "elm,state,icon,visible"; | ||
156 | source: "elm"; | ||
157 | action: STATE_SET "visible" 0.0; | ||
158 | target: "elm.swallow.content"; | ||
159 | } | ||
160 | program { name: "icon_hide"; | ||
161 | signal: "elm,state,icon,hidden"; | ||
162 | source: "elm"; | ||
163 | action: STATE_SET "default" 0.0; | ||
164 | target: "elm.swallow.content"; | ||
165 | } | ||
166 | program { name: "disable"; | ||
167 | signal: "elm,state,disabled"; | ||
168 | source: "elm"; | ||
169 | action: STATE_SET "disabled" 0.0; | ||
170 | target: "disabler"; | ||
171 | after: "disable_text"; | ||
172 | } | ||
173 | program { name: "disable_text"; | ||
174 | script { | ||
175 | new st[31]; | ||
176 | new Float:vl; | ||
177 | get_state(PART:"elm.text", st, 30, vl); | ||
178 | if (!strcmp(st, "visible")) | ||
179 | set_state(PART:"elm.text", "disabled_visible", 0.0); | ||
180 | else | ||
181 | set_state(PART:"elm.text", "disabled", 0.0); | ||
182 | |||
183 | get_state(PART:"elm.swallow.content", st, 30, vl); | ||
184 | if (!strcmp(st, "visible")) | ||
185 | set_state(PART:"elm.swallow.content", "disabled_visible", 0.0); | ||
186 | else | ||
187 | set_state(PART:"elm.swallow.content", "disabled", 0.0); | ||
188 | } | ||
189 | } | ||
190 | program { name: "enable"; | ||
191 | signal: "elm,state,enabled"; | ||
192 | source: "elm"; | ||
193 | action: STATE_SET "default" 0.0; | ||
194 | target: "disabler"; | ||
195 | after: "enable_text"; | ||
196 | } | ||
197 | program { name: "enable_text"; | ||
198 | script { | ||
199 | new st[31]; | ||
200 | new Float:vl; | ||
201 | get_state(PART:"elm.text", st, 30, vl); | ||
202 | if (!strcmp(st, "disabled_visible")) | ||
203 | set_state(PART:"elm.text", "visible", 0.0); | ||
204 | else | ||
205 | set_state(PART:"elm.text", "default", 0.0); | ||
206 | |||
207 | get_state(PART:"elm.swallow.content", st, 30, vl); | ||
208 | if (!strcmp(st, "visible")) | ||
209 | set_state(PART:"elm.swallow.content", "visible", 0.0); | ||
210 | else | ||
211 | set_state(PART:"elm.swallow.content", "default", 0.0); | ||
212 | } | ||
213 | } | ||
214 | } | ||
215 | } | ||
diff --git a/libraries/elementary/data/themes/widgets/scroller.edc b/libraries/elementary/data/themes/widgets/scroller.edc new file mode 100644 index 0000000..66d007b --- /dev/null +++ b/libraries/elementary/data/themes/widgets/scroller.edc | |||
@@ -0,0 +1,502 @@ | |||
1 | group { name: "elm/scroller/base/default"; | ||
2 | |||
3 | alias: "elm/list/base/default"; | ||
4 | alias: "elm/genlist/base/default"; | ||
5 | alias: "elm/gengrid/base/default"; | ||
6 | alias: "elm/scroller/base/map_bubble"; | ||
7 | alias: "elm/genscroller/base/default"; | ||
8 | |||
9 | data { | ||
10 | item: "focus_highlight" "on"; | ||
11 | } | ||
12 | |||
13 | script { | ||
14 | public sbvis_v, sbvis_h, sbalways_v, sbalways_h, sbvis_timer; | ||
15 | public timer0(val) { | ||
16 | new v; | ||
17 | v = get_int(sbvis_v); | ||
18 | if (v) { | ||
19 | v = get_int(sbalways_v); | ||
20 | if (!v) { | ||
21 | emit("do-hide-vbar", ""); | ||
22 | set_int(sbvis_v, 0); | ||
23 | } | ||
24 | } | ||
25 | v = get_int(sbvis_h); | ||
26 | if (v) { | ||
27 | v = get_int(sbalways_h); | ||
28 | if (!v) { | ||
29 | emit("do-hide-hbar", ""); | ||
30 | set_int(sbvis_h, 0); | ||
31 | } | ||
32 | } | ||
33 | set_int(sbvis_timer, 0); | ||
34 | return 0; | ||
35 | } | ||
36 | } | ||
37 | images { | ||
38 | image: "shelf_inset.png" COMP; | ||
39 | image: "bt_sm_base2.png" COMP; | ||
40 | image: "bt_sm_shine.png" COMP; | ||
41 | image: "bt_sm_hilight.png" COMP; | ||
42 | image: "sl_bt2_2.png" COMP; | ||
43 | } | ||
44 | parts { | ||
45 | part { name: "bg"; | ||
46 | type: RECT; | ||
47 | description { state: "default" 0.0; | ||
48 | rel1.offset: 2 2; | ||
49 | rel2.offset: -3 -3; | ||
50 | color: 255 255 255 0; | ||
51 | } | ||
52 | } | ||
53 | part { name: "clipper"; | ||
54 | type: RECT; | ||
55 | mouse_events: 0; | ||
56 | description { state: "default" 0.0; | ||
57 | rel1.to: "bg"; | ||
58 | rel2.to: "bg"; | ||
59 | rel1.offset: 2 2; | ||
60 | rel2.offset: -3 -3; | ||
61 | } | ||
62 | } | ||
63 | part { name: "elm.swallow.content"; | ||
64 | clip_to: "clipper"; | ||
65 | type: SWALLOW; | ||
66 | description { state: "default" 0.0; | ||
67 | rel1.to: "bg"; | ||
68 | rel2.to: "bg"; | ||
69 | rel1.offset: 2 2; | ||
70 | rel2.offset: -3 -3; | ||
71 | } | ||
72 | } | ||
73 | part { name: "conf_over"; | ||
74 | mouse_events: 0; | ||
75 | description { state: "default" 0.0; | ||
76 | rel1.to: "bg"; | ||
77 | rel2.to: "bg"; | ||
78 | image { | ||
79 | normal: "shelf_inset.png"; | ||
80 | border: 7 7 7 7; | ||
81 | middle: 0; | ||
82 | } | ||
83 | fill.smooth : 0; | ||
84 | } | ||
85 | description { state: "enabled" 0.0; | ||
86 | inherit: "default" 0.0; | ||
87 | color: 200 155 0 255; | ||
88 | } | ||
89 | } | ||
90 | part { name: "focus_highlight"; | ||
91 | mouse_events: 0; | ||
92 | description { state: "default" 0.0; | ||
93 | rel1.offset: -1 -1; | ||
94 | rel2.offset: 0 0; | ||
95 | image { | ||
96 | normal: "sl_bt2_2.png"; | ||
97 | border: 7 7 7 7; | ||
98 | middle: 0; | ||
99 | } | ||
100 | fill.smooth : 0; | ||
101 | color: 200 155 0 0; | ||
102 | } | ||
103 | description { state: "enabled" 0.0; | ||
104 | inherit: "default" 0.0; | ||
105 | color: 200 155 0 255; | ||
106 | } | ||
107 | } | ||
108 | part { name: "sb_vbar_clip_master"; | ||
109 | type: RECT; | ||
110 | mouse_events: 0; | ||
111 | description { state: "default" 0.0; | ||
112 | } | ||
113 | description { state: "hidden" 0.0; | ||
114 | visible: 0; | ||
115 | color: 255 255 255 0; | ||
116 | } | ||
117 | } | ||
118 | part { name: "sb_vbar_clip"; | ||
119 | clip_to: "sb_vbar_clip_master"; | ||
120 | type: RECT; | ||
121 | mouse_events: 0; | ||
122 | description { state: "default" 0.0; | ||
123 | } | ||
124 | description { state: "hidden" 0.0; | ||
125 | visible: 0; | ||
126 | color: 255 255 255 0; | ||
127 | } | ||
128 | } | ||
129 | part { name: "sb_vbar"; | ||
130 | type: RECT; | ||
131 | mouse_events: 0; | ||
132 | description { state: "default" 0.0; | ||
133 | fixed: 1 1; | ||
134 | visible: 0; | ||
135 | min: 10 17; | ||
136 | align: 1.0 0.0; | ||
137 | rel1 { | ||
138 | relative: 1.0 0.0; | ||
139 | offset: 0 2; | ||
140 | to_y: "elm.swallow.content"; | ||
141 | to_x: "elm.swallow.content"; | ||
142 | } | ||
143 | rel2 { | ||
144 | relative: 1.0 0.0; | ||
145 | offset: -1 -1; | ||
146 | to_y: "sb_hbar"; | ||
147 | to_x: "elm.swallow.content"; | ||
148 | } | ||
149 | } | ||
150 | } | ||
151 | part { name: "elm.dragable.vbar"; | ||
152 | clip_to: "sb_vbar_clip"; | ||
153 | mouse_events: 0; | ||
154 | dragable { | ||
155 | x: 0 0 0; | ||
156 | y: 1 1 0; | ||
157 | confine: "sb_vbar"; | ||
158 | } | ||
159 | description { state: "default" 0.0; | ||
160 | fixed: 1 1; | ||
161 | min: 10 17; | ||
162 | max: 10 99999; | ||
163 | rel1 { | ||
164 | relative: 0.5 0.5; | ||
165 | offset: 0 0; | ||
166 | to: "sb_vbar"; | ||
167 | } | ||
168 | rel2 { | ||
169 | relative: 0.5 0.5; | ||
170 | offset: 0 0; | ||
171 | to: "sb_vbar"; | ||
172 | } | ||
173 | image { | ||
174 | normal: "bt_sm_base2.png"; | ||
175 | border: 6 6 6 6; | ||
176 | middle: SOLID; | ||
177 | } | ||
178 | } | ||
179 | } | ||
180 | part { name: "sb_vbar_over1"; | ||
181 | clip_to: "sb_vbar_clip"; | ||
182 | mouse_events: 0; | ||
183 | description { state: "default" 0.0; | ||
184 | rel1.to: "elm.dragable.vbar"; | ||
185 | rel2.relative: 1.0 0.5; | ||
186 | rel2.to: "elm.dragable.vbar"; | ||
187 | image { | ||
188 | normal: "bt_sm_hilight.png"; | ||
189 | border: 6 6 6 0; | ||
190 | } | ||
191 | } | ||
192 | } | ||
193 | part { name: "sb_vbar_over2"; | ||
194 | clip_to: "sb_vbar_clip"; | ||
195 | mouse_events: 0; | ||
196 | description { state: "default" 0.0; | ||
197 | rel1.to: "elm.dragable.vbar"; | ||
198 | rel2.to: "elm.dragable.vbar"; | ||
199 | image { | ||
200 | normal: "bt_sm_shine.png"; | ||
201 | border: 6 6 6 0; | ||
202 | } | ||
203 | } | ||
204 | } | ||
205 | |||
206 | part { name: "sb_hbar_clip_master"; | ||
207 | type: RECT; | ||
208 | mouse_events: 0; | ||
209 | description { state: "default" 0.0; | ||
210 | } | ||
211 | description { state: "hidden" 0.0; | ||
212 | visible: 0; | ||
213 | color: 255 255 255 0; | ||
214 | } | ||
215 | } | ||
216 | part { name: "sb_hbar_clip"; | ||
217 | clip_to: "sb_hbar_clip_master"; | ||
218 | type: RECT; | ||
219 | mouse_events: 0; | ||
220 | description { state: "default" 0.0; | ||
221 | } | ||
222 | description { state: "hidden" 0.0; | ||
223 | visible: 0; | ||
224 | color: 255 255 255 0; | ||
225 | } | ||
226 | } | ||
227 | part { name: "sb_hbar"; | ||
228 | type: RECT; | ||
229 | mouse_events: 0; | ||
230 | description { state: "default" 0.0; | ||
231 | fixed: 1 1; | ||
232 | visible: 0; | ||
233 | min: 17 10; | ||
234 | align: 0.0 1.0; | ||
235 | rel1 { | ||
236 | relative: 0.0 1.0; | ||
237 | offset: 2 0; | ||
238 | to_x: "elm.swallow.content"; | ||
239 | to_y: "elm.swallow.content"; | ||
240 | } | ||
241 | rel2 { | ||
242 | relative: 0.0 1.0; | ||
243 | offset: -1 -1; | ||
244 | to_x: "sb_vbar"; | ||
245 | to_y: "elm.swallow.content"; | ||
246 | } | ||
247 | } | ||
248 | } | ||
249 | part { name: "elm.dragable.hbar"; | ||
250 | clip_to: "sb_hbar_clip"; | ||
251 | mouse_events: 0; | ||
252 | dragable { | ||
253 | x: 1 1 0; | ||
254 | y: 0 0 0; | ||
255 | confine: "sb_hbar"; | ||
256 | } | ||
257 | description { state: "default" 0.0; | ||
258 | fixed: 1 1; | ||
259 | min: 17 10; | ||
260 | max: 99999 10; | ||
261 | rel1 { | ||
262 | relative: 0.5 0.5; | ||
263 | offset: 0 0; | ||
264 | to: "sb_hbar"; | ||
265 | } | ||
266 | rel2 { | ||
267 | relative: 0.5 0.5; | ||
268 | offset: 0 0; | ||
269 | to: "sb_hbar"; | ||
270 | } | ||
271 | image { | ||
272 | normal: "bt_sm_base2.png"; | ||
273 | border: 4 4 4 4; | ||
274 | middle: SOLID; | ||
275 | } | ||
276 | } | ||
277 | } | ||
278 | part { name: "sb_hbar_over1"; | ||
279 | clip_to: "sb_hbar_clip"; | ||
280 | mouse_events: 0; | ||
281 | description { state: "default" 0.0; | ||
282 | rel1.to: "elm.dragable.hbar"; | ||
283 | rel2.relative: 1.0 0.5; | ||
284 | rel2.to: "elm.dragable.hbar"; | ||
285 | image { | ||
286 | normal: "bt_sm_hilight.png"; | ||
287 | border: 4 4 4 0; | ||
288 | } | ||
289 | } | ||
290 | } | ||
291 | part { name: "sb_hbar_over2"; | ||
292 | clip_to: "sb_hbar_clip"; | ||
293 | mouse_events: 0; | ||
294 | description { state: "default" 0.0; | ||
295 | rel1.to: "elm.dragable.hbar"; | ||
296 | rel2.to: "elm.dragable.hbar"; | ||
297 | image { | ||
298 | normal: "bt_sm_shine.png"; | ||
299 | border: 4 4 4 0; | ||
300 | } | ||
301 | } | ||
302 | } | ||
303 | part { name: "disabler"; | ||
304 | type: RECT; | ||
305 | description { state: "default" 0.0; | ||
306 | rel1.to: "clipper"; | ||
307 | rel2.to: "clipper"; | ||
308 | color: 0 0 0 0; | ||
309 | visible: 0; | ||
310 | } | ||
311 | description { state: "disabled" 0.0; | ||
312 | inherit: "default" 0.0; | ||
313 | visible: 1; | ||
314 | color: 128 128 128 128; | ||
315 | } | ||
316 | } | ||
317 | } | ||
318 | programs { | ||
319 | program { name: "load"; | ||
320 | signal: "load"; | ||
321 | source: ""; | ||
322 | script { | ||
323 | set_state(PART:"sb_hbar_clip", "hidden", 0.0); | ||
324 | set_state(PART:"sb_vbar_clip", "hidden", 0.0); | ||
325 | set_int(sbvis_h, 0); | ||
326 | set_int(sbvis_v, 0); | ||
327 | set_int(sbalways_v, 0); | ||
328 | set_int(sbalways_h, 0); | ||
329 | set_int(sbvis_timer, 0); | ||
330 | } | ||
331 | } | ||
332 | |||
333 | program { name: "vbar_show"; | ||
334 | signal: "elm,action,show,vbar"; | ||
335 | source: "elm"; | ||
336 | action: STATE_SET "default" 0.0; | ||
337 | target: "sb_vbar_clip_master"; | ||
338 | } | ||
339 | program { name: "vbar_hide"; | ||
340 | signal: "elm,action,hide,vbar"; | ||
341 | source: "elm"; | ||
342 | action: STATE_SET "hidden" 0.0; | ||
343 | target: "sb_vbar_clip_master"; | ||
344 | } | ||
345 | program { name: "vbar_show_always"; | ||
346 | signal: "elm,action,show_always,vbar"; | ||
347 | source: "elm"; | ||
348 | script { | ||
349 | new v; | ||
350 | v = get_int(sbvis_v); | ||
351 | v |= get_int(sbalways_v); | ||
352 | if (!v) { | ||
353 | set_int(sbalways_v, 1); | ||
354 | emit("do-show-vbar", ""); | ||
355 | set_int(sbvis_v, 1); | ||
356 | } | ||
357 | } | ||
358 | } | ||
359 | program { name: "vbar_show_notalways"; | ||
360 | signal: "elm,action,show_notalways,vbar"; | ||
361 | source: "elm"; | ||
362 | script { | ||
363 | new v; | ||
364 | v = get_int(sbalways_v); | ||
365 | if (v) { | ||
366 | set_int(sbalways_v, 0); | ||
367 | v = get_int(sbvis_v); | ||
368 | if (!v) { | ||
369 | emit("do-hide-vbar", ""); | ||
370 | set_int(sbvis_v, 0); | ||
371 | } | ||
372 | } | ||
373 | } | ||
374 | } | ||
375 | program { name: "sb_vbar_show"; | ||
376 | signal: "do-show-vbar"; | ||
377 | source: ""; | ||
378 | action: STATE_SET "default" 0.0; | ||
379 | transition: LINEAR 0.5; | ||
380 | target: "sb_vbar_clip"; | ||
381 | } | ||
382 | program { name: "sb_vbar_hide"; | ||
383 | signal: "do-hide-vbar"; | ||
384 | source: ""; | ||
385 | action: STATE_SET "hidden" 0.0; | ||
386 | transition: LINEAR 0.5; | ||
387 | target: "sb_vbar_clip"; | ||
388 | } | ||
389 | |||
390 | program { name: "hbar_show"; | ||
391 | signal: "elm,action,show,hbar"; | ||
392 | source: "elm"; | ||
393 | action: STATE_SET "default" 0.0; | ||
394 | target: "sb_hbar_clip_master"; | ||
395 | } | ||
396 | program { name: "hbar_hide"; | ||
397 | signal: "elm,action,hide,hbar"; | ||
398 | source: "elm"; | ||
399 | action: STATE_SET "hidden" 0.0; | ||
400 | target: "sb_hbar_clip_master"; | ||
401 | } | ||
402 | program { name: "hbar_show_always"; | ||
403 | signal: "elm,action,show_always,hbar"; | ||
404 | source: "elm"; | ||
405 | script { | ||
406 | new v; | ||
407 | v = get_int(sbvis_h); | ||
408 | v |= get_int(sbalways_h); | ||
409 | if (!v) { | ||
410 | set_int(sbalways_h, 1); | ||
411 | emit("do-show-hbar", ""); | ||
412 | set_int(sbvis_h, 1); | ||
413 | } | ||
414 | } | ||
415 | } | ||
416 | program { name: "hbar_show_notalways"; | ||
417 | signal: "elm,action,show_notalways,hbar"; | ||
418 | source: "elm"; | ||
419 | script { | ||
420 | new v; | ||
421 | v = get_int(sbalways_h); | ||
422 | if (v) { | ||
423 | set_int(sbalways_h, 0); | ||
424 | v = get_int(sbvis_h); | ||
425 | if (!v) { | ||
426 | emit("do-hide-hbar", ""); | ||
427 | set_int(sbvis_h, 0); | ||
428 | } | ||
429 | } | ||
430 | } | ||
431 | } | ||
432 | program { name: "sb_hbar_show"; | ||
433 | signal: "do-show-hbar"; | ||
434 | source: ""; | ||
435 | action: STATE_SET "default" 0.0; | ||
436 | transition: LINEAR 0.5; | ||
437 | target: "sb_hbar_clip"; | ||
438 | } | ||
439 | program { name: "sb_hbar_hide"; | ||
440 | signal: "do-hide-hbar"; | ||
441 | source: ""; | ||
442 | action: STATE_SET "hidden" 0.0; | ||
443 | transition: LINEAR 0.5; | ||
444 | target: "sb_hbar_clip"; | ||
445 | } | ||
446 | |||
447 | program { name: "scroll"; | ||
448 | signal: "elm,action,scroll"; | ||
449 | source: "elm"; | ||
450 | script { | ||
451 | new v; | ||
452 | v = get_int(sbvis_v); | ||
453 | v |= get_int(sbalways_v); | ||
454 | if (!v) { | ||
455 | emit("do-show-vbar", ""); | ||
456 | set_int(sbvis_v, 1); | ||
457 | } | ||
458 | v = get_int(sbvis_h); | ||
459 | v |= get_int(sbalways_h); | ||
460 | if (!v) { | ||
461 | emit("do-show-hbar", ""); | ||
462 | set_int(sbvis_h, 1); | ||
463 | } | ||
464 | v = get_int(sbvis_timer); | ||
465 | if (v > 0) cancel_timer(v); | ||
466 | v = timer(1.0, "timer0", 0); | ||
467 | set_int(sbvis_timer, v); | ||
468 | } | ||
469 | } | ||
470 | |||
471 | program { name: "highlight_show"; | ||
472 | signal: "elm,action,focus_highlight,show"; | ||
473 | source: "elm"; | ||
474 | action: STATE_SET "enabled" 0.0; | ||
475 | transition: ACCELERATE 0.3; | ||
476 | target: "focus_highlight"; | ||
477 | target: "conf_over"; | ||
478 | } | ||
479 | program { name: "highlight_hide"; | ||
480 | signal: "elm,action,focus_highlight,hide"; | ||
481 | source: "elm"; | ||
482 | action: STATE_SET "default" 0.0; | ||
483 | transition: DECELERATE 0.3; | ||
484 | target: "focus_highlight"; | ||
485 | target: "conf_over"; | ||
486 | } | ||
487 | program { name: "disable"; | ||
488 | signal: "elm,state,disabled"; | ||
489 | source: "elm"; | ||
490 | action: STATE_SET "disabled" 0.0; | ||
491 | target: "disabler"; | ||
492 | } | ||
493 | program { name: "enable"; | ||
494 | signal: "elm,state,enabled"; | ||
495 | source: "elm"; | ||
496 | action: STATE_SET "default" 0.0; | ||
497 | target: "disabler"; | ||
498 | } | ||
499 | } | ||
500 | } | ||
501 | |||
502 | /////////////////////////////////////////////////////////////////////////////// | ||
diff --git a/libraries/elementary/data/themes/widgets/segment_control.edc b/libraries/elementary/data/themes/widgets/segment_control.edc new file mode 100644 index 0000000..39dfbee --- /dev/null +++ b/libraries/elementary/data/themes/widgets/segment_control.edc | |||
@@ -0,0 +1,533 @@ | |||
1 | /////////////////////////////////////////////////////////////////////////////// | ||
2 | group { name: "elm/segment_control/base/default"; | ||
3 | #define SEGMENT_TYPE_SINGLE 1 | ||
4 | #define SEGMENT_TYPE_LEFT 2 | ||
5 | #define SEGMENT_TYPE_MIDDLE 3 | ||
6 | #define SEGMENT_TYPE_RIGHT 4 | ||
7 | #define SEGMENT_STATE_NORMAL 1 | ||
8 | #define SEGMENT_STATE_PRESSED 2 | ||
9 | #define SEGMENT_STATE_SELECTED 3 | ||
10 | #define SEGMENT_STATUS_ENABLED 0 | ||
11 | #define SEGMENT_STATUS_DISABLED 1 | ||
12 | parts { | ||
13 | part { name: "bg"; | ||
14 | type: RECT; | ||
15 | mouse_events: 0; | ||
16 | scale: 1; | ||
17 | description { | ||
18 | state: "default" 0.0; | ||
19 | color: 0 0 0 0; | ||
20 | min: 100 40; | ||
21 | } | ||
22 | } | ||
23 | } | ||
24 | } | ||
25 | group { name: "elm/segment_control/item/default"; | ||
26 | images { | ||
27 | image: "seg_single_pressed.png" COMP; | ||
28 | image: "seg_single_selected.png" COMP; | ||
29 | image: "seg_single_normal.png" COMP; | ||
30 | |||
31 | image: "seg_left_pressed.png" COMP; | ||
32 | image: "seg_left_selected.png" COMP; | ||
33 | image: "seg_left_normal.png" COMP; | ||
34 | |||
35 | image: "seg_middle_pressed.png" COMP; | ||
36 | image: "seg_middle_selected.png" COMP; | ||
37 | image: "seg_middle_normal.png" COMP; | ||
38 | |||
39 | image: "seg_right_pressed.png" COMP; | ||
40 | image: "seg_right_selected.png" COMP; | ||
41 | image: "seg_right_normal.png" COMP; | ||
42 | } | ||
43 | parts { | ||
44 | part { name: "segment"; | ||
45 | mouse_events: 1; | ||
46 | scale: 1; | ||
47 | description { state: "default" 0.0; | ||
48 | min: 1 1; | ||
49 | visible: 0; | ||
50 | image { | ||
51 | normal: "seg_single_normal.png"; | ||
52 | border: 7 7 7 7; | ||
53 | border_scale: 1; | ||
54 | middle: 1; | ||
55 | } | ||
56 | } | ||
57 | description { state: "default_single" 0.0; | ||
58 | inherit: "default" 0.0; | ||
59 | visible: 1; | ||
60 | image { | ||
61 | normal: "seg_single_normal.png"; | ||
62 | border: 7 7 7 7; | ||
63 | } | ||
64 | } | ||
65 | description { state: "default_left" 0.0; | ||
66 | inherit: "default" 0.0; | ||
67 | visible: 1; | ||
68 | image { | ||
69 | normal: "seg_left_normal.png"; | ||
70 | border: 6 1 7 7; | ||
71 | } | ||
72 | } | ||
73 | description { state: "default_right" 0.0; | ||
74 | inherit: "default" 0.0; | ||
75 | visible: 1; | ||
76 | image { | ||
77 | normal: "seg_right_normal.png"; | ||
78 | border: 1 6 7 7; | ||
79 | } | ||
80 | } | ||
81 | description { state: "default_middle" 0.0; | ||
82 | inherit: "default" 0.0; | ||
83 | visible: 1; | ||
84 | image { | ||
85 | normal: "seg_middle_normal.png"; | ||
86 | border: 2 2 2 2; | ||
87 | } | ||
88 | } | ||
89 | description { state: "pressed_single" 0.0; | ||
90 | inherit: "default" 0.0; | ||
91 | visible: 1; | ||
92 | image { | ||
93 | normal: "seg_single_pressed.png"; | ||
94 | border: 7 7 7 7; | ||
95 | } | ||
96 | } | ||
97 | description { state: "pressed_left" 0.0; | ||
98 | inherit: "default" 0.0; | ||
99 | visible: 1; | ||
100 | image { | ||
101 | normal: "seg_left_pressed.png"; | ||
102 | border: 6 1 7 7; | ||
103 | } | ||
104 | } | ||
105 | description { state: "pressed_right" 0.0; | ||
106 | inherit: "default" 0.0; | ||
107 | visible: 1; | ||
108 | image { | ||
109 | normal: "seg_right_pressed.png"; | ||
110 | border: 1 6 7 7; | ||
111 | } | ||
112 | } | ||
113 | description { state: "pressed_middle" 0.0; | ||
114 | inherit: "default" 0.0; | ||
115 | visible: 1; | ||
116 | image { | ||
117 | normal: "seg_middle_pressed.png"; | ||
118 | border: 1 1 2 2; | ||
119 | } | ||
120 | } | ||
121 | description { state: "selected_single" 0.0; | ||
122 | inherit: "default" 0.0; | ||
123 | visible: 1; | ||
124 | image { | ||
125 | normal: "seg_single_selected.png"; | ||
126 | border: 7 7 7 7; | ||
127 | } | ||
128 | } | ||
129 | description { state: "selected_left" 0.0; | ||
130 | inherit: "default" 0.0; | ||
131 | visible: 1; | ||
132 | image { | ||
133 | normal: "seg_left_selected.png"; | ||
134 | border: 6 3 7 7; | ||
135 | } | ||
136 | } | ||
137 | description { state: "selected_right" 0.0; | ||
138 | inherit: "default" 0.0; | ||
139 | visible: 1; | ||
140 | image { | ||
141 | normal: "seg_right_selected.png"; | ||
142 | border: 3 6 7 7; | ||
143 | } | ||
144 | } | ||
145 | description { state: "selected_middle" 0.0; | ||
146 | inherit: "default" 0.0; | ||
147 | visible: 1; | ||
148 | image { | ||
149 | normal: "seg_middle_selected.png"; | ||
150 | border: 3 3 3 3; | ||
151 | } | ||
152 | } | ||
153 | } | ||
154 | part { name: "padding_frame"; | ||
155 | type: RECT; | ||
156 | scale: 1; | ||
157 | mouse_events: 0; | ||
158 | description { state: "default" 0.0; | ||
159 | visible: 0; | ||
160 | /* Add a padding of 2 pxs in all directions */ | ||
161 | rel1.offset: 2 2; | ||
162 | rel2.offset: -3 -3; | ||
163 | } | ||
164 | } | ||
165 | part { name: "icon.bg"; | ||
166 | type: RECT; | ||
167 | scale: 1; | ||
168 | mouse_events: 0; | ||
169 | description { state: "default" 0.0; | ||
170 | visible: 0; | ||
171 | fixed: 1 0; | ||
172 | rel1.to: "elm.swallow.icon"; | ||
173 | rel2.to: "elm.swallow.icon"; | ||
174 | } | ||
175 | } | ||
176 | part { name: "padding_icon_text"; | ||
177 | type: RECT; | ||
178 | scale: 1; | ||
179 | mouse_events: 0; | ||
180 | description { state: "default" 0.0; //when only icon or no icon is there | ||
181 | visible: 0; | ||
182 | align: 0.0 0.0; | ||
183 | rel1 { | ||
184 | to: "icon.bg"; | ||
185 | relative: 1.0 0.0; | ||
186 | } | ||
187 | rel2 { | ||
188 | to: "icon.bg"; | ||
189 | relative: 1.0 1.0; | ||
190 | } | ||
191 | } | ||
192 | description { state: "icononly" 0.0; | ||
193 | inherit: "default" 0.0; | ||
194 | } | ||
195 | description { state: "visible" 0.0; //when icon is visible | ||
196 | inherit: "default" 0.0; | ||
197 | rel2.offset: 2 0; | ||
198 | } | ||
199 | } | ||
200 | part { name: "elm.swallow.icon"; | ||
201 | type: SWALLOW; | ||
202 | scale: 1; | ||
203 | description { state: "default" 0.0; | ||
204 | visible: 0; | ||
205 | align: 0.5 0.5; | ||
206 | rel1.to: "padding_frame"; | ||
207 | rel2.to: "padding_frame"; | ||
208 | rel2.relative: 0.0 0.0; | ||
209 | aspect: 1.0 1.0; | ||
210 | aspect_preference: BOTH; | ||
211 | } | ||
212 | description { state: "visible" 0.0; | ||
213 | inherit: "default" 0.0; | ||
214 | visible: 1; | ||
215 | rel2.relative: 0.3 1.0; | ||
216 | } | ||
217 | description { state: "icononly" 0.0; | ||
218 | inherit: "default" 0.0; | ||
219 | visible: 1; | ||
220 | rel2.relative: 1.0 1.0; | ||
221 | } | ||
222 | } | ||
223 | part { name: "elm.text"; | ||
224 | type: TEXT; | ||
225 | mouse_events: 0; | ||
226 | scale: 1; | ||
227 | description { | ||
228 | state: "default" 0.0; | ||
229 | visible: 0; | ||
230 | fixed: 1 1; | ||
231 | min: 1 1; | ||
232 | rel1 { | ||
233 | to_x: "padding_icon_text"; | ||
234 | relative: 1.0 0.0; | ||
235 | } | ||
236 | rel2.to: "padding_frame"; | ||
237 | color: 224 224 224 255; | ||
238 | color3: 0 0 0 64; | ||
239 | text { | ||
240 | font: "Sans"; | ||
241 | ellipsis: 0.0; | ||
242 | fit: 1 1; | ||
243 | size: 24; | ||
244 | size_range: 8 36; | ||
245 | min: 0 1; | ||
246 | } | ||
247 | } | ||
248 | description { state: "normal" 0.0; | ||
249 | inherit: "default" 0.0; | ||
250 | visible: 1; | ||
251 | } | ||
252 | description { state: "pressed" 0.0; | ||
253 | inherit: "default" 0.0; | ||
254 | visible: 1; | ||
255 | color: 0 0 0 255; | ||
256 | } | ||
257 | description { state: "selected" 0.0; | ||
258 | inherit: "default" 0.0; | ||
259 | visible: 1; | ||
260 | color: 50 50 50 255; | ||
261 | } | ||
262 | description { state: "disabled" 0.0; | ||
263 | inherit: "default" 0.0; | ||
264 | visible: 1; | ||
265 | color: 200 200 200 255; | ||
266 | } | ||
267 | } | ||
268 | part { name: "disabler"; | ||
269 | repeat_events: 0; | ||
270 | scale: 1; | ||
271 | description { state: "default" 0.0; | ||
272 | visible: 0; | ||
273 | fixed: 1 1; | ||
274 | min: 1 1; | ||
275 | align: 0.0 0.5; | ||
276 | rel1 { | ||
277 | relative: 0.0 0.0; | ||
278 | to: "segment"; | ||
279 | } | ||
280 | rel2 { | ||
281 | relative: 1.0 1.0; | ||
282 | to: "segment"; | ||
283 | } | ||
284 | color: 255 255 255 150; | ||
285 | } | ||
286 | description { state: "disabled_single" 0.0; | ||
287 | inherit: "default" 0.0; | ||
288 | visible: 1; | ||
289 | image { | ||
290 | normal: "seg_single_normal.png"; | ||
291 | border: 7 7 7 7; | ||
292 | } | ||
293 | } | ||
294 | description { state: "disabled_left" 0.0; | ||
295 | inherit: "default" 0.0; | ||
296 | visible: 1; | ||
297 | image { | ||
298 | normal: "seg_left_normal.png"; | ||
299 | border: 6 1 7 7; | ||
300 | } | ||
301 | } | ||
302 | description { state: "disabled_right" 0.0; | ||
303 | inherit: "default" 0.0; | ||
304 | visible: 1; | ||
305 | image { | ||
306 | normal: "seg_right_normal.png"; | ||
307 | border: 1 6 7 7; | ||
308 | } | ||
309 | } | ||
310 | description { state: "disabled_middle" 0.0; | ||
311 | inherit: "default" 0.0; | ||
312 | visible: 1; | ||
313 | image { | ||
314 | normal: "seg_middle_normal.png"; | ||
315 | border: 2 2 2 2; | ||
316 | } | ||
317 | } | ||
318 | } | ||
319 | } | ||
320 | programs { | ||
321 | script { | ||
322 | public seg_type; // Single, Left, Middle, Right. | ||
323 | public seg_state; // Normal/Default, Pressed, Selected. | ||
324 | public seg_status;// Enabled/Default, Disabled | ||
325 | |||
326 | public update_state() { | ||
327 | new type, state, disabled; | ||
328 | type = get_int(seg_type); | ||
329 | state = get_int(seg_state); | ||
330 | disabled = get_int(seg_status); | ||
331 | |||
332 | if(state == SEGMENT_STATE_NORMAL) | ||
333 | { | ||
334 | if(type == SEGMENT_TYPE_SINGLE) | ||
335 | set_state(PART:"segment", "default_single", 0.0); | ||
336 | else if(type == SEGMENT_TYPE_LEFT) | ||
337 | set_state(PART:"segment", "default_left", 0.0); | ||
338 | else if(type == SEGMENT_TYPE_MIDDLE) | ||
339 | set_state(PART:"segment", "default_middle", 0.0); | ||
340 | else if(type == SEGMENT_TYPE_RIGHT) | ||
341 | set_state(PART:"segment", "default_right", 0.0); | ||
342 | set_state(PART:"elm.text", "normal", 0.0); | ||
343 | } | ||
344 | else if(state == SEGMENT_STATE_PRESSED) | ||
345 | { | ||
346 | if(type == SEGMENT_TYPE_SINGLE) | ||
347 | set_state(PART:"segment", "pressed_single", 0.0); | ||
348 | else if(type == SEGMENT_TYPE_LEFT) | ||
349 | set_state(PART:"segment", "pressed_left", 0.0); | ||
350 | else if(type == SEGMENT_TYPE_MIDDLE) | ||
351 | set_state(PART:"segment", "pressed_middle", 0.0); | ||
352 | else if(type == SEGMENT_TYPE_RIGHT) | ||
353 | set_state(PART:"segment", "pressed_right", 0.0); | ||
354 | set_state(PART:"elm.text", "pressed", 0.0); | ||
355 | } | ||
356 | else if(state == SEGMENT_STATE_SELECTED) | ||
357 | { | ||
358 | if(type == SEGMENT_TYPE_SINGLE) | ||
359 | set_state(PART:"segment", "selected_single", 0.0); | ||
360 | else if(type == SEGMENT_TYPE_LEFT) | ||
361 | set_state(PART:"segment", "selected_left", 0.0); | ||
362 | else if(type == SEGMENT_TYPE_MIDDLE) | ||
363 | set_state(PART:"segment", "selected_middle", 0.0); | ||
364 | else if(type == SEGMENT_TYPE_RIGHT) | ||
365 | set_state(PART:"segment", "selected_right", 0.0); | ||
366 | set_state(PART:"elm.text", "selected", 0.0); | ||
367 | } | ||
368 | if(disabled == SEGMENT_STATUS_DISABLED) | ||
369 | { | ||
370 | if(type == SEGMENT_TYPE_SINGLE) | ||
371 | set_state(PART:"disabler", "disabled_single", 0.0); | ||
372 | else if(type == SEGMENT_TYPE_LEFT) | ||
373 | set_state(PART:"disabler", "disabled_left", 0.0); | ||
374 | else if(type == SEGMENT_TYPE_MIDDLE) | ||
375 | set_state(PART:"disabler", "disabled_middle", 0.0); | ||
376 | else if(type == SEGMENT_TYPE_RIGHT) | ||
377 | set_state(PART:"disabler", "disabled_right", 0.0); | ||
378 | set_state(PART:"elm.text", "disabled", 0.0); | ||
379 | } | ||
380 | else | ||
381 | set_state(PART:"disabler", "default", 0.0); | ||
382 | |||
383 | } | ||
384 | } | ||
385 | program { | ||
386 | name: "segment_type_s"; | ||
387 | signal: "elm,type,segment,single"; | ||
388 | source: "elm"; | ||
389 | script { | ||
390 | set_int(seg_type, SEGMENT_TYPE_SINGLE); | ||
391 | update_state(); | ||
392 | } | ||
393 | } | ||
394 | program { | ||
395 | name: "segment_type_l"; | ||
396 | signal: "elm,type,segment,left"; | ||
397 | source: "elm"; | ||
398 | script { | ||
399 | set_int(seg_type, SEGMENT_TYPE_LEFT); | ||
400 | update_state(); | ||
401 | } | ||
402 | } | ||
403 | program { | ||
404 | name: "segment_type_m"; | ||
405 | signal: "elm,type,segment,middle"; | ||
406 | source: "elm"; | ||
407 | script { | ||
408 | set_int(seg_type, SEGMENT_TYPE_MIDDLE); | ||
409 | update_state(); | ||
410 | } | ||
411 | } | ||
412 | program { | ||
413 | name: "segment_type_r"; | ||
414 | signal: "elm,type,segment,right"; | ||
415 | source: "elm"; | ||
416 | script { | ||
417 | set_int(seg_type, SEGMENT_TYPE_RIGHT); | ||
418 | update_state(); | ||
419 | } | ||
420 | } | ||
421 | program { | ||
422 | name: "normal_segment"; | ||
423 | signal: "elm,state,segment,normal"; | ||
424 | source: "elm"; | ||
425 | script { | ||
426 | set_int(seg_state, SEGMENT_STATE_NORMAL); | ||
427 | update_state(); | ||
428 | } | ||
429 | } | ||
430 | program { | ||
431 | name: "pressed_segment"; | ||
432 | signal: "elm,state,segment,pressed"; | ||
433 | source: "elm"; | ||
434 | script { | ||
435 | set_int(seg_state, SEGMENT_STATE_PRESSED); | ||
436 | update_state(); | ||
437 | } | ||
438 | } | ||
439 | program { | ||
440 | name: "selected_segment"; | ||
441 | signal: "elm,state,segment,selected"; | ||
442 | source: "elm"; | ||
443 | script { | ||
444 | set_int(seg_state, SEGMENT_STATE_SELECTED); | ||
445 | update_state(); | ||
446 | } | ||
447 | } | ||
448 | program { name: "disable_segment"; | ||
449 | signal: "elm,state,disabled"; | ||
450 | source: "elm"; | ||
451 | script { | ||
452 | set_int(seg_status, SEGMENT_STATUS_DISABLED); | ||
453 | update_state(); | ||
454 | } | ||
455 | } | ||
456 | program { name: "enable_segment"; | ||
457 | signal: "elm,state,enabled"; | ||
458 | source: "elm"; | ||
459 | script { | ||
460 | set_int(seg_status, SEGMENT_STATUS_ENABLED); | ||
461 | update_state(); | ||
462 | } | ||
463 | } | ||
464 | program { name: "text_show"; | ||
465 | signal: "elm,state,text,visible"; | ||
466 | source: "elm"; | ||
467 | script { | ||
468 | new st[31]; | ||
469 | new Float:vl; | ||
470 | get_state(PART:"elm.swallow.icon", st, 30, vl); | ||
471 | if (!strcmp(st, "icononly")) | ||
472 | { | ||
473 | set_state(PART:"elm.swallow.icon", "visible", 0.0); | ||
474 | set_state(PART:"padding_icon_text", "visible", 0.0); | ||
475 | } | ||
476 | get_state(PART:"elm.text", st, 30, vl); | ||
477 | if (!strcmp(st, "selected")) | ||
478 | set_state(PART:"elm.text", "selected", 0.0); | ||
479 | else | ||
480 | set_state(PART:"elm.text", "normal", 0.0); | ||
481 | } | ||
482 | } | ||
483 | program { name: "text_hide"; | ||
484 | signal: "elm,state,text,hidden"; | ||
485 | source: "elm"; | ||
486 | script { | ||
487 | new st[31]; | ||
488 | new Float:vl; | ||
489 | get_state(PART:"elm.swallow.icon", st, 30, vl); | ||
490 | if (!strcmp(st, "visible")) | ||
491 | { | ||
492 | set_state(PART:"elm.swallow.icon", "icononly", 0.0); | ||
493 | set_state(PART:"padding_icon_text", "icononly", 0.0); | ||
494 | } | ||
495 | set_state(PART:"elm.text", "default", 0.0); | ||
496 | } | ||
497 | } | ||
498 | program { name: "icon_show"; | ||
499 | signal: "elm,state,icon,visible"; | ||
500 | source: "elm"; | ||
501 | script { | ||
502 | new st[31]; | ||
503 | new Float:vl; | ||
504 | get_state(PART:"elm.text", st, 30, vl); | ||
505 | if ((!strcmp(st, "normal")) || (!strcmp(st, "selected"))) | ||
506 | { | ||
507 | set_state(PART:"elm.swallow.icon", "visible", 0.0); | ||
508 | set_state(PART:"padding_icon_text", "visible", 0.0); | ||
509 | } | ||
510 | else | ||
511 | { | ||
512 | set_state(PART:"elm.swallow.icon", "icononly", 0.0); | ||
513 | set_state(PART:"padding_icon_text", "icononly", 0.0); | ||
514 | } | ||
515 | } | ||
516 | } | ||
517 | program { name: "icon_hide"; | ||
518 | signal: "elm,state,icon,hidden"; | ||
519 | source: "elm"; | ||
520 | action: STATE_SET "default" 0.0; | ||
521 | target: "elm.swallow.icon"; | ||
522 | } | ||
523 | } | ||
524 | #undef SEGMENT_TYPE_SINGLE | ||
525 | #undef SEGMENT_TYPE_LEFT | ||
526 | #undef SEGMENT_TYPE_MIDDLE | ||
527 | #undef SEGMENT_TYPE_RIGHT | ||
528 | #undef SEGMENT_STATE_NORMAL | ||
529 | #undef SEGMENT_STATE_PRESSED | ||
530 | #undef SEGMENT_STATE_SELECTED | ||
531 | #undef SEGMENT_STATUS_ENABLED | ||
532 | #undef SEGMENT_STATUS_DISABLED | ||
533 | } | ||
diff --git a/libraries/elementary/data/themes/widgets/separator.edc b/libraries/elementary/data/themes/widgets/separator.edc new file mode 100644 index 0000000..0780c53 --- /dev/null +++ b/libraries/elementary/data/themes/widgets/separator.edc | |||
@@ -0,0 +1,43 @@ | |||
1 | group { name: "elm/separator/horizontal/default"; | ||
2 | images { | ||
3 | image: "separator_h.png" COMP; | ||
4 | } | ||
5 | parts { | ||
6 | part { name: "separator"; // separator group | ||
7 | description { state: "default" 0.0; | ||
8 | min: 2 2; | ||
9 | rel1.offset: 4 4; | ||
10 | rel2.offset: -5 -5; | ||
11 | image { | ||
12 | normal: "separator_h.png"; | ||
13 | } | ||
14 | fill { | ||
15 | smooth: 0; | ||
16 | } | ||
17 | } | ||
18 | } | ||
19 | } | ||
20 | } | ||
21 | |||
22 | /////////////////////////////////////////////////////////////////////////////// | ||
23 | group { name: "elm/separator/vertical/default"; | ||
24 | images { | ||
25 | image: "separator_v.png" COMP; | ||
26 | } | ||
27 | parts { | ||
28 | part { name: "separator"; // separator group | ||
29 | description { state: "default" 0.0; | ||
30 | min: 2 2; | ||
31 | rel1.offset: 4 4; | ||
32 | rel2.offset: -5 -5; | ||
33 | image { | ||
34 | normal: "separator_v.png"; | ||
35 | } | ||
36 | fill { | ||
37 | smooth: 0; | ||
38 | } | ||
39 | } | ||
40 | } | ||
41 | } | ||
42 | } | ||
43 | |||
diff --git a/libraries/elementary/data/themes/widgets/slider.edc b/libraries/elementary/data/themes/widgets/slider.edc new file mode 100644 index 0000000..ab60f5b --- /dev/null +++ b/libraries/elementary/data/themes/widgets/slider.edc | |||
@@ -0,0 +1,1385 @@ | |||
1 | group { name: "elm/slider/hidden/limit"; | ||
2 | parts { | ||
3 | part { name: "elm.units.min"; | ||
4 | type: TEXT; | ||
5 | mouse_events: 0; | ||
6 | scale: 1; | ||
7 | description { state: "default" 0.0; | ||
8 | visible: 0; | ||
9 | align: 1.0 0.5; | ||
10 | color: 0 0 0 255; | ||
11 | text { | ||
12 | font: "Sans,Edje-Vera"; | ||
13 | size: 10; | ||
14 | min: 0 0; | ||
15 | align: 0.0 0.5; | ||
16 | } | ||
17 | } | ||
18 | description { state: "visible" 0.0; | ||
19 | inherit: "default" 0.0; | ||
20 | text.min: 1 1; | ||
21 | } | ||
22 | } | ||
23 | part { name: "elm.units.max"; | ||
24 | type: TEXT; | ||
25 | mouse_events: 0; | ||
26 | scale: 1; | ||
27 | description { state: "default" 0.0; | ||
28 | visible: 0; | ||
29 | align: 1.0 0.5; | ||
30 | color: 0 0 0 255; | ||
31 | text { | ||
32 | font: "Sans,Edje-Vera"; | ||
33 | size: 10; | ||
34 | min: 0 0; | ||
35 | align: 0.0 0.5; | ||
36 | } | ||
37 | } | ||
38 | description { state: "visible" 0.0; | ||
39 | inherit: "default" 0.0; | ||
40 | text.min: 1 1; | ||
41 | } | ||
42 | } | ||
43 | } | ||
44 | programs { | ||
45 | program { name: "visisble"; | ||
46 | signal: "limits,visible"; | ||
47 | source: "elm"; | ||
48 | action: STATE_SET "visible" 0.0; | ||
49 | target: "elm.units.min"; | ||
50 | target: "elm.units.max"; | ||
51 | } | ||
52 | program { name: "hide"; | ||
53 | signal: "limits,hide"; | ||
54 | source: "elm"; | ||
55 | action: STATE_SET "default" 0.0; | ||
56 | target: "elm.units.min"; | ||
57 | target: "elm.units.max"; | ||
58 | } | ||
59 | } | ||
60 | } | ||
61 | |||
62 | group { name: "elm/slider/horizontal/default"; | ||
63 | alias: "elm/slider/horizontal/disabled"; | ||
64 | images { | ||
65 | image: "sl_bg.png" COMP; | ||
66 | image: "sl_bg_over.png" COMP; | ||
67 | |||
68 | image: "sl_units.png" COMP; | ||
69 | } | ||
70 | parts { | ||
71 | alias: "default" "elm.text"; | ||
72 | part { name: "base"; | ||
73 | mouse_events: 0; | ||
74 | description { state: "default" 0.0; | ||
75 | max: 99999 6; | ||
76 | min: 0 6; | ||
77 | rel1 { to: "bg"; | ||
78 | offset: 1 0; | ||
79 | } | ||
80 | rel2 { to: "bg"; | ||
81 | offset: -2 -1; | ||
82 | } | ||
83 | image.normal: "sl_bg.png"; | ||
84 | fill.smooth: 0; | ||
85 | } | ||
86 | } | ||
87 | part { name: "level"; | ||
88 | type: RECT; | ||
89 | mouse_events: 0; | ||
90 | description { state: "default" 0.0; | ||
91 | fixed: 1 1; | ||
92 | rel1.to: "base"; | ||
93 | rel2 { | ||
94 | to_y: "base"; | ||
95 | to_x: "elm.dragable.slider"; | ||
96 | relative: 0.5 1.0; | ||
97 | } | ||
98 | color: 255 0 0 200; | ||
99 | } | ||
100 | description { state: "inverted" 0.0; | ||
101 | inherit: "default" 0.0; | ||
102 | visible: 0; | ||
103 | } | ||
104 | description { state: "disabled" 0.0; | ||
105 | inherit: "default" 0.0; | ||
106 | color: 255 0 0 100; | ||
107 | } | ||
108 | description { state: "disabled_inverted" 0.0; | ||
109 | inherit: "default" 0.0; | ||
110 | visible: 0; | ||
111 | } | ||
112 | } | ||
113 | part { name: "level2"; | ||
114 | type: RECT; | ||
115 | mouse_events: 0; | ||
116 | description { state: "default" 0.0; | ||
117 | fixed: 1 1; | ||
118 | visible: 0; | ||
119 | rel1 { | ||
120 | to_y: "base"; | ||
121 | to_x: "elm.dragable.slider"; | ||
122 | relative: 0.5 0.0; | ||
123 | } | ||
124 | rel2.to: "base"; | ||
125 | color: 255 0 0 200; | ||
126 | } | ||
127 | description { state: "inverted" 0.0; | ||
128 | inherit: "default" 0.0; | ||
129 | visible: 1; | ||
130 | } | ||
131 | description { state: "disabled" 0.0; | ||
132 | inherit: "default" 0.0; | ||
133 | } | ||
134 | description { state: "disabled_inverted" 0.0; | ||
135 | inherit: "default" 0.0; | ||
136 | color: 255 0 0 100; | ||
137 | visible: 1; | ||
138 | } | ||
139 | } | ||
140 | part { | ||
141 | name: "base_over"; | ||
142 | mouse_events: 0; | ||
143 | description { state: "default" 0.0; | ||
144 | rel1.to: "base"; | ||
145 | rel1.offset: -1 -1; | ||
146 | rel2.to: "base"; | ||
147 | rel2.offset: 0 0; | ||
148 | image { | ||
149 | normal: "sl_bg_over.png"; | ||
150 | border: 3 3 3 3; | ||
151 | } | ||
152 | fill.smooth: 0; | ||
153 | } | ||
154 | } | ||
155 | part { name: "bg"; | ||
156 | type: RECT; | ||
157 | mouse_events: 0; | ||
158 | scale: 1; | ||
159 | description { state: "default" 0.0; | ||
160 | visible: 0; | ||
161 | rel1.to: "elm.swallow.bar"; | ||
162 | rel2.to: "elm.swallow.bar"; | ||
163 | color: 0 0 0 0; | ||
164 | } | ||
165 | } | ||
166 | part { name: "elm.swallow.bar"; | ||
167 | type: SWALLOW; | ||
168 | scale: 1; | ||
169 | description { state: "default" 0.0; | ||
170 | min: 48 24; | ||
171 | max: 99999 24; | ||
172 | align: 1.0 0.5; | ||
173 | rel1 { | ||
174 | to_x: "elm.text"; | ||
175 | relative: 1.0 0.0; | ||
176 | offset: 8 0; | ||
177 | } | ||
178 | rel2 { | ||
179 | to_x: "limits"; | ||
180 | relative: 0.0 1.0; | ||
181 | offset: -10 -1; | ||
182 | } | ||
183 | } | ||
184 | } | ||
185 | part { name: "elm.swallow.icon"; | ||
186 | type: SWALLOW; | ||
187 | description { state: "default" 0.0; | ||
188 | visible: 0; | ||
189 | align: 0.0 0.5; | ||
190 | rel1 { | ||
191 | offset: 4 0; | ||
192 | to_y: "elm.swallow.bar"; | ||
193 | } | ||
194 | rel2 { | ||
195 | offset: 3 -1; | ||
196 | relative: 0.0 1.0; | ||
197 | to_y: "elm.swallow.bar"; | ||
198 | } | ||
199 | } | ||
200 | description { state: "visible" 0.0; | ||
201 | inherit: "default" 0.0; | ||
202 | visible: 1; | ||
203 | aspect: 1.0 1.0; | ||
204 | aspect_preference: VERTICAL; | ||
205 | rel2.offset: 4 -1; | ||
206 | } | ||
207 | } | ||
208 | part { name: "elm.text"; | ||
209 | type: TEXT; | ||
210 | mouse_events: 0; | ||
211 | scale: 1; | ||
212 | description { state: "default" 0.0; | ||
213 | visible: 0; | ||
214 | fixed: 1 1; | ||
215 | align: 0.0 0.5; | ||
216 | rel1.to_x: "elm.swallow.icon"; | ||
217 | rel1.relative: 1.0 0.0; | ||
218 | rel1.offset: -1 4; | ||
219 | rel2.to_x: "elm.swallow.icon"; | ||
220 | rel2.relative: 1.0 1.0; | ||
221 | rel2.offset: -1 -5; | ||
222 | color: 0 0 0 255; | ||
223 | text { | ||
224 | font: "Sans,Edje-Vera"; | ||
225 | size: 10; | ||
226 | min: 0 0; | ||
227 | align: 0.0 0.5; | ||
228 | } | ||
229 | } | ||
230 | description { state: "visible" 0.0; | ||
231 | inherit: "default" 0.0; | ||
232 | visible: 1; | ||
233 | text.min: 1 1; | ||
234 | rel1.offset: 0 4; | ||
235 | rel2.offset: 0 -5; | ||
236 | } | ||
237 | description { state: "disabled" 0.0; | ||
238 | inherit: "default" 0.0; | ||
239 | color: 255 128 128 128; | ||
240 | visible: 0; | ||
241 | } | ||
242 | description { state: "disabled_visible" 0.0; | ||
243 | inherit: "default" 0.0; | ||
244 | color: 0 0 0 128; | ||
245 | color3: 0 0 0 0; | ||
246 | visible: 1; | ||
247 | text.min: 1 1; | ||
248 | } | ||
249 | } | ||
250 | part { | ||
251 | name: "elm.swallow.end"; | ||
252 | type: SWALLOW; | ||
253 | description { | ||
254 | state: "default" 0.0; | ||
255 | visible: 0; | ||
256 | align: 1.0 0.5; | ||
257 | rel1 { | ||
258 | offset: -4 0; | ||
259 | relative: 1.0 0.0; | ||
260 | to_y: "elm.swallow.bar"; | ||
261 | } | ||
262 | rel2 { | ||
263 | offset: -3 -1; | ||
264 | to_y: "elm.swallow.bar"; | ||
265 | } | ||
266 | } | ||
267 | description { state: "visible" 0.0; | ||
268 | inherit: "default" 0.0; | ||
269 | visible: 1; | ||
270 | aspect: 1.0 1.0; | ||
271 | aspect_preference: VERTICAL; | ||
272 | rel2.offset: -4 -1; | ||
273 | } | ||
274 | } | ||
275 | part { name: "units"; | ||
276 | mouse_events: 0; | ||
277 | description { state: "default" 0.0; | ||
278 | visible: 0; | ||
279 | rel1 { | ||
280 | to_x: "limits"; | ||
281 | offset: 0 5; | ||
282 | } | ||
283 | rel2 { | ||
284 | to_x: "limits"; | ||
285 | offset: 5 -3; | ||
286 | } | ||
287 | image { | ||
288 | normal: "sl_units.png"; | ||
289 | border: 0 5 3 8; | ||
290 | } | ||
291 | fill.smooth: 0; | ||
292 | } | ||
293 | description { state: "visible" 0.0; | ||
294 | inherit: "default" 0.0; | ||
295 | visible: 1; | ||
296 | } | ||
297 | } | ||
298 | alias: "elm.units.min" "limits:elm.units.min"; | ||
299 | alias: "elm.units.max" "limits:elm.units.max"; | ||
300 | part { name: "limits"; | ||
301 | type: GROUP; | ||
302 | source: "elm/slider/hidden/limit"; | ||
303 | mouse_events: 0; | ||
304 | scale: 1; | ||
305 | description { state: "default" 0.0; | ||
306 | visible: 0; | ||
307 | align: 1.0 0.5; | ||
308 | min: SOURCE; | ||
309 | fixed: 1 1; | ||
310 | rel1.to_x: "elm.swallow.end"; | ||
311 | rel1.relative: 0.0 0.0; | ||
312 | rel1.offset: 0 8; | ||
313 | rel2.to_x: "elm.swallow.end"; | ||
314 | rel2.relative: 0.0 1.0; | ||
315 | rel2.offset: 0 -9; | ||
316 | } | ||
317 | description { state: "visible" 0.0; | ||
318 | inherit: "default" 0.0; | ||
319 | visible: 1; | ||
320 | rel1.offset: -5 0; | ||
321 | rel2.offset: -5 -1; | ||
322 | } | ||
323 | } | ||
324 | part { name: "elm.units"; | ||
325 | type: TEXT; | ||
326 | mouse_events: 0; | ||
327 | scale: 1; | ||
328 | description { state: "default" 0.0; | ||
329 | visible: 0; | ||
330 | fixed: 1 1; | ||
331 | rel1.to_x: "limits"; | ||
332 | rel2.to_x: "limits"; | ||
333 | color: 0 0 0 255; | ||
334 | text { | ||
335 | font: "Sans,Edje-Vera"; | ||
336 | size: 10; | ||
337 | min: 0 0; | ||
338 | align: 1.0 0.5; | ||
339 | } | ||
340 | } | ||
341 | description { state: "visible" 0.0; | ||
342 | inherit: "default" 0.0; | ||
343 | visible: 1; | ||
344 | text.min: 1 1; | ||
345 | } | ||
346 | description { state: "disabled" 0.0; | ||
347 | inherit: "default" 0.0; | ||
348 | color: 255 128 128 128; | ||
349 | visible: 0; | ||
350 | } | ||
351 | description { state: "disabled_visible" 0.0; | ||
352 | inherit: "default" 0.0; | ||
353 | color: 0 0 0 128; | ||
354 | color3: 0 0 0 0; | ||
355 | visible: 1; | ||
356 | text.min: 1 1; | ||
357 | } | ||
358 | } | ||
359 | part { name: "elm.dragable.slider"; | ||
360 | type: GROUP; | ||
361 | source: "elm/slider/horizontal/indicator/default"; | ||
362 | mouse_events: 1; | ||
363 | repeat_events: 1; | ||
364 | scale: 1; | ||
365 | dragable { | ||
366 | x: 1 1 0; | ||
367 | y: 0 0 0; | ||
368 | confine: "bg"; | ||
369 | } | ||
370 | description { state: "default" 0.0; | ||
371 | min: 0 24; | ||
372 | max: 0 24; | ||
373 | fixed: 1 1; | ||
374 | rel1 { | ||
375 | relative: 0.5 0.0; | ||
376 | to_x: "bg"; | ||
377 | } | ||
378 | rel2 { | ||
379 | relative: 0.5 1.0; | ||
380 | to_x: "bg"; | ||
381 | } | ||
382 | color: 255 0 0 100; | ||
383 | } | ||
384 | } | ||
385 | part { name: "disabler"; | ||
386 | type: RECT; | ||
387 | description { state: "default" 0.0; | ||
388 | color: 0 0 0 0; | ||
389 | visible: 0; | ||
390 | } | ||
391 | description { state: "disabled" 0.0; | ||
392 | inherit: "default" 0.0; | ||
393 | visible: 1; | ||
394 | } | ||
395 | } | ||
396 | } | ||
397 | programs { | ||
398 | program { name: "text_show"; | ||
399 | signal: "elm,state,text,visible"; | ||
400 | source: "elm"; | ||
401 | action: STATE_SET "visible" 0.0; | ||
402 | target: "elm.text"; | ||
403 | } | ||
404 | program { name: "text_hide"; | ||
405 | signal: "elm,state,text,hidden"; | ||
406 | source: "elm"; | ||
407 | action: STATE_SET "default" 0.0; | ||
408 | target: "elm.text"; | ||
409 | } | ||
410 | program { name: "icon_show"; | ||
411 | signal: "elm,state,icon,visible"; | ||
412 | source: "elm"; | ||
413 | action: STATE_SET "visible" 0.0; | ||
414 | target: "elm.swallow.icon"; | ||
415 | } | ||
416 | program { name: "icon_hide"; | ||
417 | signal: "elm,state,icon,hidden"; | ||
418 | source: "elm"; | ||
419 | action: STATE_SET "default" 0.0; | ||
420 | target: "elm.swallow.icon"; | ||
421 | } | ||
422 | program { name: "end_show"; | ||
423 | signal: "elm,state,end,visible"; | ||
424 | source: "elm"; | ||
425 | action: STATE_SET "visible" 0.0; | ||
426 | target: "elm.swallow.end"; | ||
427 | } | ||
428 | program { name: "end_hide"; | ||
429 | signal: "elm,state,end,hidden"; | ||
430 | source: "elm"; | ||
431 | action: STATE_SET "default" 0.0; | ||
432 | target: "elm.swallow.end"; | ||
433 | } | ||
434 | program { name: "units_show"; | ||
435 | signal: "elm,state,units,visible"; | ||
436 | source: "elm"; | ||
437 | action: STATE_SET "visible" 0.0; | ||
438 | target: "elm.units"; | ||
439 | target: "limits"; | ||
440 | target: "units"; | ||
441 | after: "limits,children,visible"; | ||
442 | } | ||
443 | program { name: "limits,children,visible"; | ||
444 | action: SIGNAL_EMIT "limits:limits,visible" "elm"; | ||
445 | } | ||
446 | program { name: "units_hide"; | ||
447 | signal: "elm,state,units,hidden"; | ||
448 | source: "elm"; | ||
449 | action: STATE_SET "default" 0.0; | ||
450 | target: "elm.units"; | ||
451 | target: "limits"; | ||
452 | target: "units"; | ||
453 | after: "limits,children,hide"; | ||
454 | } | ||
455 | program { name: "limits,children,hide"; | ||
456 | action: SIGNAL_EMIT "limits:limits,hide" "elm"; | ||
457 | } | ||
458 | program { name: "invert_on"; | ||
459 | signal: "elm,state,inverted,on"; | ||
460 | source: "elm"; | ||
461 | action: STATE_SET "inverted" 0.0; | ||
462 | target: "level"; | ||
463 | target: "level2"; | ||
464 | } | ||
465 | program { name: "invert_off"; | ||
466 | signal: "elm,state,inverted,off"; | ||
467 | source: "elm"; | ||
468 | action: STATE_SET "default" 0.0; | ||
469 | target: "level"; | ||
470 | target: "level2"; | ||
471 | } | ||
472 | program { | ||
473 | name: "go_disabled"; | ||
474 | signal: "elm,state,disabled"; | ||
475 | source: "elm"; | ||
476 | action: STATE_SET "disabled" 0.0; | ||
477 | // target: "button0"; | ||
478 | target: "disabler"; | ||
479 | after: "disable_text"; | ||
480 | after: "disable_ind"; | ||
481 | } | ||
482 | |||
483 | program { name: "disable_ind"; | ||
484 | action: SIGNAL_EMIT "elm.dragable.slider:elm,state,disabled" "elm"; | ||
485 | } | ||
486 | program { name: "disable_text"; | ||
487 | script { | ||
488 | new st[31]; | ||
489 | new Float:vl; | ||
490 | get_state(PART:"elm.text", st, 30, vl); | ||
491 | if (!strcmp(st, "visible")) | ||
492 | set_state(PART:"elm.text", "disabled_visible", 0.0); | ||
493 | else | ||
494 | set_state(PART:"elm.text", "disabled", 0.0); | ||
495 | |||
496 | get_state(PART:"elm.units", st, 30, vl); | ||
497 | if (!strcmp(st, "visible")) | ||
498 | set_state(PART:"elm.units", "disabled_visible", 0.0); | ||
499 | else | ||
500 | set_state(PART:"elm.units", "disabled", 0.0); | ||
501 | |||
502 | get_state(PART:"level2", st, 30, vl); | ||
503 | if (!strcmp(st, "inverted")) | ||
504 | { | ||
505 | set_state(PART:"level", "disabled_inverted", 0.0); | ||
506 | set_state(PART:"level2", "disabled_inverted", 0.0); | ||
507 | } | ||
508 | else | ||
509 | { | ||
510 | set_state(PART:"level", "disabled", 0.0); | ||
511 | set_state(PART:"level2", "disabled", 0.0); | ||
512 | } | ||
513 | } | ||
514 | } | ||
515 | program { name: "enable"; | ||
516 | signal: "elm,state,enabled"; | ||
517 | source: "elm"; | ||
518 | action: STATE_SET "default" 0.0; | ||
519 | // target: "button0"; | ||
520 | target: "disabler"; | ||
521 | after: "enable_text"; | ||
522 | after: "enable_ind"; | ||
523 | } | ||
524 | |||
525 | program { name: "enable_ind"; | ||
526 | action: SIGNAL_EMIT "elm.dragable.slider:elm,state,enabled" "elm"; | ||
527 | } | ||
528 | |||
529 | program { name: "enable_text"; | ||
530 | script { | ||
531 | new st[31]; | ||
532 | new Float:vl; | ||
533 | get_state(PART:"elm.text", st, 30, vl); | ||
534 | if (!strcmp(st, "disabled_visible")) | ||
535 | set_state(PART:"elm.text", "visible", 0.0); | ||
536 | else | ||
537 | set_state(PART:"elm.text", "default", 0.0); | ||
538 | |||
539 | get_state(PART:"elm.units", st, 30, vl); | ||
540 | if (!strcmp(st, "disabled_visible")) | ||
541 | set_state(PART:"elm.units", "visible", 0.0); | ||
542 | else | ||
543 | set_state(PART:"elm.units", "default", 0.0); | ||
544 | |||
545 | get_state(PART:"level2", st, 30, vl); | ||
546 | if (!strcmp(st, "disabled_inverted")) | ||
547 | { | ||
548 | set_state(PART:"level", "inverted", 0.0); | ||
549 | set_state(PART:"level2", "inverted", 0.0); | ||
550 | } | ||
551 | else | ||
552 | { | ||
553 | set_state(PART:"level", "default", 0.0); | ||
554 | set_state(PART:"level2", "default", 0.0); | ||
555 | } | ||
556 | } | ||
557 | } | ||
558 | } | ||
559 | } | ||
560 | |||
561 | group { name: "elm/slider/vertical/default"; | ||
562 | images { | ||
563 | image: "slv_bg.png" COMP; | ||
564 | image: "slv_bg_over.png" COMP; | ||
565 | |||
566 | image: "slv_units.png" COMP; | ||
567 | } | ||
568 | parts { | ||
569 | alias: "default" "elm.text"; | ||
570 | part { name: "base"; | ||
571 | mouse_events: 0; | ||
572 | description { state: "default" 0.0; | ||
573 | max: 6 99999; | ||
574 | min: 6 0; | ||
575 | rel1 { to: "bg"; | ||
576 | offset: 1 0; | ||
577 | } | ||
578 | rel2 { to: "bg"; | ||
579 | offset: -2 -1; | ||
580 | } | ||
581 | image.normal: "slv_bg.png"; | ||
582 | fill.smooth: 0; | ||
583 | } | ||
584 | } | ||
585 | part { name: "level"; | ||
586 | type: RECT; | ||
587 | mouse_events: 0; | ||
588 | description { state: "default" 0.0; | ||
589 | fixed: 1 1; | ||
590 | rel1.to: "base"; | ||
591 | rel2 { | ||
592 | to_x: "base"; | ||
593 | to_y: "elm.dragable.slider"; | ||
594 | relative: 1.0 0.5; | ||
595 | } | ||
596 | color: 255 0 0 200; | ||
597 | } | ||
598 | description { state: "inverted" 0.0; | ||
599 | inherit: "default" 0.0; | ||
600 | visible: 0; | ||
601 | } | ||
602 | description { state: "disabled" 0.0; | ||
603 | inherit: "default" 0.0; | ||
604 | color: 255 0 0 100; | ||
605 | } | ||
606 | description { state: "disabled_inverted" 0.0; | ||
607 | inherit: "default" 0.0; | ||
608 | visible: 0; | ||
609 | } | ||
610 | } | ||
611 | part { name: "level2"; | ||
612 | type: RECT; | ||
613 | mouse_events: 0; | ||
614 | description { state: "default" 0.0; | ||
615 | fixed: 1 1; | ||
616 | visible: 0; | ||
617 | rel1 { | ||
618 | to_x: "base"; | ||
619 | to_y: "elm.dragable.slider"; | ||
620 | relative: 0.0 0.5; | ||
621 | } | ||
622 | rel2.to: "base"; | ||
623 | color: 255 0 0 200; | ||
624 | } | ||
625 | description { state: "inverted" 0.0; | ||
626 | inherit: "default" 0.0; | ||
627 | visible: 1; | ||
628 | } | ||
629 | description { state: "disabled" 0.0; | ||
630 | inherit: "default" 0.0; | ||
631 | color: 255 0 0 100; | ||
632 | } | ||
633 | description { state: "disabled_inverted" 0.0; | ||
634 | inherit: "default" 0.0; | ||
635 | color: 255 0 0 100; | ||
636 | visible: 1; | ||
637 | } | ||
638 | } | ||
639 | part { | ||
640 | name: "base_over"; | ||
641 | mouse_events: 0; | ||
642 | description { state: "default" 0.0; | ||
643 | rel1.to: "base"; | ||
644 | rel1.offset: -1 -1; | ||
645 | rel2.to: "base"; | ||
646 | rel2.offset: 0 0; | ||
647 | image { | ||
648 | normal: "slv_bg_over.png"; | ||
649 | border: 3 3 3 3; | ||
650 | } | ||
651 | fill.smooth: 0; | ||
652 | } | ||
653 | } | ||
654 | part { name: "bg"; | ||
655 | type: RECT; | ||
656 | mouse_events: 0; | ||
657 | scale: 1; | ||
658 | description { state: "default" 0.0; | ||
659 | visible: 0; | ||
660 | rel1.to: "elm.swallow.bar"; | ||
661 | rel2.to: "elm.swallow.bar"; | ||
662 | color: 0 0 0 0; | ||
663 | } | ||
664 | } | ||
665 | part { name: "elm.swallow.bar"; | ||
666 | type: SWALLOW; | ||
667 | scale: 1; | ||
668 | description { state: "default" 0.0; | ||
669 | min: 24 48; | ||
670 | max: 24 9999; | ||
671 | align: 0.5 1.0; | ||
672 | rel1 { | ||
673 | to_y: "elm.text"; | ||
674 | relative: 0.0 1.0; | ||
675 | offset: 0 10; | ||
676 | } | ||
677 | rel2 { | ||
678 | to_y: "limits"; | ||
679 | relative: 1.0 0.0; | ||
680 | offset: -1 -8; | ||
681 | } | ||
682 | } | ||
683 | } | ||
684 | part { name: "elm.swallow.icon"; | ||
685 | type: SWALLOW; | ||
686 | description { state: "default" 0.0; | ||
687 | visible: 0; | ||
688 | align: 0.5 0.0; | ||
689 | rel1 { | ||
690 | offset: 0 4; | ||
691 | to_x: "elm.swallow.bar"; | ||
692 | } | ||
693 | rel2 { | ||
694 | offset: -1 3; | ||
695 | relative: 1.0 0.0; | ||
696 | to_x: "elm.swallow.bar"; | ||
697 | } | ||
698 | } | ||
699 | description { state: "visible" 0.0; | ||
700 | inherit: "default" 0.0; | ||
701 | visible: 1; | ||
702 | aspect: 1.0 1.0; | ||
703 | aspect_preference: HORIZONTAL; | ||
704 | rel2.offset: -1 4; | ||
705 | } | ||
706 | } | ||
707 | part { name: "elm.text"; | ||
708 | type: TEXT; | ||
709 | mouse_events: 0; | ||
710 | scale: 1; | ||
711 | description { state: "default" 0.0; | ||
712 | visible: 0; | ||
713 | fixed: 0 1; | ||
714 | align: 0.5 0.0; | ||
715 | rel1.to_y: "elm.swallow.icon"; | ||
716 | rel1.relative: 0.0 1.0; | ||
717 | rel1.offset: 0 -1; | ||
718 | rel2.to_y: "elm.swallow.icon"; | ||
719 | rel2.relative: 1.0 1.0; | ||
720 | rel2.offset: -1 -1; | ||
721 | color: 0 0 0 255; | ||
722 | text { | ||
723 | font: "Sans,Edje-Vera"; | ||
724 | size: 10; | ||
725 | min: 0 0; | ||
726 | align: 0.5 0.0; | ||
727 | } | ||
728 | } | ||
729 | description { state: "visible" 0.0; | ||
730 | inherit: "default" 0.0; | ||
731 | visible: 1; | ||
732 | text.min: 1 1; | ||
733 | rel1.offset: 4 0; | ||
734 | rel2.offset: -5 0; | ||
735 | } | ||
736 | description { state: "disabled" 0.0; | ||
737 | inherit: "default" 0.0; | ||
738 | color: 255 128 128 128; | ||
739 | visible: 0; | ||
740 | } | ||
741 | description { state: "disabled_visible" 0.0; | ||
742 | inherit: "default" 0.0; | ||
743 | color: 0 0 0 128; | ||
744 | color3: 0 0 0 0; | ||
745 | visible: 1; | ||
746 | text.min: 1 1; | ||
747 | } | ||
748 | } | ||
749 | part { | ||
750 | name: "elm.swallow.end"; | ||
751 | type: SWALLOW; | ||
752 | description { | ||
753 | state: "default" 0.0; | ||
754 | visible: 0; | ||
755 | align: 0.5 1.0; | ||
756 | rel1 { | ||
757 | offset: 0 -4; | ||
758 | relative: 0.0 1.0; | ||
759 | to_x: "elm.swallow.bar"; | ||
760 | } | ||
761 | rel2 { | ||
762 | offset: -1 -3; | ||
763 | to_x: "elm.swallow.bar"; | ||
764 | } | ||
765 | } | ||
766 | description { state: "visible" 0.0; | ||
767 | inherit: "default" 0.0; | ||
768 | visible: 1; | ||
769 | aspect: 1.0 1.0; | ||
770 | aspect_preference: HORIZONTAL; | ||
771 | rel2.offset: -1 -4; | ||
772 | } | ||
773 | } | ||
774 | part { name: "units"; | ||
775 | mouse_events: 0; | ||
776 | description { state: "default" 0.0; | ||
777 | visible: 0; | ||
778 | rel1 { | ||
779 | to: "limits"; | ||
780 | offset: -8 0; | ||
781 | } | ||
782 | rel2 { | ||
783 | to: "limits"; | ||
784 | offset: 7 8; | ||
785 | } | ||
786 | image { | ||
787 | normal: "slv_units.png"; | ||
788 | border: 8 8 0 9; | ||
789 | } | ||
790 | fill.smooth: 0; | ||
791 | } | ||
792 | description { state: "visible" 0.0; | ||
793 | inherit: "default" 0.0; | ||
794 | visible: 1; | ||
795 | } | ||
796 | } | ||
797 | part { name: "limits"; | ||
798 | type: GROUP; | ||
799 | source: "elm/slider/hidden/limit"; | ||
800 | mouse_events: 0; | ||
801 | scale: 1; | ||
802 | description { state: "default" 0.0; | ||
803 | visible: 0; | ||
804 | fixed: 1 1; | ||
805 | min: SOURCE; | ||
806 | align: 0.5 1.0; | ||
807 | rel1.to_y: "elm.swallow.end"; | ||
808 | rel1.relative: 0.0 0.0; | ||
809 | rel1.offset: 8 0; | ||
810 | rel2.to_y: "elm.swallow.end"; | ||
811 | rel2.relative: 1.0 0.0; | ||
812 | rel2.offset: -9 0; | ||
813 | } | ||
814 | description { state: "visible" 0.0; | ||
815 | inherit: "default" 0.0; | ||
816 | visible: 1; | ||
817 | rel1.offset: 8 -9; | ||
818 | rel2.offset: -9 -9; | ||
819 | } | ||
820 | } | ||
821 | part { name: "elm.units"; | ||
822 | type: TEXT; | ||
823 | mouse_events: 0; | ||
824 | scale: 1; | ||
825 | description { state: "default" 0.0; | ||
826 | visible: 0; | ||
827 | fixed: 1 1; | ||
828 | rel1.to: "limits"; | ||
829 | rel2.to: "limits"; | ||
830 | color: 0 0 0 255; | ||
831 | text { | ||
832 | font: "Sans,Edje-Vera"; | ||
833 | size: 10; | ||
834 | min: 0 0; | ||
835 | align: 0.5 0.0; | ||
836 | } | ||
837 | } | ||
838 | description { state: "visible" 0.0; | ||
839 | inherit: "default" 0.0; | ||
840 | visible: 1; | ||
841 | text.min: 1 1; | ||
842 | } | ||
843 | description { state: "disabled" 0.0; | ||
844 | inherit: "default" 0.0; | ||
845 | color: 0 0 0 128; | ||
846 | color3: 0 0 0 0; | ||
847 | visible: 0; | ||
848 | } | ||
849 | description { state: "disabled_visible" 0.0; | ||
850 | inherit: "default" 0.0; | ||
851 | visible: 1; | ||
852 | text.min: 1 1; | ||
853 | color: 0 0 0 128; | ||
854 | color3: 0 0 0 0; | ||
855 | } | ||
856 | } | ||
857 | part { name: "elm.dragable.slider"; | ||
858 | type: GROUP; | ||
859 | source: "elm/slider/vertical/indicator/default"; | ||
860 | mouse_events: 1; | ||
861 | repeat_events: 1; | ||
862 | scale: 1; | ||
863 | dragable { | ||
864 | x: 0 0 0; | ||
865 | y: 1 1 0; | ||
866 | confine: "bg"; | ||
867 | } | ||
868 | description { state: "default" 0.0; | ||
869 | min: 24 0; | ||
870 | max: 24 0; | ||
871 | fixed: 1 1; | ||
872 | rel1 { | ||
873 | relative: 0.5 0.0; | ||
874 | to_y: "bg"; | ||
875 | } | ||
876 | rel2 { | ||
877 | relative: 0.5 1.0; | ||
878 | to_y: "bg"; | ||
879 | } | ||
880 | color: 0 0 0 0; | ||
881 | } | ||
882 | } | ||
883 | part { name: "disabler"; | ||
884 | type: RECT; | ||
885 | description { state: "default" 0.0; | ||
886 | color: 0 0 0 0; | ||
887 | visible: 0; | ||
888 | } | ||
889 | description { state: "disabled" 0.0; | ||
890 | inherit: "default" 0.0; | ||
891 | visible: 1; | ||
892 | } | ||
893 | } | ||
894 | } | ||
895 | |||
896 | programs { | ||
897 | program { name: "text_show"; | ||
898 | signal: "elm,state,text,visible"; | ||
899 | source: "elm"; | ||
900 | action: STATE_SET "visible" 0.0; | ||
901 | target: "elm.text"; | ||
902 | } | ||
903 | program { name: "text_hide"; | ||
904 | signal: "elm,state,text,hidden"; | ||
905 | source: "elm"; | ||
906 | action: STATE_SET "default" 0.0; | ||
907 | target: "elm.text"; | ||
908 | } | ||
909 | program { name: "icon_show"; | ||
910 | signal: "elm,state,icon,visible"; | ||
911 | source: "elm"; | ||
912 | action: STATE_SET "visible" 0.0; | ||
913 | target: "elm.swallow.icon"; | ||
914 | } | ||
915 | program { name: "icon_hide"; | ||
916 | signal: "elm,state,icon,hidden"; | ||
917 | source: "elm"; | ||
918 | action: STATE_SET "default" 0.0; | ||
919 | target: "elm.swallow.icon"; | ||
920 | } | ||
921 | program { name: "end_show"; | ||
922 | signal: "elm,state,end,visible"; | ||
923 | source: "elm"; | ||
924 | action: STATE_SET "visible" 0.0; | ||
925 | target: "elm.swallow.end"; | ||
926 | } | ||
927 | program { name: "end_hide"; | ||
928 | signal: "elm,state,end,hidden"; | ||
929 | source: "elm"; | ||
930 | action: STATE_SET "default" 0.0; | ||
931 | target: "elm.swallow.end"; | ||
932 | } | ||
933 | program { name: "units_show"; | ||
934 | signal: "elm,state,units,visible"; | ||
935 | source: "elm"; | ||
936 | action: STATE_SET "visible" 0.0; | ||
937 | target: "elm.units"; | ||
938 | target: "limits"; | ||
939 | target: "units"; | ||
940 | after: "limits,children,visible"; | ||
941 | } | ||
942 | program { name: "limits,children,visible"; | ||
943 | action: SIGNAL_EMIT "limits:limits,visible" "elm"; | ||
944 | } | ||
945 | program { name: "units_hide"; | ||
946 | signal: "elm,state,units,hidden"; | ||
947 | source: "elm"; | ||
948 | action: STATE_SET "default" 0.0; | ||
949 | target: "elm.units"; | ||
950 | target: "limits"; | ||
951 | target: "units"; | ||
952 | after: "limits,children,hide"; | ||
953 | } | ||
954 | program { name: "limits,children,hide"; | ||
955 | action: SIGNAL_EMIT "limits:limits,hide" "elm"; | ||
956 | } | ||
957 | program { name: "invert_on"; | ||
958 | signal: "elm,state,inverted,on"; | ||
959 | source: "elm"; | ||
960 | action: STATE_SET "inverted" 0.0; | ||
961 | target: "level"; | ||
962 | target: "level2"; | ||
963 | } | ||
964 | program { name: "invert_off"; | ||
965 | signal: "elm,state,inverted,off"; | ||
966 | source: "elm"; | ||
967 | action: STATE_SET "default" 0.0; | ||
968 | target: "level"; | ||
969 | target: "level2"; | ||
970 | } | ||
971 | program { | ||
972 | name: "go_disabled"; | ||
973 | signal: "elm,state,disabled"; | ||
974 | source: "elm"; | ||
975 | action: STATE_SET "disabled" 0.0; | ||
976 | // target: "button0"; | ||
977 | target: "disabler"; | ||
978 | after: "disable_text"; | ||
979 | after: "disable_ind"; | ||
980 | } | ||
981 | |||
982 | program { name: "disable_ind"; | ||
983 | action: SIGNAL_EMIT "elm.dragable.slider:elm,state,disabled" "elm"; | ||
984 | } | ||
985 | |||
986 | program { name: "disable_text"; | ||
987 | script { | ||
988 | new st[31]; | ||
989 | new Float:vl; | ||
990 | get_state(PART:"elm.text", st, 30, vl); | ||
991 | if (!strcmp(st, "visible")) | ||
992 | set_state(PART:"elm.text", "disabled_visible", 0.0); | ||
993 | else | ||
994 | set_state(PART:"elm.text", "disabled", 0.0); | ||
995 | |||
996 | get_state(PART:"elm.units", st, 30, vl); | ||
997 | if (!strcmp(st, "visible")) | ||
998 | set_state(PART:"elm.units", "disabled_visible", 0.0); | ||
999 | else | ||
1000 | set_state(PART:"elm.units", "disabled", 0.0); | ||
1001 | |||
1002 | get_state(PART:"level2", st, 30, vl); | ||
1003 | if (!strcmp(st, "inverted")) | ||
1004 | { | ||
1005 | set_state(PART:"level", "disabled_inverted", 0.0); | ||
1006 | set_state(PART:"level2", "disabled_inverted", 0.0); | ||
1007 | } | ||
1008 | else | ||
1009 | { | ||
1010 | set_state(PART:"level", "disabled", 0.0); | ||
1011 | set_state(PART:"level2", "disabled", 0.0); | ||
1012 | } | ||
1013 | } | ||
1014 | } | ||
1015 | |||
1016 | program { name: "enable"; | ||
1017 | signal: "elm,state,enabled"; | ||
1018 | source: "elm"; | ||
1019 | action: STATE_SET "default" 0.0; | ||
1020 | // target: "button0"; | ||
1021 | target: "disabler"; | ||
1022 | after: "enable_text"; | ||
1023 | after: "enable_ind"; | ||
1024 | } | ||
1025 | |||
1026 | program { name: "enable_ind"; | ||
1027 | action: SIGNAL_EMIT "elm.dragable.slider:elm,state,enabled" "elm"; | ||
1028 | } | ||
1029 | program { name: "enable_text"; | ||
1030 | script { | ||
1031 | new st[31]; | ||
1032 | new Float:vl; | ||
1033 | get_state(PART:"elm.text", st, 30, vl); | ||
1034 | if (!strcmp(st, "disabled_visible")) | ||
1035 | set_state(PART:"elm.text", "visible", 0.0); | ||
1036 | else | ||
1037 | set_state(PART:"elm.text", "default", 0.0); | ||
1038 | |||
1039 | get_state(PART:"elm.units", st, 30, vl); | ||
1040 | if (!strcmp(st, "disabled_visible")) | ||
1041 | set_state(PART:"elm.units", "visible", 0.0); | ||
1042 | else | ||
1043 | set_state(PART:"elm.units", "default", 0.0); | ||
1044 | |||
1045 | get_state(PART:"level2", st, 30, vl); | ||
1046 | if (!strcmp(st, "disabled_inverted")) | ||
1047 | { | ||
1048 | set_state(PART:"level", "inverted", 0.0); | ||
1049 | set_state(PART:"level2", "inverted", 0.0); | ||
1050 | } | ||
1051 | else | ||
1052 | { | ||
1053 | set_state(PART:"level", "default", 0.0); | ||
1054 | set_state(PART:"level2", "default", 0.0); | ||
1055 | } | ||
1056 | } | ||
1057 | } | ||
1058 | } | ||
1059 | } | ||
1060 | group { name: "elm/slider/horizontal/indicator/default"; | ||
1061 | alias: "elm/slider/horizontal/indicator/disabled"; | ||
1062 | alias: "elm/slider/vertical/indicator/default"; | ||
1063 | alias: "elm/slider/vertical/indicator/disabled"; | ||
1064 | images { | ||
1065 | image: "sl_bt_0.png" COMP; | ||
1066 | image: "sl_bt_1.png" COMP; | ||
1067 | image: "sl_bt_2.png" COMP; | ||
1068 | image: "sl_bt_3.png" COMP; | ||
1069 | image: "sl_bt2_0_0.png" COMP; | ||
1070 | image: "sl_bt2_0_1.png" COMP; | ||
1071 | image: "sl_bt2_0_2.png" COMP; | ||
1072 | image: "sl_bt2_1.png" COMP; | ||
1073 | image: "sl_bt2_2.png" COMP; | ||
1074 | } | ||
1075 | script { | ||
1076 | public value_hide = 0; | ||
1077 | public set_value_show() { | ||
1078 | set_int(value_hide, 0); | ||
1079 | } | ||
1080 | public set_value_hide() { | ||
1081 | set_int(value_hide, 1); | ||
1082 | } | ||
1083 | public thumb_down() { | ||
1084 | if (get_int(value_hide) == 1) { | ||
1085 | set_state(PART:"elm.indicator", "default", 0.0); | ||
1086 | set_state(PART:"button3", "default", 0.0); | ||
1087 | set_state(PART:"button4", "default", 0.0); | ||
1088 | set_state(PART:"button5", "default", 0.0); | ||
1089 | set_state(PART:"button6", "default", 0.0); | ||
1090 | set_state(PART:"button7", "default", 0.0); | ||
1091 | } else { | ||
1092 | set_state(PART:"elm.indicator", "visible", 0.0); | ||
1093 | set_state(PART:"button3", "visible", 0.0); | ||
1094 | set_state(PART:"button4", "visible", 0.0); | ||
1095 | set_state(PART:"button5", "visible", 0.0); | ||
1096 | set_state(PART:"button6", "visible", 0.0); | ||
1097 | set_state(PART:"button7", "visible", 0.0); | ||
1098 | } | ||
1099 | } | ||
1100 | public thumb_up() { | ||
1101 | set_state(PART:"elm.indicator", "default", 0.0); | ||
1102 | set_state(PART:"button3", "default", 0.0); | ||
1103 | set_state(PART:"button4", "default", 0.0); | ||
1104 | set_state(PART:"button5", "default", 0.0); | ||
1105 | set_state(PART:"button6", "default", 0.0); | ||
1106 | set_state(PART:"button7", "default", 0.0); | ||
1107 | } | ||
1108 | } | ||
1109 | parts { | ||
1110 | part { name: "button_events"; | ||
1111 | type: RECT; | ||
1112 | mouse_events: 1; | ||
1113 | description { state: "default" 0.0; | ||
1114 | fixed: 1 1; | ||
1115 | min: 16 16; | ||
1116 | aspect: 1.0 1.0; | ||
1117 | aspect_preference: VERTICAL; | ||
1118 | color: 0 0 0 0; | ||
1119 | } | ||
1120 | } | ||
1121 | part { name: "button0"; | ||
1122 | mouse_events: 0; | ||
1123 | description { state: "default" 0.0; | ||
1124 | fixed: 1 1; | ||
1125 | max: 17 999; | ||
1126 | min: 17 24; | ||
1127 | image { | ||
1128 | normal: "sl_bt_0.png"; | ||
1129 | border: 5 5 5 10; | ||
1130 | } | ||
1131 | fill.smooth: 0; | ||
1132 | } | ||
1133 | description { state: "disabled" 0.0; | ||
1134 | inherit: "default" 0.0; | ||
1135 | image { | ||
1136 | normal: "sl_bt_3.png"; | ||
1137 | border: 5 5 5 10; | ||
1138 | } | ||
1139 | } | ||
1140 | } | ||
1141 | part { name: "button1"; | ||
1142 | mouse_events: 0; | ||
1143 | description { state: "default" 0.0; | ||
1144 | rel1.to: "button0"; | ||
1145 | rel2 { | ||
1146 | to: "button0"; | ||
1147 | relative: 1.0 0.5; | ||
1148 | offset: -1 -5; | ||
1149 | } | ||
1150 | image { | ||
1151 | normal: "sl_bt_1.png"; | ||
1152 | border: 5 5 5 0; | ||
1153 | } | ||
1154 | } | ||
1155 | } | ||
1156 | part { name: "button2"; | ||
1157 | mouse_events: 0; | ||
1158 | description { state: "default" 0.0; | ||
1159 | rel1.to: "button0"; | ||
1160 | rel2.to: "button0"; | ||
1161 | image { | ||
1162 | normal: "sl_bt_2.png"; | ||
1163 | border: 5 5 5 10; | ||
1164 | } | ||
1165 | fill.smooth: 0; | ||
1166 | } | ||
1167 | } | ||
1168 | part { name: "button3"; | ||
1169 | mouse_events: 0; | ||
1170 | description { state: "default" 0.0; | ||
1171 | fixed: 1 1; | ||
1172 | visible: 0; | ||
1173 | min: 8 32; | ||
1174 | align: 1.0 0.5; | ||
1175 | rel1 { | ||
1176 | to_x: "elm.indicator"; | ||
1177 | to_y: "button4"; | ||
1178 | relative: 0.0 0.0; | ||
1179 | offset: -7 0; | ||
1180 | } | ||
1181 | rel2 { | ||
1182 | to: "button4"; | ||
1183 | relative: 0.0 1.0; | ||
1184 | offset: -1 -1; | ||
1185 | } | ||
1186 | image { | ||
1187 | normal: "sl_bt2_0_0.png"; | ||
1188 | border: 6 0 6 12; | ||
1189 | } | ||
1190 | fill.smooth: 0; | ||
1191 | } | ||
1192 | description { state: "visible" 0.0; | ||
1193 | inherit: "default" 0.0; | ||
1194 | visible: 1; | ||
1195 | } | ||
1196 | } | ||
1197 | part { name: "button4"; | ||
1198 | mouse_events: 0; | ||
1199 | description { state: "default" 0.0; | ||
1200 | visible: 0; | ||
1201 | max: 15 999; | ||
1202 | min: 15 32; | ||
1203 | rel1 { | ||
1204 | to_x: "button0"; | ||
1205 | to_y: "elm.indicator"; | ||
1206 | offset: 0 0; | ||
1207 | } | ||
1208 | rel2.to: "button0"; | ||
1209 | image { | ||
1210 | normal: "sl_bt2_0_1.png"; | ||
1211 | border: 0 0 6 12; | ||
1212 | } | ||
1213 | fill.smooth: 0; | ||
1214 | } | ||
1215 | description { state: "visible" 0.0; | ||
1216 | inherit: "default" 0.0; | ||
1217 | visible: 1; | ||
1218 | } | ||
1219 | } | ||
1220 | part { name: "button5"; | ||
1221 | mouse_events: 0; | ||
1222 | description { state: "default" 0.0; | ||
1223 | fixed: 1 1; | ||
1224 | visible: 0; | ||
1225 | min: 8 32; | ||
1226 | align: 0.0 0.5; | ||
1227 | rel1 { | ||
1228 | to: "button4"; | ||
1229 | relative: 1.0 0.0; | ||
1230 | offset: 0 0; | ||
1231 | } | ||
1232 | rel2 { | ||
1233 | to_x: "elm.indicator"; | ||
1234 | to_y: "button4"; | ||
1235 | relative: 1.0 1.0; | ||
1236 | offset: 6 -1; | ||
1237 | } | ||
1238 | image { | ||
1239 | normal: "sl_bt2_0_2.png"; | ||
1240 | border: 0 6 6 12; | ||
1241 | } | ||
1242 | fill.smooth: 0; | ||
1243 | } | ||
1244 | description { state: "visible" 0.0; | ||
1245 | inherit: "default" 0.0; | ||
1246 | visible: 1; | ||
1247 | } | ||
1248 | } | ||
1249 | part { name: "elm.indicator"; | ||
1250 | type: TEXT; | ||
1251 | mouse_events: 0; | ||
1252 | effect: SOFT_SHADOW; | ||
1253 | scale: 1; | ||
1254 | description { state: "default" 0.0; | ||
1255 | visible: 0; | ||
1256 | fixed: 1 1; | ||
1257 | align: 0.5 1.0; | ||
1258 | rel1 { | ||
1259 | to: "button0"; | ||
1260 | relative: 0.0 -0.25; | ||
1261 | offset: 0 0; | ||
1262 | } | ||
1263 | rel2 { | ||
1264 | to_x: "button0"; | ||
1265 | relative: 1.0 -0.25; | ||
1266 | offset: -1 0; | ||
1267 | } | ||
1268 | color: 224 224 224 255; | ||
1269 | color3: 0 0 0 64; | ||
1270 | text { | ||
1271 | font: "Sans,Edje-Vera"; | ||
1272 | size: 10; | ||
1273 | min: 0 0; | ||
1274 | align: 0.5 0.5; | ||
1275 | } | ||
1276 | } | ||
1277 | description { state: "visible" 0.0; | ||
1278 | inherit: "default" 0.0; | ||
1279 | visible: 1; | ||
1280 | text.min: 1 1; | ||
1281 | rel1.offset: 0 -1; | ||
1282 | rel2.offset: -1 -1; | ||
1283 | } | ||
1284 | } | ||
1285 | part { name: "button6"; | ||
1286 | mouse_events: 0; | ||
1287 | description { state: "default" 0.0; | ||
1288 | visible: 0; | ||
1289 | rel1.to: "button3"; | ||
1290 | rel2 { | ||
1291 | to: "button5"; | ||
1292 | relative: 1.0 0.3; | ||
1293 | offset: -1 -1; | ||
1294 | } | ||
1295 | image { | ||
1296 | normal: "sl_bt2_1.png"; | ||
1297 | border: 5 5 5 0; | ||
1298 | } | ||
1299 | fill.smooth: 0; | ||
1300 | } | ||
1301 | description { state: "visible" 0.0; | ||
1302 | inherit: "default" 0.0; | ||
1303 | visible: 1; | ||
1304 | } | ||
1305 | } | ||
1306 | part { name: "button7"; | ||
1307 | mouse_events: 0; | ||
1308 | description { state: "default" 0.0; | ||
1309 | visible: 0; | ||
1310 | rel1.to: "button3"; | ||
1311 | rel2.to: "button5"; | ||
1312 | image { | ||
1313 | normal: "sl_bt2_2.png"; | ||
1314 | border: 5 5 5 0; | ||
1315 | middle: 0; | ||
1316 | } | ||
1317 | fill.smooth: 0; | ||
1318 | } | ||
1319 | description { state: "visible" 0.0; | ||
1320 | inherit: "default" 0.0; | ||
1321 | visible: 1; | ||
1322 | } | ||
1323 | } | ||
1324 | } | ||
1325 | programs { | ||
1326 | program { name: "set_val_show"; | ||
1327 | signal: "elm,state,val,show"; | ||
1328 | source: "elm"; | ||
1329 | script { | ||
1330 | set_value_show(); | ||
1331 | } | ||
1332 | } | ||
1333 | program { name: "set_val_hide"; | ||
1334 | signal: "elm,state,val,hide"; | ||
1335 | source: "elm"; | ||
1336 | script { | ||
1337 | set_value_hide(); | ||
1338 | } | ||
1339 | } | ||
1340 | program { name: "val_show"; | ||
1341 | signal: "mouse,down,*"; | ||
1342 | source: "button_events"; | ||
1343 | script { | ||
1344 | thumb_down(); | ||
1345 | } | ||
1346 | } | ||
1347 | program { name: "val_hide"; | ||
1348 | signal: "mouse,up,*"; | ||
1349 | source: "button_events"; | ||
1350 | script { | ||
1351 | thumb_up(); | ||
1352 | } | ||
1353 | } | ||
1354 | program { name: "indicator_show"; | ||
1355 | signal: "elm,state,indicator,show"; | ||
1356 | source: "elm"; | ||
1357 | script { | ||
1358 | thumb_down(); | ||
1359 | } | ||
1360 | } | ||
1361 | program { name: "indicator_hide"; | ||
1362 | signal: "elm,state,indicator,hide"; | ||
1363 | source: "elm"; | ||
1364 | script { | ||
1365 | thumb_up(); | ||
1366 | } | ||
1367 | } | ||
1368 | program { | ||
1369 | name: "go_disabled"; | ||
1370 | signal: "elm,state,disabled"; | ||
1371 | source: "elm"; | ||
1372 | action: STATE_SET "disabled" 0.0; | ||
1373 | target: "button0"; | ||
1374 | } | ||
1375 | program { | ||
1376 | name: "go_enabled"; | ||
1377 | signal: "elm,state,enabled"; | ||
1378 | source: "elm"; | ||
1379 | action: STATE_SET "default" 0.0; | ||
1380 | target: "button0"; | ||
1381 | } | ||
1382 | } | ||
1383 | } | ||
1384 | |||
1385 | |||
diff --git a/libraries/elementary/data/themes/widgets/slideshow.edc b/libraries/elementary/data/themes/widgets/slideshow.edc new file mode 100644 index 0000000..e7b0898 --- /dev/null +++ b/libraries/elementary/data/themes/widgets/slideshow.edc | |||
@@ -0,0 +1,396 @@ | |||
1 | group { name: "elm/slideshow/base/default"; | ||
2 | data { | ||
3 | item: transitions "fade black_fade horizontal vertical square"; | ||
4 | item: layouts "fullscreen not_fullscreen"; | ||
5 | } | ||
6 | parts { | ||
7 | part { name: "whole"; | ||
8 | type: RECT; | ||
9 | description { | ||
10 | state: "default" 0.0; | ||
11 | visible: 1; | ||
12 | color: 20 20 20 255; | ||
13 | } | ||
14 | } | ||
15 | part { name: "image_1_whole"; | ||
16 | type: RECT; | ||
17 | description { | ||
18 | state: "default" 0.0; | ||
19 | color: 255 255 255 255; | ||
20 | } | ||
21 | description { | ||
22 | state: "fade_prev_next" 0.0; | ||
23 | inherit: "default" 0.0; | ||
24 | color: 255 255 255 0; | ||
25 | } | ||
26 | description { | ||
27 | state: "black_fade_prev_next_init" 0.0; | ||
28 | inherit: "default" 0.0; | ||
29 | color: 255 255 255 255; | ||
30 | } | ||
31 | description { | ||
32 | state: "black_fade_prev_next" 0.0; | ||
33 | inherit: "default" 0.0; | ||
34 | color: 0 0 0 255; | ||
35 | } | ||
36 | description { | ||
37 | state: "horizontal_next_init" 0.0; | ||
38 | inherit: "default" 0.0; | ||
39 | } | ||
40 | description { | ||
41 | state: "horizontal_next" 0.0; | ||
42 | inherit: "default" 0.0; | ||
43 | rel1.relative: -1.0 0.0; | ||
44 | rel2.relative: 0.0 1.0; | ||
45 | } | ||
46 | description { | ||
47 | state: "horizontal_prev_init" 0.0; | ||
48 | inherit: "default" 0.0; | ||
49 | } | ||
50 | description { | ||
51 | state: "horizontal_prev" 0.0; | ||
52 | inherit: "default" 0.0; | ||
53 | rel1.relative: 1.0 0.0; | ||
54 | rel2.relative: 2.0 1.0; | ||
55 | } | ||
56 | description { | ||
57 | state: "vertical_next_init" 0.0; | ||
58 | inherit: "default" 0.0; | ||
59 | } | ||
60 | description { | ||
61 | state: "vertical_next" 0.0; | ||
62 | inherit: "default" 0.0; | ||
63 | rel1.relative: 0.0 -1.0; | ||
64 | rel2.relative: 1.0 0.0; | ||
65 | } | ||
66 | description { | ||
67 | state: "vertical_prev_init" 0.0; | ||
68 | inherit: "default" 0.0; | ||
69 | } | ||
70 | description { | ||
71 | state: "vertical_prev" 0.0; | ||
72 | inherit: "default" 0.0; | ||
73 | rel1.relative: 0.0 1.0; | ||
74 | rel2.relative: 1.0 2.0; | ||
75 | } | ||
76 | description { | ||
77 | state: "square_prev_next" 0.0; | ||
78 | inherit: "default" 0.0; | ||
79 | color: 255 255 255 0; | ||
80 | } | ||
81 | } | ||
82 | part { name: "image_2_whole"; | ||
83 | type: RECT; | ||
84 | description { | ||
85 | state: "default" 0.0; | ||
86 | visible: 1; | ||
87 | color: 255 255 255 0; | ||
88 | } | ||
89 | description { | ||
90 | state: "fade_prev_next" 0.0; | ||
91 | inherit: "default" 0.0; | ||
92 | color: 255 255 255 255; | ||
93 | } | ||
94 | description { | ||
95 | state: "black_fade_prev_next_init" 0.0; | ||
96 | inherit: "default" 0.0; | ||
97 | color: 0 0 0 0; | ||
98 | } | ||
99 | description { | ||
100 | state: "black_fade_prev_next" 0.0; | ||
101 | inherit: "default" 0.0; | ||
102 | color: 255 255 255 255; | ||
103 | } | ||
104 | description { | ||
105 | state: "horizontal_next_init" 0.0; | ||
106 | inherit: "default" 0.0; | ||
107 | rel1.relative: 1.0 0.0; | ||
108 | rel2.relative: 2.0 1.0; | ||
109 | color: 255 255 255 255; | ||
110 | } | ||
111 | description { | ||
112 | state: "horizontal_next" 0.0; | ||
113 | inherit: "default" 0.0; | ||
114 | color: 255 255 255 255; | ||
115 | } | ||
116 | description { | ||
117 | state: "horizontal_prev_init" 0.0; | ||
118 | inherit: "default" 0.0; | ||
119 | rel1.relative: -1.0 0.0; | ||
120 | rel2.relative: 0.0 1.0; | ||
121 | color: 255 255 255 255; | ||
122 | } | ||
123 | description { | ||
124 | state: "horizontal_prev" 0.0; | ||
125 | inherit: "default" 0.0; | ||
126 | color: 255 255 255 255; | ||
127 | } | ||
128 | description { | ||
129 | state: "vertical_next_init" 0.0; | ||
130 | inherit: "default" 0.0; | ||
131 | rel1.relative: 0.0 1.0; | ||
132 | rel2.relative: 1.0 2.0; | ||
133 | color: 255 255 255 255; | ||
134 | } | ||
135 | description { | ||
136 | state: "vertical_next" 0.0; | ||
137 | inherit: "default" 0.0; | ||
138 | color: 255 255 255 255; | ||
139 | } | ||
140 | description { | ||
141 | state: "vertical_prev_init" 0.0; | ||
142 | inherit: "default" 0.0; | ||
143 | rel1.relative: 0.0 -1.0; | ||
144 | rel2.relative: 1.0 0.0; | ||
145 | color: 255 255 255 255; | ||
146 | } | ||
147 | description { | ||
148 | state: "vertical_prev" 0.0; | ||
149 | inherit: "default" 0.0; | ||
150 | color: 255 255 255 255; | ||
151 | } | ||
152 | description { | ||
153 | state: "square_prev_next_init" 0.0; | ||
154 | inherit: "default" 0.0; | ||
155 | rel1.relative: 0.5 0.5; | ||
156 | rel2.relative: 0.5 0.5; | ||
157 | color: 255 255 255 255; | ||
158 | } | ||
159 | description { | ||
160 | state: "square_prev_next" 0.0; | ||
161 | inherit: "default" 0.0; | ||
162 | rel1.relative: 0.0 0.0; | ||
163 | rel2.relative: 1.0 1.0; | ||
164 | color: 255 255 255 255; | ||
165 | } | ||
166 | } | ||
167 | part { name: "elm.swallow.1"; | ||
168 | type: SWALLOW; | ||
169 | clip_to: "image_1_whole"; | ||
170 | description { | ||
171 | state: "default" 0.0; | ||
172 | rel1.to: "image_1_whole"; | ||
173 | rel2.to: "image_1_whole"; | ||
174 | color: 255 255 255 255; | ||
175 | } | ||
176 | description { | ||
177 | state: "not_fullscreen" 0.0; | ||
178 | rel1.relative: 0.1 0.1; | ||
179 | rel1.to: "image_1_whole"; | ||
180 | rel2.relative: 0.9 0.9; | ||
181 | rel2.to: "image_1_whole"; | ||
182 | color: 255 255 255 255; | ||
183 | } | ||
184 | } | ||
185 | part { name: "elm.swallow.2"; | ||
186 | type: SWALLOW; | ||
187 | clip_to: "image_2_whole"; | ||
188 | description { | ||
189 | state: "default" 0.0; | ||
190 | color: 255 255 255 255; | ||
191 | rel1.to: "image_2_whole"; | ||
192 | rel2.to: "image_2_whole"; | ||
193 | } | ||
194 | description { | ||
195 | state: "not_fullscreen" 0.0; | ||
196 | color: 255 255 255 255; | ||
197 | rel1.relative: 0.1 0.1; | ||
198 | rel1.to: "image_2_whole"; | ||
199 | rel2.relative: 0.9 0.9; | ||
200 | rel2.to: "image_2_whole"; | ||
201 | } | ||
202 | } | ||
203 | part { name: "events_catcher"; | ||
204 | type: RECT; | ||
205 | repeat_events: 1; | ||
206 | description { | ||
207 | state: "default" 0.0; | ||
208 | visible: 1; | ||
209 | color: 0 0 0 0; | ||
210 | } | ||
211 | } | ||
212 | } | ||
213 | programs { | ||
214 | //Substyle | ||
215 | program { name: "layout_fullscreen"; | ||
216 | signal: "layout,fullscreen"; | ||
217 | source: "slideshow"; | ||
218 | action: STATE_SET "default" 0.0; | ||
219 | target: "elm.swallow.1"; | ||
220 | target: "elm.swallow.2"; | ||
221 | transition: SINUSOIDAL 1.0; | ||
222 | } | ||
223 | program { name: "layout_not_fullscreen"; | ||
224 | signal: "layout,not_fullscreen"; | ||
225 | source: "slideshow"; | ||
226 | action: STATE_SET "not_fullscreen" 0.0; | ||
227 | target: "elm.swallow.1"; | ||
228 | target: "elm.swallow.2"; | ||
229 | transition: SINUSOIDAL 1.0; | ||
230 | } | ||
231 | // | ||
232 | program { name: "fade_next"; | ||
233 | signal: "fade,next"; | ||
234 | source: "slideshow"; | ||
235 | action: STATE_SET "default" 0.0; | ||
236 | target: "image_1_whole"; | ||
237 | target: "image_2_whole"; | ||
238 | after: "fade_next_2"; | ||
239 | } | ||
240 | program { name: "fade_next_2"; | ||
241 | action: STATE_SET "fade_prev_next" 0.0; | ||
242 | target: "image_1_whole"; | ||
243 | target: "image_2_whole"; | ||
244 | transition: SINUSOIDAL 1.5; | ||
245 | after: "end"; | ||
246 | } | ||
247 | program { name: "fade_previous"; | ||
248 | signal: "fade,previous"; | ||
249 | source: "slideshow"; | ||
250 | action: STATE_SET "default" 0.0; | ||
251 | target: "image_1_whole"; | ||
252 | target: "image_2_whole"; | ||
253 | after: "fade_previous_2"; | ||
254 | } | ||
255 | program { name: "fade_previous_2"; | ||
256 | action: STATE_SET "fade_prev_next" 0.0; | ||
257 | target: "image_1_whole"; | ||
258 | target: "image_2_whole"; | ||
259 | transition: SINUSOIDAL 1.5; | ||
260 | after: "end"; | ||
261 | } | ||
262 | program { name: "black_fade_next"; | ||
263 | signal: "black_fade,next"; | ||
264 | source: "slideshow"; | ||
265 | action: STATE_SET "black_fade_prev_next_init" 0.0; | ||
266 | target: "image_1_whole"; | ||
267 | target: "image_2_whole"; | ||
268 | after: "black_fade_next_2"; | ||
269 | } | ||
270 | program { name: "black_fade_next_2"; | ||
271 | action: STATE_SET "black_fade_prev_next" 0.0; | ||
272 | target: "image_1_whole"; | ||
273 | transition: SINUSOIDAL 0.75; | ||
274 | after: "black_fade_next_3"; | ||
275 | } | ||
276 | program { name: "black_fade_next_3"; | ||
277 | action: STATE_SET "black_fade_prev_next" 0.0; | ||
278 | target: "image_2_whole"; | ||
279 | transition: SINUSOIDAL 0.75; | ||
280 | after: "end"; | ||
281 | } | ||
282 | program { name: "black_fade_previous"; | ||
283 | signal: "black_fade,previous"; | ||
284 | source: "slideshow"; | ||
285 | action: STATE_SET "black_fade_prev_next_init" 0.0; | ||
286 | target: "image_1_whole"; | ||
287 | target: "image_2_whole"; | ||
288 | after: "black_fade_previous_2"; | ||
289 | } | ||
290 | program { name: "black_fade_previous_2"; | ||
291 | action: STATE_SET "black_fade_prev_next" 0.0; | ||
292 | target: "image_1_whole"; | ||
293 | transition: SINUSOIDAL 0.75; | ||
294 | after: "black_fade_previous_3"; | ||
295 | } | ||
296 | program { name: "black_fade_previous_3"; | ||
297 | action: STATE_SET "black_fade_prev_next" 0.0; | ||
298 | target: "image_2_whole"; | ||
299 | transition: SINUSOIDAL 0.75; | ||
300 | after: "end"; | ||
301 | } | ||
302 | program { name: "horizontal_next"; | ||
303 | signal: "horizontal,next"; | ||
304 | source: "slideshow"; | ||
305 | action: STATE_SET "horizontal_next_init" 0.0; | ||
306 | target: "image_1_whole"; | ||
307 | target: "image_2_whole"; | ||
308 | after: "horizontal_next_2"; | ||
309 | } | ||
310 | program { name: "horizontal_next_2"; | ||
311 | action: STATE_SET "horizontal_next" 0.0; | ||
312 | target: "image_1_whole"; | ||
313 | target: "image_2_whole"; | ||
314 | transition: SINUSOIDAL 1.5; | ||
315 | after: "end"; | ||
316 | } | ||
317 | program { name: "horizontal_previous"; | ||
318 | signal: "horizontal,previous"; | ||
319 | source: "slideshow"; | ||
320 | action: STATE_SET "horizontal_prev_init" 0.0; | ||
321 | target: "image_1_whole"; | ||
322 | target: "image_2_whole"; | ||
323 | after: "horizontal_previous_2"; | ||
324 | } | ||
325 | program { name: "horizontal_previous_2"; | ||
326 | action: STATE_SET "horizontal_prev" 0.0; | ||
327 | target: "image_1_whole"; | ||
328 | target: "image_2_whole"; | ||
329 | transition: SINUSOIDAL 1.5; | ||
330 | after: "end"; | ||
331 | } | ||
332 | program { name: "vertical_next"; | ||
333 | signal: "vertical,next"; | ||
334 | source: "slideshow"; | ||
335 | action: STATE_SET "vertical_next_init" 0.0; | ||
336 | target: "image_1_whole"; | ||
337 | target: "image_2_whole"; | ||
338 | after: "vertical_next_2"; | ||
339 | } | ||
340 | program { name: "vertical_next_2"; | ||
341 | action: STATE_SET "vertical_next" 0.0; | ||
342 | target: "image_1_whole"; | ||
343 | target: "image_2_whole"; | ||
344 | transition: SINUSOIDAL 1.5; | ||
345 | after: "end"; | ||
346 | } | ||
347 | program { name: "vertical_previous"; | ||
348 | signal: "vertical,previous"; | ||
349 | source: "slideshow"; | ||
350 | action: STATE_SET "vertical_prev_init" 0.0; | ||
351 | target: "image_1_whole"; | ||
352 | target: "image_2_whole"; | ||
353 | after: "vertical_previous_2"; | ||
354 | } | ||
355 | program { name: "vertical_previous_2"; | ||
356 | action: STATE_SET "vertical_prev" 0.0; | ||
357 | target: "image_1_whole"; | ||
358 | target: "image_2_whole"; | ||
359 | transition: SINUSOIDAL 1.5; | ||
360 | after: "end"; | ||
361 | } | ||
362 | program { name: "square_next"; | ||
363 | signal: "square,next"; | ||
364 | source: "slideshow"; | ||
365 | action: STATE_SET "square_prev_next_init" 0.0; | ||
366 | target: "image_2_whole"; | ||
367 | after: "square_next_2"; | ||
368 | } | ||
369 | program { name: "square_next_2"; | ||
370 | action: STATE_SET "square_prev_next" 0.0; | ||
371 | target: "image_2_whole"; | ||
372 | target: "image_1_whole"; | ||
373 | transition: SINUSOIDAL 1.5; | ||
374 | after: "end"; | ||
375 | } | ||
376 | program { name: "square_previous"; | ||
377 | signal: "square,previous"; | ||
378 | source: "slideshow"; | ||
379 | action: STATE_SET "square_prev_next_init" 0.0; | ||
380 | target: "image_2_whole"; | ||
381 | after: "square_next_2"; | ||
382 | } | ||
383 | program { name: "end"; | ||
384 | action: SIGNAL_EMIT "end" "slideshow"; | ||
385 | } | ||
386 | program { name: "end_signal"; | ||
387 | signal: "anim,end"; | ||
388 | source: "slideshow"; | ||
389 | action: STATE_SET "default" 0.0; | ||
390 | target: "image_1_whole"; | ||
391 | target: "image_2_whole"; | ||
392 | } | ||
393 | } | ||
394 | } | ||
395 | |||
396 | /////////////////////////////////////////////////////////////////////////////// | ||
diff --git a/libraries/elementary/data/themes/widgets/spinner.edc b/libraries/elementary/data/themes/widgets/spinner.edc new file mode 100644 index 0000000..ad58b65 --- /dev/null +++ b/libraries/elementary/data/themes/widgets/spinner.edc | |||
@@ -0,0 +1,1033 @@ | |||
1 | group { name: "elm/spinner/base/default"; | ||
2 | images { | ||
3 | image: "shelf_inset.png" COMP; | ||
4 | image: "bt_base1.png" COMP; | ||
5 | image: "bt_hilight.png" COMP; | ||
6 | image: "bt_shine.png" COMP; | ||
7 | image: "bt_glow.png" COMP; | ||
8 | image: "bt_dis_base.png" COMP; | ||
9 | image: "bt_dis_hilight.png" COMP; | ||
10 | image: "sp_bt_l.png" COMP; | ||
11 | image: "sp_bt_r.png" COMP; | ||
12 | } | ||
13 | parts { | ||
14 | part { name: "bg"; | ||
15 | type: RECT; | ||
16 | description { state: "default" 0.0; | ||
17 | min: 0 30; | ||
18 | rel1.offset: 1 1; | ||
19 | rel2.offset: -2 -2; | ||
20 | color: 255 255 255 0; | ||
21 | } | ||
22 | } | ||
23 | part { name: "conf_over"; | ||
24 | mouse_events: 0; | ||
25 | description { state: "default" 0.0; | ||
26 | rel1.to: "bg"; | ||
27 | rel2.to: "bg"; | ||
28 | image { | ||
29 | normal: "shelf_inset.png"; | ||
30 | border: 7 7 7 7; | ||
31 | middle: 0; | ||
32 | } | ||
33 | fill.smooth : 0; | ||
34 | } | ||
35 | } | ||
36 | part { name: "left_bt"; | ||
37 | mouse_events: 1; | ||
38 | description { state: "default" 0.0; | ||
39 | rel1 { to: "bg"; | ||
40 | offset: 3 3; | ||
41 | } | ||
42 | rel2 { to: "bg"; | ||
43 | offset: -4 -4; | ||
44 | } | ||
45 | align: 0.0 0.5; | ||
46 | min: 24 24; | ||
47 | aspect: 1.0 1.0; | ||
48 | aspect_preference: VERTICAL; | ||
49 | image { | ||
50 | normal: "bt_base1.png"; | ||
51 | border: 6 6 6 6; | ||
52 | } | ||
53 | fill.smooth : 0; | ||
54 | } | ||
55 | description { state: "clicked" 0.0; | ||
56 | inherit: "default" 0.0; | ||
57 | image.normal: "bt_base1.png"; | ||
58 | image.middle: SOLID; | ||
59 | } | ||
60 | description { state: "disabled" 0.0; | ||
61 | inherit: "default" 0.0; | ||
62 | image { | ||
63 | normal: "bt_dis_base.png"; | ||
64 | border: 4 4 4 4; | ||
65 | } | ||
66 | } | ||
67 | } | ||
68 | part { name: "left_over1"; | ||
69 | mouse_events: 0; | ||
70 | description { state: "default" 0.0; | ||
71 | rel1.to: "left_bt"; | ||
72 | rel2 { to: "left_bt"; | ||
73 | relative: 1.0 0.5; | ||
74 | } | ||
75 | image { | ||
76 | normal: "bt_hilight.png"; | ||
77 | border: 7 7 7 0; | ||
78 | } | ||
79 | } | ||
80 | description { state: "disabled" 0.0; | ||
81 | inherit: "default" 0.0; | ||
82 | image { | ||
83 | normal: "bt_dis_hilight.png"; | ||
84 | border: 4 4 4 0; | ||
85 | } | ||
86 | } | ||
87 | } | ||
88 | part { name: "left_over2"; | ||
89 | mouse_events: 1; | ||
90 | repeat_events: 1; | ||
91 | ignore_flags: ON_HOLD; | ||
92 | description { state: "default" 0.0; | ||
93 | rel1.to: "left_bt"; | ||
94 | rel2.to: "left_bt"; | ||
95 | image { | ||
96 | normal: "bt_shine.png"; | ||
97 | border: 7 7 7 7; | ||
98 | } | ||
99 | } | ||
100 | description { state: "disabled" 0.0; | ||
101 | inherit: "default" 0.0; | ||
102 | visible: 0; | ||
103 | } | ||
104 | } | ||
105 | part { name: "left_over3"; | ||
106 | mouse_events: 1; | ||
107 | repeat_events: 1; | ||
108 | description { state: "default" 0.0; | ||
109 | color: 255 255 255 0; | ||
110 | rel1.to: "left_bt"; | ||
111 | rel2.to: "left_bt"; | ||
112 | image { | ||
113 | normal: "bt_glow.png"; | ||
114 | border: 12 12 12 12; | ||
115 | } | ||
116 | fill.smooth : 0; | ||
117 | } | ||
118 | description { state: "clicked" 0.0; | ||
119 | inherit: "default" 0.0; | ||
120 | visible: 1; | ||
121 | color: 255 255 255 255; | ||
122 | } | ||
123 | } | ||
124 | part { name: "right_bt"; | ||
125 | mouse_events: 1; | ||
126 | description { state: "default" 0.0; | ||
127 | rel1 { to: "bg"; | ||
128 | offset: -26 3; | ||
129 | } | ||
130 | rel2 { to: "bg"; | ||
131 | offset: -4 -4; | ||
132 | } | ||
133 | align: 1.0 0.5; | ||
134 | min: 24 24; | ||
135 | aspect: 1.0 1.0; | ||
136 | aspect_preference: VERTICAL; | ||
137 | image { | ||
138 | normal: "bt_base1.png"; | ||
139 | border: 5 5 4 12; | ||
140 | } | ||
141 | fill.smooth : 0; | ||
142 | } | ||
143 | description { state: "clicked" 0.0; | ||
144 | inherit: "default" 0.0; | ||
145 | image.normal: "bt_base1.png"; | ||
146 | image.middle: SOLID; | ||
147 | } | ||
148 | description { state: "disabled" 0.0; | ||
149 | inherit: "default" 0.0; | ||
150 | image { | ||
151 | normal: "bt_dis_base.png"; | ||
152 | border: 4 4 4 4; | ||
153 | } | ||
154 | } | ||
155 | } | ||
156 | part { name: "right_over1"; | ||
157 | mouse_events: 0; | ||
158 | description { state: "default" 0.0; | ||
159 | rel1.to: "right_bt"; | ||
160 | rel2 { to: "right_bt"; | ||
161 | relative: 1.0 0.5; | ||
162 | } | ||
163 | image { | ||
164 | normal: "bt_hilight.png"; | ||
165 | border: 7 7 7 0; | ||
166 | } | ||
167 | } | ||
168 | description { state: "disabled" 0.0; | ||
169 | inherit: "default" 0.0; | ||
170 | image { | ||
171 | normal: "bt_dis_hilight.png"; | ||
172 | border: 4 4 4 0; | ||
173 | } | ||
174 | } | ||
175 | } | ||
176 | part { name: "right_over2"; | ||
177 | mouse_events: 1; | ||
178 | repeat_events: 1; | ||
179 | ignore_flags: ON_HOLD; | ||
180 | description { state: "default" 0.0; | ||
181 | rel1.to: "right_bt"; | ||
182 | rel2.to: "right_bt"; | ||
183 | image { | ||
184 | normal: "bt_shine.png"; | ||
185 | border: 7 7 7 7; | ||
186 | } | ||
187 | } | ||
188 | description { state: "disabled" 0.0; | ||
189 | inherit: "default" 0.0; | ||
190 | visible: 0; | ||
191 | } | ||
192 | } | ||
193 | part { name: "right_over3"; | ||
194 | mouse_events: 1; | ||
195 | repeat_events: 1; | ||
196 | description { state: "default" 0.0; | ||
197 | color: 255 255 255 0; | ||
198 | rel1.to: "right_bt"; | ||
199 | rel2.to: "right_bt"; | ||
200 | image { | ||
201 | normal: "bt_glow.png"; | ||
202 | border: 12 12 12 12; | ||
203 | } | ||
204 | fill.smooth : 0; | ||
205 | } | ||
206 | description { state: "clicked" 0.0; | ||
207 | inherit: "default" 0.0; | ||
208 | visible: 1; | ||
209 | color: 255 255 255 255; | ||
210 | } | ||
211 | } | ||
212 | part { name: "left_bt_icon"; | ||
213 | repeat_events: 1; | ||
214 | description { state: "default" 0.0; | ||
215 | rel1.to: "left_bt"; | ||
216 | rel1.offset: 4 4; | ||
217 | rel2.to: "left_bt"; | ||
218 | rel2.offset: -5 -5; | ||
219 | align: 0.5 0.5; | ||
220 | min: 16 16; | ||
221 | aspect: 1.0 1.0; | ||
222 | aspect_preference: BOTH; | ||
223 | image.normal: "sp_bt_l.png"; | ||
224 | } | ||
225 | description { state: "rtl" 0.0; | ||
226 | inherit: "default" 0.0; | ||
227 | image.normal: "sp_bt_r.png"; | ||
228 | } | ||
229 | } | ||
230 | part { name: "right_bt_icon"; | ||
231 | repeat_events: 1; | ||
232 | description { state: "default" 0.0; | ||
233 | rel1.to: "right_bt"; | ||
234 | rel1.offset: 4 4; | ||
235 | rel2.to: "right_bt"; | ||
236 | rel2.offset: -5 -5; | ||
237 | align: 0.5 0.5; | ||
238 | min: 16 16; | ||
239 | aspect: 1.0 1.0; | ||
240 | aspect_preference: BOTH; | ||
241 | image.normal: "sp_bt_r.png"; | ||
242 | } | ||
243 | description { state: "rtl" 0.0; | ||
244 | inherit: "default" 0.0; | ||
245 | image.normal: "sp_bt_l.png"; | ||
246 | } | ||
247 | } | ||
248 | part { name: "elm.text"; | ||
249 | type: TEXT; | ||
250 | mouse_events: 0; | ||
251 | scale: 1; | ||
252 | description { state: "default" 0.0; | ||
253 | visible: 1; | ||
254 | align: 0.0 0.5; | ||
255 | rel1 { relative: 1.0 0.0; | ||
256 | offset: 3 2; | ||
257 | to_x: "left_bt"; | ||
258 | to_y: "bg"; | ||
259 | } | ||
260 | rel2 { relative: 0.0 1.0; | ||
261 | offset: -3 -2; | ||
262 | to_x: "right_bt"; | ||
263 | to_y: "bg"; | ||
264 | } | ||
265 | color: 0 0 0 255; | ||
266 | text { | ||
267 | font: "Sans,Edje-Vera"; | ||
268 | size: 10; | ||
269 | min: 1 1; | ||
270 | align: 0.5 0.5; | ||
271 | } | ||
272 | } | ||
273 | description { state: "active" 0.0; | ||
274 | inherit: "default" 0.0; | ||
275 | visible: 0; | ||
276 | } | ||
277 | description { state: "disabled_active" 0.0; | ||
278 | inherit: "default" 0.0; | ||
279 | color: 0 0 0 128; | ||
280 | color3: 0 0 0 0; | ||
281 | } | ||
282 | description { state: "disabled" 0.0; | ||
283 | inherit: "default" 0.0; | ||
284 | color: 0 0 0 128; | ||
285 | color3: 0 0 0 0; | ||
286 | } | ||
287 | } | ||
288 | part { name: "elm.dragable.slider"; | ||
289 | type: RECT; | ||
290 | mouse_events: 0; | ||
291 | scale: 1; | ||
292 | dragable { | ||
293 | x: 1 1 0; | ||
294 | y: 0 0 0; | ||
295 | } | ||
296 | description { state: "default" 0.0; | ||
297 | rel1.to: "bg"; | ||
298 | rel2.to: "bg"; | ||
299 | fixed: 1 1; | ||
300 | color: 0 0 0 0; | ||
301 | } | ||
302 | } | ||
303 | part { name: "button_events"; | ||
304 | type: RECT; | ||
305 | dragable { | ||
306 | events: "elm.dragable.slider"; | ||
307 | } | ||
308 | mouse_events: 1; | ||
309 | description { state: "default" 0.0; | ||
310 | rel1.to: "elm.text"; | ||
311 | rel2.to: "elm.text"; | ||
312 | color: 0 0 0 0; | ||
313 | } | ||
314 | } | ||
315 | part { name: "elm.swallow.entry"; | ||
316 | type: SWALLOW; | ||
317 | description { state: "default" 0.0; | ||
318 | visible: 0; | ||
319 | align: 0.5 0.5; | ||
320 | rel1 { relative: 1.0 0.5; | ||
321 | offset: 3 2; | ||
322 | to_x: "left_bt"; | ||
323 | to_y: "bg"; | ||
324 | } | ||
325 | rel2 { relative: 0.0 0.5; | ||
326 | offset: -3 -2; | ||
327 | to_x: "right_bt"; | ||
328 | to_y: "bg"; | ||
329 | } | ||
330 | fixed: 1 1; | ||
331 | color: 0 0 0 0; | ||
332 | } | ||
333 | description { state: "active" 0.0; | ||
334 | inherit: "default" 0.0; | ||
335 | visible: 1; | ||
336 | color: 255 255 255 255; | ||
337 | } | ||
338 | description { state: "disabled_active" 0.0; | ||
339 | inherit: "default" 0.0; | ||
340 | visible: 0; | ||
341 | } | ||
342 | description { state: "disabled" 0.0; | ||
343 | inherit: "default" 0.0; | ||
344 | visible: 0; | ||
345 | } | ||
346 | } | ||
347 | part { name: "disabler"; | ||
348 | type: RECT; | ||
349 | description { state: "default" 0.0; | ||
350 | color: 0 0 0 0; | ||
351 | visible: 0; | ||
352 | } | ||
353 | description { state: "disabled" 0.0; | ||
354 | inherit: "default" 0.0; | ||
355 | visible: 1; | ||
356 | } | ||
357 | } | ||
358 | } | ||
359 | programs { | ||
360 | program { name: "text_show"; | ||
361 | signal: "elm,state,text,visible"; | ||
362 | source: "elm"; | ||
363 | action: STATE_SET "visible" 0.0; | ||
364 | target: "elm.text"; | ||
365 | } | ||
366 | program { name: "text_hide"; | ||
367 | signal: "elm,state,text,hidden"; | ||
368 | source: "elm"; | ||
369 | action: STATE_SET "default" 0.0; | ||
370 | target: "elm.text"; | ||
371 | } | ||
372 | program { name: "dec"; | ||
373 | signal: "mouse,down,1"; | ||
374 | source: "left_bt"; | ||
375 | action: SIGNAL_EMIT "elm,action,decrement,start" ""; | ||
376 | } | ||
377 | program { name: "dec2"; | ||
378 | signal: "mouse,up,1"; | ||
379 | source: "left_bt"; | ||
380 | action: SIGNAL_EMIT "elm,action,decrement,stop" ""; | ||
381 | } | ||
382 | program { name: "inc"; | ||
383 | signal: "mouse,down,1"; | ||
384 | source: "right_bt"; | ||
385 | action: SIGNAL_EMIT "elm,action,increment,start" ""; | ||
386 | } | ||
387 | program { name: "inc2"; | ||
388 | signal: "mouse,up,1"; | ||
389 | source: "right_bt"; | ||
390 | action: SIGNAL_EMIT "elm,action,increment,stop" ""; | ||
391 | } | ||
392 | program { | ||
393 | name: "left_bt_click"; | ||
394 | signal: "mouse,down,1"; | ||
395 | source: "left_over2"; | ||
396 | action: STATE_SET "clicked" 0.0; | ||
397 | target: "left_bt"; | ||
398 | } | ||
399 | program { | ||
400 | name: "left_bt_unclick"; | ||
401 | signal: "mouse,up,1"; | ||
402 | source: "left_over2"; | ||
403 | action: STATE_SET "default" 0.0; | ||
404 | target: "left_bt"; | ||
405 | } | ||
406 | program { | ||
407 | name: "left_bt_click2"; | ||
408 | signal: "mouse,down,1"; | ||
409 | source: "left_over3"; | ||
410 | action: STATE_SET "clicked" 0.0; | ||
411 | target: "left_over3"; | ||
412 | } | ||
413 | program { | ||
414 | name: "left_bt_unclick2"; | ||
415 | signal: "mouse,up,1"; | ||
416 | source: "left_over3"; | ||
417 | action: STATE_SET "default" 0.0; | ||
418 | transition: DECELERATE 0.5; | ||
419 | target: "left_over3"; | ||
420 | } | ||
421 | program { | ||
422 | name: "left_bt_unclick3"; | ||
423 | signal: "mouse,up,1"; | ||
424 | source: "left_over2"; | ||
425 | action: SIGNAL_EMIT "elm,action,click" ""; | ||
426 | } | ||
427 | program { | ||
428 | name: "left_bt_pressed_anim"; | ||
429 | signal: "elm,left,anim,activate"; | ||
430 | source: "elm"; | ||
431 | action: STATE_SET "clicked" 0.0; | ||
432 | target: "left_bt"; | ||
433 | target: "left_over3"; | ||
434 | after: "left_bt_unpressed_anim"; | ||
435 | } | ||
436 | program { | ||
437 | name: "left_bt_unpressed_anim"; | ||
438 | action: STATE_SET "default" 0.0; | ||
439 | transition: DECELERATE 0.5; | ||
440 | target: "left_bt"; | ||
441 | target: "left_over3"; | ||
442 | } | ||
443 | |||
444 | program { | ||
445 | name: "right_bt_click"; | ||
446 | signal: "mouse,down,1"; | ||
447 | source: "right_over2"; | ||
448 | action: STATE_SET "clicked" 0.0; | ||
449 | target: "right_bt"; | ||
450 | } | ||
451 | program { | ||
452 | name: "right_bt_unclick"; | ||
453 | signal: "mouse,up,1"; | ||
454 | source: "right_over2"; | ||
455 | action: STATE_SET "default" 0.0; | ||
456 | target: "right_bt"; | ||
457 | } | ||
458 | program { | ||
459 | name: "right_bt_click2"; | ||
460 | signal: "mouse,down,1"; | ||
461 | source: "right_over3"; | ||
462 | action: STATE_SET "clicked" 0.0; | ||
463 | target: "right_over3"; | ||
464 | } | ||
465 | program { | ||
466 | name: "right_bt_unclick2"; | ||
467 | signal: "mouse,up,1"; | ||
468 | source: "right_over3"; | ||
469 | action: STATE_SET "default" 0.0; | ||
470 | transition: DECELERATE 0.5; | ||
471 | target: "right_over3"; | ||
472 | } | ||
473 | program { | ||
474 | name: "right_bt_unclick3"; | ||
475 | signal: "mouse,up,1"; | ||
476 | source: "right_over2"; | ||
477 | action: SIGNAL_EMIT "elm,action,click" ""; | ||
478 | } | ||
479 | program { | ||
480 | name: "right_bt_pressed_anim"; | ||
481 | signal: "elm,right,anim,activate"; | ||
482 | source: "elm"; | ||
483 | action: STATE_SET "clicked" 0.0; | ||
484 | target: "right_bt"; | ||
485 | target: "right_over3"; | ||
486 | after: "right_bt_unpressed_anim"; | ||
487 | } | ||
488 | program { | ||
489 | name: "right_bt_unpressed_anim"; | ||
490 | action: STATE_SET "default" 0.0; | ||
491 | transition: DECELERATE 0.5; | ||
492 | target: "right_bt"; | ||
493 | target: "right_over3"; | ||
494 | } | ||
495 | |||
496 | program { name: "disable"; | ||
497 | signal: "elm,state,disabled"; | ||
498 | source: "elm"; | ||
499 | action: STATE_SET "disabled" 0.0; | ||
500 | target: "left_bt"; | ||
501 | target: "left_over1"; | ||
502 | target: "left_over2"; | ||
503 | target: "right_bt"; | ||
504 | target: "right_over1"; | ||
505 | target: "right_over2"; | ||
506 | target: "disabler"; | ||
507 | after: "disable_text"; | ||
508 | } | ||
509 | program { name: "disable_text"; | ||
510 | script { | ||
511 | new st[31]; | ||
512 | new Float:vl; | ||
513 | get_state(PART:"elm.text", st, 30, vl); | ||
514 | if (!strcmp(st, "active")) | ||
515 | set_state(PART:"elm.text", "disabled_active", 0.0); | ||
516 | else | ||
517 | set_state(PART:"elm.text", "disabled", 0.0); | ||
518 | |||
519 | get_state(PART:"elm.swallow.entry", st, 30, vl); | ||
520 | if (!strcmp(st, "active")) | ||
521 | set_state(PART:"elm.swallow.entry", "disabled_active", 0.0); | ||
522 | else | ||
523 | set_state(PART:"elm.swallow.entry", "disabled", 0.0); | ||
524 | } | ||
525 | } | ||
526 | program { name: "enable"; | ||
527 | signal: "elm,state,enabled"; | ||
528 | source: "elm"; | ||
529 | action: STATE_SET "default" 0.0; | ||
530 | target: "left_bt"; | ||
531 | target: "left_over1"; | ||
532 | target: "left_over2"; | ||
533 | target: "right_bt"; | ||
534 | target: "right_over1"; | ||
535 | target: "right_over2"; | ||
536 | target: "disabler"; | ||
537 | after: "enable_text"; | ||
538 | } | ||
539 | program { name: "enable_text"; | ||
540 | script { | ||
541 | new st[31]; | ||
542 | new Float:vl; | ||
543 | get_state(PART:"elm.text", st, 30, vl); | ||
544 | if (!strcmp(st, "disabled_active")) | ||
545 | set_state(PART:"elm.text", "active", 0.0); | ||
546 | else | ||
547 | set_state(PART:"elm.text", "default", 0.0); | ||
548 | |||
549 | get_state(PART:"elm.swallow.entry", st, 30, vl); | ||
550 | if (!strcmp(st, "disabled_active")) | ||
551 | set_state(PART:"elm.swallow.entry", "active", 0.0); | ||
552 | else | ||
553 | set_state(PART:"elm.swallow.entry", "default", 0.0); | ||
554 | } | ||
555 | } | ||
556 | program { name: "active"; | ||
557 | signal: "elm,state,active"; | ||
558 | source: "elm"; | ||
559 | action: STATE_SET "active" 0.0; | ||
560 | target: "elm.text"; | ||
561 | target: "elm.swallow.entry"; | ||
562 | } | ||
563 | program { name: "inactive"; | ||
564 | signal: "elm,state,inactive"; | ||
565 | source: "elm"; | ||
566 | action: STATE_SET "default" 0.0; | ||
567 | target: "elm.text"; | ||
568 | target: "elm.swallow.entry"; | ||
569 | } | ||
570 | program { name: "toggle_text"; | ||
571 | signal: "mouse,up,1"; | ||
572 | source: "button_events"; | ||
573 | action: SIGNAL_EMIT "elm,action,entry,toggle" ""; | ||
574 | } | ||
575 | program { name: "to_rtl"; | ||
576 | signal: "edje,state,rtl"; | ||
577 | source: "edje"; | ||
578 | action: STATE_SET "rtl" 0.0; | ||
579 | target: "right_bt_icon"; | ||
580 | target: "left_bt_icon"; | ||
581 | } | ||
582 | program { name: "to_ltr"; | ||
583 | signal: "edje,state,ltr"; | ||
584 | source: "edje"; | ||
585 | action: STATE_SET "default" 0.0; | ||
586 | target: "right_bt_icon"; | ||
587 | target: "left_bt_icon"; | ||
588 | } | ||
589 | } | ||
590 | } | ||
591 | |||
592 | /////////////////////////////////////////////////////////////////////////////// | ||
593 | group { name: "elm/spinner/base/vertical"; | ||
594 | images { | ||
595 | image: "shelf_inset.png" COMP; | ||
596 | image: "bt_hilight.png" COMP; | ||
597 | image: "bt_shine.png" COMP; | ||
598 | image: "bt_glow.png" COMP; | ||
599 | image: "bt_dis_base.png" COMP; | ||
600 | image: "bt_dis_hilight.png" COMP; | ||
601 | image: "up.png" COMP; | ||
602 | image: "down.png" COMP; | ||
603 | image: "bt_spinner_up.png" COMP; | ||
604 | image: "bt_spinner_down.png" COMP; | ||
605 | image: "bt_spinner_hilight.png" COMP; | ||
606 | } | ||
607 | parts { | ||
608 | part { name: "bg"; | ||
609 | type: RECT; | ||
610 | description { state: "default" 0.0; | ||
611 | min: 0 30; | ||
612 | rel1.offset: 1 1; | ||
613 | rel2.offset: -2 -2; | ||
614 | color: 255 255 255 0; | ||
615 | } | ||
616 | } | ||
617 | part { name: "conf_over"; | ||
618 | mouse_events: 0; | ||
619 | description { state: "default" 0.0; | ||
620 | rel1 { | ||
621 | to: "bg"; | ||
622 | relative: 0.0 0.0; | ||
623 | } | ||
624 | rel2 { | ||
625 | to: "bg"; | ||
626 | } | ||
627 | image { | ||
628 | normal: "shelf_inset.png"; | ||
629 | border: 7 7 7 7; | ||
630 | middle: 0; | ||
631 | } | ||
632 | fill.smooth : 0; | ||
633 | } | ||
634 | } | ||
635 | part { name: "down_bt"; | ||
636 | mouse_events: 1; | ||
637 | description { state: "default" 0.0; | ||
638 | fixed: 1 1; | ||
639 | rel1 { | ||
640 | to: "up_bt"; | ||
641 | relative: 0 1; | ||
642 | offset: 0 1; | ||
643 | } | ||
644 | rel2 { | ||
645 | to_y: "bg"; | ||
646 | to_x: "up_bt"; | ||
647 | relative: 1 1; | ||
648 | offset: -1 -4; | ||
649 | } | ||
650 | align: 1.0 0.5; | ||
651 | min: 24 16; | ||
652 | image { | ||
653 | normal: "bt_spinner_down.png"; | ||
654 | border: 6 6 6 6; | ||
655 | } | ||
656 | fill.smooth : 0; | ||
657 | } | ||
658 | description { state: "clicked" 0.0; | ||
659 | inherit: "default" 0.0; | ||
660 | image.normal: "bt_spinner_down.png"; | ||
661 | image.middle: SOLID; | ||
662 | } | ||
663 | description { state: "disabled" 0.0; | ||
664 | inherit: "default" 0.0; | ||
665 | image { | ||
666 | normal: "bt_dis_base.png"; | ||
667 | border: 4 4 4 4; | ||
668 | } | ||
669 | } | ||
670 | } | ||
671 | part { name: "down_over3"; | ||
672 | mouse_events: 1; | ||
673 | repeat_events: 1; | ||
674 | description { state: "default" 0.0; | ||
675 | color: 255 255 255 0; | ||
676 | rel1.to: "down_bt"; | ||
677 | rel2.to: "down_bt"; | ||
678 | image { | ||
679 | normal: "bt_glow.png"; | ||
680 | border: 12 12 12 12; | ||
681 | } | ||
682 | fill.smooth : 0; | ||
683 | } | ||
684 | description { state: "clicked" 0.0; | ||
685 | inherit: "default" 0.0; | ||
686 | visible: 1; | ||
687 | color: 255 255 255 255; | ||
688 | } | ||
689 | } | ||
690 | part { name: "up_bt"; | ||
691 | mouse_events: 1; | ||
692 | description { state: "default" 0.0; | ||
693 | fixed: 1 0; | ||
694 | rel1 { to: "bg"; | ||
695 | relative: 0 0; | ||
696 | offset: 0 2; | ||
697 | } | ||
698 | rel2 { to: "bg"; | ||
699 | relative: 1 0.5; | ||
700 | offset: -3 0; | ||
701 | } | ||
702 | align: 1.0 0.5; | ||
703 | min: 24 16; | ||
704 | aspect: 1.5 1.0; | ||
705 | aspect_preference: BOTH; | ||
706 | image { | ||
707 | normal: "bt_spinner_up.png"; | ||
708 | border: 6 6 6 6; | ||
709 | } | ||
710 | fill.smooth : 0; | ||
711 | } | ||
712 | description { state: "clicked" 0.0; | ||
713 | inherit: "default" 0.0; | ||
714 | image.normal: "bt_spinner_up.png"; | ||
715 | image.middle: SOLID; | ||
716 | } | ||
717 | description { state: "disabled" 0.0; | ||
718 | inherit: "default" 0.0; | ||
719 | image { | ||
720 | normal: "bt_dis_base.png"; | ||
721 | border: 4 4 4 4; | ||
722 | } | ||
723 | } | ||
724 | } | ||
725 | part { name: "up_over1"; | ||
726 | mouse_events: 0; | ||
727 | description { state: "default" 0.0; | ||
728 | rel1.to: "up_bt"; | ||
729 | rel2 { to: "up_bt"; | ||
730 | relative: 1.0 0.5; | ||
731 | } | ||
732 | image { | ||
733 | normal: "bt_spinner_hilight.png"; | ||
734 | border: 7 7 7 0; | ||
735 | } | ||
736 | } | ||
737 | description { state: "disabled" 0.0; | ||
738 | inherit: "default" 0.0; | ||
739 | image { | ||
740 | normal: "bt_dis_hilight.png"; | ||
741 | border: 4 4 4 0; | ||
742 | } | ||
743 | } | ||
744 | } | ||
745 | part { name: "up_over3"; | ||
746 | mouse_events: 1; | ||
747 | repeat_events: 1; | ||
748 | description { state: "default" 0.0; | ||
749 | color: 255 255 255 0; | ||
750 | rel1.to: "up_bt"; | ||
751 | rel2.to: "up_bt"; | ||
752 | image { | ||
753 | normal: "bt_glow.png"; | ||
754 | border: 12 12 12 12; | ||
755 | } | ||
756 | fill.smooth : 0; | ||
757 | } | ||
758 | description { state: "clicked" 0.0; | ||
759 | inherit: "default" 0.0; | ||
760 | visible: 1; | ||
761 | color: 255 255 255 255; | ||
762 | } | ||
763 | } | ||
764 | part { name: "down_bt_icon"; | ||
765 | repeat_events: 1; | ||
766 | description { state: "default" 0.0; | ||
767 | rel1.to: "down_bt"; | ||
768 | rel1.offset: 5 3; | ||
769 | rel2.to: "down_bt"; | ||
770 | rel2.offset: -6 -3; | ||
771 | align: 0.5 0.5; | ||
772 | image.normal: "down.png"; | ||
773 | } | ||
774 | } | ||
775 | part { name: "up_bt_icon"; | ||
776 | repeat_events: 1; | ||
777 | description { state: "default" 0.0; | ||
778 | rel1.to: "up_bt"; | ||
779 | rel1.offset: 5 3; | ||
780 | rel2.to: "up_bt"; | ||
781 | rel2.offset: -6 -3; | ||
782 | align: 0.5 0.5; | ||
783 | image.normal: "up.png"; | ||
784 | } | ||
785 | } | ||
786 | part { name: "elm.text"; | ||
787 | type: TEXT; | ||
788 | mouse_events: 0; | ||
789 | scale: 1; | ||
790 | description { state: "default" 0.0; | ||
791 | visible: 1; | ||
792 | align: 0.0 0.5; | ||
793 | rel1 { relative: 0.0 0.0; | ||
794 | offset: 3 2; | ||
795 | to_x: "bg"; | ||
796 | to_y: "bg"; | ||
797 | } | ||
798 | rel2 { relative: 0.0 1.0; | ||
799 | offset: -3 -2; | ||
800 | to_x: "down_bt"; | ||
801 | to_y: "bg"; | ||
802 | } | ||
803 | color: 0 0 0 255; | ||
804 | text { | ||
805 | font: "Sans,Edje-Vera"; | ||
806 | size: 10; | ||
807 | min: 1 1; | ||
808 | align: 0.5 0.5; | ||
809 | } | ||
810 | } | ||
811 | description { state: "active" 0.0; | ||
812 | inherit: "default" 0.0; | ||
813 | visible: 0; | ||
814 | } | ||
815 | description { state: "disabled_active" 0.0; | ||
816 | inherit: "default" 0.0; | ||
817 | color: 0 0 0 128; | ||
818 | color3: 0 0 0 0; | ||
819 | } | ||
820 | description { state: "disabled" 0.0; | ||
821 | inherit: "default" 0.0; | ||
822 | color: 0 0 0 128; | ||
823 | color3: 0 0 0 0; | ||
824 | } | ||
825 | } | ||
826 | part { name: "elm.dragable.slider"; | ||
827 | type: RECT; | ||
828 | mouse_events: 0; | ||
829 | scale: 1; | ||
830 | dragable { | ||
831 | x: 1 1 0; | ||
832 | y: 0 0 0; | ||
833 | } | ||
834 | description { state: "default" 0.0; | ||
835 | rel1.to: "bg"; | ||
836 | rel2.to: "bg"; | ||
837 | fixed: 1 1; | ||
838 | color: 0 0 0 0; | ||
839 | } | ||
840 | } | ||
841 | part { name: "button_events"; | ||
842 | type: RECT; | ||
843 | dragable { | ||
844 | events: "elm.dragable.slider"; | ||
845 | } | ||
846 | mouse_events: 1; | ||
847 | description { state: "default" 0.0; | ||
848 | rel1.to: "elm.text"; | ||
849 | rel2.to: "elm.text"; | ||
850 | color: 0 0 0 0; | ||
851 | } | ||
852 | } | ||
853 | part { name: "elm.swallow.entry"; | ||
854 | type: SWALLOW; | ||
855 | description { state: "default" 0.0; | ||
856 | visible: 0; | ||
857 | align: 0.5 0.5; | ||
858 | rel1 { relative: 0.0 0.5; | ||
859 | offset: 3 2; | ||
860 | to: "bg"; | ||
861 | } | ||
862 | rel2 { relative: 1.0 0.5; | ||
863 | offset: -3 -2; | ||
864 | to: "bg"; | ||
865 | } | ||
866 | fixed: 1 1; | ||
867 | color: 0 0 0 0; | ||
868 | } | ||
869 | description { state: "active" 0.0; | ||
870 | inherit: "default" 0.0; | ||
871 | visible: 1; | ||
872 | color: 255 255 255 255; | ||
873 | } | ||
874 | description { state: "disabled_active" 0.0; | ||
875 | inherit: "default" 0.0; | ||
876 | visible: 0; | ||
877 | } | ||
878 | description { state: "disabled" 0.0; | ||
879 | inherit: "default" 0.0; | ||
880 | visible: 0; | ||
881 | } | ||
882 | } | ||
883 | part { name: "disabler"; | ||
884 | type: RECT; | ||
885 | description { state: "default" 0.0; | ||
886 | color: 0 0 0 0; | ||
887 | visible: 0; | ||
888 | } | ||
889 | description { state: "disabled" 0.0; | ||
890 | inherit: "default" 0.0; | ||
891 | visible: 1; | ||
892 | } | ||
893 | } | ||
894 | } | ||
895 | programs { | ||
896 | program { name: "text_show"; | ||
897 | signal: "elm,state,text,visible"; | ||
898 | source: "elm"; | ||
899 | action: STATE_SET "visible" 0.0; | ||
900 | target: "elm.text"; | ||
901 | } | ||
902 | program { name: "text_hide"; | ||
903 | signal: "elm,state,text,hidden"; | ||
904 | source: "elm"; | ||
905 | action: STATE_SET "default" 0.0; | ||
906 | target: "elm.text"; | ||
907 | } | ||
908 | program { name: "dec"; | ||
909 | signal: "mouse,down,1"; | ||
910 | source: "down_bt"; | ||
911 | action: SIGNAL_EMIT "elm,action,decrement,start" ""; | ||
912 | } | ||
913 | program { name: "dec2"; | ||
914 | signal: "mouse,up,1"; | ||
915 | source: "down_bt"; | ||
916 | action: SIGNAL_EMIT "elm,action,decrement,stop" ""; | ||
917 | } | ||
918 | program { name: "inc"; | ||
919 | signal: "mouse,down,1"; | ||
920 | source: "up_bt"; | ||
921 | action: SIGNAL_EMIT "elm,action,increment,start" ""; | ||
922 | } | ||
923 | program { name: "inc2"; | ||
924 | signal: "mouse,up,1"; | ||
925 | source: "up_bt"; | ||
926 | action: SIGNAL_EMIT "elm,action,increment,stop" ""; | ||
927 | } | ||
928 | program { | ||
929 | name: "down_bt_click2"; | ||
930 | signal: "mouse,down,1"; | ||
931 | source: "down_over3"; | ||
932 | action: STATE_SET "clicked" 0.0; | ||
933 | target: "down_over3"; | ||
934 | } | ||
935 | program { | ||
936 | name: "down_bt_unclick2"; | ||
937 | signal: "mouse,up,1"; | ||
938 | source: "down_over3"; | ||
939 | action: STATE_SET "default" 0.0; | ||
940 | transition: DECELERATE 0.5; | ||
941 | target: "down_over3"; | ||
942 | } | ||
943 | program { | ||
944 | name: "up_bt_click2"; | ||
945 | signal: "mouse,down,1"; | ||
946 | source: "up_over3"; | ||
947 | action: STATE_SET "clicked" 0.0; | ||
948 | target: "up_over3"; | ||
949 | } | ||
950 | program { | ||
951 | name: "up_bt_unclick2"; | ||
952 | signal: "mouse,up,1"; | ||
953 | source: "up_over3"; | ||
954 | action: STATE_SET "default" 0.0; | ||
955 | transition: DECELERATE 0.5; | ||
956 | target: "up_over3"; | ||
957 | } | ||
958 | program { name: "disable"; | ||
959 | signal: "elm,state,disabled"; | ||
960 | source: "elm"; | ||
961 | action: STATE_SET "disabled" 0.0; | ||
962 | target: "down_bt"; | ||
963 | target: "up_bt"; | ||
964 | target: "disabler"; | ||
965 | after: "disable_text"; | ||
966 | } | ||
967 | program { name: "disable_text"; | ||
968 | script { | ||
969 | new st[31]; | ||
970 | new Float:vl; | ||
971 | get_state(PART:"elm.text", st, 30, vl); | ||
972 | if (!strcmp(st, "active")) | ||
973 | set_state(PART:"elm.text", "disabled_active", 0.0); | ||
974 | else | ||
975 | set_state(PART:"elm.text", "disabled", 0.0); | ||
976 | |||
977 | get_state(PART:"elm.swallow.entry", st, 30, vl); | ||
978 | if (!strcmp(st, "active")) | ||
979 | set_state(PART:"elm.swallow.entry", "disabled_active", 0.0); | ||
980 | else | ||
981 | set_state(PART:"elm.swallow.entry", "disabled", 0.0); | ||
982 | } | ||
983 | } | ||
984 | program { name: "enable"; | ||
985 | signal: "elm,state,enabled"; | ||
986 | source: "elm"; | ||
987 | action: STATE_SET "default" 0.0; | ||
988 | target: "down_bt"; | ||
989 | target: "up_bt"; | ||
990 | target: "disabler"; | ||
991 | after: "enable_text"; | ||
992 | } | ||
993 | program { name: "enable_text"; | ||
994 | script { | ||
995 | new st[31]; | ||
996 | new Float:vl; | ||
997 | get_state(PART:"elm.text", st, 30, vl); | ||
998 | if (!strcmp(st, "disabled_active")) | ||
999 | set_state(PART:"elm.text", "active", 0.0); | ||
1000 | else | ||
1001 | set_state(PART:"elm.text", "default", 0.0); | ||
1002 | |||
1003 | get_state(PART:"elm.swallow.entry", st, 30, vl); | ||
1004 | if (!strcmp(st, "disabled_active")) | ||
1005 | set_state(PART:"elm.swallow.entry", "active", 0.0); | ||
1006 | else | ||
1007 | set_state(PART:"elm.swallow.entry", "default", 0.0); | ||
1008 | } | ||
1009 | } | ||
1010 | program { name: "active"; | ||
1011 | signal: "elm,state,active"; | ||
1012 | source: "elm"; | ||
1013 | action: STATE_SET "active" 0.0; | ||
1014 | target: "elm.text"; | ||
1015 | target: "elm.swallow.entry"; | ||
1016 | } | ||
1017 | program { name: "inactive"; | ||
1018 | signal: "elm,state,inactive"; | ||
1019 | source: "elm"; | ||
1020 | action: STATE_SET "default" 0.0; | ||
1021 | target: "elm.text"; | ||
1022 | target: "elm.swallow.entry"; | ||
1023 | } | ||
1024 | program { name: "toggle_text"; | ||
1025 | signal: "mouse,up,1"; | ||
1026 | source: "button_events"; | ||
1027 | action: SIGNAL_EMIT "elm,action,entry,toggle" ""; | ||
1028 | } | ||
1029 | } | ||
1030 | } | ||
1031 | |||
1032 | |||
1033 | /////////////////////////////////////////////////////////////////////////////// | ||
diff --git a/libraries/elementary/data/themes/widgets/thumb.edc b/libraries/elementary/data/themes/widgets/thumb.edc new file mode 100644 index 0000000..5fd0cb4 --- /dev/null +++ b/libraries/elementary/data/themes/widgets/thumb.edc | |||
@@ -0,0 +1,185 @@ | |||
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 | |||
diff --git a/libraries/elementary/data/themes/widgets/toolbar.edc b/libraries/elementary/data/themes/widgets/toolbar.edc new file mode 100644 index 0000000..4d1d2f0 --- /dev/null +++ b/libraries/elementary/data/themes/widgets/toolbar.edc | |||
@@ -0,0 +1,685 @@ | |||
1 | group { name: "elm/toolbar/base/default"; | ||
2 | images { | ||
3 | image: "bt_dis_base.png" COMP; | ||
4 | image: "bt_dis_hilight.png" COMP; | ||
5 | image: "bt_dis_shine.png" COMP; | ||
6 | image: "icon_left_arrow.png" COMP; | ||
7 | image: "icon_right_arrow.png" COMP; | ||
8 | } | ||
9 | parts { | ||
10 | part { name: "base"; | ||
11 | mouse_events: 1; | ||
12 | description { state: "default" 0.0; | ||
13 | rel1 { | ||
14 | relative: 0.0 0.0; | ||
15 | offset: 2 2; | ||
16 | } | ||
17 | rel2.offset: -3 -3; | ||
18 | image { | ||
19 | normal: "bt_dis_base.png"; | ||
20 | border: 4 4 4 4; | ||
21 | } | ||
22 | image.middle: SOLID; | ||
23 | } | ||
24 | } | ||
25 | part { name: "clipper"; | ||
26 | type: RECT; | ||
27 | mouse_events: 0; | ||
28 | description { | ||
29 | state: "default" 0.0; | ||
30 | rel1 { | ||
31 | to: "base"; | ||
32 | offset: 2 2; | ||
33 | } | ||
34 | rel2 { | ||
35 | to: "base"; | ||
36 | offset: -3 -3; | ||
37 | } | ||
38 | } | ||
39 | } | ||
40 | part { name: "elm.swallow.content"; | ||
41 | clip_to: "clipper"; | ||
42 | type: SWALLOW; | ||
43 | description { | ||
44 | state: "default" 0.0; | ||
45 | rel1.to: "clipper"; | ||
46 | rel2.to: "clipper"; | ||
47 | } | ||
48 | } | ||
49 | part { name: "over2"; | ||
50 | mouse_events: 0; | ||
51 | description { state: "default" 0.0; | ||
52 | rel1.to: "base"; | ||
53 | rel2.to: "base"; | ||
54 | image { | ||
55 | normal: "bt_dis_shine.png"; | ||
56 | border: 4 4 4 4; | ||
57 | } | ||
58 | } | ||
59 | } | ||
60 | part { name: "over1"; | ||
61 | mouse_events: 0; | ||
62 | description { state: "default" 0.0; | ||
63 | rel1.to: "base"; | ||
64 | rel2.to: "base"; | ||
65 | rel2.relative: 1.0 0.5; | ||
66 | image { | ||
67 | normal: "bt_dis_hilight.png"; | ||
68 | border: 4 4 4 0; | ||
69 | } | ||
70 | color: 255 255 255 128; | ||
71 | } | ||
72 | } | ||
73 | part { name: "left_arrow"; | ||
74 | mouse_events: 0; | ||
75 | description { state: "default" 0.0; | ||
76 | image.normal: "icon_left_arrow.png"; | ||
77 | aspect: 1.0 1.0; | ||
78 | aspect_preference: VERTICAL; | ||
79 | align: 0.0 0.5; | ||
80 | min: 32 32; | ||
81 | max: 32 32; | ||
82 | } | ||
83 | description { state: "hidden" 0.0; | ||
84 | inherit: "default" 0.0; | ||
85 | visible: 0; | ||
86 | color: 255 255 255 0; | ||
87 | } | ||
88 | } | ||
89 | part { name: "right_arrow"; | ||
90 | mouse_events: 0; | ||
91 | description { state: "default" 0.0; | ||
92 | image.normal: "icon_right_arrow.png"; | ||
93 | aspect: 1.0 1.0; | ||
94 | aspect_preference: VERTICAL; | ||
95 | align: 1.0 0.5; | ||
96 | min: 32 32; | ||
97 | max: 32 32; | ||
98 | } | ||
99 | description { state: "hidden" 0.0; | ||
100 | inherit: "default" 0.0; | ||
101 | visible: 0; | ||
102 | color: 255 255 255 0; | ||
103 | } | ||
104 | } | ||
105 | part { name: "event"; | ||
106 | type: RECT; | ||
107 | mouse_events: 1; | ||
108 | repeat_events: 1; | ||
109 | description { state: "default" 0.0; | ||
110 | color: 0 0 0 0; | ||
111 | } | ||
112 | } | ||
113 | } | ||
114 | programs { | ||
115 | program { name: "sb_hbar_show"; | ||
116 | signal: "elm,action,show,hbar"; | ||
117 | source: "elm"; | ||
118 | action: STATE_SET "default" 0.0; | ||
119 | transition: LINEAR 0.5; | ||
120 | target: "left_arrow"; | ||
121 | target: "right_arrow"; | ||
122 | } | ||
123 | program { name: "sb_hbar_hide"; | ||
124 | signal: "elm,action,hide,hbar"; | ||
125 | source: "elm"; | ||
126 | action: STATE_SET "hidden" 0.0; | ||
127 | target: "left_arrow"; | ||
128 | target: "right_arrow"; | ||
129 | transition: LINEAR 0.5; | ||
130 | } | ||
131 | } | ||
132 | } | ||
133 | |||
134 | group { name: "elm/toolbar/item/default"; | ||
135 | images { | ||
136 | image: "toolbar_sel.png" COMP; | ||
137 | } | ||
138 | data.item: "transition_animation_on" "1"; | ||
139 | parts { | ||
140 | part { name: "label2"; | ||
141 | type: TEXT; | ||
142 | mouse_events: 0; | ||
143 | scale: 1; | ||
144 | clip_to: "elm.text.clipper"; | ||
145 | description { state: "default" 0.0; | ||
146 | align: 0.5 1.0; | ||
147 | fixed: 0 1; | ||
148 | rel1.to: "elm.text"; | ||
149 | rel2.to: "elm.text"; | ||
150 | color: 0 0 0 255; | ||
151 | text { | ||
152 | font: "Sans"; | ||
153 | text_source: "elm.text"; | ||
154 | size: 10; | ||
155 | min: 1 1; | ||
156 | align: 0.5 0.5; | ||
157 | text_class: "toolbar_item"; | ||
158 | } | ||
159 | } | ||
160 | description { state: "selected" 0.0; | ||
161 | inherit: "default" 0.0; | ||
162 | visible: 0; | ||
163 | } | ||
164 | description { state: "disabled" 0.0; | ||
165 | inherit: "default" 0.0; | ||
166 | color: 0 0 0 128; | ||
167 | color3: 0 0 0 0; | ||
168 | } | ||
169 | description { state: "disabled_visible" 0.0; | ||
170 | inherit: "default" 0.0; | ||
171 | color: 0 0 0 128; | ||
172 | color3: 0 0 0 0; | ||
173 | visible: 1; | ||
174 | text.min: 1 1; | ||
175 | } | ||
176 | } | ||
177 | part { name: "label2_new"; | ||
178 | type: TEXT; | ||
179 | mouse_events: 0; | ||
180 | scale: 1; | ||
181 | clip_to: "elm.text_new.clipper"; | ||
182 | description { state: "default" 0.0; | ||
183 | align: 0.5 1.0; | ||
184 | fixed: 0 1; | ||
185 | rel1.to: "elm.text_new"; | ||
186 | rel2.to: "elm.text_new"; | ||
187 | color: 0 0 0 255; | ||
188 | text { | ||
189 | font: "Sans"; | ||
190 | text_source: "elm.text_new"; | ||
191 | size: 10; | ||
192 | min: 1 1; | ||
193 | align: 0.5 0.5; | ||
194 | text_class: "toolbar_item"; | ||
195 | } | ||
196 | } | ||
197 | description { state: "selected" 0.0; | ||
198 | inherit: "default" 0.0; | ||
199 | visible: 0; | ||
200 | } | ||
201 | description { state: "disabled" 0.0; | ||
202 | inherit: "default" 0.0; | ||
203 | color: 0 0 0 128; | ||
204 | color3: 0 0 0 0; | ||
205 | } | ||
206 | description { state: "disabled_visible" 0.0; | ||
207 | inherit: "default" 0.0; | ||
208 | color: 0 0 0 128; | ||
209 | color3: 0 0 0 0; | ||
210 | visible: 1; | ||
211 | text.min: 1 1; | ||
212 | } | ||
213 | } | ||
214 | part { name: "bg"; | ||
215 | mouse_events: 0; | ||
216 | description { state: "default" 0.0; | ||
217 | visible: 0; | ||
218 | color: 255 255 255 0; | ||
219 | image { | ||
220 | normal: "toolbar_sel.png"; | ||
221 | border: 3 3 0 0; | ||
222 | } | ||
223 | image.middle: SOLID; | ||
224 | fill.smooth: 0; | ||
225 | } | ||
226 | description { state: "selected" 0.0; | ||
227 | inherit: "default" 0.0; | ||
228 | visible: 1; | ||
229 | color: 255 255 255 255; | ||
230 | } | ||
231 | description { state: "disabled" 0.0; | ||
232 | inherit: "default" 0.0; | ||
233 | visible: 0; | ||
234 | color: 255 255 255 0; | ||
235 | } | ||
236 | } | ||
237 | part { name: "elm.swallow.icon"; | ||
238 | type: SWALLOW; | ||
239 | clip_to: "elm.icon.clipper"; | ||
240 | description { state: "default" 0.0; | ||
241 | align: 0.5 0.5; | ||
242 | rel1 { | ||
243 | relative: 0.0 0.0; | ||
244 | offset: 2 2; | ||
245 | } | ||
246 | rel2 { | ||
247 | to_y: "elm.text"; | ||
248 | relative: 1.0 0.0; | ||
249 | offset: -3 -1; | ||
250 | } | ||
251 | color: 0 0 0 0; | ||
252 | } | ||
253 | } | ||
254 | part { name: "elm.swallow.icon_new"; | ||
255 | type: SWALLOW; | ||
256 | clip_to: "elm.icon_new.clipper"; | ||
257 | description { state: "default" 0.0; | ||
258 | align: 0.5 0.5; | ||
259 | rel1 { | ||
260 | relative: 0.0 0.0; | ||
261 | offset: 2 2; | ||
262 | } | ||
263 | rel2 { | ||
264 | to_y: "elm.text_new"; | ||
265 | relative: 1.0 0.0; | ||
266 | offset: -3 -1; | ||
267 | } | ||
268 | color: 0 0 0 0; | ||
269 | } | ||
270 | } | ||
271 | part { name: "elm.text"; | ||
272 | type: TEXT; | ||
273 | effect: SOFT_SHADOW; | ||
274 | mouse_events: 0; | ||
275 | scale: 1; | ||
276 | clip_to: "elm.text.clipper"; | ||
277 | description { state: "default" 0.0; | ||
278 | align: 0.5 1.0; | ||
279 | fixed: 0 1; | ||
280 | rel1 { | ||
281 | relative: 0.0 1.0; | ||
282 | offset: 0 -1; | ||
283 | } | ||
284 | rel2 { | ||
285 | relative: 1.0 1.0; | ||
286 | offset: -1 -1; | ||
287 | } | ||
288 | visible: 0; | ||
289 | color: 224 224 224 255; | ||
290 | color3: 0 0 0 32; | ||
291 | text { | ||
292 | font: "Sans:style=Bold"; | ||
293 | size: 10; | ||
294 | min: 1 1; | ||
295 | align: 0.5 0.5; | ||
296 | text_class: "toolbar_item"; | ||
297 | } | ||
298 | } | ||
299 | description { state: "selected" 0.0; | ||
300 | inherit: "default" 0.0; | ||
301 | visible: 1; | ||
302 | } | ||
303 | description { state: "visible" 0.0; | ||
304 | inherit: "default" 0.0; | ||
305 | visible: 1; | ||
306 | text.min: 1 1; | ||
307 | } | ||
308 | description { state: "disabled" 0.0; | ||
309 | inherit: "default" 0.0; | ||
310 | color: 0 0 0 128; | ||
311 | color3: 0 0 0 0; | ||
312 | } | ||
313 | description { state: "disabled_visible" 0.0; | ||
314 | inherit: "default" 0.0; | ||
315 | color: 0 0 0 128; | ||
316 | color3: 0 0 0 0; | ||
317 | visible: 1; | ||
318 | text.min: 1 1; | ||
319 | } | ||
320 | } | ||
321 | part { name: "elm.text_new"; | ||
322 | type: TEXT; | ||
323 | effect: SOFT_SHADOW; | ||
324 | mouse_events: 0; | ||
325 | clip_to: "elm.text_new.clipper"; | ||
326 | scale: 1; | ||
327 | description { state: "default" 0.0; | ||
328 | align: 0.5 1.0; | ||
329 | fixed: 0 1; | ||
330 | rel1 { | ||
331 | relative: 0.0 1.0; | ||
332 | offset: 0 -1; | ||
333 | } | ||
334 | rel2 { | ||
335 | relative: 1.0 1.0; | ||
336 | offset: -1 -1; | ||
337 | } | ||
338 | visible: 0; | ||
339 | color: 224 224 224 255; | ||
340 | color3: 0 0 0 32; | ||
341 | text { | ||
342 | font: "Sans:style=Bold"; | ||
343 | size: 10; | ||
344 | min: 1 1; | ||
345 | align: 0.5 0.5; | ||
346 | text_class: "toolbar_item"; | ||
347 | } | ||
348 | } | ||
349 | description { state: "selected" 0.0; | ||
350 | inherit: "default" 0.0; | ||
351 | visible: 1; | ||
352 | } | ||
353 | description { state: "visible" 0.0; | ||
354 | inherit: "default" 0.0; | ||
355 | visible: 1; | ||
356 | text.min: 1 1; | ||
357 | } | ||
358 | description { state: "disabled" 0.0; | ||
359 | inherit: "default" 0.0; | ||
360 | color: 0 0 0 128; | ||
361 | color3: 0 0 0 0; | ||
362 | } | ||
363 | description { state: "disabled_visible" 0.0; | ||
364 | inherit: "default" 0.0; | ||
365 | color: 0 0 0 128; | ||
366 | color3: 0 0 0 0; | ||
367 | visible: 1; | ||
368 | text.min: 1 1; | ||
369 | } | ||
370 | } | ||
371 | part { name: "elm.text.clipper"; | ||
372 | type: RECT; | ||
373 | description { state: "default" 0.0; | ||
374 | color: 255 255 255 255; | ||
375 | } | ||
376 | description { state: "animation" 0.0; | ||
377 | color: 255 255 255 0; | ||
378 | } | ||
379 | } | ||
380 | part { name: "elm.text_new.clipper"; | ||
381 | type: RECT; | ||
382 | description { state: "default" 0.0; | ||
383 | color: 255 255 255 0; | ||
384 | } | ||
385 | description { state: "animation" 0.0; | ||
386 | color: 255 255 255 255; | ||
387 | } | ||
388 | } | ||
389 | part { name: "elm.icon.clipper"; | ||
390 | type: RECT; | ||
391 | description { state: "default" 0.0; | ||
392 | color: 255 255 255 255; | ||
393 | } | ||
394 | description { state: "animation" 0.0; | ||
395 | color: 255 255 255 0; | ||
396 | } | ||
397 | } | ||
398 | part { name: "elm.icon_new.clipper"; | ||
399 | type: RECT; | ||
400 | description { state: "default" 0.0; | ||
401 | color: 255 255 255 0; | ||
402 | } | ||
403 | description { state: "animation" 0.0; | ||
404 | color: 255 255 255 255; | ||
405 | } | ||
406 | } | ||
407 | part { name: "event"; | ||
408 | type: RECT; | ||
409 | mouse_events: 1; | ||
410 | ignore_flags: ON_HOLD; | ||
411 | description { state: "default" 0.0; | ||
412 | color: 0 0 0 0; | ||
413 | } | ||
414 | } | ||
415 | } | ||
416 | programs { | ||
417 | program { name: "go_active"; | ||
418 | signal: "elm,state,selected"; | ||
419 | source: "elm"; | ||
420 | action: STATE_SET "selected" 0.0; | ||
421 | target: "bg"; | ||
422 | target: "elm.text"; | ||
423 | target: "label2"; | ||
424 | target: "elm.text_new"; | ||
425 | target: "label2_new"; | ||
426 | transition: LINEAR 0.2; | ||
427 | } | ||
428 | program { name: "go_passive"; | ||
429 | signal: "elm,state,unselected"; | ||
430 | source: "elm"; | ||
431 | action: STATE_SET "default" 0.0; | ||
432 | target: "bg"; | ||
433 | target: "elm.text"; | ||
434 | target: "label2"; | ||
435 | target: "elm.text_new"; | ||
436 | target: "label2_new"; | ||
437 | transition: LINEAR 0.1; | ||
438 | } | ||
439 | program { name: "go"; | ||
440 | signal: "mouse,clicked,1"; | ||
441 | source: "event"; | ||
442 | action: SIGNAL_EMIT "elm,action,click" "elm"; | ||
443 | } | ||
444 | program { name: "mouse,in"; | ||
445 | signal: "mouse,in"; | ||
446 | source: "event"; | ||
447 | action: SIGNAL_EMIT "elm,mouse,in" "elm"; | ||
448 | } | ||
449 | program { name: "mouse,out"; | ||
450 | signal: "mouse,out"; | ||
451 | source: "event"; | ||
452 | action: SIGNAL_EMIT "elm,mouse,out" "elm"; | ||
453 | } | ||
454 | program { name: "disable"; | ||
455 | signal: "elm,state,disabled"; | ||
456 | source: "elm"; | ||
457 | action: STATE_SET "disabled" 0.0; | ||
458 | target: "label2"; | ||
459 | target: "label2_new"; | ||
460 | target: "bg"; | ||
461 | after: "disable_text"; | ||
462 | } | ||
463 | program { name: "disable_text"; | ||
464 | script { | ||
465 | new st[31]; | ||
466 | new Float:vl; | ||
467 | get_state(PART:"elm.text", st, 30, vl); | ||
468 | if (!strcmp(st, "visible")) | ||
469 | { | ||
470 | set_state(PART:"elm.text", "disabled_visible", 0.0); | ||
471 | set_state(PART:"elm.text_new", "disabled_visible", 0.0); | ||
472 | } | ||
473 | else | ||
474 | { | ||
475 | set_state(PART:"elm.text", "disabled", 0.0); | ||
476 | set_state(PART:"elm.text_new", "disabled", 0.0); | ||
477 | } | ||
478 | } | ||
479 | } | ||
480 | program { name: "enable"; | ||
481 | signal: "elm,state,enabled"; | ||
482 | source: "elm"; | ||
483 | action: STATE_SET "default" 0.0; | ||
484 | target: "label2"; | ||
485 | target: "label2_new"; | ||
486 | target: "bg"; | ||
487 | after: "enable_text"; | ||
488 | } | ||
489 | program { name: "enable_text"; | ||
490 | script { | ||
491 | new st[31]; | ||
492 | new Float:vl; | ||
493 | get_state(PART:"elm.text", st, 30, vl); | ||
494 | if (!strcmp(st, "disabled_visible")) | ||
495 | { | ||
496 | set_state(PART:"elm.text", "visible", 0.0); | ||
497 | set_state(PART:"elm.text_new", "visible", 0.0); | ||
498 | } | ||
499 | else | ||
500 | { | ||
501 | set_state(PART:"elm.text", "default", 0.0); | ||
502 | set_state(PART:"elm.text_new", "default", 0.0); | ||
503 | } | ||
504 | } | ||
505 | } | ||
506 | program { name: "label_set,animation,forward"; | ||
507 | signal: "elm,state,label_set,forward"; | ||
508 | source: "elm"; | ||
509 | after: "label_set,animation"; | ||
510 | } | ||
511 | program { name: "label_set,animation,backward"; | ||
512 | signal: "elm,state,label_set,backward"; | ||
513 | source: "elm"; | ||
514 | after: "label_set,animation"; | ||
515 | } | ||
516 | program { name: "label_set,animation"; | ||
517 | signal: "elm,state,label_set"; | ||
518 | source: "elm"; | ||
519 | action: STATE_SET "animation" 0.0; | ||
520 | target: "elm.text.clipper"; | ||
521 | target: "elm.text_new.clipper"; | ||
522 | transition: LINEAR 0.2; | ||
523 | after: "label_set,animation,done"; | ||
524 | } | ||
525 | program { name: "label_set,animation,done"; | ||
526 | action: SIGNAL_EMIT "elm,state,label_set,done" "elm"; | ||
527 | } | ||
528 | program { name: "label,reset"; | ||
529 | signal: "elm,state,label,reset"; | ||
530 | source: "elm"; | ||
531 | action: STATE_SET "default" 0.0; | ||
532 | target: "elm.text.clipper"; | ||
533 | target: "elm.text_new.clipper"; | ||
534 | } | ||
535 | program { name: "icon_set,animation,forward"; | ||
536 | signal: "elm,state,icon_set,forward"; | ||
537 | source: "elm"; | ||
538 | after: "icon_set,animation"; | ||
539 | } | ||
540 | program { name: "icon_set,animation,backward"; | ||
541 | signal: "elm,state,icon_set,backward"; | ||
542 | source: "elm"; | ||
543 | after: "icon_set,animation"; | ||
544 | } | ||
545 | program { name: "icon_set,animation"; | ||
546 | signal: "elm,state,icon_set"; | ||
547 | source: "elm"; | ||
548 | action: STATE_SET "animation" 0.0; | ||
549 | target: "elm.icon.clipper"; | ||
550 | target: "elm.icon_new.clipper"; | ||
551 | transition: LINEAR 0.2; | ||
552 | after: "icon_set,animation,done"; | ||
553 | } | ||
554 | program { name: "icon_set,animation,done"; | ||
555 | action: SIGNAL_EMIT "elm,state,icon_set,done" "elm"; | ||
556 | } | ||
557 | program { name: "icon,reset"; | ||
558 | signal: "elm,state,icon,reset"; | ||
559 | source: "elm"; | ||
560 | action: STATE_SET "default" 0.0; | ||
561 | target: "elm.icon.clipper"; | ||
562 | target: "elm.icon_new.clipper"; | ||
563 | } | ||
564 | } | ||
565 | } | ||
566 | |||
567 | group { name: "elm/toolbar/item/item_horizontal"; | ||
568 | inherit: "elm/toolbar/item/default"; | ||
569 | parts { | ||
570 | part { name: "elm.swallow.icon"; | ||
571 | description { state: "default" 0.0; | ||
572 | fixed: 1 1; | ||
573 | aspect: 1 1; | ||
574 | aspect_preference: VERTICAL; | ||
575 | align: 0.0 0.5; | ||
576 | rel1.offset: 3 3; | ||
577 | rel1.relative: 0 0; | ||
578 | rel2.offset: 3 -4; | ||
579 | rel2.relative: 0 1; | ||
580 | color: 0 0 0 0; | ||
581 | } | ||
582 | } | ||
583 | part { name: "elm.swallow.icon_new"; | ||
584 | description { state: "default" 0.0; | ||
585 | fixed: 1 1; | ||
586 | } | ||
587 | } | ||
588 | part { name: "elm.text"; | ||
589 | description { state: "default" 0.0; | ||
590 | align: 1 0.5; | ||
591 | min: 0 1; | ||
592 | rel1.offset: 1 0; | ||
593 | rel1.relative: 1.0 0.0; | ||
594 | rel1.to_x: "elm.swallow.icon"; | ||
595 | rel2.relative: 1.0 1.0; | ||
596 | text.align: 0 0.5; | ||
597 | } | ||
598 | description { state: "selected" 0.0; | ||
599 | inherit: "default" 0.0; | ||
600 | visible: 1; | ||
601 | } | ||
602 | description { state: "visible" 0.0; | ||
603 | inherit: "default" 0.0; | ||
604 | visible: 1; | ||
605 | text.min: 1 1; | ||
606 | } | ||
607 | description { state: "disabled" 0.0; | ||
608 | inherit: "default" 0.0; | ||
609 | color: 0 0 0 128; | ||
610 | color3: 0 0 0 0; | ||
611 | } | ||
612 | description { state: "disabled_visible" 0.0; | ||
613 | inherit: "default" 0.0; | ||
614 | color: 0 0 0 128; | ||
615 | color3: 0 0 0 0; | ||
616 | visible: 1; | ||
617 | text.min: 1 1; | ||
618 | } | ||
619 | } | ||
620 | part { name: "elm.text_new"; | ||
621 | description { state: "default" 0.0; | ||
622 | align: 1 0.5; | ||
623 | min: 0 1; | ||
624 | rel1.offset: 1 0; | ||
625 | rel1.relative: 1.0 0.0; | ||
626 | rel1.to_x: "elm.swallow.icon"; | ||
627 | rel2.relative: 1.0 1.0; | ||
628 | text.align: 0 0.5; | ||
629 | } | ||
630 | description { state: "selected" 0.0; | ||
631 | inherit: "default" 0.0; | ||
632 | visible: 1; | ||
633 | } | ||
634 | description { state: "visible" 0.0; | ||
635 | inherit: "default" 0.0; | ||
636 | visible: 1; | ||
637 | text.min: 1 1; | ||
638 | } | ||
639 | description { state: "disabled" 0.0; | ||
640 | inherit: "default" 0.0; | ||
641 | color: 0 0 0 128; | ||
642 | color3: 0 0 0 0; | ||
643 | } | ||
644 | description { state: "disabled_visible" 0.0; | ||
645 | inherit: "default" 0.0; | ||
646 | color: 0 0 0 128; | ||
647 | color3: 0 0 0 0; | ||
648 | visible: 1; | ||
649 | text.min: 1 1; | ||
650 | } | ||
651 | } | ||
652 | } | ||
653 | } | ||
654 | |||
655 | group { name: "elm/toolbar/separator/default"; | ||
656 | images { | ||
657 | image: "toolbar_separator_v.png" COMP; | ||
658 | } | ||
659 | parts { | ||
660 | part { name: "separator"; // separator group | ||
661 | description { state: "default" 0.0; | ||
662 | min: 2 2; | ||
663 | max: 2 9999; | ||
664 | rel1.offset: 4 4; | ||
665 | rel2.offset: -5 -5; | ||
666 | image { | ||
667 | normal: "toolbar_separator_v.png"; | ||
668 | } | ||
669 | fill { | ||
670 | smooth: 0; | ||
671 | } | ||
672 | } | ||
673 | } | ||
674 | } | ||
675 | } | ||
676 | |||
677 | group { name: "elm/toolbar/object/default"; | ||
678 | parts { | ||
679 | part { name: "elm.swallow.object"; // object group | ||
680 | type: SWALLOW; | ||
681 | description { state: "default" 0.0; | ||
682 | } | ||
683 | } | ||
684 | } | ||
685 | } | ||
diff --git a/libraries/elementary/data/themes/widgets/tooltip.edc b/libraries/elementary/data/themes/widgets/tooltip.edc new file mode 100644 index 0000000..5a88d49 --- /dev/null +++ b/libraries/elementary/data/themes/widgets/tooltip.edc | |||
@@ -0,0 +1,497 @@ | |||
1 | group { name: "elm/label/base/tooltip"; | ||
2 | styles { | ||
3 | style { name: "tooltip_style"; | ||
4 | base: "font=Sans font_size=8 color=#666 wrap=word"; | ||
5 | tag: "br" "\n"; | ||
6 | tag: "hilight" "+ font_weight=Bold"; | ||
7 | tag: "b" "+ font_weight=Bold"; | ||
8 | tag: "tab" "\t"; | ||
9 | } | ||
10 | } | ||
11 | parts { | ||
12 | part { name: "elm.text"; | ||
13 | type: TEXTBLOCK; | ||
14 | mouse_events: 0; | ||
15 | scale: 1; | ||
16 | description { state: "default" 0.0; | ||
17 | text { | ||
18 | style: "tooltip_style"; | ||
19 | min: 1 1; | ||
20 | } | ||
21 | } | ||
22 | } | ||
23 | } | ||
24 | } | ||
25 | |||
26 | group { name: "elm/tooltip/base/default"; | ||
27 | min: 30 30; | ||
28 | data { | ||
29 | item: "pad_x" "20"; | ||
30 | item: "pad_y" "20"; | ||
31 | item: "pad_border_x" "10"; | ||
32 | item: "pad_border_y" "10"; | ||
33 | item: "hide_timeout" "0.35"; /**< tooltip is hidden after this amount, keep in sync with hide animations */ | ||
34 | } | ||
35 | images { | ||
36 | image: "tooltip-base.png" COMP; | ||
37 | image: "tooltip-corner-top-left-tip.png" COMP; | ||
38 | image: "tooltip-corner-top-right-tip.png" COMP; | ||
39 | image: "tooltip-corner-bottom-left-tip.png" COMP; | ||
40 | image: "tooltip-corner-bottom-right-tip.png" COMP; | ||
41 | image: "tooltip-edge-left-tip.png" COMP; | ||
42 | image: "tooltip-edge-right-tip.png" COMP; | ||
43 | image: "tooltip-edge-bottom-tip.png" COMP; | ||
44 | image: "tooltip-edge-top-tip.png" COMP; | ||
45 | } | ||
46 | script { | ||
47 | hide_corners() { | ||
48 | set_state(PART:"corner-top-left", "default", 0.0); | ||
49 | set_state(PART:"corner-top-right", "default", 0.0); | ||
50 | set_state(PART:"corner-bottom-left", "default", 0.0); | ||
51 | set_state(PART:"corner-bottom-right", "default", 0.0); | ||
52 | } | ||
53 | hide_edges() { | ||
54 | set_state(PART:"clipper-edge-left", "default", 0.0); | ||
55 | set_state(PART:"clipper-edge-right", "default", 0.0); | ||
56 | set_state(PART:"clipper-edge-top", "default", 0.0); | ||
57 | set_state(PART:"clipper-edge-bottom", "default", 0.0); | ||
58 | } | ||
59 | |||
60 | show_corner_top_left() { | ||
61 | set_state(PART:"corner-top-left", "visible", 0.0); | ||
62 | |||
63 | set_state(PART:"corner-top-right", "default", 0.0); | ||
64 | set_state(PART:"corner-bottom-left", "default", 0.0); | ||
65 | set_state(PART:"corner-bottom-right", "default", 0.0); | ||
66 | hide_edges(); | ||
67 | } | ||
68 | show_corner_top_right() { | ||
69 | set_state(PART:"corner-top-right", "visible", 0.0); | ||
70 | |||
71 | set_state(PART:"corner-top-left", "default", 0.0); | ||
72 | set_state(PART:"corner-bottom-left", "default", 0.0); | ||
73 | set_state(PART:"corner-bottom-right", "default", 0.0); | ||
74 | hide_edges(); | ||
75 | } | ||
76 | |||
77 | show_corner_bottom_left() { | ||
78 | set_state(PART:"corner-bottom-left", "visible", 0.0); | ||
79 | |||
80 | set_state(PART:"corner-bottom-right", "default", 0.0); | ||
81 | set_state(PART:"corner-top-left", "default", 0.0); | ||
82 | set_state(PART:"corner-top-right", "default", 0.0); | ||
83 | hide_edges(); | ||
84 | } | ||
85 | show_corner_bottom_right() { | ||
86 | set_state(PART:"corner-bottom-right", "visible", 0.0); | ||
87 | |||
88 | set_state(PART:"corner-bottom-left", "default", 0.0); | ||
89 | set_state(PART:"corner-top-left", "default", 0.0); | ||
90 | set_state(PART:"corner-top-right", "default", 0.0); | ||
91 | hide_edges(); | ||
92 | } | ||
93 | |||
94 | show_edge_left(Float:val) { | ||
95 | set_state(PART:"clipper-edge-left", "visible", 0.0); | ||
96 | set_drag(PART:"edge-drag-left", 0.0, val); | ||
97 | |||
98 | set_state(PART:"clipper-edge-right", "default", 0.0); | ||
99 | set_state(PART:"clipper-edge-top", "default", 0.0); | ||
100 | set_state(PART:"clipper-edge-bottom", "default", 0.0); | ||
101 | hide_corners(); | ||
102 | } | ||
103 | show_edge_right(Float:val) { | ||
104 | set_state(PART:"clipper-edge-right", "visible", 0.0); | ||
105 | set_drag(PART:"edge-drag-right", 0.0, val); | ||
106 | |||
107 | set_state(PART:"clipper-edge-left", "default", 0.0); | ||
108 | set_state(PART:"clipper-edge-top", "default", 0.0); | ||
109 | set_state(PART:"clipper-edge-bottom", "default", 0.0); | ||
110 | hide_corners(); | ||
111 | } | ||
112 | |||
113 | show_edge_top(Float:val) { | ||
114 | set_state(PART:"clipper-edge-top", "visible", 0.0); | ||
115 | set_drag(PART:"edge-drag-top", val, 0.0); | ||
116 | |||
117 | set_state(PART:"clipper-edge-bottom", "default", 0.0); | ||
118 | set_state(PART:"clipper-edge-left", "default", 0.0); | ||
119 | set_state(PART:"clipper-edge-right", "default", 0.0); | ||
120 | hide_corners(); | ||
121 | } | ||
122 | show_edge_bottom(Float:val) { | ||
123 | set_state(PART:"clipper-edge-bottom", "visible", 0.0); | ||
124 | set_drag(PART:"edge-drag-bottom", val, 0.0); | ||
125 | |||
126 | set_state(PART:"clipper-edge-top", "default", 0.0); | ||
127 | set_state(PART:"clipper-edge-left", "default", 0.0); | ||
128 | set_state(PART:"clipper-edge-right", "default", 0.0); | ||
129 | hide_corners(); | ||
130 | } | ||
131 | |||
132 | public message(Msg_Type:type, id, ...) { | ||
133 | if ((type == MSG_FLOAT_SET) && (id == 1)) { | ||
134 | new Float:x, Float:y; | ||
135 | |||
136 | x = getfarg(2); | ||
137 | y = getfarg(3); | ||
138 | |||
139 | if (x < 0.0) | ||
140 | { | ||
141 | if (y < 0.0) show_corner_top_left(); | ||
142 | else if (y > 1.0) show_corner_bottom_left(); | ||
143 | else show_edge_left(y); | ||
144 | } | ||
145 | else if (x > 1.0) | ||
146 | { | ||
147 | if (y < 0.0) show_corner_top_right(); | ||
148 | else if (y > 1.0) show_corner_bottom_right(); | ||
149 | else show_edge_right(y); | ||
150 | } | ||
151 | else | ||
152 | { | ||
153 | if (y < 0.0) show_edge_top(x); | ||
154 | else if (y > 1.0) show_edge_bottom(x); | ||
155 | else | ||
156 | { | ||
157 | hide_corners(); | ||
158 | hide_edges(); | ||
159 | } | ||
160 | } | ||
161 | } | ||
162 | } | ||
163 | } | ||
164 | parts { | ||
165 | part { name: "clipper"; | ||
166 | type: RECT; | ||
167 | description { state: "default" 0.0; | ||
168 | color: 255 255 255 0; | ||
169 | rel1.to: "elm.swallow.content"; | ||
170 | rel1.offset: -64 -64; | ||
171 | rel2.to: "elm.swallow.content"; | ||
172 | rel2.offset: 63 63; | ||
173 | } | ||
174 | description { state: "visible" 0.0; | ||
175 | inherit: "default" 0.0; | ||
176 | color: 255 255 255 255; | ||
177 | } | ||
178 | } | ||
179 | part { name: "pop"; | ||
180 | mouse_events: 0; | ||
181 | clip_to: "clipper"; | ||
182 | description { state: "default" 0.0; | ||
183 | min: 30 30; | ||
184 | rel1 { | ||
185 | to: "elm.swallow.content"; | ||
186 | offset: -15 -15; | ||
187 | } | ||
188 | rel2 { | ||
189 | to: "elm.swallow.content"; | ||
190 | offset: 14 14; | ||
191 | } | ||
192 | image { | ||
193 | normal: "tooltip-base.png"; | ||
194 | border: 14 14 14 14; | ||
195 | } | ||
196 | image.middle: SOLID; | ||
197 | } | ||
198 | } | ||
199 | |||
200 | #define TT_CORNER(name_, rx, ry, ax, ay, ox, oy) \ | ||
201 | part { name: "corner-"name_; \ | ||
202 | type: IMAGE; \ | ||
203 | mouse_events: 0; \ | ||
204 | clip_to: "clipper"; \ | ||
205 | description { state: "default" 0.0; \ | ||
206 | color: 255 255 255 0; \ | ||
207 | visible: 0; \ | ||
208 | min: 14 14; \ | ||
209 | max: 14 14; \ | ||
210 | align: ax ay; \ | ||
211 | fixed: 1 1; \ | ||
212 | rel1 { \ | ||
213 | relative: rx ry; \ | ||
214 | offset: ox oy; \ | ||
215 | to: "elm.swallow.content"; \ | ||
216 | } \ | ||
217 | rel2 { \ | ||
218 | relative: rx ry; \ | ||
219 | offset: ox oy; \ | ||
220 | to: "elm.swallow.content"; \ | ||
221 | } \ | ||
222 | image.normal: "tooltip-corner-"name_"-tip.png"; \ | ||
223 | } \ | ||
224 | description { state: "visible" 0.0; \ | ||
225 | inherit: "default" 0.0; \ | ||
226 | color: 255 255 255 255; \ | ||
227 | visible: 1; \ | ||
228 | } \ | ||
229 | } | ||
230 | TT_CORNER("top-left", 0, 0, 1, 1, 4, 4); | ||
231 | TT_CORNER("top-right", 1, 0, 0, 1, -5, 4); | ||
232 | TT_CORNER("bottom-left", 0, 1, 1, 0, 4, -5); | ||
233 | TT_CORNER("bottom-right", 1, 1, 0, 0, -5, -5); | ||
234 | #undef TT_CORNER | ||
235 | |||
236 | #define TT_EDGE_VERT(name_, rx, ax, ox) \ | ||
237 | part { name: "clipper-edge-"name_; \ | ||
238 | type: RECT; \ | ||
239 | clip_to: "clipper"; \ | ||
240 | description { state: "default" 0.0; \ | ||
241 | color: 255 255 255 0; \ | ||
242 | visible: 0; \ | ||
243 | min: 14 14; \ | ||
244 | align: ax 0.5; \ | ||
245 | fixed: 1 1; \ | ||
246 | rel1 { \ | ||
247 | relative: rx 0.0; \ | ||
248 | offset: ox 0; \ | ||
249 | to: "elm.swallow.content"; \ | ||
250 | } \ | ||
251 | rel2 { \ | ||
252 | relative: rx 1.0; \ | ||
253 | offset: ox 0; \ | ||
254 | to: "elm.swallow.content"; \ | ||
255 | } \ | ||
256 | } \ | ||
257 | description { state: "visible" 0.0; \ | ||
258 | inherit: "default" 0.0; \ | ||
259 | color: 255 255 255 255; \ | ||
260 | visible: 1; \ | ||
261 | } \ | ||
262 | } \ | ||
263 | part { name: "edge-area-"name_; \ | ||
264 | type: RECT; \ | ||
265 | mouse_events: 0; \ | ||
266 | clip_to: "clipper-edge-"name_; \ | ||
267 | description { state: "default" 0.0; \ | ||
268 | color: 0 0 0 0; \ | ||
269 | min: 14 14; \ | ||
270 | align: ax 0.5; \ | ||
271 | fixed: 1 1; \ | ||
272 | rel1 { \ | ||
273 | relative: rx 0.0; \ | ||
274 | offset: ox 0; \ | ||
275 | to: "elm.swallow.content"; \ | ||
276 | } \ | ||
277 | rel2 { \ | ||
278 | relative: rx 1.0; \ | ||
279 | offset: ox 0; \ | ||
280 | to: "elm.swallow.content"; \ | ||
281 | } \ | ||
282 | } \ | ||
283 | } \ | ||
284 | part { name: "edge-drag-"name_; \ | ||
285 | type: RECT; \ | ||
286 | mouse_events: 0; \ | ||
287 | clip_to: "clipper-edge-"name_; \ | ||
288 | dragable { \ | ||
289 | x: 0 0 0; \ | ||
290 | y: 1 1 0; \ | ||
291 | confine: "edge-area-"name_; \ | ||
292 | } \ | ||
293 | description { state: "default" 0.0; \ | ||
294 | color: 0 0 0 0; \ | ||
295 | min: 14 14; \ | ||
296 | rel1.to: "edge-area-"name_; \ | ||
297 | rel2.to: "edge-area-"name_; \ | ||
298 | } \ | ||
299 | } \ | ||
300 | part { name: "edge-img-"name_; \ | ||
301 | type: IMAGE; \ | ||
302 | mouse_events: 0; \ | ||
303 | clip_to: "clipper-edge-"name_; \ | ||
304 | description { state: "default" 0.0; \ | ||
305 | min: 14 14; \ | ||
306 | max: 14 14; \ | ||
307 | align: ax 0.5; \ | ||
308 | fixed: 1 1; \ | ||
309 | rel1.to: "edge-drag-"name_; \ | ||
310 | rel2.to: "edge-drag-"name_; \ | ||
311 | image.normal: "tooltip-edge-"name_"-tip.png"; \ | ||
312 | } \ | ||
313 | } | ||
314 | TT_EDGE_VERT("left", 0, 1, -2); | ||
315 | TT_EDGE_VERT("right", 1, 0, 1); | ||
316 | #undef TT_EDGE_VERT | ||
317 | |||
318 | #define TT_EDGE_HORIZ(name_, ry, ay, oy) \ | ||
319 | part { name: "clipper-edge-"name_; \ | ||
320 | type: RECT; \ | ||
321 | clip_to: "clipper"; \ | ||
322 | description { state: "default" 0.0; \ | ||
323 | color: 255 255 255 0; \ | ||
324 | visible: 0; \ | ||
325 | min: 14 14; \ | ||
326 | align: 0.5 ay; \ | ||
327 | fixed: 1 1; \ | ||
328 | rel1 { \ | ||
329 | relative: 0.0 ry; \ | ||
330 | offset: 0 oy; \ | ||
331 | to: "elm.swallow.content"; \ | ||
332 | } \ | ||
333 | rel2 { \ | ||
334 | relative: 1.0 ry; \ | ||
335 | offset: 0 oy; \ | ||
336 | to: "elm.swallow.content"; \ | ||
337 | } \ | ||
338 | } \ | ||
339 | description { state: "visible" 0.0; \ | ||
340 | inherit: "default" 0.0; \ | ||
341 | color: 255 255 255 255; \ | ||
342 | visible: 1; \ | ||
343 | } \ | ||
344 | } \ | ||
345 | part { name: "edge-area-"name_; \ | ||
346 | type: RECT; \ | ||
347 | mouse_events: 0; \ | ||
348 | clip_to: "clipper-edge-"name_; \ | ||
349 | description { state: "default" 0.0; \ | ||
350 | color: 0 0 0 0; \ | ||
351 | min: 14 14; \ | ||
352 | align: 0.5 ay; \ | ||
353 | fixed: 1 1; \ | ||
354 | rel1 { \ | ||
355 | relative: 0.0 ry; \ | ||
356 | offset: 0 oy; \ | ||
357 | to: "elm.swallow.content"; \ | ||
358 | } \ | ||
359 | rel2 { \ | ||
360 | relative: 1.0 ry; \ | ||
361 | offset: 0 oy; \ | ||
362 | to: "elm.swallow.content"; \ | ||
363 | } \ | ||
364 | } \ | ||
365 | } \ | ||
366 | part { name: "edge-drag-"name_; \ | ||
367 | type: RECT; \ | ||
368 | mouse_events: 0; \ | ||
369 | clip_to: "clipper-edge-"name_; \ | ||
370 | dragable { \ | ||
371 | x: 1 1 0; \ | ||
372 | y: 0 0 0; \ | ||
373 | confine: "edge-area-"name_; \ | ||
374 | } \ | ||
375 | description { state: "default" 0.0; \ | ||
376 | color: 0 0 0 0; \ | ||
377 | min: 14 14; \ | ||
378 | rel1.to: "edge-area-"name_; \ | ||
379 | rel2.to: "edge-area-"name_; \ | ||
380 | } \ | ||
381 | } \ | ||
382 | part { name: "edge-img-"name_; \ | ||
383 | type: IMAGE; \ | ||
384 | mouse_events: 0; \ | ||
385 | clip_to: "clipper-edge-"name_; \ | ||
386 | description { state: "default" 0.0; \ | ||
387 | min: 14 14; \ | ||
388 | max: 14 14; \ | ||
389 | align: 0.5 ay; \ | ||
390 | fixed: 1 1; \ | ||
391 | rel1.to: "edge-drag-"name_; \ | ||
392 | rel2.to: "edge-drag-"name_; \ | ||
393 | image.normal: "tooltip-edge-"name_"-tip.png"; \ | ||
394 | } \ | ||
395 | } | ||
396 | TT_EDGE_HORIZ("top", 0, 1, -2); | ||
397 | TT_EDGE_HORIZ("bottom", 1, 0, 1); | ||
398 | #undef TT_EDGE_HORIZ | ||
399 | |||
400 | part { name: "clipper_content"; | ||
401 | type: RECT; | ||
402 | description { state: "default" 0.0; | ||
403 | color: 255 255 255 0; | ||
404 | rel1.to: "elm.swallow.content"; | ||
405 | rel1.offset: -64 -64; | ||
406 | rel2.to: "elm.swallow.content"; | ||
407 | rel2.offset: 63 63; | ||
408 | } | ||
409 | description { state: "visible" 0.0; | ||
410 | inherit: "default" 0.0; | ||
411 | color: 255 255 255 255; | ||
412 | } | ||
413 | } | ||
414 | part { name: "elm.swallow.content"; | ||
415 | type: SWALLOW; | ||
416 | clip_to: "clipper_content"; | ||
417 | description { state: "default" 0.0; } | ||
418 | } | ||
419 | programs { | ||
420 | program { | ||
421 | name: "show0"; | ||
422 | signal: "elm,action,show"; | ||
423 | source: "elm"; | ||
424 | action: ACTION_STOP; | ||
425 | target: "hide0"; | ||
426 | target: "hide1"; | ||
427 | target: "hide2"; | ||
428 | target: "hide3"; | ||
429 | after: "show1"; | ||
430 | after: "show2"; | ||
431 | } | ||
432 | program { | ||
433 | name: "show1"; | ||
434 | action: STATE_SET "visible" 0.0; | ||
435 | transition: LINEAR 0.15; | ||
436 | target: "clipper"; | ||
437 | } | ||
438 | program { | ||
439 | name: "show2"; | ||
440 | in: 0.1 0.0; | ||
441 | action: STATE_SET "visible" 0.0; | ||
442 | transition: LINEAR 0.15; | ||
443 | target: "clipper_content"; | ||
444 | } | ||
445 | |||
446 | program { | ||
447 | name: "hide0"; | ||
448 | signal: "elm,action,hide"; | ||
449 | source: "elm"; | ||
450 | action: ACTION_STOP; | ||
451 | target: "show0"; | ||
452 | target: "show1"; | ||
453 | target: "show2"; | ||
454 | after: "hide1"; | ||
455 | after: "hide2"; | ||
456 | after: "hide3"; | ||
457 | } | ||
458 | program { | ||
459 | name: "hide1"; | ||
460 | script { | ||
461 | hide_corners(); | ||
462 | hide_edges(); | ||
463 | } | ||
464 | } | ||
465 | program { | ||
466 | name: "hide2"; | ||
467 | action: STATE_SET "default" 0.0; | ||
468 | transition: LINEAR 0.1; | ||
469 | target: "clipper_content"; | ||
470 | } | ||
471 | program { | ||
472 | name: "hide3"; | ||
473 | in: 0.1 0.0; | ||
474 | action: STATE_SET "default" 0.0; | ||
475 | transition: LINEAR 0.1; | ||
476 | target: "clipper"; | ||
477 | } | ||
478 | } | ||
479 | } | ||
480 | } | ||
481 | group { name: "elm/tooltip/base/transparent"; | ||
482 | data { | ||
483 | item: "pad_x" "10"; | ||
484 | item: "pad_y" "10"; | ||
485 | item: "transparent" "enabled"; | ||
486 | } | ||
487 | parts { | ||
488 | part { name: "elm.swallow.content"; | ||
489 | type: SWALLOW; | ||
490 | mouse_events: 0; | ||
491 | scale: 1; | ||
492 | description { state: "default" 0.0; } | ||
493 | } | ||
494 | } | ||
495 | } | ||
496 | |||
497 | /////////////////////////////////////////////////////////////////////////////// | ||
diff --git a/libraries/elementary/data/themes/widgets/video.edc b/libraries/elementary/data/themes/widgets/video.edc new file mode 100644 index 0000000..628cbfe --- /dev/null +++ b/libraries/elementary/data/themes/widgets/video.edc | |||
@@ -0,0 +1,64 @@ | |||
1 | group { | ||
2 | name: "elm/video/base/default"; | ||
3 | |||
4 | parts { | ||
5 | part { | ||
6 | name: "clipper"; | ||
7 | type: RECT; | ||
8 | |||
9 | description { | ||
10 | color: 255 255 255 255; | ||
11 | } | ||
12 | description { | ||
13 | state: "darker" 0.0; | ||
14 | color: 128 128 128 255; | ||
15 | } | ||
16 | } | ||
17 | part { | ||
18 | name: "elm.swallow.video"; | ||
19 | type: SWALLOW; | ||
20 | |||
21 | clip_to: "clipper"; | ||
22 | mouse_events: 1; | ||
23 | repeat_events: 1; | ||
24 | |||
25 | description { | ||
26 | aspect_preference: BOTH; | ||
27 | aspect: 1 1; | ||
28 | } | ||
29 | } | ||
30 | } | ||
31 | |||
32 | programs { | ||
33 | program { | ||
34 | signal: "elm,video,load"; | ||
35 | source: "elm"; | ||
36 | |||
37 | action: STATE_SET "darker" 0.0; | ||
38 | target: "clipper"; | ||
39 | } | ||
40 | program { | ||
41 | signal: "elm,video,play"; | ||
42 | source: "elm"; | ||
43 | |||
44 | action: STATE_SET "default" 0.0; | ||
45 | target: "clipper"; | ||
46 | } | ||
47 | program { | ||
48 | signal: "elm,video,end"; | ||
49 | source: "elm"; | ||
50 | |||
51 | action: STATE_SET "darker" 0.0; | ||
52 | target: "clipper"; | ||
53 | transition: LINEAR 0.5; | ||
54 | } | ||
55 | program { | ||
56 | signal: "elm,video,pause"; | ||
57 | source: "elm"; | ||
58 | |||
59 | action: STATE_SET "darker" 0.0; | ||
60 | target: "clipper"; | ||
61 | } | ||
62 | } | ||
63 | } | ||
64 | ///////////////////////////////////////////////////////////////////////// | ||
diff --git a/libraries/elementary/data/themes/widgets/win.edc b/libraries/elementary/data/themes/widgets/win.edc new file mode 100644 index 0000000..bcdf78b --- /dev/null +++ b/libraries/elementary/data/themes/widgets/win.edc | |||
@@ -0,0 +1,246 @@ | |||
1 | group { name: "elm/win/inwin/default"; | ||
2 | images { | ||
3 | image: "shad_circ.png" COMP; | ||
4 | image: "bt_dis_base.png" COMP; | ||
5 | image: "bt_dis_hilight.png" COMP; | ||
6 | } | ||
7 | parts { | ||
8 | part { name: "base"; | ||
9 | type: RECT; | ||
10 | mouse_events: 1; | ||
11 | description { state: "default" 0.0; | ||
12 | color: 0 0 0 0; | ||
13 | } | ||
14 | description { state: "visible" 0.0; | ||
15 | inherit: "default" 1.0; | ||
16 | color: 0 0 0 64; | ||
17 | } | ||
18 | } | ||
19 | part { name: "shad"; | ||
20 | mouse_events: 0; | ||
21 | description { state: "default" 0.0; | ||
22 | image.normal: "shad_circ.png"; | ||
23 | rel1.to: "elm.swallow.content"; | ||
24 | rel1.offset: -64 -64; | ||
25 | rel2.to: "elm.swallow.content"; | ||
26 | rel2.offset: 63 63; | ||
27 | fill.smooth: 0; | ||
28 | } | ||
29 | } | ||
30 | part { name: "pop"; | ||
31 | mouse_events: 1; | ||
32 | description { state: "default" 0.0; | ||
33 | rel1.to: "elm.swallow.content"; | ||
34 | rel1.offset: -5 -5; | ||
35 | rel2.to: "elm.swallow.content"; | ||
36 | rel2.offset: 4 4; | ||
37 | image { | ||
38 | normal: "bt_dis_base.png"; | ||
39 | border: 4 4 4 4; | ||
40 | } | ||
41 | image.middle: SOLID; | ||
42 | } | ||
43 | } | ||
44 | part { name: "popover"; | ||
45 | mouse_events: 0; | ||
46 | description { state: "default" 0.0; | ||
47 | rel1.to: "pop"; | ||
48 | rel2.to: "pop"; | ||
49 | rel2.relative: 1.0 0.5; | ||
50 | image { | ||
51 | normal: "bt_dis_hilight.png"; | ||
52 | border: 4 4 4 0; | ||
53 | } | ||
54 | } | ||
55 | } | ||
56 | part { name: "elm.swallow.content"; | ||
57 | type: SWALLOW; | ||
58 | description { state: "default" 0.0; | ||
59 | rel1.relative: 0.1 0.1; | ||
60 | rel2.relative: 0.9 0.9; | ||
61 | } | ||
62 | } | ||
63 | } | ||
64 | programs { | ||
65 | program { name: "show"; | ||
66 | signal: "elm,action,show"; | ||
67 | source: "elm"; | ||
68 | action: STATE_SET "visible" 0.0; | ||
69 | // transition: DECELERATE 0.5; | ||
70 | target: "base"; | ||
71 | } | ||
72 | program { name: "hide"; | ||
73 | signal: "elm,action,hide"; | ||
74 | source: "elm"; | ||
75 | action: STATE_SET "default" 0.0; | ||
76 | // transition: DECELERATE 0.5; | ||
77 | target: "base"; | ||
78 | } | ||
79 | } | ||
80 | } | ||
81 | |||
82 | group { name: "elm/win/inwin/minimal"; | ||
83 | images { | ||
84 | image: "shad_circ.png" COMP; | ||
85 | image: "bt_dis_base.png" COMP; | ||
86 | image: "bt_dis_hilight.png" COMP; | ||
87 | } | ||
88 | parts { | ||
89 | part { name: "base"; | ||
90 | type: RECT; | ||
91 | mouse_events: 1; | ||
92 | description { state: "default" 0.0; | ||
93 | color: 0 0 0 0; | ||
94 | } | ||
95 | description { state: "visible" 0.0; | ||
96 | inherit: "default" 1.0; | ||
97 | color: 0 0 0 64; | ||
98 | } | ||
99 | } | ||
100 | part { name: "shad"; | ||
101 | mouse_events: 0; | ||
102 | description { state: "default" 0.0; | ||
103 | image.normal: "shad_circ.png"; | ||
104 | rel1.to: "elm.swallow.content"; | ||
105 | rel1.offset: -64 -64; | ||
106 | rel2.to: "elm.swallow.content"; | ||
107 | rel2.offset: 63 63; | ||
108 | fill.smooth: 0; | ||
109 | } | ||
110 | } | ||
111 | part { name: "pop"; | ||
112 | mouse_events: 1; | ||
113 | description { state: "default" 0.0; | ||
114 | rel1.to: "elm.swallow.content"; | ||
115 | rel1.offset: -5 -5; | ||
116 | rel2.to: "elm.swallow.content"; | ||
117 | rel2.offset: 4 4; | ||
118 | image { | ||
119 | normal: "bt_dis_base.png"; | ||
120 | border: 4 4 4 4; | ||
121 | } | ||
122 | image.middle: SOLID; | ||
123 | } | ||
124 | } | ||
125 | part { name: "popover"; | ||
126 | mouse_events: 0; | ||
127 | description { state: "default" 0.0; | ||
128 | rel1.to: "pop"; | ||
129 | rel2.to: "pop"; | ||
130 | rel2.relative: 1.0 0.5; | ||
131 | image { | ||
132 | normal: "bt_dis_hilight.png"; | ||
133 | border: 4 4 4 0; | ||
134 | } | ||
135 | } | ||
136 | } | ||
137 | part { name: "elm.swallow.content"; | ||
138 | type: SWALLOW; | ||
139 | description { state: "default" 0.0; | ||
140 | fixed: 1 1; | ||
141 | rel1.relative: 0.5 0.5; | ||
142 | rel2.relative: 0.5 0.5; | ||
143 | } | ||
144 | } | ||
145 | } | ||
146 | programs { | ||
147 | program { name: "show"; | ||
148 | signal: "elm,action,show"; | ||
149 | source: "elm"; | ||
150 | action: STATE_SET "visible" 0.0; | ||
151 | // transition: DECELERATE 0.5; | ||
152 | target: "base"; | ||
153 | } | ||
154 | program { name: "hide"; | ||
155 | signal: "elm,action,hide"; | ||
156 | source: "elm"; | ||
157 | action: STATE_SET "default" 0.0; | ||
158 | // transition: DECELERATE 0.5; | ||
159 | target: "base"; | ||
160 | } | ||
161 | } | ||
162 | } | ||
163 | |||
164 | group { name: "elm/win/inwin/minimal_vertical"; | ||
165 | images { | ||
166 | image: "shad_circ.png" COMP; | ||
167 | image: "bt_dis_base.png" COMP; | ||
168 | image: "bt_dis_hilight.png" COMP; | ||
169 | } | ||
170 | parts { | ||
171 | part { name: "base"; | ||
172 | type: RECT; | ||
173 | mouse_events: 1; | ||
174 | description { state: "default" 0.0; | ||
175 | color: 0 0 0 0; | ||
176 | } | ||
177 | description { state: "visible" 0.0; | ||
178 | inherit: "default" 1.0; | ||
179 | color: 0 0 0 64; | ||
180 | } | ||
181 | } | ||
182 | part { name: "shad"; | ||
183 | mouse_events: 0; | ||
184 | description { state: "default" 0.0; | ||
185 | image.normal: "shad_circ.png"; | ||
186 | rel1.to: "elm.swallow.content"; | ||
187 | rel1.offset: -64 -64; | ||
188 | rel2.to: "elm.swallow.content"; | ||
189 | rel2.offset: 63 63; | ||
190 | fill.smooth: 0; | ||
191 | } | ||
192 | } | ||
193 | part { name: "pop"; | ||
194 | mouse_events: 1; | ||
195 | description { state: "default" 0.0; | ||
196 | rel1.to: "elm.swallow.content"; | ||
197 | rel1.offset: -5 -5; | ||
198 | rel2.to: "elm.swallow.content"; | ||
199 | rel2.offset: 4 4; | ||
200 | image { | ||
201 | normal: "bt_dis_base.png"; | ||
202 | border: 4 4 4 4; | ||
203 | } | ||
204 | image.middle: SOLID; | ||
205 | } | ||
206 | } | ||
207 | part { name: "popover"; | ||
208 | mouse_events: 0; | ||
209 | description { state: "default" 0.0; | ||
210 | rel1.to: "pop"; | ||
211 | rel2.to: "pop"; | ||
212 | rel2.relative: 1.0 0.5; | ||
213 | image { | ||
214 | normal: "bt_dis_hilight.png"; | ||
215 | border: 4 4 4 0; | ||
216 | } | ||
217 | } | ||
218 | } | ||
219 | part { name: "elm.swallow.content"; | ||
220 | type: SWALLOW; | ||
221 | description { state: "default" 0.0; | ||
222 | fixed: 1 1; | ||
223 | rel1.relative: 0.1 0.5; | ||
224 | rel2.relative: 0.9 0.5; | ||
225 | } | ||
226 | } | ||
227 | } | ||
228 | programs { | ||
229 | program { name: "show"; | ||
230 | signal: "elm,action,show"; | ||
231 | source: "elm"; | ||
232 | action: STATE_SET "visible" 0.0; | ||
233 | // transition: DECELERATE 0.5; | ||
234 | target: "base"; | ||
235 | } | ||
236 | program { name: "hide"; | ||
237 | signal: "elm,action,hide"; | ||
238 | source: "elm"; | ||
239 | action: STATE_SET "default" 0.0; | ||
240 | // transition: DECELERATE 0.5; | ||
241 | target: "base"; | ||
242 | } | ||
243 | } | ||
244 | } | ||
245 | |||
246 | /////////////////////////////////////////////////////////////////////////////// | ||