summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmitesh Singh <amitesh.sh@samsung.com>2018-04-11 19:19:41 +0900
committerAmitesh Singh <amitesh.sh@samsung.com>2018-04-11 20:00:21 +0900
commit11c3b67e45f2c8e93aa97899f4bc4715369934f9 (patch)
tree70c172f34b623d92d6110591ecbd8795450d1717
parent29240037a6a270fdd6950de04901d01a0de27a47 (diff)
theme: pointer - remove elm pointer inheritance.
-rw-r--r--data/elementary/themes/edc/efl/pointer.edc224
1 files changed, 209 insertions, 15 deletions
diff --git a/data/elementary/themes/edc/efl/pointer.edc b/data/elementary/themes/edc/efl/pointer.edc
index 57bdfbfcee..a101aa73c7 100644
--- a/data/elementary/themes/edc/efl/pointer.edc
+++ b/data/elementary/themes/edc/efl/pointer.edc
@@ -1,27 +1,221 @@
1group { "efl/pointer"; 1group { name: "efl/pointer";
2 inherit: "elm/pointer/base/default"; 2 images {
3 image: "pointer.png" COMP;
4 image: "pointer_glow.png" COMP;
5 }
6 parts {
7 part {
8 name: "base";
9 mouse_events: 0;
10 description {
11 state: "default" 0.0;
12 aspect: 1.0 1.0;
13 min: 32 32;
14 /* force a specific aspect ratio so
15 * when it gets scaled it wont squash
16 * or stretch */
17 aspect_preference: BOTH;
18 /* both axes control aspect - thus it
19 * will be WITHIN the bounds the axes
20 * of thre part describe */
21 image {
22 normal: "pointer.png";
23 }
24 }
25 }
26 part { name: "glow";
27 description { state: "default" 0.0;
28 image.normal: "pointer_glow.png";
29 color: 255 255 255 0;
30 }
31 description { state: "visible" 0.0;
32 inherit: "default" 0.0;
33 color: 255 255 255 255;
34 }
35 description { state: "faded" 0.0;
36 inherit: "default" 0.0;
37 color: 255 255 255 128;
38 }
39 }
40 part {
41 name: "elm.swallow.hotspot";
42 /* this is a "fake" swallow part
43 * that is used by e to determine
44 * the pointer hotspot - or where
45 * the actual mouse events get
46 * reported from on the cursor */
47 type: SWALLOW;
48 description {
49 state: "default" 0.0;
50 visible: 0;
51 fixed: 1 1;
52 rel1 {
53 /* the hotspot will scale with the cursor here */
54 to: "base";
55 relative: 0.1875 0.1875;
56 offset: 0 0;
57 }
58 rel2 {
59 to: "base";
60 relative: 0.1875 0.1875;
61 offset: 0 0;
62 }
63 }
64 }
65 }
66 programs {
67 program {
68 signal: "elm,action,mouse,down"; source: "elm";
69 action: STATE_SET "visible" 0.0;
70 target: "glow";
71 after: "fade";
72 }
73 program { name: "fade";
74 action: STATE_SET "default" 0.0;
75 transition: SINUSOIDAL 0.5;
76 target: "glow";
77 }
78 program { name: "pulse";
79 signal: "e,state,mouse,idle"; source: "e";
80 in: 10.0 0.0;
81 action: STATE_SET "faded" 0.0;
82 transition: SINUSOIDAL 0.25;
83 target: "glow";
84 after: "pulse2";
85 }
86 program { name: "pulse2";
87 action: STATE_SET "default" 0.0;
88 transition: SINUSOIDAL 0.5;
89 target: "glow";
90 after: "pulse";
91 }
92 program {
93 signal: "elm,action,mouse,move"; source: "elm";
94 action: STATE_SET "default" 0.0;
95 target: "glow";
96 after: "stop2";
97 }
98 program { name: "stop2";
99 action: ACTION_STOP;
100 target: "pulse";
101 target: "pulse2";
102 }
103 }
3} 104}
4 105
5group { "efl/pointer:bottom_right_corner"; 106group { name: "efl/pointer:bottom_right_corner";
6 inherit: "elm/pointer/base/bottom_right_corner"; 107 inherit: "efl/pointer";
108 images.image: "mini_box_glow.png" COMP;
109 parts {
110 part { name: "box";
111 insert_after: "glow";
112 description { state: "default" 0.0;
113 image.normal: "mini_box_glow.png";
114 image.border: 7 7 7 7;
115 rel1.relative: 0.3 0.3;
116 rel2.relative: 0.7 0.7;
117 }
118 description { state: "p1" 0.0;
119 inherit: "default" 0.0;
120 rel1.relative: 0.3 0.3;
121 rel2.relative: 1.0 1.0;
122 }
123 }
124 }
125 programs {
126 program { name: "box1";
127 signal: "load"; source: "";
128 action: STATE_SET "p1" 0.0;
129 transition: SINUSOIDAL 0.5;
130 target: "box";
131 after: "box2";
132 }
133 program { name: "box2";
134 action: STATE_SET "default" 0.0;
135 transition: SINUSOIDAL 0.5;
136 target: "box";
137 after: "box1";
138 }
139 }
7} 140}
8 141
9group { "efl/pointer:bottom_left_corner"; 142group { name: "efl/pointer:bottom_left_corner";
10 inherit: "elm/pointer/base/bottom_left_corner"; 143 inherit: "efl/pointer:bottom_right_corner";
144 parts {
145 part { name: "box";
146 description { state: "default" 0.0;
147 rel1.relative: 0.7 0.3;
148 rel2.relative: 1.0 0.7;
149 }
150 description { state: "p1" 0.0;
151 rel1.relative: 0.3 0.3;
152 rel2.relative: 1.0 1.0;
153 }
154 }
155 }
11} 156}
12 157
13group { "efl/pointer:bottom_side";
14 inherit: "elm/pointer/base/bottom_side";
15}
16 158
17group { "efl/pointer:top_right_corner"; 159group { name: "efl/pointer:bottom_side";
18 inherit: "elm/pointer/base/top_right_corner"; 160 inherit: "efl/pointer:bottom_right_corner";
161 parts {
162 part { name: "box";
163 description { state: "default" 0.0;
164 rel1.relative: 0.3 0.3;
165 rel2.relative: 1.0 0.7;
166 }
167 description { state: "p1" 0.0;
168 rel1.relative: 0.3 0.3;
169 rel2.relative: 1.0 1.0;
170 }
171 }
172 }
19} 173}
20 174
21group { "efl/pointer:top_left_corner"; 175group { name: "efl/pointer:top_right_corner";
22 inherit: "elm/pointer/base/top_left_corner"; 176 inherit: "efl/pointer:bottom_right_corner";
177 parts {
178 part { name: "box";
179 description { state: "default" 0.0;
180 rel1.relative: 0.3 0.3;
181 rel2.relative: 0.7 0.7;
182 }
183 description { state: "p1" 0.0;
184 rel1.relative: 0.3 0.0;
185 rel2.relative: 1.0 0.7;
186 }
187 }
188 }
23} 189}
24 190
25group { "efl/pointer:top_side"; 191group { name: "efl/pointer:top_left_corner";
26 inherit: "elm/pointer/base/top_side"; 192 inherit: "efl/pointer:bottom_right_corner";
193 parts {
194 part { name: "box";
195 description { state: "default" 0.0;
196 rel1.relative: 0.6 0.6;
197 rel2.relative: 1.0 1.0;
198 }
199 description { state: "p1" 0.0;
200 rel1.relative: 0.3 0.3;
201 rel2.relative: 1.0 1.0;
202 }
203 }
204 }
27} 205}
206
207group { name: "efl/pointer:top_side";
208 inherit: "efl/pointer:bottom_right_corner";
209 parts {
210 part { name: "box";
211 description { state: "default" 0.0;
212 rel1.relative: 0.3 0.6;
213 rel2.relative: 1.0 1.0;
214 }
215 description { state: "p1" 0.0;
216 rel1.relative: 0.3 0.3;
217 rel2.relative: 1.0 1.0;
218 }
219 }
220 }
221} \ No newline at end of file