summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Atton <jonathan.atton@gmail.com>2011-02-09 16:30:36 +0000
committerJonathan Atton <jonathan.atton@gmail.com>2011-02-09 16:30:36 +0000
commitfb3f351534e06c45b03c6336d34b2f80eb5e95a4 (patch)
treead01d259e8494c84c0e64c4b7eec32d86b8458bf
parent7cdd37fa74abc8215b48fb25e7670f50c700f3e5 (diff)
detour-elm: add entry and improve some widgets
SVN revision: 56847
-rw-r--r--Makefile2
-rw-r--r--entry_text.edc644
-rw-r--r--images.edc6
-rw-r--r--images/entry_im0.pngbin0 -> 633 bytes
-rw-r--r--images/entry_im1.pngbin0 -> 507 bytes
-rw-r--r--images/shelf_def_im0.pngbin343 -> 274 bytes
-rw-r--r--images/win_background.pngbin194 -> 321 bytes
-rw-r--r--main.edc165
8 files changed, 796 insertions, 21 deletions
diff --git a/Makefile b/Makefile
index da9828e..0c879c8 100644
--- a/Makefile
+++ b/Makefile
@@ -7,7 +7,7 @@ HEAD = /usr/bin/head
7RM = /bin/rm -f 7RM = /bin/rm -f
8TAIL = /usr/bin/tail 8TAIL = /usr/bin/tail
9COMPILE = $(CC) $(EDJE_CC_FLAGS) 9COMPILE = $(CC) $(EDJE_CC_FLAGS)
10SRC = main.edc 10SRC = main.edc entry_text.edc
11OUT = detour-elm.edj 11OUT = detour-elm.edj
12PATH_INSTALL = $(HOME)/.elementary/themes 12PATH_INSTALL = $(HOME)/.elementary/themes
13 13
diff --git a/entry_text.edc b/entry_text.edc
new file mode 100644
index 0000000..b3d0d5d
--- /dev/null
+++ b/entry_text.edc
@@ -0,0 +1,644 @@
1
2 group { name: "elm/entry/base/default";
3 styles
4 {
5 style { name: "entry_textblock_style";
6 base: "font=DejaVuSans font_size=11 color=#000 wrap=word text_class=entry";
7 tag: "br" "\n";
8 tag: "ps" "ps";
9 tag: "tab" "\t";
10 tag: "em" "+ font=DejaVuSans-Bold";
11 tag: "b" "+ font=DejaVuSans-Bold";
12 tag: "link" "+ color=#800 underline=on underline_color=#8008";
13 tag: "hilight" "+ font=Sans-Bold";
14 }
15 style { name: "entry_textblock_disabled_style";
16 base: "font=DejaVuSans font_size=11 color=#00000080 wrap=word text_class=entry";
17 tag: "br" "\n";
18 tag: "ps" "ps";
19 tag: "tab" "\t";
20 tag: "em" "+ font=DejaVuSans-Bold";
21 tag: "b" "+ font=DejaVuSans-Bold";
22 tag: "link" "+ color=#00000080 underline=on underline_color=#00000080";
23 tag: "hilight" "+ font=Sans-Bold";
24 }
25 }
26 parts {
27 part { name: "elm.text";
28 type: TEXTBLOCK;
29 mouse_events: 1;
30 scale: 1;
31 entry_mode: EDITABLE;
32 select_mode: EXPLICIT;
33 multiline: 1;
34 source: "elm/entry/selection/default"; // selection under
35 source4: "elm/entry/cursor/default"; // cursorover
36 source5: "elm/entry/anchor/default"; // anchor under
37 description { state: "default" 0.0;
38 fixed: 0 0;
39 text {
40 style: "entry_textblock_style";
41 min: 0 1;
42 }
43 }
44 description { state: "disabled" 0.0;
45 inherit: "default" 0.0;
46 text {
47 style: "entry_textblock_disabled_style";
48 min: 0 1;
49 }
50 }
51 }
52 }
53 programs {
54 program { name: "focus";
55 signal: "load";
56 source: "";
57 action: FOCUS_SET;
58 target: "elm.text";
59 }
60 program { name: "disable";
61 signal: "elm,state,disabled";
62 source: "elm";
63 action: STATE_SET "disabled" 0.0;
64 target: "elm.text";
65 }
66 program { name: "enable";
67 signal: "elm,state,enabled";
68 source: "elm";
69 action: STATE_SET "default" 0.0;
70 target: "elm.text";
71 }
72 }
73 }
74
75
76 group { name: "elm/entry/base-charwrap/default";
77 styles
78 {
79 style { name: "entry_textblock_style_charwrap";
80 base: "font=DejaVuSans font_size=11 color=#000 wrap=char text_class=entry";
81 tag: "br" "\n";
82 tag: "ps" "ps";
83 tag: "tab" "\t";
84 tag: "em" "+ font=DejaVuSans-Bold";
85 tag: "b" "+ font=DejaVuSans-Bold";
86 tag: "link" "+ color=#800 underline=on underline_color=#8008";
87 tag: "hilight" "+ font=DejaVuSans-Bold";
88 }
89 style { name: "entry_textblock_disabled_style_charwrap";
90 base: "font=DejaVuSans font_size=11 color=#00000080 wrap=char text_class=entry";
91 tag: "br" "\n";
92 tag: "ps" "ps";
93 tag: "tab" "\t";
94 tag: "em" "+ font=DejaVuSans-Bold";
95 tag: "b" "+ font=DejaVuSans-Bold";
96 tag: "link" "+ color=#00000080 underline=on underline_color=#00000080";
97 tag: "hilight" "+ font=DejaVuSans-Bold";
98 }
99 }
100 parts {
101 part { name: "elm.text";
102 type: TEXTBLOCK;
103 mouse_events: 1;
104 scale: 1;
105 entry_mode: EDITABLE;
106 select_mode: EXPLICIT;
107 multiline: 1;
108 source: "elm/entry/selection/default"; // selection under
109// source2: "X"; // selection over
110// source3: "X"; // cursor under
111 source4: "elm/entry/cursor/default"; // cursorover
112 source5: "elm/entry/anchor/default"; // anchor under
113// source6: "X"; // anchor over
114 description { state: "default" 0.0;
115 fixed: 1 0;
116 text {
117 style: "entry_textblock_style_charwrap";
118 min: 0 1;
119 }
120 }
121 description { state: "disabled" 0.0;
122 inherit: "default" 0.0;
123 text {
124 style: "entry_textblock_disabled_style_charwrap";
125 min: 0 1;
126 }
127 }
128 }
129 }
130 programs {
131 program { name: "focus";
132 signal: "load";
133 source: "";
134 action: FOCUS_SET;
135 target: "elm.text";
136 }
137 program { name: "disable";
138 signal: "elm,state,disabled";
139 source: "elm";
140 action: STATE_SET "disabled" 0.0;
141 target: "elm.text";
142 }
143 program { name: "enable";
144 signal: "elm,state,enabled";
145 source: "elm";
146 action: STATE_SET "default" 0.0;
147 target: "elm.text";
148 }
149 }
150 }
151
152 group { name: "elm/entry/base-nowrap/default";
153 parts {
154 part { name: "elm.text";
155 type: TEXTBLOCK;
156 mouse_events: 1;
157 scale: 1;
158 entry_mode: EDITABLE;
159 select_mode: EXPLICIT;
160 multiline: 1;
161 source: "elm/entry/selection/default"; // selection under
162 source4: "elm/entry/cursor/default"; // cursorover
163 source5: "elm/entry/anchor/default"; // anchor under
164 description { state: "default" 0.0;
165 text {
166 style: "entry_textblock_style";
167 min: 1 1;
168 }
169 }
170 description { state: "disabled" 0.0;
171 inherit: "default" 0.0;
172 text {
173 style: "entry_textblock_disabled_style";
174 min: 0 1;
175 }
176 }
177 }
178/*
179 part { name: "sel";
180 type: RECT;
181 mouse_events: 0;
182 description { state: "default" 0.0;
183 align: 1.0 1.0;
184 max: 16 16;
185 aspect: 1.0 1.0;
186 color: 255 0 0 0;
187 }
188 description { state: "visible" 0.0;
189 inherit: "default" 0.0;
190 color: 255 0 0 50;
191 }
192 }
193 */
194 }
195 programs {
196 program { name: "focus";
197 signal: "load";
198 source: "";
199 action: FOCUS_SET;
200 target: "elm.text";
201 }
202 program { name: "disable";
203 signal: "elm,state,disabled";
204 source: "elm";
205 action: STATE_SET "disabled" 0.0;
206 target: "elm.text";
207 }
208 program { name: "enable";
209 signal: "elm,state,enabled";
210 source: "elm";
211 action: STATE_SET "default" 0.0;
212 target: "elm.text";
213 }
214/*
215 program { name: "selmode0";
216 signal: "elm,state,select,on";
217 source: "elm";
218 action: STATE_SET "visible" 0.0;
219 target: "sel";
220 }
221 program { name: "selmode1";
222 signal: "elm,state,select,off";
223 source: "elm";
224 action: STATE_SET "default" 0.0;
225 target: "sel";
226 }
227 */
228 }
229 }
230
231 group { name: "elm/entry/base-single/default";
232 styles
233 {
234 style { name: "entry_single_textblock_style";
235 base: "font=DejaVuSans font_size=11 color=#000 wrap=none text_class=entry";
236 tag: "br" "\n";
237 tag: "ps" "ps";
238 tag: "tab" "\t";
239 tag: "em" "+ font=DejaVuSans-Bold";
240 tag: "b" "+ font=DejaVuSans-Bold";
241 tag: "link" "+ color=#800 underline=on underline_color=#8008";
242 tag: "hilight" "+ font=DejaVuSans-Bold";
243 }
244 style { name: "entry_single_textblock_disabled_style";
245 base: "font=DejaVuSans font_size=11 color=#00000080 wrap=none text_class=entry";
246 tag: "br" "\n";
247 tag: "ps" "ps";
248 tag: "tab" "\t";
249 tag: "em" "+ font=DejaVuSans-Bold";
250 tag: "b" "+ font=DejaVuSans-Bold";
251 tag: "link" "+ color=#00000080 underline=on underline_color=#00000080";
252 tag: "hilight" "+ font=DejaVuSans-Bold";
253 }
254 }
255 parts {
256 part { name: "elm.text";
257 type: TEXTBLOCK;
258 mouse_events: 1;
259 scale: 1;
260 entry_mode: EDITABLE;
261 select_mode: EXPLICIT;
262 multiline: 0;
263 source: "elm/entry/selection/default"; // selection under
264 source4: "elm/entry/cursor/default"; // cursorover
265 source5: "elm/entry/anchor/default"; // anchor under
266 description { state: "default" 0.0;
267 text {
268 style: "entry_single_textblock_style";
269 min: 1 1;
270 max: 0 1;
271 }
272 }
273 description { state: "disabled" 0.0;
274 inherit: "default" 0.0;
275 text {
276 style: "entry_single_textblock_disabled_style";
277 }
278 }
279 }
280 }
281 programs {
282 program { name: "focus";
283 signal: "load";
284 source: "";
285 action: FOCUS_SET;
286 target: "elm.text";
287 }
288 program { name: "disable";
289 signal: "elm,state,disabled";
290 source: "elm";
291 action: STATE_SET "disabled" 0.0;
292 target: "elm.text";
293 }
294 program { name: "enable";
295 signal: "elm,state,enabled";
296 source: "elm";
297 action: STATE_SET "default" 0.0;
298 target: "elm.text";
299 }
300 }
301 }
302
303 group { name: "elm/entry/base-single-noedit/default";
304 parts {
305 part { name: "elm.text";
306 type: TEXTBLOCK;
307 mouse_events: 1;
308 scale: 1;
309 entry_mode: PLAIN;
310 select_mode: EXPLICIT;
311 multiline: 0;
312 source: "elm/entry/selection/default"; // selection under
313 source5: "elm/entry/anchor/default"; // anchor under
314 description { state: "default" 0.0;
315 text {
316 style: "entry_single_textblock_style";
317 min: 1 1;
318 max: 0 1;
319 }
320 }
321 description { state: "disabled" 0.0;
322 inherit: "default" 0.0;
323 text {
324 style: "entry_single_textblock_disabled_style";
325 }
326 }
327 }
328 }
329 programs {
330 program { name: "focus";
331 signal: "load";
332 source: "";
333 action: FOCUS_SET;
334 target: "elm.text";
335 }
336 program { name: "disable";
337 signal: "elm,state,disabled";
338 source: "elm";
339 action: STATE_SET "disabled" 0.0;
340 target: "elm.text";
341 }
342 program { name: "enable";
343 signal: "elm,state,enabled";
344 source: "elm";
345 action: STATE_SET "default" 0.0;
346 target: "elm.text";
347 }
348 }
349 }
350
351 group { name: "elm/entry/base-noedit/default";
352 parts {
353 part { name: "elm.text";
354 type: TEXTBLOCK;
355 mouse_events: 1;
356 scale: 1;
357 entry_mode: PLAIN;
358 select_mode: EXPLICIT;
359 multiline: 1;
360 source: "elm/entry/selection/default"; // selection under
361 source5: "elm/entry/anchor/default"; // anchor under
362 description { state: "default" 0.0;
363 fixed: 1 0;
364 text {
365 style: "entry_textblock_style";
366 min: 0 1;
367 }
368 }
369 description { state: "disabled" 0.0;
370 inherit: "default" 0.0;
371 text {
372 style: "entry_textblock_disabled_style";
373 }
374 }
375 }
376 }
377 programs {
378 program { name: "focus";
379 signal: "load";
380 source: "";
381 action: FOCUS_SET;
382 target: "elm.text";
383 }
384 program { name: "disable";
385 signal: "elm,state,disabled";
386 source: "elm";
387 action: STATE_SET "disabled" 0.0;
388 target: "elm.text";
389 }
390 program { name: "enable";
391 signal: "elm,state,enabled";
392 source: "elm";
393 action: STATE_SET "default" 0.0;
394 target: "elm.text";
395 }
396 }
397 }
398
399 group { name: "elm/entry/base-noedit-charwrap/default";
400 parts {
401 part { name: "elm.text";
402 type: TEXTBLOCK;
403 mouse_events: 1;
404 scale: 1;
405 entry_mode: PLAIN;
406 select_mode: EXPLICIT;
407
408 multiline: 1;
409 source: "elm/entry/selection/default"; // selection under
410 source5: "elm/entry/anchor/default"; // anchor under
411 description { state: "default" 0.0;
412 fixed: 1 0;
413 text {
414 style: "entry_textblock_style_charwrap";
415 min: 0 1;
416 }
417 }
418 description { state: "disabled" 0.0;
419 inherit: "default" 0.0;
420 text {
421 style: "entry_textblock_disabled_style_charwrap";
422 }
423 }
424 }
425 }
426 programs {
427 program { name: "focus";
428 signal: "load";
429 source: "";
430 action: FOCUS_SET;
431 target: "elm.text";
432 }
433 program { name: "disable";
434 signal: "elm,state,disabled";
435 source: "elm";
436 action: STATE_SET "disabled" 0.0;
437 target: "elm.text";
438 }
439 program { name: "enable";
440 signal: "elm,state,enabled";
441 source: "elm";
442 action: STATE_SET "default" 0.0;
443 target: "elm.text";
444 }
445 }
446 }
447
448 group { name: "elm/entry/base-nowrap-noedit/default";
449 parts {
450 part { name: "elm.text";
451 type: TEXTBLOCK;
452 mouse_events: 1;
453 scale: 1;
454 entry_mode: PLAIN;
455 select_mode: EXPLICIT;
456 multiline: 1;
457 source: "elm/entry/selection/default"; // selection under
458 source5: "elm/entry/anchor/default"; // anchor under
459 description { state: "default" 0.0;
460 text {
461 style: "entry_textblock_style";
462 min: 1 1;
463 }
464 }
465 description { state: "disabled" 0.0;
466 inherit: "default" 0.0;
467 text {
468 style: "entry_textblock_disabled_style";
469 }
470 }
471 }
472 }
473 programs {
474 program { name: "focus";
475 signal: "load";
476 source: "";
477 action: FOCUS_SET;
478 target: "elm.text";
479 }
480 program { name: "disable";
481 signal: "elm,state,disabled";
482 source: "elm";
483 action: STATE_SET "disabled" 0.0;
484 target: "elm.text";
485 }
486 program { name: "enable";
487 signal: "elm,state,enabled";
488 source: "elm";
489 action: STATE_SET "default" 0.0;
490 target: "elm.text";
491 }
492 }
493 }
494
495 group { name: "elm/entry/base-password/default";
496 parts {
497 part { name: "elm.text";
498 type: TEXTBLOCK;
499 mouse_events: 1;
500 scale: 1;
501 entry_mode: PASSWORD;
502 select_mode: EXPLICIT;
503 multiline: 0;
504 source: "elm/entry/selection/default"; // selection under
505 source4: "elm/entry/cursor/default"; // cursorover
506 source5: "elm/entry/anchor/default"; // anchor under
507 description { state: "default" 0.0;
508 text {
509 style: "entry_single_textblock_style";
510 repch: "*";
511 min: 1 1;
512 max: 0 1;
513 }
514 }
515 description { state: "disabled" 0.0;
516 inherit: "default" 0.0;
517 text {
518 style: "entry_single_textblock_disabled_style";
519 }
520 }
521 }
522 }
523 programs {
524 program { name: "focus";
525 signal: "load";
526 source: "";
527 action: FOCUS_SET;
528 target: "elm.text";
529 }
530 program { name: "disable";
531 signal: "elm,state,disabled";
532 source: "elm";
533 action: STATE_SET "disabled" 0.0;
534 target: "elm.text";
535 }
536 program { name: "enable";
537 signal: "elm,state,enabled";
538 source: "elm";
539 action: STATE_SET "default" 0.0;
540 target: "elm.text";
541 }
542 }
543 }
544
545 group { name: "elm/entry/cursor/default";
546 parts {
547 part {
548 name: "cursor";
549 type: RECT;
550
551 description {
552 state: "default" 0.0;
553 color: 60 60 60 255;
554 visible: 0;
555 }
556
557 description {
558 state: "visible" 0.0;
559 inherit: "default" 0.0;
560 visible: 1;
561 min: 2 2;
562 align: 0.5 1.0;
563 rel1.relative: 0.0 1.0;
564 rel1.offset: 0 -1;
565 rel2.relative: 1.0 1.0;
566 rel2.offset: -1 -1;
567 }
568 }
569 }
570 programs {
571 program {
572 name: "cursor_show";
573 action: STATE_SET "visible" 0.0;
574 target: "cursor";
575 after: "cursor_show_timer";
576 }
577
578 program {
579 name: "cursor_hide";
580 action: STATE_SET "default" 0.0;
581 target: "cursor";
582 after: "cursor_hide_timer";
583 }
584
585 program {
586 name: "cursor_show_timer";
587 in: 1.0 0.0;
588 after: "cursor_hide";
589 }
590
591 program {
592 name: "cursor_hide_timer";
593 in: 0.25 0.0;
594 after: "cursor_show";
595 }
596 program { name: "focused";
597 signal: "elm,action,focus";
598 source: "elm";
599 after: "cursor_show";
600 }
601 program { name: "unfocused";
602 signal: "elm,action,unfocus";
603 source: "elm";
604 action: ACTION_STOP;
605 target: "cursor_show";
606 target: "cursor_hide";
607 target: "cursor_show_timer";
608 target: "cursor_hide_timer";
609 after: "cursor_hide_def";
610 }
611 program {
612 name: "cursor_hide_def";
613 action: STATE_SET "default" 0.0;
614 target: "cursor";
615 }
616
617 }
618 }
619
620 group { name: "elm/entry/selection/default";
621 parts {
622 part { name: "bg";
623 type: RECT;
624 mouse_events: 0;
625 description { state: "default" 0.0;
626 color: 128 128 128 128;
627 }
628 }
629 }
630 }
631
632 group { name: "elm/entry/anchor/default";
633 parts {
634 part { name: "bg";
635 type: RECT;
636 mouse_events: 0;
637 description { state: "default" 0.0;
638 color: 128 0 0 64;
639 }
640 }
641 }
642 }
643
644
diff --git a/images.edc b/images.edc
index 8481f93..b06b78c 100644
--- a/images.edc
+++ b/images.edc
@@ -14,6 +14,11 @@ image: "images/progress_trough.png" COMP;
14//~ Window 14//~ Window
15image: "images/win_background.png" COMP; /* background */ 15image: "images/win_background.png" COMP; /* background */
16 16
17//~ entry
18image: "images/entry_im0.png" COMP; /* base */
19image: "images/entry_im1.png" COMP; /* focus */
20
21
17//~ button 22//~ button
18image: "images/button_im0.png" COMP; /* base */ 23image: "images/button_im0.png" COMP; /* base */
19image: "images/button_im1.png" COMP; /* enabled */ 24image: "images/button_im1.png" COMP; /* enabled */
@@ -42,6 +47,7 @@ image: "images/arrow_down.png" COMP; /* down arrow */
42 47
43//~ scrollframe 48//~ scrollframe
44image: "images/scrollframe_im1.png" COMP; /* inset */ 49image: "images/scrollframe_im1.png" COMP; /* inset */
50image: "images/scrollframe_im2.png" COMP; /* focus */
45image: "images/scrollframe-bar_im0.png" COMP; /* vertical bar */ 51image: "images/scrollframe-bar_im0.png" COMP; /* vertical bar */
46image: "images/scrollframe-bar_im1.png" COMP; /* vertical bar */ 52image: "images/scrollframe-bar_im1.png" COMP; /* vertical bar */
47image: "images/scrollframe-bar_im2.png" COMP; /* vertical bar */ 53image: "images/scrollframe-bar_im2.png" COMP; /* vertical bar */
diff --git a/images/entry_im0.png b/images/entry_im0.png
new file mode 100644
index 0000000..328888d
--- /dev/null
+++ b/images/entry_im0.png
Binary files differ
diff --git a/images/entry_im1.png b/images/entry_im1.png
new file mode 100644
index 0000000..a9d060f
--- /dev/null
+++ b/images/entry_im1.png
Binary files differ
diff --git a/images/shelf_def_im0.png b/images/shelf_def_im0.png
index 0106971..5c5a196 100644
--- a/images/shelf_def_im0.png
+++ b/images/shelf_def_im0.png
Binary files differ
diff --git a/images/win_background.png b/images/win_background.png
index 0c977f8..62447ee 100644
--- a/images/win_background.png
+++ b/images/win_background.png
Binary files differ
diff --git a/main.edc b/main.edc
index 57f149c..420a609 100644
--- a/main.edc
+++ b/main.edc
@@ -34,6 +34,7 @@ styles
34 34
35 35
36collections { 36collections {
37#include "entry_text.edc"
37 /////////////////////////////////////////////////////////////////////////////// 38 ///////////////////////////////////////////////////////////////////////////////
38 group { 39 group {
39 name: "elm/bg/base/default"; 40 name: "elm/bg/base/default";
@@ -44,18 +45,11 @@ collections {
44 image.normal: "images/win_background.png"; 45 image.normal: "images/win_background.png";
45 } 46 }
46 } 47 }
47 part { 48 part { name: "base2";
48 name: "popover"; 49 type: RECT;
49 mouse_events: 0; 50 mouse_events: 0;
50 description { 51 description { state: "default" 0.0;
51 state: "default" 0.0; 52 color: 0 0 0 100;
52 rel1.offset: -20 -20;
53 rel2.relative: 1.0 0.5;
54 rel2.offset: 20 0;
55 image {
56 normal: "images/button_im4.png";
57 border: 4 4 4 0;
58 }
59 } 53 }
60 } 54 }
61 part { name: "elm.swallow.background"; 55 part { name: "elm.swallow.background";
@@ -142,6 +136,22 @@ collections {
142 fill.smooth : 0; 136 fill.smooth : 0;
143 } 137 }
144 } 138 }
139 part { name: "focus";
140 mouse_events: 0;
141 description { state: "default" 0.0;
142 rel1.offset: 0 0;
143 rel2.offset: -1 -1;
144 image {
145 normal: "images/scrollframe_im2.png";
146 border: 7 7 7 7;
147 }
148 color: 255 255 255 0;
149 }
150 description { state: "visible" 0.0;
151 inherit: "default" 0.0;
152 color: 255 255 255 255;
153 }
154 }
145 part { name: "sb_vbar_clip_master"; 155 part { name: "sb_vbar_clip_master";
146 type: RECT; 156 type: RECT;
147 mouse_events: 0; 157 mouse_events: 0;
@@ -362,7 +372,22 @@ collections {
362 set_int(sbvis_timer, 0); 372 set_int(sbvis_timer, 0);
363 } 373 }
364 } 374 }
365 375 program {
376 name: "focused";
377 signal: "elm,action,focus";
378 source: "elm";
379 action: STATE_SET "visible" 0.0;
380 transition: DECELERATE 0.5;
381 target: "focus";
382 }
383 program {
384 name: "unfocused";
385 signal: "elm,action,unfocus";
386 source: "elm";
387 action: STATE_SET "default" 0.0;
388 transition: DECELERATE 0.5;
389 target: "focus";
390 }
366 program { name: "vbar_show"; 391 program { name: "vbar_show";
367 signal: "elm,action,show,vbar"; 392 signal: "elm,action,show,vbar";
368 source: "elm"; 393 source: "elm";
@@ -500,20 +525,119 @@ collections {
500 set_int(sbvis_timer, v); 525 set_int(sbvis_timer, v);
501 } 526 }
502 } 527 }
528
529
503 } 530 }
504 } 531 }
532 group {
533 name: "elm/scroller/entry/default";
534 script {
535 public sbvis_v, sbvis_h, sbalways_v, sbalways_h, sbvis_timer;
536 public timer0(val) {
537 new v;
538 v = get_int(sbvis_v);
539 if (v) {
540 v = get_int(sbalways_v);
541 if (!v) {
542 emit("do-hide-vbar", "");
543 set_int(sbvis_v, 0);
544 }
545 }
546 v = get_int(sbvis_h);
547 if (v) {
548 v = get_int(sbalways_h);
549 if (!v) {
550 emit("do-hide-hbar", "");
551 set_int(sbvis_h, 0);
552 }
553 }
554 set_int(sbvis_timer, 0);
555 return 0;
556 }
557 }
558 parts {
559 part { name: "clipper";
560 type: RECT;
561 mouse_events: 0;
562 description { state: "default" 0.0;
563 rel1.offset: 10 5;
564 rel2.offset: -11 -6;
565 }
566 }
567 part { name: "base";
568 mouse_events: 0;
569 description { state: "default" 0.0;
570 rel1.offset: 0 0;
571 rel2.offset: -1 -1;
572 image {
573 normal: "images/entry_im0.png";
574 border: 5 5 5 5;
575 middle: 1;
576 }
577 fill.smooth : 0;
578 }
579 }
580 part { name: "elm.swallow.content";
581 clip_to: "clipper";
582 type: SWALLOW;
583 description { state: "default" 0.0;
584 rel1.offset: 10 5;
585 rel2.offset: -11 -6;
586 }
587 }
588 }
589 programs {
590 program { name: "load";
591 signal: "load";
592 source: "";
593 script {
594 set_int(sbvis_h, 0);
595 set_int(sbvis_v, 0);
596 set_int(sbalways_v, 0);
597 set_int(sbalways_h, 0);
598 set_int(sbvis_timer, 0);
599 }
600 }
601
602 program { name: "scroll";
603 signal: "elm,action,scroll";
604 source: "elm";
605 script {
606 new v;
607 v = get_int(sbvis_v);
608 v |= get_int(sbalways_v);
609 if (!v) {
610 emit("do-show-vbar", "");
611 set_int(sbvis_v, 1);
612 }
613 v = get_int(sbvis_h);
614 v |= get_int(sbalways_h);
615 if (!v) {
616 emit("do-show-hbar", "");
617 set_int(sbvis_h, 1);
618 }
619 v = get_int(sbvis_timer);
620 if (v > 0) cancel_timer(v);
621 v = timer(2.0, "timer0", 0);
622 set_int(sbvis_timer, v);
623 }
624 }
625 }
626 }
627
505 /////////////////////////////////////////////////////////////////////////////// 628 ///////////////////////////////////////////////////////////////////////////////
506 group { 629 group {
507 name: "elm/label/base/default"; 630 name: "elm/label/base/default";
508 styles 631 styles
509 { 632 {
510 style { name: "textblock_style"; 633 style { name: "textblock_style";
511 base: "font=DejaVuSans.ttf font_size=10 align=left color=#000 wrap=word"; 634 base: "font=DejaVuSans font_size=10 align=left color=#000 wrap=word";
512 635
513 tag: "br" "\n"; 636 tag: "br" "\n";
514 tag: "hilight" "+ font=DejaVuSans-Bold.ttf"; 637 tag: "hilight" "+ font=DejaVuSans-Bold";
515 tag: "b" "+ font=DejaVuSans-Bold.ttf"; 638 tag: "b" "+ font=DejaVuSans-Bold";
516 tag: "tab" "\t"; 639 tag: "tab" "\t";
640 tag: "title" "+ font_size=12 font=DejaVuSans-Bold";
517 } 641 }
518 } 642 }
519 parts { 643 parts {
@@ -561,7 +685,7 @@ collections {
561 mouse_events: 0; 685 mouse_events: 0;
562 description { 686 description {
563 state: "default" 0.0; 687 state: "default" 0.0;
564 min: 50 26; 688 min: 32 32;
565 rel1 { 689 rel1 {
566 offset: 3 4; 690 offset: 3 4;
567 } 691 }
@@ -1013,7 +1137,7 @@ collections {
1013 mouse_events: 0; 1137 mouse_events: 0;
1014 description { 1138 description {
1015 state: "default" 0.0; 1139 state: "default" 0.0;
1016 min: 50 26; 1140 min: 26 26;
1017 rel1 { 1141 rel1 {
1018 offset: 3 4; 1142 offset: 3 4;
1019 } 1143 }
@@ -2159,7 +2283,7 @@ collections {
2159 offset: -5 -1; 2283 offset: -5 -1;
2160 } 2284 }
2161 text { 2285 text {
2162 text: "Frame Label"; 2286 text: "";
2163 font: "DejaVuSans-Bold"; 2287 font: "DejaVuSans-Bold";
2164 size: 11; 2288 size: 11;
2165 min: 1 1; 2289 min: 1 1;
@@ -3600,6 +3724,7 @@ collections {
3600 name: "left_arrow"; 3724 name: "left_arrow";
3601 type: IMAGE; 3725 type: IMAGE;
3602 mouse_events: 1; 3726 mouse_events: 1;
3727 repeat_events: 1;
3603 description { 3728 description {
3604 state: "default" 0.0; 3729 state: "default" 0.0;
3605 min: 22 22; 3730 min: 22 22;
@@ -3623,6 +3748,7 @@ collections {
3623 name: "right_arrow"; 3748 name: "right_arrow";
3624 type: IMAGE; 3749 type: IMAGE;
3625 mouse_events: 1; 3750 mouse_events: 1;
3751 repeat_events: 1;
3626 description { 3752 description {
3627 state: "default" 0.0; 3753 state: "default" 0.0;
3628 min: 22 22; 3754 min: 22 22;
@@ -6912,6 +7038,5 @@ collections {
6912 } 7038 }
6913 } 7039 }
6914 } 7040 }
6915
6916} 7041}
6917 7042