summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorCarsten Haitzler <raster@rasterman.com>2005-10-12 23:00:45 +0000
committerCarsten Haitzler <raster@rasterman.com>2005-10-12 23:00:45 +0000
commitde97fd5db9295d5ecaa50e75c73c50ad67139b6f (patch)
treef573e8ce03251636bc3a953adde372033d155d74 /data
parent0465570086f6821877f32a4f84e65bca42194f99 (diff)
actually focus focusable widgets. label can be much simpler
SVN revision: 17470
Diffstat (limited to 'data')
-rw-r--r--data/themes/default_label.edc84
1 files changed, 0 insertions, 84 deletions
diff --git a/data/themes/default_label.edc b/data/themes/default_label.edc
index 5e5518144..cb8f33cb0 100644
--- a/data/themes/default_label.edc
+++ b/data/themes/default_label.edc
@@ -31,89 +31,5 @@ group {
31 } 31 }
32 } 32 }
33 } 33 }
34 part {
35 name: "event";
36 type: RECT;
37 description {
38 state: "default" 0.0;
39 color: 0 0 0 0;
40 }
41 }
42 part {
43 name: "focus";
44 mouse_events: 0;
45 description {
46 state: "default" 0.0;
47 visible: 0;
48 color: 255 255 255 0;
49 image {
50 normal: "focus.png";
51 border: 7 7 7 7;
52 middle: 0;
53 }
54 fill {
55 smooth: 0;
56 }
57 }
58 description {
59 state: "focused" 0.0;
60 inherit: "default" 0.0;
61 visible: 1;
62 color: 255 255 255 255;
63 }
64 }
65 }
66 programs {
67/*
68 program {
69 name: "turn_on1";
70 signal: "toggle_on";
71 source: "";
72 action: STATE_SET "active" 0.0;
73 target: "item1";
74 }
75 program {
76 name: "turn_off1";
77 signal: "toggle_off";
78 source: "";
79 action: STATE_SET "default" 0.0;
80 target: "item1";
81 }
82 program {
83 name: "click";
84 signal: "mouse,down,1";
85 source: "event";
86 script {
87 new buf[100];
88 new Float:val;
89
90 get_state(PART:"item1", buf, sizeof(buf), val);
91 if (!strcmp(buf, "default")) {
92 set_state(PART:"item1", "active", 0.0);
93 emit("toggled", "on");
94 }
95 else {
96 set_state(PART:"item1", "default", 0.0);
97 emit("toggled", "off");
98 }
99 }
100 }
101 */
102 program {
103 name: "focus_in";
104 signal: "focus_in";
105 source: "";
106 action: STATE_SET "focused" 0.0;
107 transition: DECELERATE 0.2;
108 target: "focus";
109 }
110 program {
111 name: "focus_out";
112 signal: "focus_out";
113 source: "";
114 action: STATE_SET "default" 0.0;
115 transition: ACCELERATE 0.5;
116 target: "focus";
117 }
118 } 34 }
119} 35}