summaryrefslogtreecommitdiff
path: root/legacy/elementary
diff options
context:
space:
mode:
authorChristopher Michael <cpmichael1@comcast.net>2012-02-10 08:10:43 +0000
committerChristopher Michael <cpmichael1@comcast.net>2012-02-10 08:10:43 +0000
commitacc534e6e22841617eb2778289d11a622ec910c5 (patch)
treeb576e9e3a25dcd784db93ed6bf104ce5a1d59926 /legacy/elementary
parente7e893e184c7ffa33566ff870e191d59ddec8cf9 (diff)
Elm: Add pointer edc for mouse_pointers of elm wayland client apps.
SVN revision: 67812
Diffstat (limited to 'legacy/elementary')
-rw-r--r--legacy/elementary/data/themes/default.edc2
-rw-r--r--legacy/elementary/data/themes/widgets/pointer.edc189
2 files changed, 190 insertions, 1 deletions
diff --git a/legacy/elementary/data/themes/default.edc b/legacy/elementary/data/themes/default.edc
index 09361baeea..afc0c90bf9 100644
--- a/legacy/elementary/data/themes/default.edc
+++ b/legacy/elementary/data/themes/default.edc
@@ -367,5 +367,5 @@ collections {
367#include "widgets/naviframe.edc" 367#include "widgets/naviframe.edc"
368#include "widgets/multibuttonentry.edc" 368#include "widgets/multibuttonentry.edc"
369#include "ews.edc" 369#include "ews.edc"
370 370#include "widgets/pointer.edc"
371} 371}
diff --git a/legacy/elementary/data/themes/widgets/pointer.edc b/legacy/elementary/data/themes/widgets/pointer.edc
new file mode 100644
index 0000000000..5a047482b9
--- /dev/null
+++ b/legacy/elementary/data/themes/widgets/pointer.edc
@@ -0,0 +1,189 @@
1 group {
2 name: "elm/pointer/base/default";
3 images {
4 image: "pointer.png" COMP;
5 image: "pointer_glow.png" COMP;
6 image: "pointer_glint_01.png" COMP;
7 image: "pointer_glint_02.png" COMP;
8 image: "pointer_glint_03.png" COMP;
9 image: "pointer_glint_04.png" COMP;
10 image: "pointer_glint_05.png" COMP;
11 image: "pointer_glint_06.png" COMP;
12 image: "pointer_glint_07.png" COMP;
13 image: "pointer_glint_08.png" COMP;
14 image: "pointer_glint_09.png" COMP;
15 image: "pointer_glint_10.png" COMP;
16 image: "pointer_glint_11.png" COMP;
17 image: "pointer_glint_12.png" COMP;
18 }
19 parts {
20 part {
21 name: "base";
22 mouse_events: 0;
23 description {
24 state: "default" 0.0;
25 aspect: 0.71875 0.71875;
26 /* force a specific aspect ratio so
27 * when it gets scaled it wont squash
28 * or stretch */
29 aspect_preference: BOTH;
30 /* both axes control aspect - thus it
31 * will be WITHIN the bounds the axes
32 * of thre part describe */
33 image {
34 normal: "pointer.png";
35 }
36 }
37 }
38 part {
39 name: "glow";
40 /* this overlay is used to put a white glow
41 * around the pointer, so when the pointer is
42 * idle every now and again it will pulsate
43 * with this glow to just remind you where the
44 * pointer is (if you lose a black-ish
45 * pointer on a black background) */
46 mouse_events: 0;
47 description {
48 state: "default" 0.0;
49 rel1.to: "base";
50 rel2.to: "base";
51 visible: 0;
52 color: 255 255 255 0;
53 image.normal: "pointer_glow.png";
54 }
55 description {
56 state: "visible" 0.0;
57 inherit: "default" 0.0;
58 visible: 1;
59 color: 255 255 255 255;
60 }
61 }
62 part {
63 name: "glint";
64 /* this overlay flips a series of small images
65 * over the pointer. they look like a white
66 * light/refelection when put over the pointer
67 * base image - and produce a "glinting" effect
68 * when played back fast */
69 mouse_events: 0;
70 description {
71 state: "default" 0.0;
72 rel1.to: "base";
73 rel2.to: "base";
74 visible: 0;
75 image.normal: "pointer_glint_12.png";
76 }
77 description {
78 state: "visible" 0.0;
79 inherit: "default" 0.0;
80 visible: 1;
81 image.tween: "pointer_glint_01.png";
82 image.tween: "pointer_glint_02.png";
83 image.tween: "pointer_glint_03.png";
84 image.tween: "pointer_glint_04.png";
85 image.tween: "pointer_glint_05.png";
86 image.tween: "pointer_glint_06.png";
87 image.tween: "pointer_glint_07.png";
88 image.tween: "pointer_glint_08.png";
89 image.tween: "pointer_glint_09.png";
90 image.tween: "pointer_glint_10.png";
91 image.tween: "pointer_glint_11.png";
92 image.normal: "pointer_glint_12.png";
93 }
94 }
95 part {
96 name: "elm.swallow.hotspot";
97 /* this is a "fake" swallow part
98 * that is used by e to determine
99 * the pointer hotspot - or where
100 * the actual mouse events get
101 * reported from on the cursor */
102 type: SWALLOW;
103 description {
104 state: "default" 0.0;
105 visible: 0;
106 rel1 {
107 /* the hotspot will scale with the cursor here */
108 to: "base";
109 relative: 0.27 0.125;
110 offset: 0 0;
111 }
112 rel2 {
113 to: "base";
114 relative: 0.27 0.125;
115 offset: 0 0;
116 }
117 }
118 }
119 }
120 programs {
121 program {
122 name: "mouse_down";
123 /* called every time elm detects a mouse
124 * press */
125 signal: "elm,action,mouse,down";
126 source: "elm";
127 action: STATE_SET "visible" 0.0;
128 transition: LINEAR 0.3;
129 target: "glint";
130 after: "mouse_down2";
131 }
132 program {
133 name: "mouse_down2";
134 action: STATE_SET "default" 0.0;
135 target: "glint";
136 }
137 program {
138 name: "mouse_idle";
139 /* called when e thinks the mouse went
140 * idle and isn't moving */
141 signal: "elm,state,mouse,idle";
142 source: "elm";
143 action: STATE_SET "visible" 0.0;
144 in: 5.0 0.0;
145 transition: SINUSOIDAL 1.0;
146 target: "glow";
147 after: "mouse_idle2";
148 }
149 program {
150 name: "mouse_idle2";
151 action: STATE_SET "default" 0.0;
152 transition: SINUSOIDAL 2.0;
153 target: "glow";
154 after: "mouse_idle";
155 }
156 program {
157 name: "mouse_active";
158 /* called when e sees the mouse become
159 * active again */
160 signal: "elm,state,mouse,active";
161 source: "elm";
162 action: STATE_SET "default" 0.0;
163 target: "glow";
164 after: "mouse_active2";
165 }
166 program {
167 name: "mouse_active2";
168 action: ACTION_STOP;
169 target: "mouse_idle";
170 target: "mouse_idle2";
171 }
172 // when mouse button is released. not used here
173 // program { name: "xx";
174 // signal: "e,action,mouse,up";
175 // source: "e";
176 // }
177 // when mouse button is moved. not used here
178 // program { name: "xx";
179 // signal: "e,action,mouse,move";
180 // source: "e";
181 // }
182 // when mouse wheel is scrolled. not used here
183 // program { name: "xx";
184 // signal: "e,action,mouse,wheel";
185 // source: "e";
186 // }
187 }
188 }
189