summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Haitzler <raster@rasterman.com>2013-05-10 07:57:15 +0000
committerCarsten Haitzler <raster@rasterman.com>2013-05-10 07:57:15 +0000
commit0d742e34dc160e7f18ed7fca6cfac86cd88746c2 (patch)
treeab8607166ca870089cbd6d2e12b8faaa9a367a27
parent45cfefe49accf33a287024a1ec0100e193522536 (diff)
toolbar happiness in dark.
SVN revision: 84548
-rw-r--r--trunk/THEMES/dark/edje/dark.edc1
-rw-r--r--trunk/THEMES/dark/edje/edc/elm/toolbar.edc1405
2 files changed, 1406 insertions, 0 deletions
diff --git a/trunk/THEMES/dark/edje/dark.edc b/trunk/THEMES/dark/edje/dark.edc
index f9e5e5de25..c339b9fed8 100644
--- a/trunk/THEMES/dark/edje/dark.edc
+++ b/trunk/THEMES/dark/edje/dark.edc
@@ -16,6 +16,7 @@ collections {
16#include "edc/elm/radio.edc" 16#include "edc/elm/radio.edc"
17#include "edc/elm/bubble.edc" 17#include "edc/elm/bubble.edc"
18#include "edc/elm/panes.edc" 18#include "edc/elm/panes.edc"
19#include "edc/elm/toolbar.edc"
19 20
20// desktop in general 21// desktop in general
21#include "edc/comp.edc" 22#include "edc/comp.edc"
diff --git a/trunk/THEMES/dark/edje/edc/elm/toolbar.edc b/trunk/THEMES/dark/edje/edc/elm/toolbar.edc
new file mode 100644
index 0000000000..9251500285
--- /dev/null
+++ b/trunk/THEMES/dark/edje/edc/elm/toolbar.edc
@@ -0,0 +1,1405 @@
1// === toolbar default base with scrolling arrows etc.
2group { name: "elm/toolbar/base/default";
3 images.image: "vgrad_med_lighter.png" COMP;
4 images.image: "bevel_out.png" COMP;
5 images.image: "shine.png" COMP;
6 images.image: "shadow_square_tiny.png" COMP;
7 images.image: "sym_left_light_normal.png" COMP;
8 images.image: "sym_left_glow_normal.png" COMP;
9 images.image: "sym_right_light_normal.png" COMP;
10 images.image: "sym_right_glow_normal.png" COMP;
11 images.image: "sym_up_light_normal.png" COMP;
12 images.image: "sym_up_glow_normal.png" COMP;
13 images.image: "sym_down_light_normal.png" COMP;
14 images.image: "sym_down_glow_normal.png" COMP;
15 parts {
16 part { name: "shadow"; mouse_events: 0;
17 description { state: "default" 0.0;
18 rel1.offset: -1 0;
19 rel2.offset: 0 1;
20 image.normal: "shadow_square_tiny.png";
21 image.border: 6 6 6 6;
22 fill.smooth: 0;
23 }
24 }
25 part { name: "base";
26 description { state: "default" 0.0;
27 image.normal: "vgrad_med_lighter.png";
28 rel1.offset: 2 2;
29 rel2.offset: -3 -3;
30 fill.smooth: 0;
31 TILED_HORIZ(120)
32 }
33 }
34 part { name: "clipper"; type: RECT;
35 description { state: "default" 0.0;
36 rel1.to: "base";
37 rel2.to: "base";
38 }
39 }
40 part { name: "elm.swallow.content"; type: SWALLOW;
41 clip_to: "clipper";
42 description { state: "default" 0.0;
43 rel1.offset: 2 2;
44 rel2.offset: -3 -3;
45 }
46 }
47 part { name: "bevel"; mouse_events: 0;
48 description { state: "default" 0.0;
49 rel1.to: "base";
50 rel2.to: "base";
51 image.normal: "bevel_out.png";
52 image.border: 1 1 1 1;
53 image.middle: 0;
54 fill.smooth: 0;
55 }
56 }
57
58 part { name: "arrow_clipper_l"; type: RECT;
59 description { state: "default" 0.0;
60 visible: 0;
61 }
62 description { state: "visible" 0.0;
63 inherit: "default" 0.0;
64 visible: 1;
65 }
66 }
67 part { name: "arrow_l"; mouse_events: 0;
68 clip_to: "arrow_clipper_l";
69 description { state: "default" 0.0;
70 rel1.to: "arrow_l_ev";
71 rel2.to: "arrow_l_ev";
72 image.normal: "sym_left_light_normal.png";
73 FIXED_SIZE(15, 15)
74 }
75 description { state: "clicked" 0.0;
76 inherit: "default" 0.0;
77 image.normal: "sym_left_glow_normal.png";
78 }
79 }
80 part { name: "arrow_l_ev"; type: RECT;
81 scale: 1;
82 clip_to: "arrow_clipper_l";
83 description { state: "default" 0.0;
84 rel1.to: "base";
85 rel2.to: "base";
86 align: 0.0 0.5;
87 color: 0 0 0 0;
88 FIXED_SIZE(23, 23)
89 }
90 }
91
92 part { name: "arrow_clipper_r"; type: RECT;
93 description { state: "default" 0.0;
94 visible: 0;
95 }
96 description { state: "visible" 0.0;
97 inherit: "default" 0.0;
98 visible: 1;
99 }
100 }
101 part { name: "arrow_r"; mouse_events: 0;
102 clip_to: "arrow_clipper_r";
103 description { state: "default" 0.0;
104 rel1.to: "arrow_r_ev";
105 rel2.to: "arrow_r_ev";
106 image.normal: "sym_right_light_normal.png";
107 FIXED_SIZE(15, 15)
108 }
109 description { state: "clicked" 0.0;
110 inherit: "default" 0.0;
111 image.normal: "sym_right_glow_normal.png";
112 }
113 }
114 part { name: "arrow_r_ev"; type: RECT;
115 scale: 1;
116 clip_to: "arrow_clipper_r";
117 description { state: "default" 0.0;
118 rel1.to: "base";
119 rel2.to: "base";
120 align: 1.0 0.5;
121 color: 0 0 0 0;
122 FIXED_SIZE(23, 23)
123 }
124 }
125 part { name: "shine"; mouse_events: 0;
126 description { state: "default" 0.0;
127 image.normal: "shine.png";
128 rel1.offset: 0 -2;
129 rel1.to: "base";
130 rel2.relative: 1.0 0.0;
131 rel2.offset: -1 2;
132 rel2.to: "base";
133 FIXED_SIZE(69, 5)
134 }
135 }
136
137 part { name: "arrow_clipper_u"; type: RECT;
138 description { state: "default" 0.0;
139 visible: 0;
140 }
141 description { state: "visible" 0.0;
142 inherit: "default" 0.0;
143 visible: 1;
144 }
145 }
146 part { name: "arrow_u"; mouse_events: 0;
147 clip_to: "arrow_clipper_u";
148 description { state: "default" 0.0;
149 rel1.to: "arrow_u_ev";
150 rel2.to: "arrow_u_ev";
151 image.normal: "sym_up_light_normal.png";
152 FIXED_SIZE(15, 15)
153 }
154 description { state: "clicked" 0.0;
155 inherit: "default" 0.0;
156 image.normal: "sym_up_glow_normal.png";
157 }
158 }
159 part { name: "arrow_u_ev"; type: RECT;
160 scale: 1;
161 clip_to: "arrow_clipper_u";
162 description { state: "default" 0.0;
163 rel1.to: "base";
164 rel2.to: "base";
165 align: 0.5 0.0;
166 color: 0 0 0 0;
167 FIXED_SIZE(23, 23)
168 }
169 }
170
171 part { name: "arrow_clipper_d"; type: RECT;
172 description { state: "default" 0.0;
173 visible: 0;
174 }
175 description { state: "visible" 0.0;
176 inherit: "default" 0.0;
177 visible: 1;
178 }
179 }
180 part { name: "arrow_d"; mouse_events: 0;
181 clip_to: "arrow_clipper_d";
182 description { state: "default" 0.0;
183 rel1.to: "arrow_d_ev";
184 rel2.to: "arrow_d_ev";
185 image.normal: "sym_down_light_normal.png";
186 FIXED_SIZE(15, 15)
187 }
188 description { state: "clicked" 0.0;
189 inherit: "default" 0.0;
190 image.normal: "sym_down_glow_normal.png";
191 }
192 }
193 part { name: "arrow_d_ev"; type: RECT;
194 scale: 1;
195 clip_to: "arrow_clipper_d";
196 description { state: "default" 0.0;
197 rel1.to: "base";
198 rel2.to: "base";
199 align: 0.5 1.0;
200 color: 0 0 0 0;
201 FIXED_SIZE(23, 23)
202 }
203 }
204 }
205 programs {
206// program {
207// signal: "elm,orient,horizontal"; source: "elm";
208// }
209// program {
210// signal: "elm,orient,vertical"; source: "elm";
211// }
212 program {
213 signal: "elm,action,show,left"; source: "elm";
214 action: STATE_SET "visible" 0.0;
215 target: "arrow_clipper_l";
216 target: "arrow_clipper_l";
217 }
218 program {
219 signal: "elm,action,hide,left"; source: "elm";
220 action: STATE_SET "default" 0.0;
221 target: "arrow_clipper_l";
222 target: "arrow_clipper_l";
223 }
224 program {
225 signal: "mouse,down,1*"; source: "arrow_l_ev";
226 action: SIGNAL_EMIT "elm,action,left" "elm";
227 after: "arrow_l_repeat";
228 }
229 program { name: "arrow_l_repeat";
230 action: SIGNAL_EMIT "elm,action,left" "elm";
231 in: 0.3 0.0;
232 after: "arrow_l_repeat";
233 }
234 program {
235 signal: "mouse,up,1"; source: "arrow_l_ev";
236 action: ACTION_STOP;
237 target: "arrow_l_repeat";
238 }
239 program {
240 signal: "mouse,down,1*"; source: "arrow_l_ev";
241 action: STATE_SET "clicked" 0.0;
242 target: "arrow_l";
243 }
244 program {
245 signal: "mouse,up,1"; source: "arrow_l_ev";
246 action: STATE_SET "default" 0.0;
247 target: "arrow_l";
248 }
249
250 program {
251 signal: "elm,action,show,right"; source: "elm";
252 action: STATE_SET "visible" 0.0;
253 target: "arrow_clipper_r";
254 target: "arrow_clipper_r";
255 }
256 program {
257 signal: "elm,action,hide,right"; source: "elm";
258 action: STATE_SET "default" 0.0;
259 target: "arrow_clipper_r";
260 target: "arrow_clipper_r";
261 }
262 program {
263 signal: "mouse,down,1*"; source: "arrow_r_ev";
264 action: SIGNAL_EMIT "elm,action,right" "elm";
265 after: "arrow_r_repeat";
266 }
267 program { name: "arrow_r_repeat";
268 action: SIGNAL_EMIT "elm,action,right" "elm";
269 in: 0.3 0.0;
270 after: "arrow_r_repeat";
271 }
272 program {
273 signal: "mouse,up,1"; source: "arrow_r_ev";
274 action: ACTION_STOP;
275 target: "arrow_r_repeat";
276 }
277 program {
278 signal: "mouse,down,1*"; source: "arrow_r_ev";
279 action: STATE_SET "clicked" 0.0;
280 target: "arrow_r";
281 }
282 program {
283 signal: "mouse,up,1"; source: "arrow_r_ev";
284 action: STATE_SET "default" 0.0;
285 target: "arrow_r";
286 }
287
288 program {
289 signal: "elm,action,show,up"; source: "elm";
290 action: STATE_SET "visible" 0.0;
291 target: "arrow_clipper_u";
292 target: "arrow_clipper_u";
293 }
294 program {
295 signal: "elm,action,hide,up"; source: "elm";
296 action: STATE_SET "default" 0.0;
297 target: "arrow_clipper_u";
298 target: "arrow_clipper_u";
299 }
300 program {
301 signal: "mouse,down,1*"; source: "arrow_u_ev";
302 action: SIGNAL_EMIT "elm,action,up" "elm";
303 after: "arrow_u_repeat";
304 }
305 program { name: "arrow_u_repeat";
306 action: SIGNAL_EMIT "elm,action,up" "elm";
307 in: 0.3 0.0;
308 after: "arrow_u_repeat";
309 }
310 program {
311 signal: "mouse,up,1"; source: "arrow_u_ev";
312 action: ACTION_STOP;
313 target: "arrow_u_repeat";
314 }
315 program {
316 signal: "mouse,down,1*"; source: "arrow_u_ev";
317 action: STATE_SET "clicked" 0.0;
318 target: "arrow_u";
319 }
320 program {
321 signal: "mouse,up,1"; source: "arrow_u_ev";
322 action: STATE_SET "default" 0.0;
323 target: "arrow_u";
324 }
325
326 program {
327 signal: "elm,action,show,down"; source: "elm";
328 action: STATE_SET "visible" 0.0;
329 target: "arrow_clipper_d";
330 target: "arrow_clipper_d";
331 }
332 program {
333 signal: "elm,action,hide,down"; source: "elm";
334 action: STATE_SET "default" 0.0;
335 target: "arrow_clipper_d";
336 target: "arrow_clipper_d";
337 }
338 program {
339 signal: "mouse,down,1*"; source: "arrow_d_ev";
340 action: SIGNAL_EMIT "elm,action,down" "elm";
341 after: "arrow_d_repeat";
342 }
343 program { name: "arrow_d_repeat";
344 action: SIGNAL_EMIT "elm,action,down" "elm";
345 in: 0.3 0.0;
346 after: "arrow_d_repeat";
347 }
348 program {
349 signal: "mouse,up,1"; source: "arrow_d_ev";
350 action: ACTION_STOP;
351 target: "arrow_d_repeat";
352 }
353 program {
354 signal: "mouse,down,1*"; source: "arrow_d_ev";
355 action: STATE_SET "clicked" 0.0;
356 target: "arrow_d";
357 }
358 program {
359 signal: "mouse,up,1"; source: "arrow_d_ev";
360 action: STATE_SET "default" 0.0;
361 target: "arrow_d";
362 }
363 }
364}
365
366// === item: standard default item
367group { name: "elm/toolbar/item/default";
368 data.item: "transition_animation_on" "1";
369
370 images.image: "shadow_inset_bevels.png" COMP;
371 images.image: "shadow_angled_in_sides.png" COMP;
372 images.image: "horizontal_separated_bar_small_glow.png" COMP;
373 images.image: "bevel_dark_in.png" COMP;
374#define ICON 1
375#define LABEL 2
376#define MASK 3
377#define DISABLE 4
378 script {
379 public btmode;
380 public eval_mode(m) {
381 new m1 = m & MASK;
382 new d = m & DISABLE;
383 if (m1 == (ICON | LABEL)) {
384 if (!d) {
385 set_state(PART:"elm.swallow.icon", "default", 0.0);
386 set_state(PART:"icon_clip", "default", 0.0);
387 set_state(PART:"elm.text", "default", 0.0);
388 set_state(PART:"label2", "default", 0.0);
389 } else {
390 set_state(PART:"elm.swallow.icon", "default", 0.0);
391 set_state(PART:"icon_clip", "disabled", 0.0);
392 set_state(PART:"elm.text", "disabled", 0.0);
393 set_state(PART:"label2", "default", 0.0);
394 }
395 } else if (m1 == (ICON)) {
396 if (!d) {
397 set_state(PART:"elm.swallow.icon", "icononly", 0.0);
398 set_state(PART:"icon_clip", "default", 0.0);
399 set_state(PART:"elm.text", "icononly", 0.0);
400 set_state(PART:"label2", "icononly", 0.0);
401 } else {
402 set_state(PART:"elm.swallow.icon", "icononly", 0.0);
403 set_state(PART:"icon_clip", "disabled", 0.0);
404 set_state(PART:"elm.text", "icononly", 0.0);
405 set_state(PART:"label2", "icononly", 0.0);
406 }
407 } else if (m1 == (LABEL)) {
408 if (!d) {
409 set_state(PART:"elm.swallow.icon", "noicon", 0.0);
410 set_state(PART:"icon_clip", "default", 0.0);
411 set_state(PART:"elm.text", "noicon", 0.0);
412 set_state(PART:"label2", "noicon", 0.0);
413 } else {
414 set_state(PART:"elm.swallow.icon", "noicon", 0.0);
415 set_state(PART:"icon_clip", "disabled", 0.0);
416 set_state(PART:"elm.text", "noicon_disabled", 0.0);
417 set_state(PART:"label2", "noicon_disabled", 0.0);
418 }
419 } else {
420 set_state(PART:"elm.swallow.icon", "default", 0.0);
421 set_state(PART:"icon_clip", "default", 0.0);
422 set_state(PART:"elm.text", "default", 0.0);
423 set_state(PART:"label2", "default", 0.0);
424 }
425 }
426 }
427 parts {
428 part { name: "base"; type: SPACER;
429 description { state: "default" 0.0;
430 }
431 description { state: "vert" 0.0;
432 rel1.offset: -1 0;
433 rel2.offset: 0 -1;
434 }
435 }
436 part { name: "shadow1"; mouse_events: 0;
437 description { state: "default" 0.0;
438 rel1.to: "base";
439 rel2.to: "base";
440 image.normal: "shadow_inset_bevels.png";
441 image.border: 2 2 0 1;
442 visible: 0;
443 }
444 description { state: "selected" 0.0;
445 inherit: "default" 0.0;
446 visible: 1;
447 }
448 }
449 part { name: "shadow2"; mouse_events: 0;
450 description { state: "default" 0.0;
451 rel1.offset: 1 0;
452 rel1.to: "shadow1";
453 rel2.offset: -2 -1;
454 rel2.to: "shadow1";
455 image.normal: "shadow_angled_in_sides.png";
456 image.border: 8 8 0 1;
457 image.middle: 0;
458 visible: 0;
459 }
460 description { state: "selected" 0.0;
461 inherit: "default" 0.0;
462 visible: 1;
463 }
464 }
465 part { name: "bend_clip"; type: RECT;
466 description { state: "default" 0.0;
467 visible: 0;
468 }
469 description { state: "vert" 0.0;
470 visible: 1;
471 }
472 }
473 part { name: "bend";
474 clip_to: "bend_clip";
475 description { state: "default" 0.0;
476 min: 2 2;
477 max: 99999 2;
478 rel2.offset: -1 1;
479 rel2.relative: 1.0 0.0;
480 image.normal: "bevel_dark_in.png";
481 image.border: 2 2 2 2;
482 fill.smooth: 0;
483 visible: 0;
484 fixed: 1 1;
485 }
486 description { state: "selected" 0.0;
487 inherit: "default" 0.0;
488 visible: 1;
489 }
490 }
491
492 part { name: "icon_clip"; type: RECT;
493 description { state: "default" 0.0;
494 }
495 description { state: "disabled" 0.0;
496 inherit: "default" 0.0;
497 color: 255 255 255 64;
498 }
499 }
500 part { name: "icon_clip1"; type: RECT;
501 clip_to: "icon_clip";
502 description { state: "default" 0.0;
503 color: 255 255 255 255;
504 visible: 1;
505 }
506 description { state: "animation" 0.0;
507 inherit: "default" 0.0;
508 color: 255 255 255 0;
509 visible: 0;
510 }
511 }
512 part { name: "elm.swallow.icon"; type: SWALLOW;
513 clip_to: "icon_clip1";
514 description { state: "default" 0.0;
515 align: 0.5 0.5;
516 rel1.relative: 0.0 0.0;
517 rel1.offset: 2 2;
518 rel2.to_y: "elm.text";
519 rel2.relative: 1.0 0.0;
520 rel2.offset: -3 -1;
521 }
522 description { state: "noicon" 0.0;
523 inherit: "default" 0.0;
524 visible: 0;
525 rel1.offset: 2 0;
526 rel2.relative: 1.0 0.0;
527 rel2.offset: -3 -4;
528 }
529 description { state: "icononly" 0.0;
530 inherit: "default" 0.0;
531 visible: 0;
532 rel2.relative: 1.0 1.0;
533 rel2.offset: -3 -3;
534 rel2.to_y: "icon_clip";
535 }
536 }
537 part { name: "icon_clip2"; type: RECT;
538 clip_to: "icon_clip";
539 description { state: "default" 0.0;
540 color: 255 255 255 0;
541 visible: 0;
542 }
543 description { state: "animation" 0.0;
544 inherit: "default" 0.0;
545 color: 255 255 255 255;
546 visible: 1;
547 }
548 }
549 part { name: "elm.swallow.icon_new"; type: SWALLOW;
550 clip_to: "icon_clip2";
551 description { state: "default" 0.0;
552 align: 0.5 0.5;
553 rel1.relative: 0.0 0.0;
554 rel1.offset: 2 2;
555 rel2.to_y: "elm.text";
556 rel2.relative: 1.0 0.0;
557 rel2.offset: -3 -1;
558 }
559 description { state: "noicon" 0.0;
560 inherit: "default" 0.0;
561 visible: 0;
562 rel1.offset: 2 0;
563 rel2.relative: 1.0 0.0;
564 rel2.offset: -3 -4;
565 }
566 description { state: "icononly" 0.0;
567 inherit: "default" 0.0;
568 visible: 0;
569 rel2.relative: 1.0 1.0;
570 rel2.offset: -3 -3;
571 rel2.to_y: "icon_clip";
572 }
573 }
574
575 part { name: "text_clip1"; type: RECT;
576 description { state: "default" 0.0;
577 color: 255 255 255 255;
578 visible: 1;
579 }
580 description { state: "animation" 0.0;
581 inherit: "default" 0.0;
582 color: 255 255 255 0;
583 visible: 0;
584 }
585 }
586 part { name: "elm.text"; type: TEXT; mouse_events: 0;
587 effect: SHADOW BOTTOM;
588 scale: 1;
589 clip_to: "text_clip1";
590 description { state: "default" 0.0;
591 rel1.offset: 4 -3;
592 rel1.relative: 0.0 1.0;
593 rel2.offset: -5 -3;
594 align: 0.5 1.0;
595 color: 255 255 255 255;
596 color3: 0 0 0 128;
597 color_class: "toolbar_item";
598 text { font: "Sans"; size: 10;
599 min: 1 1;
600 align: 0.5 0.5;
601 text_class: "toolbar_item";
602 }
603 fixed: 0 1;
604 }
605 description { state: "selected" 0.0;
606 inherit: "default" 0.0;
607 visible: 0;
608 color_class: "toolbar_item_selected";
609 }
610 description { state: "disabled" 0.0;
611 inherit: "default" 0.0;
612 color: 21 21 21 255;
613 color3: 255 255 255 25;
614 color_class: "toolbar_item_disabled";
615 }
616 description { state: "noicon" 0.0;
617 inherit: "default" 0.0;
618 rel1.offset: 4 2;
619 rel1.relative: 0.0 0.0;
620 align: 0.5 0.5;
621 }
622 description { state: "noicon_disabled" 0.0;
623 inherit: "noicon" 0.0;
624 color: 21 21 21 255;
625 color3: 255 255 255 25;
626 color_class: "toolbar_item_disabled";
627 }
628 description { state: "icononly" 0.0;
629 inherit: "default" 0.0;
630 text.min: 0 0;
631 visible: 0;
632 fixed: 1 1;
633 }
634 }
635 part { name: "label2"; type: TEXT; mouse_events: 0;
636 effect: GLOW;
637 scale: 1;
638 clip_to: "text_clip1";
639 description { state: "default" 0.0;
640 rel1.offset: -3 -3;
641 rel1.to: "elm.text";
642 rel2.offset: 2 1;
643 rel2.to: "elm.text";
644 color: 51 153 255 255;
645 color2: 51 153 255 24;
646 color3: 51 153 255 18;
647 color_class: "toolbar_item_active";
648 text { font: "Sans"; size: 10;
649 text_source: "elm.text";
650 align: 0.5 0.5;
651 text_class: "toolbar_item";
652 }
653 visible: 0;
654 }
655 description { state: "selected" 0.0;
656 inherit: "default" 0.0;
657 visible: 1;
658 }
659 description { state: "noicon" 0.0;
660 inherit: "default" 0.0;
661 }
662 description { state: "noicon_disabled" 0.0;
663 inherit: "noicon" 0.0;
664 }
665 description { state: "icononly" 0.0;
666 inherit: "default" 0.0;
667 text.min: 0 0;
668 visible: 0;
669 fixed: 1 1;
670 }
671 }
672 part { name: "text_clip2"; type: RECT;
673 description { state: "default" 0.0;
674 color: 255 255 255 0;
675 visible: 0;
676 }
677 description { state: "animation" 0.0;
678 inherit: "default" 0.0;
679 color: 255 255 255 255;
680 visible: 1;
681 }
682 }
683 part { name: "elm.text_new"; type: TEXT; mouse_events: 0;
684 effect: SHADOW BOTTOM;
685 scale: 1;
686 clip_to: "text_clip2";
687 description { state: "default" 0.0;
688 rel1.offset: 4 -3;
689 rel1.relative: 0.0 1.0;
690 rel2.offset: -5 -3;
691 align: 0.5 1.0;
692 color: 255 255 255 255;
693 color3: 0 0 0 128;
694 color_class: "toolbar_item";
695 text { font: "Sans"; size: 10;
696 min: 1 1;
697 align: 0.5 0.5;
698 text_class: "toolbar_item";
699 }
700 fixed: 0 1;
701 }
702 description { state: "selected" 0.0;
703 inherit: "default" 0.0;
704 visible: 0;
705 color_class: "toolbar_item_selected";
706 }
707 description { state: "disabled" 0.0;
708 inherit: "default" 0.0;
709 color: 21 21 21 255;
710 color3: 255 255 255 25;
711 color_class: "toolbar_item_disabled";
712 }
713 description { state: "noicon" 0.0;
714 inherit: "default" 0.0;
715 rel1.offset: 4 2;
716 rel1.relative: 0.0 0.0;
717 align: 0.5 0.5;
718 }
719 description { state: "noicon_disabled" 0.0;
720 inherit: "noicon" 0.0;
721 color: 21 21 21 255;
722 color3: 255 255 255 25;
723 color_class: "toolbar_item_disabled";
724 }
725 description { state: "icononly" 0.0;
726 inherit: "default" 0.0;
727 text.min: 0 0;
728 visible: 0;
729 fixed: 1 1;
730 }
731 }
732 part { name: "label2_new"; type: TEXT; mouse_events: 0;
733 effect: GLOW;
734 scale: 1;
735 clip_to: "text_clip2";
736 description { state: "default" 0.0;
737 rel1.offset: -3 -3;
738 rel1.to: "elm.text";
739 rel2.offset: 2 1;
740 rel2.to: "elm.text";
741 color: 51 153 255 255;
742 color2: 51 153 255 24;
743 color3: 51 153 255 18;
744 color_class: "toolbar_item_active";
745 text { font: "Sans"; size: 10;
746 text_source: "elm.text";
747 align: 0.5 0.5;
748 text_class: "toolbar_item";
749 }
750 visible: 0;
751 }
752 description { state: "selected" 0.0;
753 inherit: "default" 0.0;
754 visible: 1;
755 }
756 description { state: "noicon" 0.0;
757 inherit: "default" 0.0;
758 }
759 description { state: "noicon_disabled" 0.0;
760 inherit: "noicon" 0.0;
761 }
762 description { state: "icononly" 0.0;
763 inherit: "default" 0.0;
764 text.min: 0 0;
765 visible: 0;
766 fixed: 1 1;
767 }
768 }
769
770 part { name: "bar"; mouse_events: 0;
771 description { state: "default" 0.0;
772 rel1.offset: -3 -7;
773 rel1.relative: 0.0 1.0;
774 rel1.to: "shadow2";
775 rel2.offset: 2 2;
776 rel2.to: "shadow2";
777 image.normal: "horizontal_separated_bar_small_glow.png";
778 image.border: 4 4 4 4;
779 fill.smooth: 0;
780 visible: 0;
781 }
782 description { state: "selected" 0.0;
783 inherit: "default" 0.0;
784 visible: 1;
785 }
786 }
787 part { name: "highlight"; mouse_events: 0;
788 description { state: "default" 0.0;
789 rel1.offset: -3 -7;
790 rel1.relative: 0.0 1.0;
791 rel1.to: "shadow2";
792 rel2.offset: 2 2;
793 rel2.to: "shadow2";
794 image.normal: "horizontal_separated_bar_small_glow.png";
795 image.border: 4 4 4 4;
796 fill.smooth: 0;
797 visible: 0;
798 }
799 description { state: "selected" 0.0;
800 inherit: "default" 0.0;
801 visible: 1;
802 }
803 }
804 part { name: "event"; type: RECT;
805 ignore_flags: ON_HOLD;
806 description { state: "default" 0.0;
807 color: 0 0 0 0;
808 }
809 }
810 }
811 programs {
812 program {
813 signal: "elm,orient,horizontal"; source: "elm";
814 action: STATE_SET "default" 0.0;
815 target: "base";
816 target: "bend_clip";
817 }
818 program {
819 signal: "elm,orient,vertical"; source: "elm";
820 action: STATE_SET "vert" 0.0;
821 target: "base";
822 target: "bend_clip";
823 }
824
825 program { name: "st0";
826 signal: "load"; source: "";
827 script {
828 set_int(btmode, LABEL | ICON);
829 }
830 }
831
832 program {
833 signal: "elm,state,selected"; source: "elm";
834 action: STATE_SET "selected" 0.0;
835 target: "elm.text";
836 target: "label2";
837 target: "shadow1";
838 target: "shadow2";
839 target: "bar";
840 target: "bend";
841 }
842 program {
843 signal: "elm,state,unselected"; source: "elm";
844 action: STATE_SET "default" 0.0;
845 target: "elm.text";
846 target: "label2";
847 target: "shadow1";
848 target: "shadow2";
849 target: "bar";
850 target: "bend";
851 }
852 program {
853 signal: "mouse,up,1"; source: "event";
854 action: SIGNAL_EMIT "elm,action,click" "elm";
855 }
856
857 program {
858 signal: "elm,highlight,on"; source: "elm";
859 action: STATE_SET "selected" 0.0;
860 target: "highlight";
861 }
862 program {
863 signal: "elm,highlight,off"; source: "elm";
864 action: STATE_SET "default" 0.0;
865 target: "highlight";
866 }
867
868 program {
869 signal: "mouse,in"; source: "event";
870 action: SIGNAL_EMIT "elm,mouse,in" "elm";
871 }
872 program { name: "mouse,out";
873 signal: "mouse,out"; source: "event";
874 action: SIGNAL_EMIT "elm,mouse,out" "elm";
875 }
876
877 program { name: "st1";
878 signal: "elm,text,hidden"; source: "elm";
879 action: STATE_SET "notext" 0.0;
880 script {
881 new m = get_int(btmode);
882 m &= ~LABEL; set_int(btmode, m);
883 eval_mode(m);
884 }
885 }
886 program { name: "st2";
887 signal: "elm,text,visible"; source: "elm";
888 action: STATE_SET "default" 0.0;
889 script {
890 new m = get_int(btmode);
891 m |= LABEL; set_int(btmode, m);
892 eval_mode(m);
893 }
894 }
895 program { name: "st3";
896 signal: "elm,icon,hidden"; source: "elm";
897 script {
898 new m = get_int(btmode);
899 m |= ICON; set_int(btmode, m);
900 eval_mode(m);
901 }
902 }
903 program { name: "st4";
904 signal: "elm,icon,visible"; source: "elm";
905 script {
906 new m = get_int(btmode);
907 m &= ~ICON; set_int(btmode, m);
908 eval_mode(m);
909 }
910 }
911 program { name: "st5";
912 signal: "elm,state,disabled"; source: "elm";
913 script {
914 new m = get_int(btmode);
915 m |= DISABLE; set_int(btmode, m);
916 eval_mode(m);
917 }
918 }
919 program { name: "st6";
920 signal: "elm,state,enabled"; source: "elm";
921 script {
922 new m = get_int(btmode);
923 m &= ~DISABLE; set_int(btmode, m);
924 eval_mode(m);
925 }
926 }
927
928 program {
929 signal: "elm,state,moving"; source: "elm";
930 action: STATE_SET "default" 0.0;
931 target: "shadow1";
932 target: "shadow2";
933 }
934
935 program {
936 signal: "elm,state,icon_set,forward"; source: "elm";
937 after: "icon_set,animation";
938 }
939 program {
940 signal: "elm,state,icon_set,backward"; source: "elm";
941 after: "icon_set,animation";
942 }
943 program { name: "icon_set,animation";
944 signal: "elm,state,icon_set"; source: "elm";
945 action: STATE_SET "animation" 0.0;
946 target: "icon_clip1";
947 target: "icon_clip2";
948 transition: LINEAR 0.2;
949 after: "icon_set,animation,done";
950 }
951 program { name: "icon_set,animation,done";
952 action: SIGNAL_EMIT "elm,state,icon_set,done" "elm";
953 }
954
955 program {
956 signal: "elm,state,icon,reset"; source: "elm";
957 action: STATE_SET "default" 0.0;
958 target: "icon_clip1";
959 target: "icon_clip2";
960 }
961
962 program {
963 signal: "elm,state,label_set,forward"; source: "elm";
964 after: "label_set,animation";
965 }
966 program {
967 signal: "elm,state,label_set,backward"; source: "elm";
968 after: "label_set,animation";
969 }
970 program { name: "label_set,animation";
971 signal: "elm,state,label_set"; source: "elm";
972 action: STATE_SET "animation" 0.0;
973 target: "text_clip1";
974 target: "text_clip2";
975 transition: LINEAR 0.2;
976 after: "label_set,animation,done";
977 }
978 program { name: "label_set,animation,done";
979 action: SIGNAL_EMIT "elm,state,label_set,done" "elm";
980 }
981
982 program {
983 signal: "elm,state,label,reset"; source: "elm";
984 action: STATE_SET "default" 0.0;
985 target: "text_clip1";
986 target: "text_clip2";
987 }
988 }
989#undef ICON
990#undef LABEL
991#undef MASK
992#undef DISABLE
993}
994
995// === item: style assumed to exist
996group { name: "elm/toolbar/item/item_horizontal";
997 inherit: "elm/toolbar/item/default";
998 parts {
999 part { name: "elm.swallow.icon";
1000 description { state: "default" 0.0;
1001 fixed: 1 0;
1002 aspect_preference: VERTICAL;
1003 align: 0.0 0.5;
1004 rel1.offset: 2 2;
1005 rel2.relative: 0.0 1.0;
1006 rel2.offset: 2 -3;
1007 }
1008 description { state: "noicon" 0.0;
1009 inherit: "default" 0.0;
1010 visible: 0;
1011 rel1.offset: 1 0;
1012 rel2.relative: 0.0 1.0;
1013 rel2.offset: 1 -3;
1014 }
1015 description { state: "icononly" 0.0;
1016 inherit: "default" 0.0;
1017 visible: 0;
1018 rel2.relative: 1.0 1.0;
1019 rel2.offset: -3 -3;
1020 rel2.to_y: "icon_clip";
1021 }
1022 }
1023 part { name: "elm.swallow.icon_new";
1024 description { state: "default" 0.0;
1025 aspect_preference: VERTICAL;
1026 align: 0.0 0.5;
1027 rel1.offset: 2 2;
1028 rel2.relative: 0.0 1.0;
1029 rel2.offset: 2 -3;
1030 }
1031 description { state: "noicon" 0.0;
1032 inherit: "default" 0.0;
1033 visible: 0;
1034 rel1.offset: 1 0;
1035 rel2.relative: 0.0 1.0;
1036 rel2.offset: 1 -3;
1037 }
1038 description { state: "icononly" 0.0;
1039 inherit: "default" 0.0;
1040 visible: 0;
1041 rel2.relative: 1.0 1.0;
1042 rel2.offset: -3 -3;
1043 rel2.to_y: "icon_clip";
1044 }
1045 }
1046 part { name: "elm.text";
1047 description { state: "default" 0.0;
1048 rel1.offset: 1 2;
1049 rel1.relative: 1.0 0.0;
1050 rel1.to_x: "elm.swallow.icon";
1051 rel2.offset: -5 -3;
1052 align: 0.0 0.5;
1053 color: 255 255 255 255;
1054 color3: 0 0 0 128;
1055 color_class: "toolbar_item";
1056 text { font: "Sans"; size: 10;
1057 min: 1 1;
1058 align: 0.0 0.5;
1059 text_class: "toolbar_item";
1060 }
1061 }
1062 description { state: "selected" 0.0;
1063 inherit: "default" 0.0;
1064 visible: 0;
1065 color_class: "toolbar_item_selected";
1066 }
1067 description { state: "disabled" 0.0;
1068 inherit: "default" 0.0;
1069 color: 21 21 21 255;
1070 color3: 255 255 255 25;
1071 color_class: "toolbar_item_disabled";
1072 }
1073 description { state: "noicon" 0.0;
1074 inherit: "default" 0.0;
1075 rel1.offset: 4 2;
1076 rel1.relative: 0.0 0.0;
1077 rel1.to: "icon_clip";
1078 align: 0.5 0.5;
1079 }
1080 description { state: "noicon_disabled" 0.0;
1081 inherit: "noicon" 0.0;
1082 color: 21 21 21 255;
1083 color3: 255 255 255 25;
1084 color_class: "toolbar_item_disabled";
1085 }
1086 description { state: "icononly" 0.0;
1087 inherit: "default" 0.0;
1088 text.min: 0 0;
1089 visible: 0;
1090 fixed: 1 1;
1091 }
1092 }
1093 part { name: "label2";
1094 description { state: "default" 0.0;
1095 rel1.offset: -2 -3;
1096 text.align: 0.0 0.5;
1097 align: 0.0 0.5;
1098 }
1099 description { state: "selected" 0.0;
1100 inherit: "default" 0.0;
1101 visible: 1;
1102 }
1103 description { state: "noicon" 0.0;
1104 inherit: "default" 0.0;
1105 }
1106 description { state: "noicon_disabled" 0.0;
1107 inherit: "noicon" 0.0;
1108 }
1109 }
1110 part { name: "elm.text_new";
1111 description { state: "default" 0.0;
1112 rel1.offset: 1 2;
1113 rel1.relative: 1.0 0.0;
1114 rel1.to_x: "elm.swallow.icon";
1115 rel2.offset: -5 -3;
1116 align: 0.0 0.5;
1117 color: 255 255 255 255;
1118 color3: 0 0 0 128;
1119 color_class: "toolbar_item";
1120 text { font: "Sans"; size: 10;
1121 min: 1 1;
1122 align: 0.0 0.5;
1123 text_class: "toolbar_item";
1124 }
1125 }
1126 description { state: "selected" 0.0;
1127 inherit: "default" 0.0;
1128 visible: 0;
1129 color_class: "toolbar_item_selected";
1130 }
1131 description { state: "disabled" 0.0;
1132 inherit: "default" 0.0;
1133 color: 21 21 21 255;
1134 color3: 255 255 255 25;
1135 color_class: "toolbar_item_disabled";
1136 }
1137 description { state: "noicon" 0.0;
1138 inherit: "default" 0.0;
1139 rel1.offset: 4 2;
1140 rel1.relative: 0.0 0.0;
1141 rel1.to: "icon_clip";
1142 align: 0.5 0.5;
1143 }
1144 description { state: "noicon_disabled" 0.0;
1145 inherit: "noicon" 0.0;
1146 color: 21 21 21 255;
1147 color3: 255 255 255 25;
1148 color_class: "toolbar_item_disabled";
1149 }
1150 description { state: "icononly" 0.0;
1151 inherit: "default" 0.0;
1152 text.min: 0 0;
1153 visible: 0;
1154 fixed: 1 1;
1155 }
1156 }
1157 part { name: "label2_new";
1158 description { state: "default" 0.0;
1159 rel1.offset: -2 -3;
1160 text.align: 0.0 0.5;
1161 align: 0.0 0.5;
1162 }
1163 description { state: "selected" 0.0;
1164 inherit: "default" 0.0;
1165 visible: 1;
1166 }
1167 description { state: "noicon" 0.0;
1168 inherit: "default" 0.0;
1169 }
1170 description { state: "noicon_disabled" 0.0;
1171 inherit: "noicon" 0.0;
1172 }
1173 }
1174 }
1175}
1176
1177// === item: style assumed to exist
1178// XXX: vert vs horiz (should emit)
1179// XXX: seriously... why do we have this style?
1180group { name: "elm/toolbar/item/item_centered";
1181 inherit: "elm/toolbar/item/default";
1182 parts {
1183 }
1184}
1185
1186// === separator
1187group { name: "elm/toolbar/separator/default";
1188 images.image: "bevel_dark_in.png" COMP;
1189 parts {
1190 part { name: "base";
1191 description { state: "default" 0.0;
1192 min: 2 2;
1193 max: 2 99999;
1194 rel1.offset: 4 0;
1195 rel2.offset: -5 -1;
1196 image.normal: "bevel_dark_in.png";
1197 image.border: 2 2 2 2;
1198 fill.smooth: 0;
1199 }
1200 description { state: "vert" 0.0;
1201 inherit: "default" 0.0;
1202 max: 99999 2;
1203 rel1.offset: 0 4;
1204 rel2.offset: -1 -5;
1205 }
1206 }
1207 }
1208 programs {
1209 program {
1210 signal: "elm,orient,horizontal"; source: "elm";
1211 action: STATE_SET "default" 0.0;
1212 target: "base";
1213 }
1214 program {
1215 signal: "elm,orient,vertical"; source: "elm";
1216 action: STATE_SET "vert" 0.0;
1217 target: "base";
1218 }
1219 }
1220}
1221
1222// === item: just a regular object holder in the toolbar for any child
1223group { name: "elm/toolbar/object/default";
1224 images.image: "horizontal_separated_bar_small_glow.png" COMP;
1225 parts {
1226 part { name: "elm.swallow.object"; type: SWALLOW;
1227 description { state: "default" 0.0;
1228 rel1.offset: 2 2;
1229 rel2.offset: -3 -3;
1230 }
1231 }
1232 part { name: "highlight"; mouse_events: 0;
1233 description { state: "default" 0.0;
1234 rel1.offset: -3 -7;
1235 rel1.relative: 0.0 1.0;
1236 rel2.offset: 2 2;
1237 image.normal: "horizontal_separated_bar_small_glow.png";
1238 image.border: 4 4 4 4;
1239 fill.smooth: 0;
1240 visible: 0;
1241 }
1242 description { state: "selected" 0.0;
1243 inherit: "default" 0.0;
1244 visible: 1;
1245 }
1246 }
1247 }
1248 programs {
1249 program {
1250 signal: "elm,highlight,on"; source: "elm";
1251 action: STATE_SET "selected" 0.0;
1252 target: "highlight";
1253 }
1254 program {
1255 signal: "elm,highlight,off"; source: "elm";
1256 action: STATE_SET "default" 0.0;
1257 target: "highlight";
1258 }
1259 }
1260}
1261
1262// === item: the more PANEL that slides out under the toolbar
1263// XXX: vert vs horiz (should emit)
1264group { name: "elm/toolbar/more/default";
1265 images.image: "vgrad_med_lighter.png" COMP;
1266 images.image: "bevel_out.png" COMP;
1267 images.image: "shine.png" COMP;
1268 images.image: "shadow_square_tiny.png" COMP;
1269 parts {
1270 part { name: "shadow"; mouse_events: 0;
1271 description { state: "default" 0.0;
1272 rel1.offset: -3 -2;
1273 rel1.to: "base";
1274 rel2.offset: 2 3;
1275 rel2.to: "base";
1276 image.normal: "shadow_square_tiny.png";
1277 image.border: 6 6 6 6;
1278 fill.smooth: 0;
1279 visible: 0;
1280 }
1281 description { state: "open" 0.0;
1282 inherit: "default" 0.0;
1283 visible: 1;
1284 }
1285 description { state: "open2" 0.0;
1286 inherit: "default" 0.0;
1287 visible: 1;
1288 }
1289 }
1290 part { name: "base";
1291 description { state: "default" 0.0;
1292 image.normal: "vgrad_med_lighter.png";
1293 rel2.relative: 1.0 0.0;
1294 rel1.offset: 2 2;
1295 rel2.offset: -3 1;
1296 fill.smooth: 0;
1297 fixed: 1 1;
1298 visible: 0;
1299 TILED_HORIZ(120)
1300 }
1301 description { state: "open" 0.0;
1302 inherit: "default" 0.0;
1303 rel2.relative: 1.0 1.0;
1304 rel2.offset: -3 -3;
1305 visible: 1;
1306 }
1307 description { state: "open2" 0.0;
1308 inherit: "default" 0.0;
1309 rel2.relative: 1.0 2.0;
1310 rel2.offset: -3 -3;
1311 visible: 1;
1312 }
1313 }
1314 part { name: "clipper"; type: RECT;
1315 description { state: "default" 0.0;
1316 rel1.to: "base";
1317 rel2.to: "base";
1318 fixed: 1 1;
1319 visible: 0;
1320 }
1321 description { state: "open" 0.0;
1322 inherit: "default" 0.0;
1323 rel2.relative: 1.0 1.0;
1324 visible: 1;
1325 }
1326 description { state: "open2" 0.0;
1327 inherit: "default" 0.0;
1328 rel2.relative: 1.0 0.5;
1329 visible: 1;
1330 }
1331 }
1332 part { name: "clipper2"; type: RECT;
1333 description { state: "default" 0.0;
1334 rel1.relative: 0.0 0.5;
1335 rel1.to: "base";
1336 rel2.to: "base";
1337 fixed: 1 1;
1338 visible: 0;
1339 }
1340 description { state: "open" 0.0;
1341 inherit: "default" 0.0;
1342 rel1.relative: 0.0 1.0;
1343 visible: 1;
1344 }
1345 description { state: "open2" 0.0;
1346 inherit: "default" 0.0;
1347 rel1.relative: 0.0 0.5;
1348 visible: 1;
1349 }
1350 }
1351 part { name: "elm.swallow.content"; type: SWALLOW;
1352 clip_to: "clipper";
1353 description { state: "default" 0.0;
1354 fixed: 1 1;
1355 rel1.to: "clipper";
1356 rel2.to: "clipper";
1357 }
1358 }
1359 part { name: "elm.swallow.content2"; type: SWALLOW;
1360 clip_to: "clipper2";
1361 description { state: "default" 0.0;
1362 fixed: 1 1;
1363 rel1.to: "clipper2";
1364 rel2.to: "clipper2";
1365 }
1366 }
1367 part { name: "bevel"; mouse_events: 0;
1368 description { state: "default" 0.0;
1369 rel1.to: "base";
1370 rel2.to: "base";
1371 image.normal: "bevel_out.png";
1372 image.border: 1 1 1 1;
1373 image.middle: 0;
1374 fill.smooth: 0;
1375 }
1376 }
1377 }
1378 programs {
1379 program {
1380 signal: "elm,state,open"; source: "elm";
1381 action: STATE_SET "open" 0.0;
1382 target: "shadow";
1383 target: "base";
1384 target: "clipper";
1385 target: "clipper2";
1386 transition: DECELERATE 0.15;
1387 }
1388 program {
1389 signal: "elm,state,open2"; source: "elm";
1390 action: STATE_SET "open2" 0.0;
1391 target: "shadow";
1392 target: "base";
1393 target: "clipper";
1394 target: "clipper2";
1395 transition: DECELERATE 0.3;
1396 }
1397 program {
1398 signal: "elm,state,close"; source: "elm";
1399 action: STATE_SET "default" 0.0;
1400 target: "shadow";
1401 target: "base";
1402 transition: DECELERATE 0.5;
1403 }
1404 }
1405}