diff options
Diffstat (limited to 'libraries/elementary/data/themes/widgets/ctxpopup.edc')
-rw-r--r-- | libraries/elementary/data/themes/widgets/ctxpopup.edc | 1119 |
1 files changed, 1119 insertions, 0 deletions
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 | } | ||