summaryrefslogtreecommitdiff
path: root/data/elementary/themes/edc/efl
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2018-03-01 16:44:01 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2018-03-01 16:44:01 +0900
commitca9326767052e2cb61200d71a38b66cc84a6b18d (patch)
tree0102e5fb0e3be72b673c58052f23a1406788751e /data/elementary/themes/edc/efl
parent9111811b83cc1b3bb0e73f837497882d2e06a0ce (diff)
Revert "theme: rename "default" theme to "dark""
This reverts commit d764e0b2790b322778e6db80932c168ae0d43b96. The whole idea of renaming the default theme is an "api break" even if config is changed. and symlinks don't work on windows as a solution. (well on ntfs only as only as administrator, so they don't exist). modifying config for switch from default to dark also will break the case where someone put ~/.elementary/themes/default.edj there and it just is different to the system one and how their theme changes on them as it switches to dark. basically we can't rename a theme like this mid-flight in efl. default is default and has to stay that name. it can change the look, but not the name. i think the apparent reasoning behind this is not a good one. the work on flat is temporary. i don't think we will ever maintain multiple "default themes" as its just far too much work. we can maintain color SCHEMES which are just a list of colorclasses and colors for them - that's separate to a theme and would override. right now these things don't exist. we are not going to create a dark.edj and a light.edj just to store differing default colorclass values. we should be doing the above with colorclass "color palette/scheme/whatever" files that override those named colorclasses globally on init. so reverting because this is an api break and we shouldn't break api unless there is really absolutely no other choice. here the choice is to just temporarily work in a branch and modify default and then merge the branch when done.
Diffstat (limited to 'data/elementary/themes/edc/efl')
-rw-r--r--data/elementary/themes/edc/efl/bg.edc11
-rw-r--r--data/elementary/themes/edc/efl/border.edc21
-rw-r--r--data/elementary/themes/edc/efl/button.edc781
-rw-r--r--data/elementary/themes/edc/efl/calendar.edc551
-rw-r--r--data/elementary/themes/edc/efl/check.edc937
-rw-r--r--data/elementary/themes/edc/efl/cursor.edc91
-rw-r--r--data/elementary/themes/edc/efl/focus.edc7
-rw-r--r--data/elementary/themes/edc/efl/frame.edc3
-rw-r--r--data/elementary/themes/edc/efl/list.edc8
-rw-r--r--data/elementary/themes/edc/efl/multibuttonentry.edc341
-rw-r--r--data/elementary/themes/edc/efl/nstate.edc10
-rw-r--r--data/elementary/themes/edc/efl/panes.edc52
-rw-r--r--data/elementary/themes/edc/efl/photocam.edc3
-rw-r--r--data/elementary/themes/edc/efl/popup.edc260
-rw-r--r--data/elementary/themes/edc/efl/progress.edc1402
-rw-r--r--data/elementary/themes/edc/efl/radio.edc292
-rw-r--r--data/elementary/themes/edc/efl/scroller.edc12
-rw-r--r--data/elementary/themes/edc/efl/slider.edc2998
-rw-r--r--data/elementary/themes/edc/efl/spin.edc25
-rw-r--r--data/elementary/themes/edc/efl/spin_button.edc228
-rw-r--r--data/elementary/themes/edc/efl/text.edc916
-rw-r--r--data/elementary/themes/edc/efl/textpath.edc3
-rw-r--r--data/elementary/themes/edc/efl/tooltip.edc15
-rw-r--r--data/elementary/themes/edc/efl/uiclock.edc227
-rw-r--r--data/elementary/themes/edc/efl/video.edc3
-rw-r--r--data/elementary/themes/edc/efl/win.edc3
26 files changed, 9200 insertions, 0 deletions
diff --git a/data/elementary/themes/edc/efl/bg.edc b/data/elementary/themes/edc/efl/bg.edc
new file mode 100644
index 0000000..43547d3
--- /dev/null
+++ b/data/elementary/themes/edc/efl/bg.edc
@@ -0,0 +1,11 @@
1/* bg widget style information
2
3 [SWALLOW]
4 elm.swallow.rectangle: Used for elm_bg_color_set()
5 elm.swallow.background: Used for elm_bg_file_set()
6 elm.swallow.content: Used for elm_layout_part_content_set(bg, "overlay", content).
7*/
8
9group { "efl/bg";
10 inherit: "elm/bg/base/default";
11}
diff --git a/data/elementary/themes/edc/efl/border.edc b/data/elementary/themes/edc/efl/border.edc
new file mode 100644
index 0000000..5574826
--- /dev/null
+++ b/data/elementary/themes/edc/efl/border.edc
@@ -0,0 +1,21 @@
1/* Window client-side decorations and extra slots
2 * Includes swallows for:
3 * - app content
4 * - main menu
5 * - indicator
6 * - soft key
7 * - virtual keyboard
8 */
9
10group { "efl/border";
11 inherit: "elm/border/base/default";
12}
13
14group { "efl/border/dialog";
15 inherit: "elm/border/dialog/default";
16}
17
18group { "efl/border/naviframe";
19 inherit: "elm/border/naviframe/default";
20}
21
diff --git a/data/elementary/themes/edc/efl/button.edc b/data/elementary/themes/edc/efl/button.edc
new file mode 100644
index 0000000..cf4333b
--- /dev/null
+++ b/data/elementary/themes/edc/efl/button.edc
@@ -0,0 +1,781 @@
1group { name: "efl/button";
2 images.image: "button_normal.png" COMP;
3 images.image: "button_clicked.png" COMP;
4#define ICON 1
5#define LABEL 2
6#define MASK 3
7#define DISABLE 4
8#define PRESSED 8
9#define BACKGROUND 16
10 script {
11 public btmode;
12 public eval_mode(m) {
13 new m1 = m & MASK;
14 new d = m & DISABLE;
15 new p = m & PRESSED;
16 new bg = m & BACKGROUND;
17 if (bg) {
18 set_state(PART:"base", "hidden", 0.0);
19 set_state(PART:"elm.swallow.background", "visible", 0.0);
20 } else {
21 set_state(PART:"elm.swallow.background", "default", 0.0);
22 if (!d) {
23 if (!p)
24 {
25 set_state(PART:"base", "default", 0.0);
26 set_state(PART:"base", "default", 0.0);
27 }
28 else {
29 set_state(PART:"base", "pressed", 0.0);
30 }
31 } else {
32 set_state(PART:"base", "disabled", 0.0);
33 }
34 }
35 if (m1 == (ICON | LABEL)) {
36 if (!d) {
37 set_state(PART:"elm.swallow.content", "visible", 0.0);
38 set_state(PART:"sizer.content", "visible", 0.0);
39 set_state(PART:"event", "default", 0.0);
40 if (!p) {
41 set_state(PART:"elm.text", "visible", 0.0);
42 set_state(PART:"icon_clip", "default", 0.0);
43 } else {
44 set_state(PART:"elm.text", "pressed_visible", 0.0);
45 set_state(PART:"icon_clip", "pressed", 0.0);
46 }
47 } else {
48 set_state(PART:"elm.swallow.content", "visible", 0.0);
49 set_state(PART:"sizer.content", "visible", 0.0);
50 set_state(PART:"elm.text", "disabled_visible", 0.0);
51 set_state(PART:"icon_clip", "disabled", 0.0);
52 set_state(PART:"event", "disabled", 0.0);
53 }
54 } else if (m1 == (ICON)) {
55 if (!d) {
56 set_state(PART:"elm.swallow.content", "icononly", 0.0);
57 set_state(PART:"sizer.content", "icononly", 0.0);
58 set_state(PART:"event", "default", 0.0);
59 set_state(PART:"elm.text", "default", 0.0);
60 if (!p)
61 set_state(PART:"icon_clip", "default", 0.0);
62 else
63 set_state(PART:"icon_clip", "pressed", 0.0);
64 } else {
65 set_state(PART:"elm.swallow.content", "icononly", 0.0);
66 set_state(PART:"sizer.content", "icononly", 0.0);
67 set_state(PART:"elm.text", "default", 0.0);
68 set_state(PART:"icon_clip", "disabled", 0.0);
69 set_state(PART:"event", "disabled", 0.0);
70 }
71 } else if (m1 == (LABEL)) {
72 if (!d) {
73 set_state(PART:"elm.swallow.content", "default", 0.0);
74 set_state(PART:"sizer.content", "default", 0.0);
75 set_state(PART:"icon_clip", "default", 0.0);
76 set_state(PART:"event", "default", 0.0);
77 if (!p)
78 set_state(PART:"elm.text", "textonly", 0.0);
79 else
80 set_state(PART:"elm.text", "pressed_textonly", 0.0);
81 } else {
82 set_state(PART:"elm.swallow.content", "default", 0.0);
83 set_state(PART:"sizer.content", "default", 0.0);
84 set_state(PART:"elm.text", "disabled_textonly", 0.0);
85 set_state(PART:"icon_clip", "disabled", 0.0);
86 set_state(PART:"event", "disabled", 0.0);
87 }
88 } else {
89 if (!d) {
90 set_state(PART:"elm.swallow.content", "default", 0.0);
91 set_state(PART:"sizer.content", "default", 0.0);
92 set_state(PART:"icon_clip", "default", 0.0);
93 set_state(PART:"event", "default", 0.0);
94 } else {
95 set_state(PART:"elm.swallow.content", "default", 0.0);
96 set_state(PART:"sizer.content", "default", 0.0);
97 set_state(PART:"icon_clip", "disabled", 0.0);
98 set_state(PART:"event", "disabled", 0.0);
99 }
100 }
101 }
102 }
103 parts {
104 image { "base";
105 desc { "default";
106 image.normal: "button_normal.png";
107 image.border: 4 4 3 5;
108 image.middle: SOLID;
109 rel1.offset: -1 0;
110 rel2.offset: 0 1;
111 fill.smooth: 0;
112 color_class: "button_bg";
113 }
114 desc { "pressed";
115 inherit: "default";
116 image.normal: "button_clicked.png";
117 image.border: 5 5 4 6;
118 color_class: "button_bg_pressed";
119 }
120 desc { "disabled";
121 inherit: "default";
122 color_class: "button_bg_disabled";
123 }
124 desc { "hidden";
125 inherit: "default";
126 visible: 0;
127 }
128 }
129 swallow { "elm.swallow.background"; nomouse;
130 required;
131 desc { "default";
132 rel1.to: "base";
133 rel2.to: "base";
134 visible: 0;
135 }
136 desc { "visible";
137 inherit: "default";
138 visible: 1;
139 }
140 }
141 rect { "icon_clip";
142 desc { "default";
143 color_class: "button_icon";
144 }
145 desc { "pressed";
146 inherit: "default";
147 color_class: "button_icon_pressed";
148 }
149 desc { "disabled";
150 inherit: "default";
151 color_class: "button_icon_disabled";
152 }
153 }
154 swallow { "elm.swallow.content"; nomouse;
155 clip_to: "icon_clip";
156 required;
157 desc { "default";
158 fixed: 1 0;
159 align: 0.0 0.5;
160 rel1.offset: 6 5;
161 rel1.to: "base";
162 rel2.relative: 0.0 1.0;
163 rel2.offset: 6 -8;
164 rel2.to: "base";
165 visible: 0;
166 }
167 desc { "visible";
168 inherit: "default";
169 fixed: 1 0;
170 aspect: 1.0 1.0;
171 visible: 1;
172 }
173 desc { "icononly";
174 inherit: "default";
175 fixed: 0 0;
176 align: 0.5 0.5;
177 rel2.relative: 1.0 1.0;
178 rel2.offset: -7 -8;
179 visible: 1;
180 }
181 }
182 text { "sizer.content"; nomouse;
183 scale: 1;
184 desc { "default";
185// fixed: 1 1;
186 visible: 0;
187 text { font: FN; size: 10;
188 min: 0 0;
189 text_class: "button_text";
190 }
191 }
192 desc { "visible";
193 inherit: "default";
194 rel1.to: "elm.swallow.content";
195 rel2.to: "elm.swallow.content";
196 text {
197 min: 1 1;
198 ellipsis: -1;
199 text: "M";
200 }
201 }
202 desc { "icononly";
203 inherit: "default";
204 rel1.to: "elm.swallow.content";
205 rel2.to: "elm.swallow.content";
206 text {
207 min: 1 1;
208 ellipsis: -1;
209 text: "M";
210 }
211 }
212 }
213 text { "elm.text"; nomouse;
214 effect: SHADOW BOTTOM;
215 scale;
216 required;
217 desc { "default";
218 rel1.offset: 0 5;
219 rel1.relative: 1.0 0.0;
220 rel1.to_x: "elm.swallow.content";
221 rel1.to_y: "base";
222 rel2.offset: -8 -8;
223 rel2.to: "base";
224 color_class: "button_text";
225 color3: 255 255 255 255;
226 text { font: FN; size: 10;
227 align: 0.5 0.5;
228 min: 0 0;
229 text_class: "button";
230 }
231 visible: 0;
232 fixed: 1 1;
233 }
234 desc { "visible";
235 inherit: "default";
236 rel1.offset: 2 5;
237 text.min: 1 1;
238 text.ellipsis: -1;
239 visible: 1;
240 fixed: 0 0;
241 }
242 desc { "pressed_visible";
243 inherit: "default";
244 rel1.offset: 2 5;
245 text.min: 1 1;
246 text.ellipsis: -1;
247 visible: 1;
248 fixed: 0 0;
249 color_class: "button_text_pressed";
250 }
251 desc { "textonly";
252 inherit: "default";
253 text.min: 1 1;
254 text.ellipsis: -1;
255 visible: 1;
256 fixed: 0 0;
257 }
258 desc { "pressed_textonly";
259 inherit: "default";
260 text.min: 1 1;
261 text.ellipsis: -1;
262 visible: 1;
263 fixed: 0 0;
264 color_class: "button_text_pressed";
265 }
266 desc { "disabled_visible";
267 inherit: "default";
268 rel1.offset: 2 5;
269 color_class: "button_text_disabled";
270 color3: 255 255 255 255;
271 text.min: 1 1;
272 text.ellipsis: -1;
273 visible: 1;
274 fixed: 0 0;
275 }
276 desc { "disabled_textonly";
277 inherit: "default";
278 color_class: "button_text_disabled";
279 color3: 255 255 255 255;
280 text.min: 1 1;
281 text.ellipsis: -1;
282 visible: 1;
283 fixed: 0 0;
284 }
285 }
286 rect { "event";
287 desc { "default";
288 color: 0 0 0 0;
289 }
290 desc { "disabled";
291 inherit: "default";
292 visible: 0;
293 }
294 }
295 }
296 programs {
297 program {
298 signal: "mouse,down,1"; source: "event";
299 action: SIGNAL_EMIT "elm,action,press" "elm";
300 after: "button_click_anim";
301 }
302 program { name: "button_click_anim";
303 script {
304 new m = get_int(btmode);
305 m |= PRESSED; set_int(btmode, m);
306 eval_mode(m);
307 }
308 }
309 program { name: "button_unclick";
310 signal: "mouse,up,1"; source: "event";
311 action: SIGNAL_EMIT "elm,action,unpress" "elm";
312 after: "button_unclick_anim";
313 }
314 program { name: "button_unclick_anim";
315 script {
316 new m = get_int(btmode);
317 m &= ~PRESSED; set_int(btmode, m);
318 eval_mode(m);
319 }
320 }
321 program { name: "buttonactivate";
322 signal: "elm,anim,activate"; source: "elm";
323 action: STATE_SET "pressed" 0.0;
324 target: "base";
325 after: "button_unpressed_anim";
326 }
327 program { name: "button_unpressed_anim";
328 action: STATE_SET "default" 0.0;
329 in: 0.5 0.0;
330 target: "base";
331 }
332 program {
333 signal: "mouse,clicked,1"; source: "event";
334 action: SIGNAL_EMIT "elm,action,click" "elm";
335 }
336 program { name: "button_text_visible";
337 signal: "elm,state,elm.text,set"; source: "elm";
338 script {
339 new m = get_int(btmode);
340 m |= LABEL; set_int(btmode, m);
341 eval_mode(m);
342 }
343 }
344 program { name: "button_text_hidden";
345 signal: "elm,state,elm.text,unset"; source: "elm";
346 script {
347 new m = get_int(btmode);
348 m &= ~LABEL; set_int(btmode, m);
349 eval_mode(m);
350 }
351 }
352 program { name: "button_icon_visible";
353 signal: "elm,state,content,set"; source: "elm";
354 script {
355 new m = get_int(btmode);
356 m |= ICON; set_int(btmode, m);
357 eval_mode(m);
358 }
359 }
360 program { name: "button_icon_hidden";
361 signal: "elm,state,content,unset"; source: "elm";
362 script {
363 new m = get_int(btmode);
364 m &= ~ICON; set_int(btmode, m);
365 eval_mode(m);
366 }
367 }
368 program { name: "button_background_visible";
369 signal: "elm,state,background,set"; source: "elm";
370 script {
371 new m = get_int(btmode);
372 m |= BACKGROUND; set_int(btmode, m);
373 eval_mode(m);
374 }
375 }
376 program { name: "button_background_hidden";
377 signal: "elm,state,background,unset"; source: "elm";
378 script {
379 new m = get_int(btmode);
380 m &= ~BACKGROUND; set_int(btmode, m);
381 eval_mode(m);
382 }
383 }
384 program { name: "button_state_disabled";
385 signal: "elm,state,disabled"; source: "elm";
386 script {
387 new m = get_int(btmode);
388 m |= DISABLE; set_int(btmode, m);
389 eval_mode(m);
390 }
391 }
392 program { name: "button_state_enabled";
393 signal: "elm,state,enabled"; source: "elm";
394 script {
395 new m = get_int(btmode);
396 m &= ~DISABLE; set_int(btmode, m);
397 eval_mode(m);
398 }
399 }
400 }
401#undef ICON
402#undef LABEL
403#undef MASK
404#undef DISABLE
405#undef PRESSED
406#undef BACKGROUND
407}
408
409group { name: "efl/button:anchor";
410 images.image: "horizontal_separated_bar_small_glow.png" COMP;
411#define ICON 1
412#define LABEL 2
413#define MASK 3
414#define DISABLE 4
415 script {
416 public btmode;
417 public eval_mode(m) {
418 new m1 = m & MASK;
419 new d = m & DISABLE;
420 if (m1 == (ICON | LABEL)) {
421 if (!d) {
422 set_state(PART:"elm.swallow.content", "visible", 0.0);
423 set_state(PART:"sizer.content", "visible", 0.0);
424 set_state(PART:"elm.text", "visible", 0.0);
425 set_state(PART:"icon_clip", "default", 0.0);
426 set_state(PART:"bar", "default", 0.0);
427 set_state(PART:"event", "default", 0.0);
428 } else {
429 set_state(PART:"elm.swallow.content", "visible", 0.0);
430 set_state(PART:"sizer.content", "visible", 0.0);
431 set_state(PART:"elm.text", "disabled_visible", 0.0);
432 set_state(PART:"icon_clip", "disabled", 0.0);
433 set_state(PART:"bar", "disabled", 0.0);
434 set_state(PART:"event", "disabled", 0.0);
435 }
436 } else if (m1 == (ICON)) {
437 if (!d) {
438 set_state(PART:"elm.swallow.content", "icononly", 0.0);
439 set_state(PART:"sizer.content", "icononly", 0.0);
440 set_state(PART:"elm.text", "default", 0.0);
441 set_state(PART:"icon_clip", "default", 0.0);
442 set_state(PART:"bar", "default", 0.0);
443 set_state(PART:"event", "default", 0.0);
444 } else {
445 set_state(PART:"elm.swallow.content", "icononly", 0.0);
446 set_state(PART:"sizer.content", "icononly", 0.0);
447 set_state(PART:"elm.text", "default", 0.0);
448 set_state(PART:"icon_clip", "disabled", 0.0);
449 set_state(PART:"bar", "disabled", 0.0);
450 set_state(PART:"event", "disabled", 0.0);
451 }
452 } else if (m1 == (LABEL)) {
453 if (!d) {
454 set_state(PART:"elm.swallow.content", "default", 0.0);
455 set_state(PART:"sizer.content", "default", 0.0);
456 set_state(PART:"elm.text", "textonly", 0.0);
457 set_state(PART:"icon_clip", "default", 0.0);
458 set_state(PART:"bar", "default", 0.0);
459 set_state(PART:"event", "default", 0.0);
460 } else {
461 set_state(PART:"elm.swallow.content", "default", 0.0);
462 set_state(PART:"sizer.content", "default", 0.0);
463 set_state(PART:"elm.text", "disabled_textonly", 0.0);
464 set_state(PART:"icon_clip", "disabled", 0.0);
465 set_state(PART:"bar", "disabled", 0.0);
466 set_state(PART:"event", "disabled", 0.0);
467 }
468 } else {
469 if (!d) {
470 set_state(PART:"elm.swallow.content", "default", 0.0);
471 set_state(PART:"sizer.content", "default", 0.0);
472 set_state(PART:"icon_clip", "default", 0.0);
473 set_state(PART:"bar", "default", 0.0);
474 set_state(PART:"event", "default", 0.0);
475 } else {
476 set_state(PART:"elm.swallow.content", "default", 0.0);
477 set_state(PART:"sizer.content", "default", 0.0);
478 set_state(PART:"icon_clip", "disabled", 0.0);
479 set_state(PART:"bar", "disabled", 0.0);
480 set_state(PART:"event", "disabled", 0.0);
481 }
482 }
483 }
484 }
485 parts {
486 rect { "base";
487 desc { "default";
488 color: 0 0 0 0;
489 }
490 }
491 rect { "icon_clip";
492 desc { "default";
493 }
494 desc { "disabled";
495 inherit: "default";
496 color: 255 255 255 64;
497 }
498 }
499 swallow { "elm.swallow.background"; nomouse;
500 desc { "default";
501 rel1.to: "base";
502 rel2.to: "base";
503 visible: 0;
504 }
505 desc { "visible";
506 inherit: "default";
507 visible: 1;
508 }
509 }
510 swallow { "elm.swallow.content"; nomouse;
511 clip_to: "icon_clip";
512 desc { "default";
513 fixed: 1 0;
514 align: 0.0 0.5;
515 rel1.offset: 0 4;
516 rel1.to: "base";
517 rel2.relative: 0.0 1.0;
518 rel2.offset: 0 -5;
519 rel2.to: "base";
520 visible: 0;
521 }
522 desc { "visible";
523 inherit: "default";
524 fixed: 1 0;
525 aspect: 1.0 1.0;
526 visible: 1;
527 }
528 desc { "icononly";
529 inherit: "default";
530 fixed: 0 0;
531 align: 0.5 0.5;
532 rel2.relative: 1.0 1.0;
533 rel2.offset: -1 -5;
534 visible: 1;
535 }
536 }
537 text { "sizer.content"; nomouse;
538 scale: 1;
539 desc { "default";
540 visible: 0;
541 text { font: FN; size: 10;
542 min: 0 0;
543 text_class: "button_text";
544 }
545 }
546 desc { "visible";
547 inherit: "default";
548 rel1.to: "elm.swallow.content";
549 rel2.to: "elm.swallow.content";
550 text {
551 min: 1 1;
552 ellipsis: -1;
553 text: "M";
554 }
555 }
556 desc { "icononly";
557 inherit: "default";
558 rel1.to: "elm.swallow.content";
559 rel2.to: "elm.swallow.content";
560 text {
561 min: 1 1;
562 ellipsis: -1;
563 text: "M";
564 }
565 }
566 }
567 text { "elm.text"; nomouse;
568 effect: GLOW;
569 scale: 1;
570 desc { "default";
571 rel1.offset: -2 0;
572 rel1.relative: 1.0 0.0;
573 rel1.to_x: "elm.swallow.content";
574 rel1.to_y: "base";
575 rel2.offset: -1 -1;
576 rel2.to: "base";
577 color_class: "button_text_anchor";
578 color2: 255 255 255 255;
579 color3: 255 255 255 255;
580 text { font: FN; size: 10;
581 align: 0.5 0.5;
582 min: 0 0;
583 text_class: "button_anchor";
584 }
585 visible: 0;
586 }
587 desc { "visible";
588 inherit: "default";
589 rel1.offset: 0 0;
590 text.min: 1 1;
591 text.ellipsis: -1;
592 visible: 1;
593 }
594 desc { "textonly";
595 inherit: "default";
596 text.min: 1 1;
597 text.ellipsis: -1;
598 visible: 1;
599 }
600 desc { "disabled_visible";
601 inherit: "default";
602 rel1.offset: 0 0;
603 color_class: "button_text_anchor_disabled";
604 text.min: 1 1;
605 text.ellipsis: -1;
606 visible: 1;
607 }
608 desc { "disabled_textonly";
609 inherit: "default";
610 color_class: "button_text_anchor_disabled";
611 text.min: 1 1;
612 text.ellipsis: -1;
613 visible: 1;
614 }
615 }
616 text { "text2"; nomouse;
617 effect: GLOW;
618 scale: 1;
619 desc { "default";
620 fixed: 1 1;
621 rel1.to: "elm.text";
622 rel2.to: "elm.text";
623 color_class: "button_text_anchor";
624 color2: 255 255 255 255;
625 color3: 255 255 255 255;
626 text { font: FN; size: 10;
627 text_source: "elm.text";
628 min: 1 1;
629 ellipsis: -1;
630 text_class: "button_anchor";
631 }
632 visible: 0;
633 }
634 desc { "clicked";
635 inherit: "default";
636 visible: 1;
637 }
638 }
639 image { "bar"; nomouse;
640 desc { "default";
641 image.normal: "horizontal_separated_bar_small_glow.png";
642 image.border: 4 4 4 4;
643 fill.smooth: 0;
644 fixed: 0 1;
645 rel1.relative: 0.0 1.0;
646 rel1.offset: -3 -6;
647 rel2.offset: 2 3;
648 }
649 desc { "disabled";
650 inherit: "default";
651 color: 255 255 255 64;
652 }
653 }
654 image { "bar2"; nomouse;
655 desc { "default";
656 image.normal: "horizontal_separated_bar_small_glow.png";
657 image.border: 4 4 4 4;
658 fill.smooth: 0;
659 rel1.to: "bar";
660 rel2.to: "bar";
661 color: 255 255 255 0;
662 visible: 0;
663 }
664 desc { "clicked";
665 inherit: "default";
666 color: 255 255 255 255;
667 visible: 1;
668 }
669 }
670 rect { "event";
671 desc { "default";
672 color: 0 0 0 0;
673 }
674 desc { "disabled";
675 inherit: "default";
676 visible: 0;
677 }
678 }
679 }
680 programs {
681 program {
682 signal: "mouse,down,1"; source: "event";
683 action: SIGNAL_EMIT "elm,action,press" "elm";
684 after: "button_click_anim";
685 }
686 program { name: "button_click_anim";
687 action: STATE_SET "clicked" 0.0;
688 target: "bar2";
689 target: "text2";
690 }
691 program {
692 signal: "mouse,up,1"; source: "event";
693 action: SIGNAL_EMIT "elm,action,unpress" "elm";
694 after: "button_unclick_anim";
695 }
696 program { name: "button_unclick_anim";
697 action: STATE_SET "default" 0.0;
698 target: "bar2";
699 target: "text2";
700 }
701 program {
702 signal: "elm,anim,activate"; source: "elm";
703 action: STATE_SET "clicked" 0.0;
704 target: "bar2";
705 target: "text2";
706 after: "button_unpressed_anim";
707 }
708 program { name: "button_unpressed_anim";
709 action: STATE_SET "default" 0.0;
710 in: 0.5 0.0;
711 target: "bar2";
712 target: "text2";
713 }
714 program {
715 signal: "mouse,clicked,1"; source: "event";
716 action: SIGNAL_EMIT "elm,action,click" "elm";
717 }
718 program { name: "button_text_visible";
719 signal: "elm,state,elm.text,set"; source: "elm";
720 script {
721 new m = get_int(btmode);
722 m |= LABEL; set_int(btmode, m);
723 eval_mode(m);
724 }
725 }
726 program { name: "button_text_hidden";
727 signal: "elm,state,elm.text,unset"; source: "elm";
728 script {
729 new m = get_int(btmode);
730 m &= ~LABEL; set_int(btmode, m);
731 eval_mode(m);
732 }
733 }
734 program { name: "button_icon_visible";
735 signal: "elm,state,content,set"; source: "elm";
736 script {
737 new m = get_int(btmode);
738 m |= ICON; set_int(btmode, m);
739 eval_mode(m);
740 }
741 }
742 program { name: "button_icon_hidden";
743 signal: "elm,state,content,unset"; source: "elm";
744 script {
745 new m = get_int(btmode);
746 m &= ~ICON; set_int(btmode, m);
747 eval_mode(m);
748 }
749 }
750 program { name: "button_background_visible";
751 signal: "elm,state,background,set"; source: "elm";
752 action: STATE_SET "visible" 0.0;
753 target: "elm.swallow.background";
754 }
755 program { name: "button_background_hidden";
756 signal: "elm,state,background,unset"; source: "elm";
757 action: STATE_SET "default" 0.0;
758 target: "elm.swallow.background";
759 }
760 program { name: "button_state_disabled";
761 signal: "elm,state,disabled"; source: "elm";
762 script {
763 new m = get_int(btmode);
764 m |= DISABLE; set_int(btmode, m);
765 eval_mode(m);
766 }
767 }
768 program { name: "button_state_enabled";
769 signal: "elm,state,enabled"; source: "elm";
770 script {
771 new m = get_int(btmode);
772 m &= ~DISABLE; set_int(btmode, m);
773 eval_mode(m);
774 }
775 }
776 }
777#undef ICON
778#undef LABEL
779#undef MASK
780#undef DISABLE
781}
diff --git a/data/elementary/themes/edc/efl/calendar.edc b/data/elementary/themes/edc/efl/calendar.edc
new file mode 100644
index 0000000..86aee2c
--- /dev/null
+++ b/data/elementary/themes/edc/efl/calendar.edc
@@ -0,0 +1,551 @@
1#define CIT_STYLE\
2 style { name: "efl_ui_calendar_date_style";\
3 base: "font="FN" font_size=10 color=#ffffff style=shadow,bottom shadow_color=#00000080 align=center text_class=calendar_day_text color_class=calendar_day_text";\
4 }\
5 style { name: "efl_ui_calendar_date_today_style";\
6 base: "font="FN" font_size=10 color=#3399ff style=glow glow_color=#3399ff18 align=center text_class=calendar_day_text_today color_class=calendar_day_text_today";\
7 }\
8 style { name: "efl_ui_calendar_date_disabled_style";\
9 base: "font="FN" font_size=10 color=#151515 style=shadow,bottom shadow_color=#ffffffc0 align=center text_class=calendar_day_text_disabled text_class=calendar_day_text_disabled";\
10 }\
11
12#define CAL_SPIN(_sufix, _text, _relative)\
13 part { name: "left_bt"#_sufix; type: SPACER;\
14 scale: 1;\
15 description { state: "default" 0.0;\
16 fixed: 1 1;\
17 rel1 { to: #_relative;\
18 offset: 0 0;\
19 }\
20 rel2 { to: #_relative;\
21 offset: 0 -1;\
22 }\
23 align: 0.0 0.5;\
24 min: 15 15;\
25 max: 15 15;\
26 }\
27 }\
28 part { name: "right_bt"#_sufix; type: RECT;\
29 scale: 1;\
30 description { state: "default" 0.0;\
31 fixed: 1 1;\
32 rel1 { to: #_relative;\
33 offset: -1 0;\
34 }\
35 rel2 { to: #_relative;\
36 offset: -1 -1;\
37 }\
38 align: 1.0 0.5;\
39 min: 15 15;\
40 max: 15 15;\
41 color: 0 0 0 0;\
42 }\
43 }\
44 part { name: "elm,calendar,button"#_sufix",left";\
45 type: SWALLOW;\
46 scale: 1;\
47 description { state: "default" 0.0;\
48 fixed: 1 1;\
49 rel1.to: "left_bt"#_sufix;\
50 rel2.to: "left_bt"#_sufix;\
51 }\
52 description { state: "rtl" 0.0;\
53 inherit: "default" 0.0;\
54 rel1.to: "right_bt"#_sufix;\
55 rel2.to: "right_bt"#_sufix;\
56 }\
57 }\
58 part { name: "elm,calendar,button"#_sufix",right";\
59 type: SWALLOW;\
60 scale: 1;\
61 description { state: "default" 0.0;\
62 fixed: 1 1;\
63 rel1.to: "right_bt"#_sufix;\
64 rel2.to: "right_bt"#_sufix;\
65 }\
66 description { state: "rtl" 0.0;\
67 inherit: "default" 0.0;\
68 rel1.to: "left_bt"#_sufix;\
69 rel2.to: "left_bt"#_sufix;\
70 }\
71 }\
72 part { name: #_text; type: TEXT; mouse_events: 0;\
73 effect: SHADOW BOTTOM; \
74 scale: 1;\
75 description { state: "default" 0.0;\
76 fixed: 1 1;\
77 rel1 { relative: 1.0 0.0;\
78 to: "left_bt"#_sufix;\
79 }\
80 rel2 { relative: 0.0 1.0;\
81 to: "right_bt"#_sufix;\
82 }\
83 text { font: FNBD; size: 10;\
84 min: 0 1;\
85 text_class: "calendar_"#_text; \
86 }\
87 color_class: "calendar_"#_text; \
88 }\
89 }
90
91#define CH(_pos) \
92 part { name: "ch_"#_pos".base"; type: SPACER; \
93 description { state: "default" 0.0; \
94 rel1 { \
95 relative: (_pos % 7 / 7) 0.0; \
96 to: "header"; \
97 } \
98 rel2 { \
99 relative: (_pos % 7 / 7 + 1 / 7) 1.0; \
100 to: "header"; \
101 } \
102 } \
103 } \
104 part { name: "ch_"#_pos".text"; type: TEXT; mouse_events: 0; \
105 effect: SHADOW BOTTOM; \
106 scale: 1; \
107 clip_to: "ch_"#_pos".clipper"; \
108 description { state: "default" 0.0; \
109 rel1.to: "ch_"#_pos".base"; \
110 rel2.to: "ch_"#_pos".base"; \
111 text { font: FN; size: 8; \
112 min: 1 1; \
113 ellipsis: -1; \
114 text_class: "calendar_weekday_text"; \
115 } \
116 color_class: "calendar_weekday_text"; \
117 } \
118 } \
119 part { name: "ch_"#_pos".clipper"; type: RECT; \
120 description { state: "default" 0.0; \
121 rel1.to: "ch_"#_pos".base"; \
122 rel2.to: "ch_"#_pos".base"; \
123 } \
124 }
125
126#define CIT(_pos) \
127 part { name: "cit_"#_pos".rect"; type: SPACER; \
128 description { state: "default" 0.0; \
129 rel1 { \
130 relative: (_pos % 7 / 7) \
131 (_pos / 7 / 6 - _pos % 7 / 7 / 6); \
132 to: "base"; \
133 } \
134 rel2 { \
135 relative: (_pos % 7 / 7 + 1 / 7) \
136 (_pos / 7 / 6 + 1 / 6 - _pos % 7 / 7 / 6); \
137 to: "base"; \
138 } \
139 } \
140 } \
141 part { name: "cit_"#_pos".event"; type: RECT; repeat_events: 1; \
142 description { state: "default" 0.0; \
143 rel1.to: "cit_"#_pos".rect"; \
144 rel2.to: "cit_"#_pos".rect"; \
145 color: 0 0 0 0; \
146 } \
147 } \
148 part { name: "cit_"#_pos".pat"; mouse_events: 0; \
149 description { state: "default" 0.0; \
150 rel1.to: "cit_"#_pos".selected"; \
151 rel1.offset: 1 1; \
152 rel2.to: "cit_"#_pos".selected"; \
153 rel2.offset: -2 -2; \
154 image.normal: "diagonal_stripes.png"; \
155 color: 255 255 255 25; \
156 TILED_PATTERN(240, 240) \
157 color_class: "calendar_day_selected"; \
158 visible: 0; \
159 } \
160 description { state: "selected" 0.0; \
161 inherit: "default" 0.0; \
162 visible: 1; \
163 } \
164 } \
165 part { name: "cit_"#_pos".selected"; mouse_events: 0; \
166 description { state: "default" 0.0; \
167 rel1.to: "cit_"#_pos".rect"; \
168 rel2.to: "cit_"#_pos".rect"; \
169 image.normal: "outline_glow.png"; \
170 image.border: 4 4 4 4; \
171 color_class: "calendar_day_selected"; \
172 visible: 0; \
173 } \
174 description { state: "selected" 0.0; \
175 inherit: "default" 0.0; \
176 visible: 1; \
177 } \
178 } \
179 part { name: "cit_"#_pos".selected2"; mouse_events: 0; \
180 description { state: "default" 0.0; \
181 rel1.to: "cit_"#_pos".rect"; \
182 rel2.to: "cit_"#_pos".rect"; \
183 image.normal: "outline_glow.png"; \
184 image.border: 4 4 4 4; \
185 color: 255 255 255 128; \
186 color_class: "calendar_day_highlighted"; \
187 visible: 0; \
188 } \
189 description { state: "highlighted" 0.0; \
190 inherit: "default" 0.0; \
191 visible: 1; \
192 } \
193 } \
194 part { name: "cit_"#_pos".glow"; mouse_events: 0; \
195 description { state: "default" 0.0; \
196 rel1.to: "cit_"#_pos".rect"; \
197 rel2.to: "cit_"#_pos".rect"; \
198 image.normal: "box_glow.png"; \
199 image.border: 12 12 12 12; \
200 image.middle: 0; \
201 fill.smooth: 0; \
202 visible: 0; \
203 } \
204 description { state: "focused" 0.0; \
205 inherit: "default" 0.0; \
206 visible: 1; \
207 } \
208 } \
209 part { name: "cit_"#_pos".text"; type: TEXTBLOCK; mouse_events: 0; \
210 scale: 1; \
211 description { state: "default" 0.0; \
212 rel1.to: "cit_"#_pos".rect"; \
213 rel2.to: "cit_"#_pos".rect"; \
214 text.style: "efl_ui_calendar_date_style"; \
215 text.min: 1 1; \
216 text.ellipsis: -1; \
217 } \
218 description { state: "today" 0.0; \
219 inherit: "default" 0.0; \
220 text.style: "efl_ui_calendar_date_today_style"; \
221 } \
222 description { state: "disabled" 0.0; \
223 inherit: "default" 0.0; \
224 text.style: "efl_ui_calendar_date_disabled_style"; \
225 } \
226 } \
227 part { name: "cit_"#_pos".check"; mouse_events: 0; \
228 scale: 1; \
229 description { state: "default" 0.0; \
230 fixed: 1 1; \
231 rel1 { \
232 to: "cit_"#_pos".rect"; \
233 relative: 0.6 0.5; \
234 } \
235 rel2 { \
236 to: "cit_"#_pos".rect"; \
237 relative: 0.6 0.5; \
238 } \
239 min: 16 16; \
240 max: 16 16; \
241 aspect: 1 1; \
242 align: 0.0 1.0;\
243 image.normal: "icon_border_remember.png"; \
244 color_class: "calendar_day_checked"; \
245 visible: 0; \
246 } \
247 description { state: "visible" 0.0; \
248 inherit: "default" 0.0; \
249 visible: 1; \
250 } \
251 } \
252 part { name: "cit_"#_pos".access"; type: RECT; repeat_events: 1; \
253 description { state: "default" 0.0; \
254 rel1.to: "cit_"#_pos".event"; \
255 rel2.to: "cit_"#_pos".event"; \
256 color: 0 0 0 0; \
257 } \
258 } \
259 programs { \
260 program { \
261 name: "cit_"#_pos".go_active"; \
262 signal: "cit_"#_pos",selected"; \
263 source: "elm"; \
264 action: STATE_SET "selected" 0.0; \
265 target: "cit_"#_pos".pat"; \
266 target: "cit_"#_pos".selected"; \
267 } \
268 program { \
269 name: "cit_"#_pos".go_passive"; \
270 signal: "cit_"#_pos",unselected"; \
271 source: "elm"; \
272 action: STATE_SET "default" 0.0; \
273 target: "cit_"#_pos".pat"; \
274 target: "cit_"#_pos".selected"; \
275 } \
276 program { \
277 name: "cit_"#_pos".focus_highlighted"; \
278 signal: "cit_"#_pos",focused"; \
279 source: "elm"; \
280 script { \
281 set_int(item_focus_enabled, 1); \
282 set_int(last_focused_item, _pos); \
283 if (get_int(win_focus_enabled) == 1) \
284 set_state(PART:"cit_"#_pos".glow", "focused", 0.0); \
285 } \
286 } \
287 program { \
288 name: "cit_"#_pos".focus_unhighlighed"; \
289 signal: "cit_"#_pos",unfocused"; \
290 source: "elm"; \
291 script { \
292 set_int(item_focus_enabled, 0); \
293 set_state(PART:"cit_"#_pos".glow", "default", 0.0); \
294 } \
295 } \
296 program { \
297 name: "cit_"#_pos".is_today"; \
298 signal: "cit_"#_pos",today"; \
299 source: "elm"; \
300 action: STATE_SET "today" 0.0; \
301 target: "cit_"#_pos".text"; \
302 } \
303 program { \
304 name: "cit_"#_pos".not_today"; \
305 signal: "cit_"#_pos",not_today"; \
306 source: "elm"; \
307 action: STATE_SET "default" 0.0; \
308 target: "cit_"#_pos".text"; \
309 } \
310 program { \
311 name: "cit_"#_pos".enable"; \
312 signal: "cit_"#_pos",enable"; \
313 source: "elm"; \
314 script { \
315 new st[31]; \
316 new Float:vl; \
317 get_state(PART:"cit_"#_pos".text", st, 30, vl); \
318 if (!strcmp(st, "disabled")) \
319 set_state(PART:"cit_"#_pos".text", "default", 0.0); \
320 } \
321 } \
322 program { \
323 name: "cit_"#_pos".disable"; \
324 signal: "cit_"#_pos",disable"; \
325 source: "elm"; \
326 action: STATE_SET "disabled" 0.0; \
327 target: "cit_"#_pos".text"; \
328 } \
329 program { \
330 source: "cit_"#_pos".clicked"; \
331 signal: "mouse,down,1"; \
332 source: "cit_"#_pos".event"; \
333 action: STATE_SET "highlighted" 0.0; \
334 target: "cit_"#_pos".selected2"; \
335 } \
336 program { \
337 source: "cit_"#_pos".clicked"; \
338 signal: "mouse,up,1"; \
339 source: "cit_"#_pos".event"; \
340 action: STATE_SET "default" 0.0; \
341 target: "cit_"#_pos".selected2"; \
342 } \
343 program { \
344 source: "cit_"#_pos".clicked"; \
345 signal: "mouse,clicked,1"; \
346 source: "cit_"#_pos".event"; \
347 action: SIGNAL_EMIT "elm,action,selected" #_pos; \
348 } \
349 program { \
350 name: "cit_"#_pos".clear"; \
351 signal: "cit_"#_pos",clear"; \
352 source: "elm"; \
353 action: STATE_SET "default" 0.0; \
354 target: "cit_"#_pos".check"; \
355 after: "cit_"#_pos".weekends_clear"; \
356 after: "cit_"#_pos".holiday_clear"; \
357 } \
358 program { \
359 name: "cit_"#_pos".weekends_clear"; \
360 script { \
361 new st[31]; \
362 new Float:vl; \
363 get_state(PART:"cit_"#_pos".text", st, 30, vl); \
364 if (!strcmp(st, "weekend/day1") || !strcmp(st, "weekend/day2")) \
365 set_state(PART:"cit_"#_pos".text", "default", 0.0); \
366 } \
367 } \
368 program { \
369 name: "cit_"#_pos".holiday_clear"; \
370 script { \
371 new st[31]; \
372 new Float:vl; \
373 get_state(PART:"cit_"#_pos".text", st, 30, vl); \
374 if (!strcmp(st, "holiday")) \
375 set_state(PART:"cit_"#_pos".text", "default", 0.0); \
376 } \
377 } \
378 program { \
379 name: "cit_"#_pos".checked"; \
380 signal: "cit_"#_pos",checked"; \
381 source: "elm"; \
382 action: STATE_SET "visible" 0.0; \
383 target: "cit_"#_pos".check"; \
384 } \
385 program { \
386 name: "cit_"#_pos".holiday"; \
387 signal: "cit_"#_pos",holiday"; \
388 source: "elm"; \
389 script { \
390 new st[31]; \
391 new Float:vl; \
392 get_state(PART:"cit_"#_pos".text", st, 30, vl); \
393 if (strcmp(st, "today")) \
394 set_state(PART:"cit_"#_pos".text", "holiday", 0.0); \
395 } \
396 } \
397 program { \
398 name: "cit_"#_pos".weekend/day1"; \
399 signal: "cit_"#_pos",weekend/day1"; \
400 source: "elm"; \
401 script { \
402 new st[31]; \
403 new Float:vl; \
404 get_state(PART:"cit_"#_pos".text", st, 30, vl); \
405 if ((strcmp(st, "today")) && (strcmp(st, "holiday")) )\
406 set_state(PART:"cit_"#_pos".text", "weekend/day1", 0.0); \
407 } \
408 } \
409 program { \
410 name: "cit_"#_pos".weekend/day2"; \
411 signal: "cit_"#_pos",weekend/day2"; \
412 source: "elm"; \
413 script { \
414 new st[31]; \
415 new Float:vl; \
416 get_state(PART:"cit_"#_pos".text", st, 30, vl); \
417 if ((strcmp(st, "today")) && (strcmp(st, "holiday")) )\
418 set_state(PART:"cit_"#_pos".text", "weekend/day2", 0.0); \
419 } \
420 } \
421 }
422
423group { "efl/calendar";
424 images.image: "sym_left_light_normal.png" COMP;
425 images.image: "sym_right_light_normal.png" COMP;
426 images.image: "sym_left_glow_normal.png" COMP;
427 images.image: "sym_right_glow_normal.png" COMP;
428 images.image: "icon_border_remember.png" COMP;
429 images.image: "outline_glow.png" COMP;
430 images.image: "box_glow.png" COMP;
431 images.image: "diagonal_stripes.png" COMP;
432 data.item: "focus_highlight" "on";
433 script {
434 public rtl;
435 public win_focus_enabled;
436 public item_focus_enabled;
437 public last_focused_item;
438 }
439 styles {
440 CIT_STYLE
441 }
442 parts {
443 part { name: "bg"; type: SPACER;
444 description { state: "default" 0.0;
445 rel1.offset: 1 1;
446 rel2.offset: -2 -2;
447 }
448 }
449 part { name: "background"; type: SWALLOW;
450 description { state: "default" 0.0;
451 rel1.to: "bg";
452 rel2.to: "bg";
453 }
454 }
455 part { name: "spinner-base1"; type: SPACER;
456 description { state: "default" 0.0;
457 min: 24 16;
458 max: 999999 16;
459 rel1.to: "bg";
460 rel2.to: "bg";
461 rel2.relative: 1.0 (1/8);
462 align: 0.5 0.0;
463 }
464 }
465 part { name: "table-base"; type: SPACER;
466 description { state: "default" 0.0;
467 min: 70 60;
468 rel1.to_x: "bg";
469 rel1.to_y: "spinner-base1";
470 rel1.offset: 3 0;
471 rel1.relative: 0.0 1.0;
472 rel2.to: "bg";
473 rel2.offset: -4 -4;
474 }
475 }
476 part { name: "header"; type: SPACER;
477 description { state: "default" 0.0;
478 rel1.to: "table-base";
479 rel2.to: "table-base";
480 rel2.relative: 1.0 (1/7);
481 align: 0.5 0.0;
482 min: 0 16;
483 }
484 }
485 part { name: "header_separator"; mouse_events: 0;
486 description { state: "default" 0.0;
487 fixed: 1 1;
488 rel1.to: "header";
489 rel1.relative: 0.0 1.0;
490 rel1.offset: 0 -2;
491 rel2.to: "header";
492 image.normal: "separator_horiz.png";
493 fill.smooth: 0;
494 }
495 }
496 part { name: "base"; type: SPACER;
497 description { state: "default" 0.0;
498 rel1.to_x: "table-base";
499 rel1.to_y: "header";
500 rel1.relative: 0.0 1.0;
501 rel1.offset: 3 0;
502 rel2.to: "table-base";
503 rel2.offset: -3 0;
504 }
505 }
506
507 CAL_SPIN(,month_text, spinner-base1)
508 CH(0) CH(1) CH(2) CH(3) CH(4) CH(5) CH(6)
509 CIT(0) CIT(1) CIT(2) CIT(3) CIT(4) CIT(5) CIT(6)
510 CIT(7) CIT(8) CIT(9) CIT(10) CIT(11) CIT(12) CIT(13)
511 CIT(14) CIT(15) CIT(16) CIT(17) CIT(18) CIT(19) CIT(20)
512 CIT(21) CIT(22) CIT(23) CIT(24) CIT(25) CIT(26) CIT(27)
513 CIT(28) CIT(29) CIT(30) CIT(31) CIT(32) CIT(33) CIT(34)
514 CIT(35) CIT(36) CIT(37) CIT(38) CIT(39) CIT(40) CIT(41)
515
516 }
517 programs {
518 program {
519 signal: "elm,action,focus_highlight,show";
520 source: "elm";
521 script {
522 set_int(win_focus_enabled, 1);
523 if (get_int(item_focus_enabled) == 1) {
524 new value[32];
525 snprintf(value, 32, "cit_%d,focused", get_int(last_focused_item));
526 emit(value, "elm");
527 }
528 }
529 }
530 program {
531 signal: "elm,action,focus_highlight,hide";
532 source: "elm";
533 script {
534 set_int(win_focus_enabled, 0);
535 }
536 }
537 }
538}
539
540#undef CAL_SPIN
541#undef CIT
542#undef CH
543
544
545group { "efl/calendar/inc_button";
546 inherit: "elm/button/base/calendar/increase/default";
547}
548
549group { "efl/calendar/dec_button";
550 inherit: "elm/button/base/calendar/decrease/default";
551}
diff --git a/data/elementary/themes/edc/efl/check.edc b/data/elementary/themes/edc/efl/check.edc
new file mode 100644
index 0000000..6bcc5cf
--- /dev/null
+++ b/data/elementary/themes/edc/efl/check.edc
@@ -0,0 +1,937 @@
1group { "efl/check";
2 images.image: "inset_shadow_tiny.png" COMP;
3 images.image: "bevel_in.png" COMP;
4 images.image: "sym_check_alum.png" COMP;
5#define ICON 1
6#define LABEL 2
7#define MASK 3
8#define DISABLE 4
9 script {
10 public btmode;
11 public eval_mode(m) {
12 new m1 = m & MASK;
13 new d = m & DISABLE;
14 if (m1 == (ICON | LABEL)) {
15 if (!d) {
16 set_state(PART:"elm.swallow.content", "visible", 0.0);
17 set_state(PART:"sizer.content", "visible", 0.0);
18 set_state(PART:"elm.text", "visible", 0.0);
19 set_state(PART:"shadow", "default", 0.0);
20 set_state(PART:"base", "default", 0.0);
21 set_state(PART:"clip", "default", 0.0);
22 set_state(PART:"event", "default", 0.0);
23 } else {
24 set_state(PART:"elm.swallow.content", "visible", 0.0);
25 set_state(PART:"sizer.content", "visible", 0.0);
26 set_state(PART:"elm.text", "disabled_visible", 0.0);
27 set_state(PART:"shadow", "disabled", 0.0);
28 set_state(PART:"base", "disabled", 0.0);
29 set_state(PART:"clip", "disabled", 0.0);
30 set_state(PART:"event", "disabled", 0.0);
31 }
32 } else if (m1 == (ICON)) {
33 if (!d) {
34 set_state(PART:"elm.swallow.content", "visible", 0.0);
35 set_state(PART:"sizer.content", "icononly", 0.0);
36 set_state(PART:"elm.text", "default", 0.0);
37 set_state(PART:"shadow", "default", 0.0);
38 set_state(PART:"base", "default", 0.0);
39 set_state(PART:"clip", "default", 0.0);
40 set_state(PART:"event", "default", 0.0);
41 } else {
42 set_state(PART:"elm.swallow.content", "visible", 0.0);
43 set_state(PART:"sizer.content", "icononly", 0.0);
44 set_state(PART:"elm.text", "disabled", 0.0);
45 set_state(PART:"shadow", "disabled", 0.0);
46 set_state(PART:"base", "disabled", 0.0);
47 set_state(PART:"clip", "disabled", 0.0);
48 set_state(PART:"event", "disabled", 0.0);
49 }
50 } else if (m1 == (LABEL)) {
51 if (!d) {
52 set_state(PART:"elm.swallow.content", "default", 0.0);
53 set_state(PART:"sizer.content", "default", 0.0);
54 set_state(PART:"elm.text", "visible", 0.0);
55 set_state(PART:"shadow", "default", 0.0);
56 set_state(PART:"base", "default", 0.0);
57 set_state(PART:"clip", "default", 0.0);
58 set_state(PART:"event", "default", 0.0);
59 } else {
60 set_state(PART:"elm.swallow.content", "default", 0.0);
61 set_state(PART:"sizer.content", "default", 0.0);
62 set_state(PART:"elm.text", "disabled_visible", 0.0);
63 set_state(PART:"shadow", "disabled", 0.0);
64 set_state(PART:"base", "disabled", 0.0);
65 set_state(PART:"clip", "disabled", 0.0);
66 set_state(PART:"event", "disabled", 0.0);
67 }
68 } else {
69 if (!d) {
70 set_state(PART:"elm.swallow.content", "default", 0.0);
71 set_state(PART:"sizer.content", "default", 0.0);
72 set_state(PART:"elm.text", "default", 0.0);
73 set_state(PART:"shadow", "default", 0.0);
74 set_state(PART:"base", "default", 0.0);
75 set_state(PART:"clip", "default", 0.0);
76 set_state(PART:"event", "default", 0.0);
77 } else {
78 set_state(PART:"elm.swallow.content", "default", 0.0);
79 set_state(PART:"sizer.content", "default", 0.0);
80 set_state(PART:"elm.text", "default", 0.0);
81 set_state(PART:"shadow", "disabled", 0.0);
82 set_state(PART:"base", "disabled", 0.0);
83 set_state(PART:"clip", "disabled", 0.0);
84 set_state(PART:"event", "disabled", 0.0);
85 }
86 }
87 }
88 }
89 parts {
90 part { name: "base"; type: RECT;
91 description { state: "default" 0.0;
92 rel1.offset: 1 1;
93 rel1.to: "inset";
94 rel2.offset: -2 -2;
95 rel2.to: "inset";
96 color: 24 24 24 255;
97 }
98 description { state: "disabled" 0.0;
99 inherit: "default" 0.0;
100 color: 64 64 64 255;
101 }
102 }
103 part { name: "shadow"; mouse_events: 0;
104 description { state: "default" 0.0;
105 image.normal: "inset_shadow_tiny.png";
106 image.border: 4 4 4 4;
107 rel1.to: "base";
108 rel2.to: "base";
109 }
110 description { state: "disabled" 0.0;
111 inherit: "default" 0.0;
112 visible: 0;
113 }
114 }
115 part { name: "inset"; mouse_events: 0;
116 scale: 1;
117 description { state: "default" 0.0;
118 fixed: 1 0;
119 rel1.offset: 2 2;
120 rel2.relative: 0.0 1.0;
121 rel2.offset: 2 -3;
122 align: 0.0 0.5;
123 min: 13 13;
124 max: 13 13;
125 image.normal: "bevel_in.png";
126 image.border: 1 1 1 1;
127 image.middle: 0;
128 fill.smooth: 0;
129 }
130 }
131 part { name: "indicator"; mouse_events: 0;
132 scale: 1;
133 clip_to: "clip";
134 description { state: "default" 0.0;
135 fixed: 1 1;
136 rel1.to: "base";
137 rel2.to: "base";
138 image.normal: "sym_check_alum.png";
139 min: 11 11;
140 max: 11 11;
141 visible: 0;
142 }
143 description { state: "selected" 0.0;
144 inherit: "default" 0.0;
145 visible: 1;
146 }
147 }
148 part { name: "clip"; type: RECT;
149 description { state: "default" 0.0;
150 }
151 description { state: "disabled" 0.0;
152 inherit: "default" 0.0;
153 color: 255 255 255 64;
154 }
155 }
156 part { name: "elm.swallow.content"; type: SWALLOW;
157 scale: 1;
158 clip_to: "clip";
159 required;
160 description { state: "default" 0.0;
161 fixed: 1 0;
162 visible: 0;
163 align: 0.0 0.5;
164 max: 0 0;
165 rel1.to_x: "inset";
166 rel1.relative: 1.0 0.0;
167 rel1.offset: 1 1;
168 rel2.to_x: "inset";
169 rel2.offset: 1 -2;
170 rel2.relative: 1.0 1.0;
171 }
172 description { state: "visible" 0.0;
173 inherit: "default" 0.0;
174 visible: 1;
175 aspect: 1.0 1.0;
176 min: 16 16;
177 }
178 }
179 part { name: "sizer.content"; type: TEXT; mouse_events: 0;
180 scale: 1;
181 description { state: "default" 0.0;
182 fixed: 1 1;
183 visible: 0;
184 text { font: FN; size: 10;
185 min: 0 0;
186 text_class: "check_text";
187 }
188 }
189 description { state: "visible" 0.0;
190 inherit: "default" 0.0;
191 rel1.to: "elm.swallow.content";
192 rel2.to: "elm.swallow.content";
193 text {
194 min: 1 1;
195 ellipsis: -1;
196 text: "M";
197 }
198 }
199 description { state: "icononly" 0.0;
200 inherit: "default" 0.0;
201 rel1.to: "elm.swallow.content";
202 rel2.to: "elm.swallow.content";
203 text {
204 min: 1 1;
205 ellipsis: -1;
206 text: "M";
207 }
208 }
209 }
210 part { name: "elm.text"; type: TEXT; mouse_events: 0;
211 effect: SHADOW BOTTOM;
212 scale: 1;
213 required;
214 description { state: "default" 0.0;
215 rel1.offset: 2 2;
216 rel1.to_x: "elm.swallow.content";
217 rel1.relative: 1.0 0.0;
218 rel2.offset: -3 -3;
219 color: FN_COL_DEFAULT;
220 color_class: "check_text";
221 text { font: FN; size: 10;
222 min: 0 0;
223 align: 0.0 0.5;
224 text_class: "check";
225 }
226 }
227 description { state: "disabled" 0.0;
228 inherit: "default" 0.0;
229 color_class: "check_text_disabled";
230 color3: 255 255 255 255;
231 }
232 description { state: "visible" 0.0;
233 inherit: "default" 0.0;
234 visible: 1;
235 text.min: 1 1;
236 text.ellipsis: -1;
237 }
238 description { state: "disabled_visible" 0.0;
239 inherit: "default" 0.0;
240 color_class: "check_text_disabled";
241 color3: 255 255 255 255;
242 visible: 1;
243 text.min: 1 1;
244 text.ellipsis: -1;
245 }
246 }
247 part { name: "event"; type: RECT;
248 ignore_flags: ON_HOLD;
249 description { state: "default" 0.0;
250 color: 0 0 0 0;
251 }
252 description { state: "disabled" 0.0;
253 inherit: "default" 0.0;
254 visible: 0;
255 }
256 }
257 }
258 programs {
259 program {
260 signal: "mouse,clicked,1"; source: "event";
261 action: SIGNAL_EMIT "elm,action,check,toggle" "elm";
262 }
263 program {
264 signal: "elm,state,check,on"; source: "elm";
265 action: STATE_SET "selected" 0.0;
266 target: "indicator";
267 }
268 program {
269 signal: "elm,state,check,off"; source: "elm";
270 action: STATE_SET "default" 0.0;
271 target: "indicator";
272 }
273 program {
274 signal: "elm,state,elm.text,set"; source: "elm";
275 script {
276 new m = get_int(btmode);
277 m |= LABEL; set_int(btmode, m);
278 eval_mode(m);
279 }
280 }
281 program {
282 signal: "elm,state,elm.text,unset"; source: "elm";
283 script {
284 new m = get_int(btmode);
285 m &= ~LABEL; set_int(btmode, m);
286 eval_mode(m);
287 }
288 }
289 program {
290 signal: "elm,state,content,set"; source: "elm";
291 script {
292 new m = get_int(btmode);
293 m |= ICON; set_int(btmode, m);
294 eval_mode(m);
295 }
296 }
297 program {
298 signal: "elm,state,content,unset"; source: "elm";
299 script {
300 new m = get_int(btmode);
301 m &= ~ICON; set_int(btmode, m);
302 eval_mode(m);
303 }
304 }
305 program {
306 signal: "elm,state,disabled"; source: "elm";
307 script {
308 new m = get_int(btmode);
309 m |= DISABLE; set_int(btmode, m);
310 eval_mode(m);
311 }
312 }
313 program {
314 signal: "elm,state,enabled"; source: "elm";
315 script {
316 new m = get_int(btmode);
317 m &= ~DISABLE; set_int(btmode, m);
318 eval_mode(m);
319 }
320 }
321 }
322#undef ICON
323#undef LABEL
324#undef MASK
325#undef DISABLE
326}
327
328group { "efl/check:toggle";
329 images.image: "inset_shadow_tiny.png" COMP;
330 images.image: "bevel_in.png" COMP;
331 images.image: "bevel_out.png" COMP;
332 images.image: "vgrad_med_lighter.png" COMP;
333 images.image: "shadow_square_tiny.png" COMP;
334 images.image: "glow_small.png" COMP;
335
336#define ICON 1
337#define LABEL 2
338#define MASK 3
339#define DISABLE 4
340 script {
341 public is_rtl;
342 public is_drag;
343 public was_drag;
344 public btmode;
345 public eval_mode(m) {
346 new m1 = m & MASK;
347 new d = m & DISABLE;
348 if (m1 == (ICON | LABEL)) {
349 if (!d) {
350 set_state(PART:"elm.swallow.content", "visible", 0.0);
351 set_state(PART:"sizer.content", "visible", 0.0);
352 set_state(PART:"elm.text", "visible", 0.0);
353 set_state(PART:"shadow", "default", 0.0);
354 set_state(PART:"clip", "default", 0.0);
355 set_state(PART:"event", "default", 0.0);
356 set_state(PART:"event2", "default", 0.0);
357 set_state(PART:"elm.ontext", "default", 0.0);
358 set_state(PART:"elm.offtext", "default", 0.0);
359 set_state(PART:"onrect", "default", 0.0);
360 set_state(PART:"offrect", "default", 0.0);
361 } else {
362 set_state(PART:"elm.swallow.content", "visible", 0.0);
363 set_state(PART:"sizer.content", "visible", 0.0);
364 set_state(PART:"elm.text", "disabled_visible", 0.0);
365 set_state(PART:"shadow", "disabled", 0.0);
366 set_state(PART:"clip", "disabled", 0.0);
367 set_state(PART:"event", "disabled", 0.0);
368 set_state(PART:"event2", "disabled", 0.0);
369 set_state(PART:"elm.ontext", "disabled", 0.0);
370 set_state(PART:"elm.offtext", "disabled", 0.0);
371 set_state(PART:"onrect", "disabled", 0.0);
372 set_state(PART:"offrect", "disabled", 0.0);
373 }
374 } else if (m1 == (ICON)) {
375 if (!d) {
376 set_state(PART:"elm.swallow.content", "visible", 0.0);
377 set_state(PART:"sizer.content", "icononly", 0.0);
378 set_state(PART:"elm.text", "default", 0.0);
379 set_state(PART:"shadow", "default", 0.0);
380 set_state(PART:"clip", "default", 0.0);
381 set_state(PART:"event", "default", 0.0);
382 set_state(PART:"event2", "default", 0.0);
383 set_state(PART:"elm.ontext", "default", 0.0);
384 set_state(PART:"elm.offtext", "default", 0.0);
385 set_state(PART:"onrect", "default", 0.0);
386 set_state(PART:"offrect", "default", 0.0);
387 } else {
388 set_state(PART:"elm.swallow.content", "visible", 0.0);
389 set_state(PART:"sizer.content", "icononly", 0.0);
390 set_state(PART:"elm.text", "disabled", 0.0);
391 set_state(PART:"shadow", "disabled", 0.0);
392 set_state(PART:"clip", "disabled", 0.0);
393 set_state(PART:"event", "disabled", 0.0);
394 set_state(PART:"event2", "disabled", 0.0);
395 set_state(PART:"elm.ontext", "disabled", 0.0);
396 set_state(PART:"elm.offtext", "disabled", 0.0);
397 set_state(PART:"onrect", "disabled", 0.0);
398 set_state(PART:"offrect", "disabled", 0.0);
399 }
400 } else if (m1 == (LABEL)) {
401 if (!d) {
402 set_state(PART:"elm.swallow.content", "default", 0.0);
403 set_state(PART:"sizer.content", "default", 0.0);
404 set_state(PART:"elm.text", "visible", 0.0);
405 set_state(PART:"shadow", "default", 0.0);
406 set_state(PART:"clip", "default", 0.0);
407 set_state(PART:"event", "default", 0.0);
408 set_state(PART:"event2", "default", 0.0);
409 set_state(PART:"elm.ontext", "default", 0.0);
410 set_state(PART:"elm.offtext", "default", 0.0);
411 set_state(PART:"onrect", "default", 0.0);
412 set_state(PART:"offrect", "default", 0.0);
413 } else {
414 set_state(PART:"elm.swallow.content", "default", 0.0);
415 set_state(PART:"sizer.content", "default", 0.0);
416 set_state(PART:"elm.text", "disabled_visible", 0.0);
417 set_state(PART:"shadow", "disabled", 0.0);
418 set_state(PART:"clip", "disabled", 0.0);
419 set_state(PART:"event", "disabled", 0.0);
420 set_state(PART:"event2", "disabled", 0.0);
421 set_state(PART:"elm.ontext", "disabled", 0.0);
422 set_state(PART:"elm.offtext", "disabled", 0.0);
423 set_state(PART:"onrect", "disabled", 0.0);
424 set_state(PART:"offrect", "disabled", 0.0);
425 }
426 } else {
427 if (!d) {
428 set_state(PART:"elm.swallow.content", "default", 0.0);
429 set_state(PART:"sizer.content", "default", 0.0);
430 set_state(PART:"elm.text", "default", 0.0);
431 set_state(PART:"shadow", "default", 0.0);
432 set_state(PART:"clip", "default", 0.0);
433 set_state(PART:"event", "default", 0.0);
434 set_state(PART:"event2", "default", 0.0);
435 set_state(PART:"elm.ontext", "default", 0.0);
436 set_state(PART:"elm.offtext", "default", 0.0);
437 set_state(PART:"onrect", "default", 0.0);
438 set_state(PART:"offrect", "default", 0.0);
439 } else {
440 set_state(PART:"elm.swallow.content", "default", 0.0);
441 set_state(PART:"sizer.content", "default", 0.0);
442 set_state(PART:"elm.text", "default", 0.0);
443 set_state(PART:"shadow", "disabled", 0.0);
444 set_state(PART:"clip", "disabled", 0.0);
445 set_state(PART:"event", "disabled", 0.0);
446 set_state(PART:"event2", "disabled", 0.0);
447 set_state(PART:"elm.ontext", "disabled", 0.0);
448 set_state(PART:"elm.offtext", "disabled", 0.0);
449 set_state(PART:"onrect", "disabled", 0.0);
450 set_state(PART:"offrect", "disabled", 0.0);
451 }
452 }
453 }
454 }
455 parts {
456 part { name: "tog"; type: SPACER;
457 scale: 1;
458 description { state: "default" 0.0;
459 fixed: 1 0;
460 rel1.relative: 1.0 0.0;
461 rel1.offset: 2 2;
462 rel2.offset: -3 -3;
463 align: 1.0 0.5;
464 min: 88 15;
465 max: 88 15;
466 }
467 }
468 part { name: "onrect"; type: RECT; mouse_events: 0;
469 scale: 1;
470 clip_to: "tog_clip";
471 description { state: "default" 0.0;
472 rel1.to: "button";
473 rel1.relative: -5.0 0.0;
474 rel2.to: "button";
475 rel2.relative: 0.5 1.0;
476 color: 24 24 24 255;
477 }
478 description { state: "disabled" 0.0;
479 inherit: "default" 0.0;
480 color: 64 64 64 255;
481 }
482 }
483 part { name: "offrect"; type: RECT; mouse_events: 0;
484 scale: 1;
485 clip_to: "tog_clip";
486 description { state: "default" 0.0;
487 rel1.to: "button";
488 rel1.relative: 0.5 0.0;
489 rel2.to: "button";
490 rel2.relative: 6.0 1.0;
491 color: 24 24 24 255;
492 }
493 description { state: "disabled" 0.0;
494 inherit: "default" 0.0;
495 color: 64 64 64 255;
496 }
497 }
498 part { name: "elm.offtext"; type: TEXT; mouse_events: 0;
499 effect: SHADOW BOTTOM;
500 scale: 1;
501 clip_to: "tog_clip";
502 description { state: "default" 0.0;
503 fixed: 1 1;
504 rel1.to: "button";
505 rel1.relative: 1.0 0.0;
506 rel2.to: "offrect";
507 color: FN_COL_DEFAULT;
508 color_class: "check_off_text";
509 text { font: FN; size: 10;
510 min: 0 1;
511 align: 0.5 0.5;
512 text_class: "check_off_text";
513 text: "OFF";
514 }
515 }
516 description { state: "disabled" 0.0;
517 inherit: "default" 0.0;
518 color_class: "check_off_text_disabled";
519 color3: 255 255 255 255;
520 }
521 }
522 part { name: "elm.ontext"; type: TEXT; mouse_events: 0;
523 effect: GLOW;
524 scale: 1;
525 clip_to: "tog_clip";
526 description { state: "default" 0.0;
527 fixed: 1 1;
528 rel1.to: "onrect";
529 rel1.offset: 2 -1;
530 rel2.to: "button";
531 rel2.relative: 0.0 1.0;
532 rel2.offset: -1 -2;
533 color_class: "check_on_text";
534 color2: 255 255 255 255;
535 color3: 255 255 255 255;
536 text { font: FN; size: 10;
537 min: 0 1;
538 align: 0.5 0.5;
539 text_class: "check_on_text";
540 text: "ON";
541 }
542 }
543 description { state: "disabled" 0.0;
544 inherit: "default" 0.0;
545 color_class: "check_on_text_disabled";
546 color3: 255 255 255 255;
547 }
548 }
549 part { name: "shadow"; mouse_events: 0;
550 description { state: "default" 0.0;
551 image.normal: "inset_shadow_tiny.png";
552 image.border: 4 4 4 4;
553 rel1.to: "tog";
554 rel2.to: "tog";
555 }
556 description { state: "disabled" 0.0;
557 inherit: "default" 0.0;
558 visible: 0;
559 }
560 }
561 part { name: "inset"; mouse_events: 0;
562 scale: 1;
563 description { state: "default" 0.0;
564 fixed: 1 1;
565 rel1.to: "tog";
566 rel1.offset: -1 -1;
567 rel2.to: "tog";
568 rel2.offset: 0 0;
569 image.normal: "bevel_in.png";
570 image.border: 1 1 1 1;
571 image.middle: 0;
572 fill.smooth: 0;
573 }
574 }
575 part { name: "tog_clip"; type: RECT;
576 description { state: "default" 0.0;
577 rel1.to: "tog";
578 rel2.to: "tog";
579 }
580 }
581 part { name: "button"; type: RECT;
582 scale: 1;
583 clip_to: "tog_clip";
584 dragable {
585 x: 1 1 0;
586 y: 0 0 0;
587 confine: "tog";
588 }
589 description { state: "default" 0.0;
590 fixed: 1 1;
591 rel1.to: "tog";
592 rel2.to: "tog";
593 min: 15 15;
594 max: 15 99999;
595 color: 0 0 0 0;
596 }
597 }
598 part { name: "shadow_but"; mouse_events: 0;
599 description { state: "default" 0.0;
600 rel1.offset: -3 -2;
601 rel1.to: "base_but";
602 rel2.offset: 2 4;
603 rel2.to: "base_but";
604 image.normal: "shadow_square_tiny.png";
605 image.border: 6 6 6 6;
606 fill.smooth: 0;
607 }
608 description { state: "clicked" 0.0;
609 inherit: "default" 0.0;
610 rel1.offset: -2 -2;
611 rel2.offset: 1 1;
612 color: 255 255 255 128;
613 }
614 }
615 part { name: "glow_but"; mouse_events: 0;
616 description { state: "default" 0.0;
617 rel1.offset: -3 -3;
618 rel1.to: "base_but";
619 rel2.offset: 2 2;
620 rel2.to: "base_but";
621 image.normal: "glow_small.png";
622 image.border: 7 7 7 7;
623 fill.smooth: 0;
624 visible: 0;
625 }
626 description { state: "clicked" 0.0;
627 inherit: "default" 0.0;
628 visible: 1;
629 }
630 }
631 part { name: "base_but"; mouse_events: 0;
632 description { state: "default" 0.0;
633 rel1.to: "button";
634 rel2.to: "button";
635 image.normal: "vgrad_med_lighter.png";
636 fill.smooth: 0;
637 TILED_HORIZ(120)
638 }
639 }
640 part { name: "bevel_but"; mouse_events: 0;
641 description { state: "default" 0.0;
642 rel1.to: "base_but";
643 rel2.to: "base_but";
644 image.normal: "bevel_out.png";
645 image.border: 1 1 1 1;
646 image.middle: 0;
647 fill.smooth: 0;
648 }
649 }
650 part { name: "button_events"; type: RECT;
651 dragable.events: "button";
652 description { state: "default" 0.0;
653 color: 0 0 0 0;
654 }
655 }
656 part { name: "clip"; type: RECT;
657 description { state: "default" 0.0;
658 }
659 description { state: "disabled" 0.0;
660 inherit: "default" 0.0;
661 color: 255 255 255 64;
662 }
663 }
664 part { name: "elm.swallow.content"; type: SWALLOW;
665 scale: 1;
666 clip_to: "clip";
667 description { state: "default" 0.0;
668 fixed: 1 0;
669 visible: 0;
670 align: 0.0 0.5;
671 max: 0 0;
672 rel1.offset: 1 1;
673 rel2.offset: 1 -2;
674 rel2.relative: 0.0 1.0;
675 }
676 description { state: "visible" 0.0;
677 inherit: "default" 0.0;
678 fixed: 0 0;
679 visible: 1;
680 min: 16 16;
681 }
682 }
683 part { name: "sizer.content"; type: TEXT; mouse_events: 0;
684 scale: 1;
685 description { state: "default" 0.0;
686 fixed: 1 1;
687 visible: 0;
688 text { font: FN; size: 10;
689 min: 0 0;
690 text_class: "check_text";
691 }
692 }
693 description { state: "visible" 0.0;
694 inherit: "default" 0.0;
695 rel1.to: "elm.swallow.content";
696 rel2.to: "elm.swallow.content";
697 text {
698 min: 1 1;
699 ellipsis: -1;
700 text: "M";
701 }
702 }
703 description { state: "icononly" 0.0;
704 inherit: "default" 0.0;
705 rel1.to: "elm.swallow.content";
706 rel2.to: "elm.swallow.content";
707 text {
708 min: 1 1;
709 ellipsis: -1;
710 text: "M";
711 }
712 }
713 }
714 part { name: "elm.text"; type: TEXT; mouse_events: 0;
715 effect: SHADOW BOTTOM;
716 scale: 1;
717 description { state: "default" 0.0;
718 rel1.to_x: "elm.swallow.content";
719 rel1.relative: 1.0 0.0;
720 rel1.offset: 2 2;
721 rel2.to_x: "tog";
722 rel2.relative: 0.0 1.0;
723 rel2.offset: -5 -3;
724 color: FN_COL_DEFAULT;
725 color_class: "check_text";
726 text { font: FN; size: 10;
727 min: 0 0;
728 align: 0.0 0.5;
729 text_class: "check";
730 }
731 }
732 description { state: "disabled" 0.0;
733 inherit: "default" 0.0;
734 color_class: "check_text_disabled";
735 color3: 255 255 255 255;
736 }
737 description { state: "visible" 0.0;
738 inherit: "default" 0.0;
739 visible: 1;
740 text.min: 1 1;
741 text.ellipsis: -1;
742 }
743 description { state: "disabled_visible" 0.0;
744 inherit: "default" 0.0;
745 color_class: "check_text_disabled";
746 color3: 255 255 255 255;
747 visible: 1;
748 text.min: 1 1;
749 text.ellipsis: -1;
750 }
751 }
752 part { name: "event"; type: RECT;
753 ignore_flags: ON_HOLD;
754 description { state: "default" 0.0;
755 color: 0 0 0 0;
756 rel1.to_x: "elm.swallow.content";
757 rel2.to_x: "elm.text";
758 }
759 description { state: "disabled" 0.0;
760 inherit: "default" 0.0;
761 visible: 0;
762 }
763 }
764 part { name: "event2"; type: RECT;
765 ignore_flags: ON_HOLD;
766 description { state: "default" 0.0;
767 color: 0 0 0 0;
768 visible: 0;
769 }
770 description { state: "disabled" 0.0;
771 inherit: "default" 0.0;
772 visible: 1;
773 }
774 }
775 }
776 programs {
777 program {
778 signal: "mouse,clicked,1"; source: "event";
779 action: SIGNAL_EMIT "elm,action,check,toggle" "elm";
780 }
781 program {
782 signal: "elm,state,check,on"; source: "elm";
783 script {
784 new Float:drag;
785 if (get_int(is_rtl) == 0) {
786 drag = 100.0;
787 } else {
788 drag = 0.0;
789 }
790 set_drag(PART:"button", drag, 0.0);
791 }
792 }
793 program {
794 signal: "elm,state,check,off"; source: "elm";
795 script {
796 new Float:drag;
797 if (get_int(is_rtl) == 0) {
798 drag = 0.0;
799 } else {
800 drag = 100.0;
801 }
802 set_drag(PART:"button", drag, 0.0);
803 }
804 }
805 program {
806 signal: "mouse,clicked,1"; source: "button";
807 script {
808 new Float:dx, Float:dy;
809 get_drag(PART:"button", dx, dy);
810 if (!get_int(was_drag)) {
811 if (dx > 0.5) {
812 set_drag(PART:"button", 0.0, 0.0);
813 } else {
814 set_drag(PART:"button", 1.0, 0.0);
815 }
816 if (((get_int(is_rtl) == 1) && (dx <= 0.5)) ||
817 (get_int(is_rtl) == 0) && (dx > 0.5)) {
818 emit("elm,action,check,off", "elm");
819 } else {
820 emit("elm,action,check,on", "elm");
821 }
822 }
823 }
824 }
825 program {
826 signal: "drag"; source: "button";
827 script {
828 set_int(is_drag, 1);
829 }
830 }
831 program {
832 signal: "mouse,down,1"; source: "button";
833 script {
834 set_int(was_drag, 0);
835 set_int(is_drag, 0);
836 }
837 }
838 program { name: "drag_end";
839 signal: "mouse,up,1"; source: "button";
840 script {
841 new Float:dx, Float:dy;
842 get_drag(PART:"button", dx, dy);
843 if (get_int(is_drag)) {
844 if (dx > 0.5) {
845 set_drag(PART:"button", 1.0, 0.0);
846 } else {
847 set_drag(PART:"button", 0.0, 0.0);
848 }
849 if (((get_int(is_rtl) == 1) && (dx <= 0.5)) ||
850 (get_int(is_rtl) == 0) && (dx > 0.5)) {
851 emit("elm,action,check,on", "elm");
852 } else {
853 emit("elm,action,check,off", "elm");
854 }
855 set_int(was_drag, 1);
856 set_int(is_drag, 0);
857 }
858 }
859 }
860 program {
861 signal: "mouse,down,1"; source: "button";
862 action: STATE_SET "clicked" 0.0;
863 target: "shadow_but";
864 target: "glow_but";
865 }
866 program {
867 signal: "mouse,up,1"; source: "button";
868 action: STATE_SET "default" 0.0;
869 target: "shadow_but";
870 target: "glow_but";
871 }
872 program {
873 signal: "elm,state,elm.text,set"; source: "elm";
874 script {
875 new m = get_int(btmode);
876 m |= LABEL; set_int(btmode, m);
877 eval_mode(m);
878 }
879 }
880 program {
881 signal: "elm,state,elm.text,unset"; source: "elm";
882 script {
883 new m = get_int(btmode);
884 m &= ~LABEL; set_int(btmode, m);
885 eval_mode(m);
886 }
887 }
888 program {
889 signal: "elm,state,content,set"; source: "elm";
890 script {
891 new m = get_int(btmode);
892 m |= ICON; set_int(btmode, m);
893 eval_mode(m);
894 }
895 }
896 program {
897 signal: "elm,state,content,unset"; source: "elm";
898 script {
899 new m = get_int(btmode);
900 m &= ~ICON; set_int(btmode, m);
901 eval_mode(m);
902 }
903 }
904 program {
905 signal: "elm,state,disabled"; source: "elm";
906 script {
907 new m = get_int(btmode);
908 m |= DISABLE; set_int(btmode, m);
909 eval_mode(m);
910 }
911 }
912 program {
913 signal: "elm,state,enabled"; source: "elm";
914 script {
915 new m = get_int(btmode);
916 m &= ~DISABLE; set_int(btmode, m);
917 eval_mode(m);
918 }
919 }
920 program {
921 signal: "edje,state,rtl"; source: "edje";
922 script {
923 set_int(is_rtl, 1);
924 }
925 }
926 program {
927 signal: "edje,state,ltr"; source: "edje";
928 script {
929 set_int(is_rtl, 0);
930 }
931 }
932 }
933#undef ICON
934#undef LABEL
935#undef MASK
936#undef DISABLE
937}
diff --git a/data/elementary/themes/edc/efl/cursor.edc b/data/elementary/themes/edc/efl/cursor.edc
new file mode 100644
index 0000000..1302e4c
--- /dev/null
+++ b/data/elementary/themes/edc/efl/cursor.edc
@@ -0,0 +1,91 @@
1// cursors available:
2//
3// "x"
4// "arrow"
5// "based_arrow_down"
6// "based_arrow_up"
7// "boat"
8// "bogosity"
9// "bottom_left_corner"
10// "bottom_right_corner"
11// "bottom_side"
12// "bottom_tee"
13// "box_spiral"
14// "center_ptr"
15// "circle"
16// "clock"
17// "coffee_mug"
18// "cross"
19// "cross_reverse"
20// "crosshair"
21// "diamond_cross"
22// "dot"
23// "dot_box_mask"
24// "double_arrow"
25// "draft_large"
26// "draft_small"
27// "draped_box"
28// "exchange"
29// "fleur"
30// "gobbler"
31// "gumby"
32// "hand1" *DONE*
33// "hand2"
34// "heart"
35// "icon"
36// "iron_cross"
37// "left_ptr"
38// "left_side"
39// "left_tee"
40// "leftbutton"
41// "ll_angle"
42// "lr_angle"
43// "man"
44// "middlebutton"
45// "mouse"
46// "pencil"
47// "pirate"
48// "plus"
49// "question_arrow"
50// "right_ptr"
51// "right_side"
52// "right_tee"
53// "rightbutton"
54// "rtl_logo"
55// "sailboat"
56// "sb_down_arrow"
57// "sb_h_double_arrow"
58// "sb_left_arrow"
59// "sb_right_arrow"
60// "sb_up_arrow"
61// "sb_v_double_arrow"
62// "shuttle"
63// "sizing"
64// "spider"
65// "spraycan"
66// "star"
67// "target"
68// "tcross"
69// "top_left_arrow"
70// "top_left_corner"
71// "top_right_corner"
72// "top_side"
73// "top_tee"
74// "trek"
75// "ul_angle"
76// "umbrella"
77// "ur_angle"
78// "watch"
79// "xterm"
80
81group { "efl/cursor/hand1";
82 inherit: "elm/cursor/hand1/default";
83}
84
85group { "efl/cursor/blank";
86 inherit: "elm/cursor/blank/default";
87}
88
89group { "efl/cursor/xterm";
90 inherit: "elm/cursor/xterm/default";
91}
diff --git a/data/elementary/themes/edc/efl/focus.edc b/data/elementary/themes/edc/efl/focus.edc
new file mode 100644
index 0000000..d7c3b78
--- /dev/null
+++ b/data/elementary/themes/edc/efl/focus.edc
@@ -0,0 +1,7 @@
1group { "efl/focus_highlight/top";
2 inherit: "elm/focus_highlight/top/default";
3}
4
5group { "efl/focus_highlight/top:blank";
6 inherit: "elm/focus_highlight/top/blank";
7}
diff --git a/data/elementary/themes/edc/efl/frame.edc b/data/elementary/themes/edc/efl/frame.edc
new file mode 100644
index 0000000..f8b4690
--- /dev/null
+++ b/data/elementary/themes/edc/efl/frame.edc
@@ -0,0 +1,3 @@
1group { "efl/frame";
2 inherit: "elm/frame/base/default";
3}
diff --git a/data/elementary/themes/edc/efl/list.edc b/data/elementary/themes/edc/efl/list.edc
new file mode 100644
index 0000000..2707924
--- /dev/null
+++ b/data/elementary/themes/edc/efl/list.edc
@@ -0,0 +1,8 @@
1group { "efl/list";
2 inherit: "elm/list/base/default";
3}
4
5group { "efl/list/item";
6 inherit: "elm/list/item/default";
7}
8
diff --git a/data/elementary/themes/edc/efl/multibuttonentry.edc b/data/elementary/themes/edc/efl/multibuttonentry.edc
new file mode 100644
index 0000000..5996a6c
--- /dev/null
+++ b/data/elementary/themes/edc/efl/multibuttonentry.edc
@@ -0,0 +1,341 @@
1group { "efl/multibuttonentry";
2 data.item: "horizontal_pad" 0;
3 data.item: "vertical_pad" 0;
4 data.item: "closed_height" 0;
5 parts {
6 rect { "bg";
7 scale;
8 desc { "default";
9 color_class: "multibuttonentry_bg";
10 }
11 }
12 swallow { "elm.swallow.background";
13 scale;
14 desc { "default";
15 rel.to: "bg";
16 }
17 }
18 swallow { "box.swallow";
19 desc { "default";
20 rel.to: "bg";
21 }
22 }
23 }
24}
25
26group { "efl/multibuttonentry/label";
27 parts {
28 text { "elm.text";
29 nomouse;
30 effect: GLOW;
31 scale;
32 desc { "default";
33 color: FN_COL_HIGHLIGHT;
34 color_class: "multibuttonentry_label";
35 text { font: FNBD; size: 10;
36 min: 1 1;
37 ellipsis: -1;
38 align: 0.5 0.5;
39 text_class: "multibuttonentry_label";
40 }
41 rel1.offset: 2 2;
42 rel2.offset: -5 -5;
43 }
44 }
45 }
46}
47
48group { "efl/multibuttonentry/guidetext";
49 parts {
50 text { "elm.text";
51 scale;
52 effect: SHADOW BOTTOM;
53 desc { "default";
54 rel1.offset: 2 2;
55 rel2.offset: -4 -4;
56 color: FN_COL_DISABLE;
57 text { font: FNBD; size: 10;
58 min: 0 1;
59 align: 0.0 0.5;
60 }
61 }
62 }
63 }
64}
65
66group { "efl/multibuttonentry/btn";
67 images.image: "button_normal.png" COMP;
68 images.image: "button_clicked.png" COMP;
69 images.image: "sym_close_dark_normal.png" COMP;
70 images.image: "sym_close_dark_selected.png" COMP;
71 images.image: "win_glow.png" COMP;
72 styles {
73 style { name: "efl_multibuttonentry_textblock_style";
74 base: "font="FN" align=0.5 font_size=10 color=#ffffffff style=shadow,bottom shadow_color=#00000080 text_class=multibuttonentry_item ellipsis=1.0";
75 tag: "br" "\n";
76 tag: "ps" "ps";
77 tag: "hilight" "+ font="FNBD;
78 tag: "b" "+ font="FNBD;
79 tag: "tab" "\t";
80 }
81 }
82
83 script {
84 public disabled = 0;
85 }
86
87 parts {
88 rect { "bg";
89 desc { "default";
90 color_class: "multibuttonentry_item_bg";
91 }
92 desc { "pressed";
93 color_class: "multibuttonentry_item_bg_selected";
94 }
95 }
96 image { "base";
97 desc { "default";
98 image.normal: "button_normal.png";
99 image.border: 4 4 3 5;
100 image.middle: SOLID;
101 rel1.offset: -1 0;
102 rel2.offset: 0 1;
103 fill.smooth: 0;
104 }
105 desc { "pressed";
106 inherit: "default";
107 image.normal: "button_clicked.png";
108 image.border: 5 5 4 6;
109 }
110 }
111 image { "glow";
112 nomouse;
113 desc { "default";
114 image.normal: "win_glow.png";
115 image.border: 9 9 9 9;
116 image.middle: 0;
117 rel1.offset: -2 -3;
118 rel1.to: "base";
119 rel2.offset: 1 0;
120 rel2.to: "base";
121 fill.smooth: 0;
122 color: 255 255 255 0;
123 hid;
124 }
125 desc { "focused";
126 inherit: "default";
127 color: 255 255 255 255;
128 vis;
129 }
130 desc { "unfocused";
131 inherit: "default";
132 }
133 }
134 image { "close";
135 nomouse;
136 desc { "default";
137 image.normal: "sym_close_dark_normal.png";
138 rel1.to: "del";
139 rel2.to: "del";
140 min: 15 15;
141 max: 15 15;
142 fixed: 1 1;
143 }
144 desc { "clicked";
145 inherit: "default";
146 image.normal: "sym_close_dark_selected.png";
147 }
148 }
149 rect { "del";
150 scale;
151 desc { "default";
152 fixed: 1 0;
153 min: 4 4;
154 align: 1.0 0.5;
155 aspect: 1.0 1.0; aspect_preference: VERTICAL;
156 rel1.relative: 1.0 0.0;
157 rel1.to: "base";
158 rel1.offset: -6 5;
159 rel2.offset: -6 -7;
160 rel2.to: "base";
161 color: 0 0 0 0;
162 }
163 }
164 textblock { "elm.btn.text";
165 nomouse;
166 scale;
167 desc { "default";
168 color_class: "multibuttonentry_item_text";
169 text { style: "efl_multibuttonentry_textblock_style";
170 min: 1 1;
171 ellipsis: -1;
172 text_class: "multibuttonentry_item_text";
173 }
174 hid;
175 rel1.offset: 5 5;
176 rel1.to: "base";
177 rel2.to_x: "del";
178 rel2.to_y: "base";
179 rel2.relative: 0.0 1.0;
180 rel2.offset: -3 -7;
181 }
182 }
183 textblock { "text";
184 nomouse;
185 scale;
186 desc { "default";
187 color_class: "multibuttonentry_item_text";
188 text { style: "efl_multibuttonentry_textblock_style";
189 text_source: "elm.btn.text";
190 min: 0 1;
191 align: 0.0 0.5;
192 text_class: "multibuttonentry_item_text";
193 }
194 align: 0.0 0.5;
195 rel1.offset: 5 5;
196 rel1.to: "base";
197 rel2.to_x: "del";
198 rel2.to_y: "base";
199 rel2.relative: 0.0 1.0;
200 rel2.offset: -3 -7;
201 }
202 desc { "pressed";
203 inherit: "default";
204 color_class: "multibuttonentry_item_text_pressed";
205 text {
206 text_class: "multibuttonentry_item_text_pressed";
207 }
208 }
209 desc { "disabled";
210 inherit: "default";
211 color_class: "multibuttonentry_item_text_disabled";
212 text {
213 text_class: "multibuttonentry_item_text_disabled";
214 }
215 }
216 }
217 }
218 programs {
219 program {
220 signal: "mouse,clicked,1";
221 source: "base";
222 script {
223 if (get_int(disabled) == 0) {
224 emit("clicked", "");
225 }
226 }
227 }
228 program {
229 signal: "elm,state,default";
230 source: "elm";
231 action: STATE_SET "default";
232 target: "glow";
233 }
234 program {
235 signal: "elm,state,focused";
236 source: "elm";
237 action: STATE_SET "focused";
238 target: "glow";
239 }
240 program {
241 signal: "elm,state,enabled";
242 source: "elm";
243 script {
244 set_state(PART:"text", "default", 0.0);
245 set_int(disabled , 0);
246 }
247 }
248 program {
249 signal: "elm,state,disabled";
250 source: "elm";
251 script {
252 new st[31];
253 new Float: vl;
254 get_state(PART:"glow", st, 30, vl);
255 if (!strcmp(st, "focused"))
256 set_state(PART:"glow", "default", 0.0);
257 set_state(PART:"text", "disabled", 0.0);
258 set_int(disabled , 1);
259 }
260 }
261 program {
262 signal: "elm,state,unfocused";
263 source: "elm";
264 action: STATE_SET "unfocused";
265 target: "glow";
266 }
267 program {
268 signal: "mouse,down,1";
269 source: "base";
270 script {
271 if (get_int(disabled) == 0) {
272 set_state(PART:"base", "pressed", 0.0);
273 set_state(PART:"bg", "pressed", 0.0);
274 set_state(PART:"text", "pressed", 0.0);
275 }
276 }
277 }
278 program {
279 signal: "mouse,up,1";
280 source: "base";
281 script {
282 if (get_int(disabled) == 0) {
283 set_state(PART:"base", "default", 0.0);
284 set_state(PART:"bg", "default", 0.0);
285 set_state(PART:"text", "default", 0.0);
286 }
287 }
288 }
289 program {
290 signal: "mouse,clicked,1";
291 source: "del";
292 action: SIGNAL_EMIT "elm,deleted" "elm";
293 }
294 program {
295 signal: "mouse,down,1";
296 source: "del";
297 action: STATE_SET "clicked";
298 target: "close";
299 }
300 program {
301 signal: "mouse,up,1";
302 source: "del";
303 action: STATE_SET "default";
304 target: "close";
305 }
306 }
307}
308
309group { "efl/multibuttonentry/closedbutton";
310 styles {
311 style { name: "textblock_style_efl_multibuttonentry_default";
312 base: "font="FNBD" font_size=10 text_class=multibuttonentry_closed style=glow color=#3399ffff glow_color=#3399ff18 align=center glow2_color=#3399ff12 wrap=char";
313 tag: "br" "\n";
314 tag: "ps" "ps";
315 tag: "hilight" "+ font="FNBD;
316 tag: "b" "+ font="FNBD;
317 tag: "tab" "\t";
318 }
319 }
320 parts {
321 rect { "bg";
322 desc { "default";
323 color: 0 0 0 0;
324 }
325 }
326 textblock { "elm.text";
327 nomouse;
328 scale;
329 desc { "default";
330 rel1.offset: 2 2;
331 rel1.to: "bg";
332 rel2.offset: -3 -3;
333 rel2.to: "bg";
334 text { style: "textblock_style_multibuttonentry_default";
335 min: 1 1;
336 ellipsis: -1;
337 }
338 }
339 }
340 }
341}
diff --git a/data/elementary/themes/edc/efl/nstate.edc b/data/elementary/themes/edc/efl/nstate.edc
new file mode 100644
index 0000000..c63624d
--- /dev/null
+++ b/data/elementary/themes/edc/efl/nstate.edc
@@ -0,0 +1,10 @@
1group { "efl/nstate";
2 inherit: "efl/button";
3 programs {
4 program {
5 signal: "mouse,clicked,1"; source: "event";
6 action: SIGNAL_EMIT "elm,action,state,changed" "elm";
7 }
8 }
9}
10
diff --git a/data/elementary/themes/edc/efl/panes.edc b/data/elementary/themes/edc/efl/panes.edc
new file mode 100644
index 0000000..46a1c07
--- /dev/null
+++ b/data/elementary/themes/edc/efl/panes.edc
@@ -0,0 +1,52 @@
1/* panes widget style information
2
3 [SIGNAL]
4 elm,panes,fixed: Used for elm_panes_fixed_set()
5 elm,panes,unfixed: Used for elm_panes_fixed_set()
6
7 [SIGNAL EMIT]
8 elm,action,click: Used for "clicked" smart callback.
9 elm,action,click,double: Used for "clicked,double" smart callback.
10 elm,action,press: Used for "press" smart callback.
11 elm,action,unpress: Used for "unpress" smart callback.
12*/
13
14group { "efl/panes/vertical";
15 inherit: "elm/panes/vertical/default";
16 parts {
17 alias: "first" "elm.swallow.left";
18 alias: "second" "elm.swallow.right";
19 }
20}
21
22group { "efl/panes/horizontal";
23 inherit: "elm/panes/horizontal/default";
24 parts {
25 alias: "first" "elm.swallow.left";
26 alias: "second" "elm.swallow.right";
27 }
28}
29
30group { "efl/panes/vertical:flush";
31 inherit: "elm/panes/vertical/flush";
32}
33
34group { "efl/panes/horizontal:flush";
35 inherit: "elm/panes/horizontal/flush";
36}
37
38group { "efl/panes/vertical:left-fold";
39 inherit: "elm/panes/vertical/left-fold";
40}
41
42group { "efl/panes/vertical:right-fold";
43 inherit: "elm/panes/vertical/right-fold";
44}
45
46group { "efl/panes/horizontal:up-fold";
47 inherit: "elm/panes/horizontal/up-fold";
48}
49
50group { "efl/panes/horizontal:down-fold";
51 inherit: "elm/panes/horizontal/down-fold";
52}
diff --git a/data/elementary/themes/edc/efl/photocam.edc b/data/elementary/themes/edc/efl/photocam.edc
new file mode 100644
index 0000000..ccc226e
--- /dev/null
+++ b/data/elementary/themes/edc/efl/photocam.edc
@@ -0,0 +1,3 @@
1group { "efl/photocam";
2 inherit: "elm/photocam/base/default";
3}
diff --git a/data/elementary/themes/edc/efl/popup.edc b/data/elementary/themes/edc/efl/popup.edc
new file mode 100644
index 0000000..491d483
--- /dev/null
+++ b/data/elementary/themes/edc/efl/popup.edc
@@ -0,0 +1,260 @@
1//Efl.Ui.Popup Themes
2group { "efl/popup";
3 images.image: "rounded_square.png" COMP;
4 parts {
5 spacer { "base";
6 desc { "default";
7 rel1.offset: 10 10;
8 rel2.offset: -11 -11;
9 }
10 }
11 image { "bg";
12 desc { "default";
13 min: 100 100;
14 image.border: 15 15 15 15;
15 image.normal: "rounded_square.png";
16 }
17 }
18 swallow { "elm.swallow.content";
19 desc { "default";
20 rel.to: "base";
21 }
22 }
23 }
24}
25
26group { "efl/popup_alert";
27 alias: "efl/popup_alert_scroll";
28 alias: "efl/popup_alert_text";
29 images.image: "rounded_square.png" COMP;
30 parts {
31 alias: "title" "elm.text.title";
32 image { "bg";
33 desc { "default";
34 min: 100 100;
35 image.border: 15 15 15 15;
36 image.normal: "rounded_square.png";
37 }
38 }
39 spacer { "base";
40 desc { "default";
41 rel.to: "bg";
42 rel1.offset: 10 10;
43 rel2.offset: -11 -11;
44 }
45 }
46 rect { "title_bg";
47 desc { "default";
48 fixed: 0 1;
49 min: 0 0;
50 rel.to: "base";
51 rel2.relative: 1.0 0.0;
52 align: 0.5 0.0;
53 color: 0 0 0 0;
54 }
55 desc { "title_visible";
56 inherit: "default";
57 min: 0 20;
58 }
59 }
60 textblock { "elm.text.title";
61 scale;
62 desc { "default";
63 fixed: 1 1;
64 text {
65 style: "popup_title_style_ellipsis";
66 }
67 rel.to: "title_bg";
68 hid;
69 }
70 desc { "title_visible";
71 inherit: "default";
72 vis;
73 }
74 }
75 swallow { "buttons";
76 desc { "default";
77 fixed: 0 1;
78 rel.to: "base";
79 rel1.relative: 0.0 1.0;
80 align: 0.5 1.0;
81 min: 0 0;
82 }
83 desc { "button_visible";
84 inherit: "default";
85 min: 0 30;
86 }
87 }
88 swallow { "elm.swallow.content";
89 desc { "default";
90 rel1.to_x: "base";
91 rel1.to_y: "title_bg";
92 rel2.to_x: "base";
93 rel2.to_y: "buttons";
94 rel1.relative: 0.0 1.0;
95 rel2.relative: 1.0 0.0;
96 }
97 }
98 }
99 programs {
100 program {
101 signal: "elm,title,show"; source: "elm";
102 action: STATE_SET "title_visible" 0.0;
103 target: "title_bg";
104 target: "elm.text.title";
105 }
106 program {
107 signal: "elm,buttons,show"; source: "elm";
108 action: STATE_SET "button_visible" 0.0;
109 target: "buttons";
110 }
111 }
112}
113
114group { "efl/popup_anchor";
115 inherit: "efl/popup";
116}
117
118group { "efl/popup/backwall";
119 alias: "efl/popup_alert/backwall";
120 alias: "efl/popup_alert_scroll/backwall";
121 alias: "efl/popup_alert_text/backwall";
122 alias: "efl/popup_anchor/backwall";
123 parts {
124 rect { "base";
125 desc { "default";
126 color: 0 0 0 64;
127 }
128 desc { "show_image";
129 inherit: "default";
130 hid;
131 }
132 }
133 swallow { "elm.swallow.image";
134 desc { "default";
135 rel.to: "base";
136 hid;
137 }
138 desc { "show_image";
139 inherit: "default";
140 vis;
141 }
142 }
143 rect { "block";
144 desc { "default";
145 rel.to: "base";
146 color: 0 0 0 0;
147 }
148 }
149 }
150
151 programs {
152 program {
153 signal: "elm,state,image,visible"; source: "elm";
154 action: STATE_SET "show_image" 0.0;
155 target: "base";
156 target: "elm.swallow.image";
157 }
158 program {
159 signal: "elm,state,image,hidden"; source: "elm";
160 action: STATE_SET "default" 0.0;
161 target: "base";
162 target: "elm.swallow.image";
163 }
164 program {
165 signal: "mouse,clicked,1"; source: "block";
166 action: SIGNAL_EMIT "elm,action,clicked" "elm";
167 }
168 }
169}
170
171group { "efl/popup_alert/button_layout1";
172 alias: "efl/popup_alert_scroll/button_layout1";
173 alias: "efl/popup_alert_text/button_layout1";
174 parts {
175 swallow { "elm.swallow.button1";
176 }
177 }
178}
179
180group { "efl/popup_alert/button_layout2";
181 alias: "efl/popup_alert_scroll/button_layout2";
182 alias: "efl/popup_alert_text/button_layout2";
183 parts {
184 spacer { "div1";
185 desc { "default";
186 rel1.relative: 0.5 0.5;
187 rel2.relative: 0.5 0.5;
188 min: 5 5;
189 }
190 }
191 swallow { "elm.swallow.button1";
192 desc { "default";
193 rel2.to_x: "div1";
194 rel2.relative: 0.0 1.0;
195 }
196 }
197 swallow { "elm.swallow.button2";
198 desc { "default";
199 rel1.to_x: "div1";
200 rel1.relative: 1.0 0.0;
201 }
202 }
203 }
204}
205
206group { "efl/popup_alert/button_layout3";
207 alias: "efl/popup_alert_scroll/button_layout3";
208 alias: "efl/popup_alert_text/button_layout3";
209 parts {
210 spacer { "div1";
211 desc { "default";
212 rel1.relative: 0.333 0.5;
213 rel2.relative: 0.333 0.5;
214 min: 5 5;
215 }
216 }
217 spacer { "div2";
218 desc { "default";
219 rel1.relative: 0.666 0.5;
220 rel2.relative: 0.666 0.5;
221 min: 5 5;
222 }
223 }
224 swallow { "elm.swallow.button1";
225 desc { "default";
226 rel2.to_x: "div1";
227 rel2.relative: 0.0 1.0;
228 }
229 }
230 swallow { "elm.swallow.button2";
231 desc { "default";
232 rel1.to_x: "div1";
233 rel2.to_x: "div2";
234 rel1.relative: 1.0 0.0;
235 rel2.relative: 0.0 1.0;
236 }
237 }
238 swallow { "elm.swallow.button3";
239 desc { "default";
240 rel1.to_x: "div2";
241 rel1.relative: 1.0 0.0;
242 }
243 }
244 }
245}
246
247group { "efl/popup_alert/button";
248 inherit: "efl/button";
249 alias: "efl/popup_alert_scroll/button";
250 alias: "efl/popup_alert_text/button";
251}
252
253group { "efl/popup_alert_scroll/scroller";
254 inherit: "elm/scroller/base/popup/no_inset_shadow";
255 alias: "efl/popup_alert_text/scroller";
256}
257
258group { "efl/popup_alert_text/text";
259 inherit: "efl/text";
260}
diff --git a/data/elementary/themes/edc/efl/progress.edc b/data/elementary/themes/edc/efl/progress.edc
new file mode 100644
index 0000000..0497242
--- /dev/null
+++ b/data/elementary/themes/edc/efl/progress.edc
@@ -0,0 +1,1402 @@
1group { "efl/progressbar/horizontal";
2 images.image: "inset_bar_horiz_base.png" COMP;
3 images.image: "inset_bar_horiz_light.png" COMP;
4 images.image: "inset_bar_horiz_inside_base.png" COMP;
5 images.image: "inset_bar_horiz_inside_light.png" COMP;
6 images.image: "inset_bar_horiz_glow_base.png" COMP;
7 images.image: "inset_bar_horiz_glow_light.png" COMP;
8 images.image: "inset_bar_horiz_glow_inv_base.png" COMP;
9 images.image: "inset_bar_horiz_glow_inv_light.png" COMP;
10 images.image: "inset_bar_horiz_glow_mid_base.png" COMP;
11 images.image: "inset_bar_horiz_glow_mid_light.png" COMP;
12#define ICON 1
13#define LABEL 2
14#define DISABLE 4
15 script {
16 public slmode;
17 public eval_mode(m) {
18 new ic = m & ICON;
19 new l = m & LABEL;
20 new d = m & DISABLE;
21 if (l) {
22 if (!d) {
23 set_state(PART:"elm.text", "visible", 0.0);
24 } else {
25 set_state(PART:"elm.text", "disabled_visible", 0.0);
26 }
27 } else {
28 set_state(PART:"elm.text", "default", 0.0);
29 }
30 if (ic) {
31 set_state(PART:"elm.swallow.content", "visible", 0.0);
32 set_state(PART:"sizer.content", "visible", 0.0);
33 } else {
34 set_state(PART:"elm.swallow.content", "default", 0.0);
35 set_state(PART:"sizer.content", "default", 0.0);
36 }
37 if (!d) {
38 set_state(PART:"dis_clip", "default", 0.0);
39 } else {
40 set_state(PART:"dis_clip", "disabled", 0.0);
41 }
42 }
43 }
44 parts {
45 part { name: "dis_clip"; type: RECT;
46 description { state: "default" 0.0;
47 rel1.to: "elm.swallow.content";
48 rel2.to: "elm.swallow.content";
49 }
50 description { state: "disabled" 0.0;
51 inherit: "default" 0.0;
52 color: 255 255 255 64;
53 }
54 }
55 part { name: "pulse_clip"; type: RECT;
56 description { state: "default" 0.0;
57 rel1.relative: -2.0 -2.0;
58 rel2.relative: 3.0 3.0;
59 visible: 0;
60 }
61 description { state: "pulse" 0.0;
62 inherit: "default" 0.0;
63 visible: 1;
64 }
65 }
66 part { name: "fract_clip"; type: RECT;
67 description { state: "default" 0.0;
68 rel1.relative: -2.0 -2.0;
69 rel2.relative: 3.0 3.0;
70 }
71 description { state: "pulse" 0.0;
72 inherit: "default" 0.0;
73 visible: 0;
74 }
75 }
76 part { name: "elm.swallow.content"; type: SWALLOW;
77 clip_to: "dis_clip";
78 required;
79 description { state: "default" 0.0;
80 visible: 0;
81 align: 0.0 0.5;
82 fixed: 1 0;
83 rel1.offset: 0 2;
84 rel2.offset: -1 -3;
85 rel2.relative: 0.0 1.0;
86 }
87 description { state: "visible" 0.0;
88 inherit: "default" 0.0;
89 visible: 1;
90 aspect: 1.0 1.0; aspect_preference: VERTICAL;
91 rel1.offset: 2 2;
92 rel2.offset: 2 -3;
93 }
94 }
95 part { name: "sizer.content"; type: TEXT; mouse_events: 0;
96 scale: 1;
97 description { state: "default" 0.0;
98 fixed: 1 1;
99 visible: 0;
100 text { font: FN; size: 10;
101 min: 0 0;
102 text_class: "progressbar_text";
103 }
104 }
105 description { state: "visible" 0.0;
106 inherit: "default" 0.0;
107 rel1.to: "elm.swallow.content";
108 rel2.to: "elm.swallow.content";
109 text {
110 min: 1 1;
111 ellipsis: -1;
112 text: "M";
113 }
114 }
115 }
116 part { name: "elm.text"; type: TEXT; mouse_events: 0;
117 effect: SHADOW BOTTOM;
118 scale: 1;
119 required;
120 description { state: "default" 0.0;
121 fixed: 1 1;
122 align: 0.0 0.5;
123 rel1.to_x: "elm.swallow.content";
124 rel1.relative: 1.0 0.0;
125 rel1.offset: -1 2;
126 rel2.to_x: "elm.swallow.content";
127 rel2.relative: 1.0 1.0;
128 rel2.offset: -1 -3;
129 color: FN_COL_DEFAULT;
130 color_class: "progressbar_text";
131 text { font: FN; size: 10;
132 text_class: "progressbar";
133 min: 0 0;
134 align: 0.0 0.5;
135 }
136 visible: 0;
137 }
138 description { state: "visible" 0.0;
139 inherit: "default" 0.0;
140 fixed: 1 0;
141 visible: 1;
142 rel1.offset: 2 2;
143 rel2.offset: 2 -3;
144 text.min: 1 1;
145 text.ellipsis: -1;
146 }
147 description { state: "disabled_visible" 0.0;
148 inherit: "visible" 0.0;
149 color_class: "progressbar_text_disabled";
150 color: FN_COL_DISABLE_LIGHTER_SHADOW;
151 }
152 }
153 part { name: "bg-hi";
154 description { state: "default" 0.0;
155 rel1.to: "bg";
156 rel1.offset: 0 1;
157 rel2.to: "bg";
158 rel2.offset: -1 0;
159 image.normal: "inset_bar_horiz_light.png";
160 image.border: 32 32 0 0;
161 image.border_scale_by: 0.25; image.border_scale: 1;
162 }
163 }
164 part { name: "bg";
165 scale: 1;
166 description { state: "default" 0.0;
167 min: 16 16;
168 max: -1 16;
169 rel1.to_x: "elm.text";
170 rel1.relative: 1.0 0.0;
171 rel1.offset: 3 3;
172 rel2.offset: -4 -4;
173 image.normal: "inset_bar_horiz_base.png";
174 image.border: 32 32 0 0;
175 image.border_scale_by: 0.25; image.border_scale: 1;
176 }
177 }
178 part { name: "ins0"; type: SPACER;
179 scale: 1;
180 description { state: "default" 0.0;
181 fixed: 1 0;
182 rel1.to: "bg";
183 rel2.to: "bg";
184 rel2.relative: 0.0 1.0;
185 min: 5 16;
186 align: 0.0 0.5;
187 }
188 }
189 part { name: "ins1"; type: SPACER;
190 scale: 1;
191 description { state: "default" 0.0;
192 fixed: 1 0;
193 rel1.to: "bg";
194 rel1.relative: 1.0 0.0;
195 rel2.to: "bg";
196 min: 5 16;
197 align: 1.0 0.5;
198 }
199 }
200 part { name: "inside-hi";
201 scale: 1;
202 description { state: "default" 0.0;
203 rel1.to: "inside";
204 rel1.offset: 0 1;
205 rel2.to: "inside";
206 rel2.offset: -1 0;
207 image.normal: "inset_bar_horiz_inside_light.png";
208 image.border: 8 8 0 0;
209 image.border_scale_by: 0.25; image.border_scale: 1;
210 }
211 }
212 part { name: "inside";
213 scale: 1;
214 description { state: "default" 0.0;
215 min: 4 4;
216 rel1.to: "ins0";
217 rel1.relative: 1.0 (6/16);
218 rel2.to: "ins1";
219 rel2.relative: 0.0 (10/16);
220 image.normal: "inset_bar_horiz_inside_base.png";
221 image.border: 8 8 0 0;
222 image.border_scale_by: 0.25; image.border_scale: 1;
223 }
224 }
225 part { name: "elm.swallow.bar"; type: SWALLOW; mouse_events: 0;
226 description { state: "default" 0.0;
227 rel1.to: "inside";
228 rel2.to: "inside";
229 }
230 }
231 part { name: "elm.cur.progressbar"; mouse_events: 0; type: SPACER;
232 scale: 1;
233 dragable.confine: "inside";
234 dragable.x: 1 1 1;
235 dragable.y: 0 0 0;
236 description { state: "default" 0.0;
237 fixed: 1 1;
238 min: 8 4;
239 max: 8 4;
240 rel1.to: "inside";
241 rel2.to: "inside";
242 }
243 }
244 part { name: "barend"; type: SPACER;
245 scale: 1;
246 description { state: "default" 0.0;
247 fixed: 1 0;
248 min: 14 16;
249 rel1.to_x: "elm.cur.progressbar";
250 rel1.relative: 1.0 0.0;
251 rel2.to_x: "elm.cur.progressbar";
252 rel2.relative: 1.0 1.0;
253 align: 0.0 0.5;
254 }
255 description { state: "inv" 0.0;
256 inherit: "default" 0.0;
257 rel1.relative: 0.0 0.0;
258 rel2.relative: 0.0 1.0;
259 align: 1.0 0.5;
260 }
261 }
262 part { name: "bar";
263 clip_to: "fract_clip";
264 scale: 1;
265 description { state: "default" 0.0;
266 rel1.to_x: "ins0";
267 rel1.to_y: "bg";
268 rel1.relative: (12/16) -0.25;
269 rel2.to_x: "barend";
270 rel2.to_y: "bg";
271 rel2.relative: 1.0 1.25;
272 image.normal: "inset_bar_horiz_glow_base.png";
273 image.border: 0 72 0 0;
274 image.border_scale_by: 0.25; image.border_scale: 1;
275 }
276 description { state: "inv" 0.0;
277 inherit: "default" 0.0;
278 rel1.to_x: "barend";
279 rel1.relative: 0.0 -0.25;
280 rel2.to_x: "ins1";
281 rel2.relative: (4/16) 1.25;
282 image.normal: "inset_bar_horiz_glow_inv_base.png";
283 image.border: 72 0 0 0;
284 }
285 }
286 part { name: "insidep0"; type: SPACER;
287 scale: 1;
288 description { state: "default" 0.0;
289 fixed: 1 0;
290 min: 20 16;
291 rel1.to_x: "inside";
292 rel1.relative: 0.0 0.0;
293 rel2.to_x: "inside";
294 rel2.relative: 0.0 1.0;
295 align: 1.0 0.5;
296 }
297 }
298 part { name: "insidep1"; type: SPACER;
299 scale: 1;
300 description { state: "default" 0.0;
301 fixed: 1 0;
302 min: 20 16;
303 rel1.to_x: "inside";
304 rel1.relative: 1.0 0.0;
305 rel2.to_x: "inside";
306 rel2.relative: 1.0 1.0;
307 align: 0.0 0.5;
308 }
309 }
310 part { name: "pulse";
311 clip_to: "pulse_clip";
312 scale: 1;
313 description { state: "default" 0.0;
314 fixed: 1 1;
315 min: 64 24;
316 max: 64 24;
317 rel1.to_x: "insidep0";
318 rel1.to_y: "bar";
319 rel1.relative: 0.0 0.0;
320 rel2.to_x: "insidep1";
321 rel2.to_y: "bar";
322 rel2.relative: 1.0 1.0;
323 image.normal: "inset_bar_horiz_glow_mid_base.png";
324 align: 0.0 0.5;
325 }
326 description { state: "end" 0.0;
327 inherit: "default" 0.0;
328 align: 1.0 0.5;
329 }
330 }
331 part { name: "elm.text.status"; type: TEXT; mouse_events: 0;
332 scale: 1;
333 effect: GLOW;
334 description { state: "default" 0.0;
335 fixed: 1 1;
336 rel1.to: "inside";
337 rel2.to: "inside";
338 color_class: "progress_status";
339 align: 1.0 0.5;
340 text { font: FN; size: 10;
341 min: 0 1;
342 text_class: "progress_status";
343 align: 1.0 0.5;
344 }
345 color: FN_COL_HIGHLIGHT_CLICKED;
346 visible: 1;
347 }
348 description { state: "hidden" 0.0;
349 inherit: "default" 0.0;
350 visible: 0;
351 }
352 }
353 part { name: "pulse2";
354 clip_to: "pulse_clip";
355 scale: 1;
356 description { state: "default" 0.0;
357 fixed: 1 1;
358 min: 36 14;
359 max: 36 14;
360 rel1.to: "pulse";
361 rel2.to: "pulse";
362 image.normal: "inset_bar_horiz_glow_mid_light.png";
363 color: 255 255 255 0;
364 }
365 description { state: "glow" 0.0;
366 inherit: "default" 0.0;
367 color: 255 255 255 255;
368 }
369 }
370 part { name: "light";
371 clip_to: "fract_clip";
372 scale: 1;
373 description { state: "default" 0.0;
374 max: 36 11;
375 rel1.to_x: "bar";
376 rel1.to_y: "bar";
377 rel1.relative: 0.0 (26/96);
378 rel2.to_x: "barend";
379 rel2.to_y: "bar";
380 rel2.relative: 0.2 ((26+44)/96);
381 align: 1.0 0.0;
382 image.normal: "inset_bar_horiz_glow_light.png";
383 image.border: 0 20 0 0;
384 image.border_scale_by: 0.25; image.border_scale: 1;
385 color: 255 255 255 0;
386 }
387 description { state: "inv" 0.0;
388 inherit: "default" 0.0;
389 rel1.to_x: "barend";
390 rel1.to_y: "bar";
391 rel1.relative: 0.8 (26/96);
392 rel2.to_x: "bar";
393 rel2.to_y: "bar";
394 rel2.relative: 1.0 ((26+44)/96);
395 align: 0.0 0.0;
396 image.normal: "inset_bar_horiz_glow_inv_light.png";
397 image.border: 20 0 0 0;
398 }
399 }
400 }
401 programs {
402 program { name: "inverted-on";
403 signal: "elm,state,inverted,on"; source: "elm";
404 action: STATE_SET "inv" 0.0;
405 target: "bar";
406 target: "barend";
407 target: "light";
408 }
409 program { name: "inverted-off";
410 signal: "elm,state,inverted,off"; source: "elm";
411 action: STATE_SET "default" 0.0;
412 target: "bar";
413 target: "barend";
414 target: "light";
415 }
416 program { name: "drag-set";
417 signal: "drag,set"; source: "elm.cur.progressbar";
418 script {
419 new a, Float:dx, Float:dy, Float:vl, st[20];
420
421 get_drag(PART:"elm.cur.progressbar", dx, dy);
422 get_state(PART:"bar", st, 19, vl);
423 if (!strcmp(st, "inv")) {
424 a = round(((1.0 - dx) * 255) / 0.2);
425 custom_state(PART:"light", "inv", 0.0);
426 } else {
427 a = round((dx * 255) / 0.2);
428 custom_state(PART:"light", "default", 0.0);
429 }
430 if (a > 255) { a = 255; }
431 set_state_val(PART:"light", STATE_COLOR, 255, 255, 255, a);
432 set_state(PART:"light", "custom", 0.0);
433 }
434 }
435 program { name: "pulse-mode0";
436 signal: "elm,state,pulse"; source: "elm";
437 action: STATE_SET "hidden" 0.0;
438 target: "elm.text.status";
439 after: "pulse-mode1";
440 }
441 program { name: "pulse-mode1";
442 signal: "elm,state,pulse,start"; source: "elm";
443 action: STATE_SET "pulse" 0.0;
444 target: "fract_clip";
445 }
446 program { name: "pulse-start";
447 signal: "elm,state,pulse,start"; source: "elm";
448 action: STATE_SET "pulse" 0.0;
449 target: "pulse_clip";
450 target: "fract_clip";
451 after: "pulse0";
452 after: "pulse0.1";
453 }
454 program { name: "pulse0.1";
455 action: STATE_SET "glow" 0.0;
456 transition: ACCELERATE 0.4;
457 target: "pulse2";
458 after: "pulse0.2";
459 }
460 program { name: "pulse0.2";
461 action: STATE_SET "default" 0.0;
462 transition: DECELERATE 0.4;
463 target: "pulse2";
464 }
465 program { name: "pulse0";
466 action: STATE_SET "end" 0.0;
467 transition: SINUSOIDAL 0.8;
468 target: "pulse";
469 after: "pulse1";
470 after: "pulse0.1";
471 }
472 program { name: "pulse1";
473 action: STATE_SET "default" 0.0;
474 transition: SINUSOIDAL 0.8;
475 target: "pulse";
476 after: "pulse0";
477 after: "pulse0.1";
478 }
479 program { name: "fraction";
480 signal: "elm,state,fraction"; source: "elm";
481 action: STATE_SET "default" 0.0;
482 target: "elm.text.status";
483 after: "pulse-stop";
484 }
485 program { name: "elmpulse-stop";
486 signal: "elm,state,pulse,stop"; source: "elm";
487 action: ACTION_STOP;
488 target: "pulse0";
489 target: "pulse1";
490 after: "pulse-stop";
491 }
492 program { name: "pulse-stop";
493 action: STATE_SET "default" 0.0;
494 target: "pulse_clip";
495 }
496 program { name: "units-visible";
497 signal: "elm,state,units,visible"; source: "elm";
498 action: STATE_SET "default" 0.0;
499 target: "elm.text.status";
500 }
501 program { name: "units-hidden";
502 signal: "elm,state,units,hidden"; source: "elm";
503 action: STATE_SET "hidden" 0.0;
504 target: "elm.text.status";
505 }
506 program { name: "text-visible";
507 signal: "elm,state,elm.text,set"; source: "elm";
508 script {
509 new m = get_int(slmode);
510 m |= LABEL; set_int(slmode, m);
511 eval_mode(m);
512 }
513 }
514 program { name: "text-hidden";
515 signal: "elm,state,elm.text,unset"; source: "elm";
516 script {
517 new m = get_int(slmode);
518 m &= ~LABEL; set_int(slmode, m);
519 eval_mode(m);
520 }
521 }
522 program { name: "icon-visible";
523 signal: "elm,state,content,set"; source: "elm";
524 script {
525 new m = get_int(slmode);
526 m |= ICON; set_int(slmode, m);
527 eval_mode(m);
528 }
529 }
530 program { name: "icon-hidden";
531 signal: "elm,state,content,unset"; source: "elm";
532 script {
533 new m = get_int(slmode);
534 m &= ~ICON; set_int(slmode, m);
535 eval_mode(m);
536 }
537 }
538 program { name: "state-disabled";
539 signal: "elm,state,disabled"; source: "elm";
540 script {
541 new m = get_int(slmode);
542 m |= DISABLE; set_int(slmode, m);