summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2021-03-15 17:31:22 +0000
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2021-03-15 17:31:22 +0000
commit29269c8774a102b495aa238c6aa6f35846d628c7 (patch)
treeeda98ebc4803b1cd9e6f8a921a2ea6de0c403e03 /data
parentf94c972f18c67c7d0753b5c253c169d54248a7ab (diff)
TH - efl pointer
Diffstat (limited to 'data')
-rw-r--r--data/elementary/themes/edc/efl/pointer.edc86
1 files changed, 19 insertions, 67 deletions
diff --git a/data/elementary/themes/edc/efl/pointer.edc b/data/elementary/themes/edc/efl/pointer.edc
index d720005b90..4a9100139d 100644
--- a/data/elementary/themes/edc/efl/pointer.edc
+++ b/data/elementary/themes/edc/efl/pointer.edc
@@ -1,14 +1,9 @@
1group { name: "efl/pointer"; data.item: "version" "123"; 1group { name: "efl/pointer";
2 images { 2 data.item: "version" "123";
3 image: "pointer.png" COMP; 3 images.image: "pointer.png" COMP;
4 image: "pointer_glow.png" COMP;
5 }
6 parts { 4 parts {
7 part { 5 part { name: "base"; mouse_events: 0;
8 name: "base"; 6 description { state: "default" 0.0;
9 mouse_events: 0;
10 description {
11 state: "default" 0.0;
12 aspect: 1.0 1.0; 7 aspect: 1.0 1.0;
13 min: 32 32; 8 min: 32 32;
14 /* force a specific aspect ratio so 9 /* force a specific aspect ratio so
@@ -18,87 +13,46 @@ group { name: "efl/pointer"; data.item: "version" "123";
18 /* both axes control aspect - thus it 13 /* both axes control aspect - thus it
19 * will be WITHIN the bounds the axes 14 * will be WITHIN the bounds the axes
20 * of thre part describe */ 15 * of thre part describe */
21 image { 16 image.normal: "pointer.png";
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 } 17 }
35 description { state: "faded" 0.0; 18 description { state: "clicked" 0.0;
36 inherit: "default" 0.0; 19 inherit: "default" 0.0;
37 color: 255 255 255 128; 20 color: 51 153 255 255;
38 } 21 }
39 } 22 }
40 part { 23 part { name: "efl.hotspot"; type: SWALLOW;
41 name: "efl.hotspot";
42 /* this is a "fake" swallow part 24 /* this is a "fake" swallow part
43 * that is used by e to determine 25 * that is used by e to determine
44 * the pointer hotspot - or where 26 * the pointer hotspot - or where
45 * the actual mouse events get 27 * the actual mouse events get
46 * reported from on the cursor */ 28 * reported from on the cursor */
47 type: SWALLOW; 29 description { state: "default" 0.0;
48 description {
49 state: "default" 0.0;
50 visible: 0; 30 visible: 0;
51 fixed: 1 1; 31 fixed: 1 1;
52 rel1 { 32 rel1 {
53 /* the hotspot will scale with the cursor here */ 33 /* the hotspot will scale with the cursor here */
54 to: "base"; 34 to: "base";
55 relative: 0.1875 0.1875; 35 relative: (5/32) (5/32);
56 offset: 0 0; 36 offset: 0 0;
57 } 37 }
58 rel2 { 38 rel2 {
59 to: "base"; 39 to: "base";
60 relative: 0.1875 0.1875; 40 relative: (5/32) (5/32);
61 offset: 0 0; 41 offset: 0 0;
62 } 42 }
63 } 43 }
64 } 44 }
65 } 45 }
66 programs { 46 programs {
67 program { 47 program { signal: "efl,action,mouse,down"; source: "efl";
68 signal: "efl,action,mouse,down"; source: "efl"; 48 action: STATE_SET "clicked" 0.0;
69 action: STATE_SET "visible" 0.0; 49 target: "base";
70 target: "glow";
71 after: "fade"; 50 after: "fade";
72 } 51 }
73 program { name: "fade"; 52 program { name: "fade";
74 action: STATE_SET "default" 0.0; 53 action: STATE_SET "default" 0.0;
75 transition: SINUSOIDAL 0.5; 54 transition: SINUSOIDAL 0.5;
76 target: "glow"; 55 target: "base";
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: "efl,action,mouse,move"; source: "efl";
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 } 56 }
103 } 57 }
104} 58}
@@ -106,13 +60,11 @@ group { name: "efl/pointer"; data.item: "version" "123";
106group { name: "efl/pointer:bottom_right_corner"; 60group { name: "efl/pointer:bottom_right_corner";
107 inherit: "efl/pointer"; 61 inherit: "efl/pointer";
108 data.item: "version" "123"; 62 data.item: "version" "123";
109 images.image: "mini_box_glow.png" COMP;
110 parts { 63 parts {
111 part { name: "box"; 64 part { name: "box"; type: RECT;
112 insert_after: "glow"; 65 insert_after: "base";
113 description { state: "default" 0.0; 66 description { state: "default" 0.0;
114 image.normal: "mini_box_glow.png"; 67 color: 51 153 255 192;
115 image.border: 7 7 7 7;
116 rel1.relative: 0.3 0.3; 68 rel1.relative: 0.3 0.3;
117 rel2.relative: 0.7 0.7; 69 rel2.relative: 0.7 0.7;
118 } 70 }