summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2021-02-23 14:28:00 +0000
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2021-02-23 14:28:00 +0000
commit181bae5598f05d35daa709ea2b5508a87b91b0b5 (patch)
treee0a41ce49a3a1809dc516966405bcba7795f4183 /data
parent6bd8b3a8689d97080d2790616f1b9d7d3b9ba1a4 (diff)
TH - efl focus
Diffstat (limited to 'data')
-rw-r--r--data/elementary/themes/edc/efl/focus.edc143
-rw-r--r--data/elementary/themes/edc/elm/colorclass.edc1
2 files changed, 110 insertions, 34 deletions
diff --git a/data/elementary/themes/edc/efl/focus.edc b/data/elementary/themes/edc/efl/focus.edc
index 32b5e6e564..d135632570 100644
--- a/data/elementary/themes/edc/efl/focus.edc
+++ b/data/elementary/themes/edc/efl/focus.edc
@@ -5,9 +5,8 @@ Group: efl/focus_highlight/top (@since 1.23)
5 Signal: efl,state,animating,stopped 5 Signal: efl,state,animating,stopped
6Group: efl/focus_highlight/top:blank (@since 1.23) 6Group: efl/focus_highlight/top:blank (@since 1.23)
7*/ 7*/
8group { name: "efl/focus_highlight/top"; data.item: "version" "123"; 8group { name: "efl/focus_highlight/top";
9 images.image: "box_glow.png" COMP; 9 data.item: "version" "123";
10 images.image: "box_outline.png" COMP;
11 data.item: "animate" "on"; 10 data.item: "animate" "on";
12 script { 11 script {
13 public s_x, s_y, s_w, s_h; /* source */ 12 public s_x, s_y, s_w, s_h; /* source */
@@ -34,14 +33,14 @@ group { name: "efl/focus_highlight/top"; data.item: "version" "123";
34 33
35 public update_offset(x, y, w, h) { 34 public update_offset(x, y, w, h) {
36 set_state_val(PART:"base", STATE_REL1_OFFSET, x, y); 35 set_state_val(PART:"base", STATE_REL1_OFFSET, x, y);
37 set_state_val(PART:"base", STATE_REL2_OFFSET, x + w, y + h); 36 set_state_val(PART:"base", STATE_REL2_OFFSET, x + w - 1, y + h - 1);
38 } 37 }
39 38
40 public message(Msg_Type:type, id, ...) { 39 public message(Msg_Type:type, id, ...) {
41 if ((type == MSG_INT_SET) && (id == 1)) { 40 if ((type == MSG_INT_SET) && (id == 1)) {
42 new x1, y1, w1, h1, x2, y2, w2, h2; 41 new x1, y1, w1, h1, x2, y2, w2, h2;
43 new anim_id; 42 new anim_id;
44 43
45 anim_id = get_int(g_anim_id); 44 anim_id = get_int(g_anim_id);
46 if (anim_id != 0) { 45 if (anim_id != 0) {
47 cancel_anim(anim_id); 46 cancel_anim(anim_id);
@@ -70,7 +69,7 @@ group { name: "efl/focus_highlight/top"; data.item: "version" "123";
70 set_state_val(PART:"base", STATE_REL2, 0.0, 0.0); 69 set_state_val(PART:"base", STATE_REL2, 0.0, 0.0);
71 update_offset(x1, y1, w1, h1); 70 update_offset(x1, y1, w1, h1);
72 set_state(PART:"base", "custom", 0.0); 71 set_state(PART:"base", "custom", 0.0);
73 72
74 anim_id = anim(0.2, "animator1", 1); 73 anim_id = anim(0.2, "animator1", 1);
75 set_int(g_anim_id, anim_id); 74 set_int(g_anim_id, anim_id);
76 } 75 }
@@ -84,38 +83,106 @@ group { name: "efl/focus_highlight/top"; data.item: "version" "123";
84 } 83 }
85 part { name: "clip"; type: RECT; 84 part { name: "clip"; type: RECT;
86 description { state: "default" 0.0; 85 description { state: "default" 0.0;
87 rel1.to: "glow"; 86 rel.to: "base";
88 rel2.to: "glow"; 87 rel1.relative: -1.0 -1.0;
88 rel1.offset: -999 -999;
89 rel2.relative: 2.0 2.0;
90 rel2.offset: 999 999;
89 color: 255 255 255 0; 91 color: 255 255 255 0;
92 visible: 0;
90 } 93 }
91 description { state: "visible" 0.0; 94 description { state: "visible" 0.0;
92 inherit: "default" 0.0; 95 inherit: "default" 0.0;
93 color: 255 255 255 255; 96 color: 255 255 255 255;
97 visible: 1;
94 } 98 }
95 } 99 }
96 part { name: "glow"; mouse_events: 0; 100 part { name: "top"; type: RECT;
97 clip_to: "clip"; 101 clip_to: "clip";
102 scale: 1;
98 description { state: "default" 0.0; 103 description { state: "default" 0.0;
99 image.normal: "box_glow.png"; 104 rel.to: "base";
100 image.border: 12 12 12 12; 105 color: 51 153 255 255;
101 image.middle: 0; 106 rel2.relative: 1.0 0.0;
102 fill.smooth: 0; 107 min: 4 4;
103 rel1.to: "base"; 108 }
104 rel1.offset: -7 -7; 109 description { state: "hi" 0.0;
105 rel2.to: "base"; 110 inherit: "default" 0.0;
106 rel2.offset: 5 5; 111 color: 255 255 255 255;
107 } 112 }
108 } 113 }
109 part { name: "sel"; mouse_events: 0; 114 part { name: "topl"; type: RECT;
110 clip_to: "clip"; 115 clip_to: "clip";
116 scale: 1;
111 description { state: "default" 0.0; 117 description { state: "default" 0.0;
112 image.normal: "box_outline.png"; 118 rel.to: "top";
113 image.border: 12 12 12 12; 119 color: 51 153 255 255;
114 image.middle: 0; 120 rel1.relative: 0.0 1.0;
115 fill.smooth: 0; 121 rel2.relative: 0.0 1.0;
116 rel1.to: "glow"; 122 align: 0.0 0.0;
117 rel2.to: "glow"; 123 min: 4 4;
118 color: 255 255 255 0; 124 }
125 description { state: "hi" 0.0;
126 inherit: "default" 0.0;
127 color: 255 255 255 255;
128 }
129 }
130 part { name: "topr"; type: RECT;
131 clip_to: "clip";
132 scale: 1;
133 description { state: "default" 0.0;
134 rel.to: "top";
135 color: 51 153 255 255;
136 rel1.relative: 1.0 1.0;
137 rel2.relative: 1.0 1.0;
138 align: 1.0 0.0;
139 min: 4 4;
140 }
141 description { state: "hi" 0.0;
142 inherit: "default" 0.0;
143 color: 255 255 255 255;
144 }
145 }
146 part { name: "bot"; type: RECT;
147 clip_to: "clip";
148 scale: 1;
149 description { state: "default" 0.0;
150 rel.to: "base";
151 color: 51 153 255 255;
152 rel1.relative: 0.0 1.0;
153 min: 4 4;
154 }
155 description { state: "hi" 0.0;
156 inherit: "default" 0.0;
157 color: 255 255 255 255;
158 }
159 }
160 part { name: "botl"; type: RECT;
161 clip_to: "clip";
162 scale: 1;
163 description { state: "default" 0.0;
164 rel.to: "bot";
165 color: 51 153 255 255;
166 rel1.relative: 0.0 0.0;
167 rel2.relative: 0.0 0.0;
168 align: 0.0 1.0;
169 min: 4 4;
170 }
171 description { state: "hi" 0.0;
172 inherit: "default" 0.0;
173 color: 255 255 255 255;
174 }
175 }
176 part { name: "botr"; type: RECT;
177 clip_to: "clip";
178 scale: 1;
179 description { state: "default" 0.0;
180 rel.to: "bot";
181 color: 51 153 255 255;
182 rel1.relative: 1.0 0.0;
183 rel2.relative: 1.0 0.0;
184 align: 1.0 1.0;
185 min: 4 4;
119 } 186 }
120 description { state: "hi" 0.0; 187 description { state: "hi" 0.0;
121 inherit: "default" 0.0; 188 inherit: "default" 0.0;
@@ -124,8 +191,7 @@ group { name: "efl/focus_highlight/top"; data.item: "version" "123";
124 } 191 }
125 } 192 }
126 programs { 193 programs {
127 program { 194 program { signal: "efl,focus,visible,on"; source: "efl";
128 signal: "efl,focus,visible,on"; source: "efl";
129 action: ACTION_STOP; 195 action: ACTION_STOP;
130 target: "pulse"; 196 target: "pulse";
131 target: "pulse2"; 197 target: "pulse2";
@@ -141,8 +207,7 @@ group { name: "efl/focus_highlight/top"; data.item: "version" "123";
141 program { name: "go3"; 207 program { name: "go3";
142 action: SIGNAL_EMIT "efl,focus,visible,on,done" "efl"; 208 action: SIGNAL_EMIT "efl,focus,visible,on,done" "efl";
143 } 209 }
144 program { 210 program { signal: "efl,focus,visible,off"; source: "efl";
145 signal: "efl,focus,visible,off"; source: "efl";
146 action: STATE_SET "default" 0.0; 211 action: STATE_SET "default" 0.0;
147 transition: DECELERATE 0.4; 212 transition: DECELERATE 0.4;
148 target: "clip"; 213 target: "clip";
@@ -161,24 +226,34 @@ group { name: "efl/focus_highlight/top"; data.item: "version" "123";
161 action: STATE_SET "hi" 0.0; 226 action: STATE_SET "hi" 0.0;
162 transition: SINUSOIDAL 0.2; 227 transition: SINUSOIDAL 0.2;
163 in: 3.0 0.0; 228 in: 3.0 0.0;
164 target: "sel"; 229 target: "top";
230 target: "topl";
231 target: "topr";
232 target: "bot";
233 target: "botl";
234 target: "botr";
165 after: "pulse2"; 235 after: "pulse2";
166 } 236 }
167 program { name: "pulse2"; 237 program { name: "pulse2";
168 action: STATE_SET "default" 0.0; 238 action: STATE_SET "default" 0.0;
169 transition: SINUSOIDAL 0.4; 239 transition: SINUSOIDAL 0.4;
170 target: "sel"; 240 target: "top";
241 target: "topl";
242 target: "topr";
243 target: "bot";
244 target: "botl";
245 target: "botr";
171 after: "pulse"; 246 after: "pulse";
172 } 247 }
173 program { 248 program { signal: "efl,state,animating,stopped"; source: "efl";
174 signal: "efl,state,animating,stopped"; source: "efl";
175 action: STATE_SET "default" 0.0; 249 action: STATE_SET "default" 0.0;
176 target: "base"; 250 target: "base";
177 } 251 }
178 } 252 }
179} 253}
180 254
181group { name: "efl/focus_highlight/top:blank"; data.item: "version" "123"; 255group { name: "efl/focus_highlight/top:blank";
256 data.item: "version" "123";
182 parts { 257 parts {
183 } 258 }
184} 259}
diff --git a/data/elementary/themes/edc/elm/colorclass.edc b/data/elementary/themes/edc/elm/colorclass.edc
index b6aff288b4..372a31673b 100644
--- a/data/elementary/themes/edc/elm/colorclass.edc
+++ b/data/elementary/themes/edc/elm/colorclass.edc
@@ -164,6 +164,7 @@ group { "elm/layout/colorclass/base"; program_source: "elm"; nobroadcast;
164} 164}
165 165
166group { "colorclass/colors"; program_source: "elm"; nobroadcast; 166group { "colorclass/colors"; program_source: "elm"; nobroadcast;
167 images.image: "box_glow.png" COMP;
167 parts { 168 parts {
168 group { "color1"; source: "colorclass/color1"; 169 group { "color1"; source: "colorclass/color1";
169 desc { min: 1 1; max: 1 1; hid; 170 desc { min: 1 1; max: 1 1; hid;