diff options
author | David Walter Seikel | 2012-04-22 09:20:32 +1000 |
---|---|---|
committer | David Walter Seikel | 2012-04-22 09:20:32 +1000 |
commit | 3ad3455551be0d7859ecb02290376206d5e66498 (patch) | |
tree | 497917e12b4d7f458dff9765d9b53f64c4e03fc3 /libraries/elementary/data/themes/widgets/pointer.edc | |
parent | Update EFL to latest beta. (diff) | |
download | SledjHamr-3ad3455551be0d7859ecb02290376206d5e66498.zip SledjHamr-3ad3455551be0d7859ecb02290376206d5e66498.tar.gz SledjHamr-3ad3455551be0d7859ecb02290376206d5e66498.tar.bz2 SledjHamr-3ad3455551be0d7859ecb02290376206d5e66498.tar.xz |
And actually include new files, plus elementary libraries.
Diffstat (limited to 'libraries/elementary/data/themes/widgets/pointer.edc')
-rw-r--r-- | libraries/elementary/data/themes/widgets/pointer.edc | 190 |
1 files changed, 190 insertions, 0 deletions
diff --git a/libraries/elementary/data/themes/widgets/pointer.edc b/libraries/elementary/data/themes/widgets/pointer.edc new file mode 100644 index 0000000..2e04370 --- /dev/null +++ b/libraries/elementary/data/themes/widgets/pointer.edc | |||
@@ -0,0 +1,190 @@ | |||
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 | min: 23 32; | ||
27 | /* force a specific aspect ratio so | ||
28 | * when it gets scaled it wont squash | ||
29 | * or stretch */ | ||
30 | aspect_preference: BOTH; | ||
31 | /* both axes control aspect - thus it | ||
32 | * will be WITHIN the bounds the axes | ||
33 | * of thre part describe */ | ||
34 | image { | ||
35 | normal: "pointer.png"; | ||
36 | } | ||
37 | } | ||
38 | } | ||
39 | part { | ||
40 | name: "glow"; | ||
41 | /* this overlay is used to put a white glow | ||
42 | * around the pointer, so when the pointer is | ||
43 | * idle every now and again it will pulsate | ||
44 | * with this glow to just remind you where the | ||
45 | * pointer is (if you lose a black-ish | ||
46 | * pointer on a black background) */ | ||
47 | mouse_events: 0; | ||
48 | description { | ||
49 | state: "default" 0.0; | ||
50 | rel1.to: "base"; | ||
51 | rel2.to: "base"; | ||
52 | visible: 0; | ||
53 | color: 255 255 255 0; | ||
54 | image.normal: "pointer_glow.png"; | ||
55 | } | ||
56 | description { | ||
57 | state: "visible" 0.0; | ||
58 | inherit: "default" 0.0; | ||
59 | visible: 1; | ||
60 | color: 255 255 255 255; | ||
61 | } | ||
62 | } | ||
63 | part { | ||
64 | name: "glint"; | ||
65 | /* this overlay flips a series of small images | ||
66 | * over the pointer. they look like a white | ||
67 | * light/refelection when put over the pointer | ||
68 | * base image - and produce a "glinting" effect | ||
69 | * when played back fast */ | ||
70 | mouse_events: 0; | ||
71 | description { | ||
72 | state: "default" 0.0; | ||
73 | rel1.to: "base"; | ||
74 | rel2.to: "base"; | ||
75 | visible: 0; | ||
76 | image.normal: "pointer_glint_12.png"; | ||
77 | } | ||
78 | description { | ||
79 | state: "visible" 0.0; | ||
80 | inherit: "default" 0.0; | ||
81 | visible: 1; | ||
82 | image.tween: "pointer_glint_01.png"; | ||
83 | image.tween: "pointer_glint_02.png"; | ||
84 | image.tween: "pointer_glint_03.png"; | ||
85 | image.tween: "pointer_glint_04.png"; | ||
86 | image.tween: "pointer_glint_05.png"; | ||
87 | image.tween: "pointer_glint_06.png"; | ||
88 | image.tween: "pointer_glint_07.png"; | ||
89 | image.tween: "pointer_glint_08.png"; | ||
90 | image.tween: "pointer_glint_09.png"; | ||
91 | image.tween: "pointer_glint_10.png"; | ||
92 | image.tween: "pointer_glint_11.png"; | ||
93 | image.normal: "pointer_glint_12.png"; | ||
94 | } | ||
95 | } | ||
96 | part { | ||
97 | name: "elm.swallow.hotspot"; | ||
98 | /* this is a "fake" swallow part | ||
99 | * that is used by e to determine | ||
100 | * the pointer hotspot - or where | ||
101 | * the actual mouse events get | ||
102 | * reported from on the cursor */ | ||
103 | type: SWALLOW; | ||
104 | description { | ||
105 | state: "default" 0.0; | ||
106 | visible: 0; | ||
107 | rel1 { | ||
108 | /* the hotspot will scale with the cursor here */ | ||
109 | to: "base"; | ||
110 | relative: 0.27 0.125; | ||
111 | offset: 0 0; | ||
112 | } | ||
113 | rel2 { | ||
114 | to: "base"; | ||
115 | relative: 0.27 0.125; | ||
116 | offset: 0 0; | ||
117 | } | ||
118 | } | ||
119 | } | ||
120 | } | ||
121 | programs { | ||
122 | program { | ||
123 | name: "mouse_down"; | ||
124 | /* called every time elm detects a mouse | ||
125 | * press */ | ||
126 | signal: "elm,action,mouse,down"; | ||
127 | source: "elm"; | ||
128 | action: STATE_SET "visible" 0.0; | ||
129 | transition: LINEAR 0.3; | ||
130 | target: "glint"; | ||
131 | after: "mouse_down2"; | ||
132 | } | ||
133 | program { | ||
134 | name: "mouse_down2"; | ||
135 | action: STATE_SET "default" 0.0; | ||
136 | target: "glint"; | ||
137 | } | ||
138 | program { | ||
139 | name: "mouse_idle"; | ||
140 | /* called when e thinks the mouse went | ||
141 | * idle and isn't moving */ | ||
142 | signal: "elm,state,mouse,idle"; | ||
143 | source: "elm"; | ||
144 | action: STATE_SET "visible" 0.0; | ||
145 | in: 5.0 0.0; | ||
146 | transition: SINUSOIDAL 1.0; | ||
147 | target: "glow"; | ||
148 | after: "mouse_idle2"; | ||
149 | } | ||
150 | program { | ||
151 | name: "mouse_idle2"; | ||
152 | action: STATE_SET "default" 0.0; | ||
153 | transition: SINUSOIDAL 2.0; | ||
154 | target: "glow"; | ||
155 | after: "mouse_idle"; | ||
156 | } | ||
157 | program { | ||
158 | name: "mouse_active"; | ||
159 | /* called when e sees the mouse become | ||
160 | * active again */ | ||
161 | signal: "elm,state,mouse,active"; | ||
162 | source: "elm"; | ||
163 | action: STATE_SET "default" 0.0; | ||
164 | target: "glow"; | ||
165 | after: "mouse_active2"; | ||
166 | } | ||
167 | program { | ||
168 | name: "mouse_active2"; | ||
169 | action: ACTION_STOP; | ||
170 | target: "mouse_idle"; | ||
171 | target: "mouse_idle2"; | ||
172 | } | ||
173 | // when mouse button is released. not used here | ||
174 | // program { name: "xx"; | ||
175 | // signal: "e,action,mouse,up"; | ||
176 | // source: "e"; | ||
177 | // } | ||
178 | // when mouse button is moved. not used here | ||
179 | // program { name: "xx"; | ||
180 | // signal: "e,action,mouse,move"; | ||
181 | // source: "e"; | ||
182 | // } | ||
183 | // when mouse wheel is scrolled. not used here | ||
184 | // program { name: "xx"; | ||
185 | // signal: "e,action,mouse,wheel"; | ||
186 | // source: "e"; | ||
187 | // } | ||
188 | } | ||
189 | } | ||
190 | |||