summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2021-03-21 00:05:02 +0000
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2021-03-21 00:05:02 +0000
commitb1426bf022ac280444d3b545eb558fcb5012abb7 (patch)
tree5474c3ff2768fe6386248cfaaa74670447a42239 /data
parent4ed5ad6e35e2714739e8b0f941bb3998e6b07d45 (diff)
TH - efl radio
Diffstat (limited to 'data')
-rw-r--r--data/elementary/themes/edc/efl/radio.edc381
-rw-r--r--data/elementary/themes/edc/gadman.edc102
2 files changed, 217 insertions, 266 deletions
diff --git a/data/elementary/themes/edc/efl/radio.edc b/data/elementary/themes/edc/efl/radio.edc
index 0efb52ca69..8f714d4c14 100644
--- a/data/elementary/themes/edc/efl/radio.edc
+++ b/data/elementary/themes/edc/efl/radio.edc
@@ -11,293 +11,262 @@ Group: efl/radio (@since 1.23)
11 Signal: efl,text,set 11 Signal: efl,text,set
12 Signal: efl,text,unset 12 Signal: efl,text,unset
13*/ 13*/
14group { "efl/radio"; 14group { name: "efl/radio";
15 data.item: "version" "123"; 15 data.item: "version" "123";
16 images.image: "inset_shadow_circle_tiny.png" COMP;
17 images.image: "inset_circle_tiny.png" COMP;
18 images.image: "sym_radio_alum.png" COMP;
19#define ICON 1 16#define ICON 1
20#define LABEL 2 17#define LABEL 2
21#define MASK 3 18#define MASK 3
22#define DISABLE 4 19#define DISABLE 4
20#define SELECTED 8
23 script { 21 script {
24 public btmode; 22 BUTTONMODE_SCRIPT2
25 public eval_mode(m) { 23 public sel;
26 new m1 = m & MASK; 24 public eval_sel(m) {
27 new d = m & DISABLE; 25 if (m) {
28 if (m1 == (ICON | LABEL)) { 26 set_state(PART:"ck_check", "selected", 0.0);
29 if (!d) {
30 set_state(PART:"efl.content", "visible", 0.0);
31 set_state(PART:"sizer_content", "visible", 0.0);
32 set_state(PART:"efl.text", "visible", 0.0);
33 set_state(PART:"inset", "default", 0.0);
34 set_state(PART:"clip", "default", 0.0);
35 set_state(PART:"event", "default", 0.0);
36 } else {
37 set_state(PART:"efl.content", "visible", 0.0);
38 set_state(PART:"sizer_content", "visible", 0.0);
39 set_state(PART:"efl.text", "disabled_visible", 0.0);
40 set_state(PART:"inset", "disabled", 0.0);
41 set_state(PART:"clip", "disabled", 0.0);
42 set_state(PART:"event", "disabled", 0.0);
43 }
44 } else if (m1 == (ICON)) {
45 if (!d) {
46 set_state(PART:"efl.content", "visible", 0.0);
47 set_state(PART:"sizer_content", "icononly", 0.0);
48 set_state(PART:"efl.text", "default", 0.0);
49 set_state(PART:"inset", "default", 0.0);
50 set_state(PART:"clip", "default", 0.0);
51 set_state(PART:"event", "default", 0.0);
52 } else {
53 set_state(PART:"efl.content", "visible", 0.0);
54 set_state(PART:"sizer_content", "icononly", 0.0);
55 set_state(PART:"efl.text", "disabled", 0.0);
56 set_state(PART:"inset", "disabled", 0.0);
57 set_state(PART:"clip", "disabled", 0.0);
58 set_state(PART:"event", "disabled", 0.0);
59 }
60 } else if (m1 == (LABEL)) {
61 if (!d) {
62 set_state(PART:"efl.content", "default", 0.0);
63 set_state(PART:"sizer_content", "default", 0.0);
64 set_state(PART:"efl.text", "visible", 0.0);
65 set_state(PART:"inset", "default", 0.0);
66 set_state(PART:"clip", "default", 0.0);
67 set_state(PART:"event", "default", 0.0);
68 } else {
69 set_state(PART:"efl.content", "default", 0.0);
70 set_state(PART:"sizer_content", "default", 0.0);
71 set_state(PART:"efl.text", "disabled_visible", 0.0);
72 set_state(PART:"inset", "disabled", 0.0);
73 set_state(PART:"clip", "disabled", 0.0);
74 set_state(PART:"event", "disabled", 0.0);
75 }
76 } else { 27 } else {
77 if (!d) { 28 set_state(PART:"ck_check", "default", 0.0);
78 set_state(PART:"efl.content", "default", 0.0);
79 set_state(PART:"sizer_content", "default", 0.0);
80 set_state(PART:"efl.text", "default", 0.0);
81 set_state(PART:"inset", "default", 0.0);
82 set_state(PART:"clip", "default", 0.0);
83 set_state(PART:"event", "default", 0.0);
84 } else {
85 set_state(PART:"efl.content", "default", 0.0);
86 set_state(PART:"sizer_content", "default", 0.0);
87 set_state(PART:"efl.text", "default", 0.0);
88 set_state(PART:"inset", "disabled", 0.0);
89 set_state(PART:"clip", "disabled", 0.0);
90 set_state(PART:"event", "disabled", 0.0);
91 }
92 } 29 }
93 } 30 }
94 } 31 }
95 parts { 32 parts {
96 part { name: "inset"; mouse_events: 0; 33 part { name: "shadow"; type: SPACER;
97 scale: 1; 34 description { state: "default";
98 description { state: "default" 0.0;
99 rel1.offset: 2 2;
100 rel2.relative: 0.0 1.0;
101 rel2.offset: 2 -3;
102 image.normal: "inset_shadow_circle_tiny.png";
103 align: 0.0 0.5;
104 min: 13 13;
105 max: 13 13;
106 fixed: 1 0;
107 } 35 }
108 description { state: "disabled" 0.0; 36 desc { "pressed"; inherit;
109 inherit: "default" 0.0; 37 }
110 image.normal: "inset_circle_tiny.png"; 38 desc { "disabled"; inherit;
111 } 39 }
112 } 40 }
113 part { name: "indicator"; mouse_events: 0; 41 swallow { "efl.background"; nomouse;
114 scale: 1; 42 desc { "default";
115 clip_to: "clip";
116 description { state: "default" 0.0;
117 rel1.to: "inset";
118 rel2.to: "inset";
119 image.normal: "sym_radio_alum.png";
120 min: 11 11;
121 max: 11 11;
122 visible: 0; 43 visible: 0;
123 } 44 }
124 description { state: "selected" 0.0; 45 desc { "visible"; inherit;
125 inherit: "default" 0.0;
126 visible: 1; 46 visible: 1;
127 } 47 }
128 } 48 }
129 part { name: "clip"; type: RECT; 49 rect { "icon_clip";
130 description { state: "default" 0.0; 50 desc { "default";
51 color_class: "button_icon";
131 } 52 }
132 description { state: "disabled" 0.0; 53 desc { "pressed"; inherit;
133 inherit: "default" 0.0; 54 color_class: "button_icon_pressed";
134 color: 255 255 255 64; 55 }
56 desc { "disabled"; inherit;
57 color_class: "button_icon_disabled";
135 } 58 }
136 } 59 }
137 part { name: "efl.content"; type: SWALLOW; 60 swallow { "efl.content"; nomouse;
138 required; 61 required;
62 clip_to: "icon_clip";
139 scale: 1; 63 scale: 1;
140 clip_to: "clip"; 64 desc { "default";
141 description { state: "default" 0.0;
142 fixed: 1 0; 65 fixed: 1 0;
143 visible: 0;
144 align: 0.0 0.5; 66 align: 0.0 0.5;
145 max: 0 0; 67 rel1.to_x: "base";
146 rel1.to_x: "inset"; 68 rel2.to_x: "base";
69 rel1.offset: 4 4;
147 rel1.relative: 1.0 0.0; 70 rel1.relative: 1.0 0.0;
148 rel1.offset: 1 1; 71 rel2.relative: 0.0 1.0;
149 rel2.to_x: "inset"; 72 rel2.offset: 4 -5;
150 rel2.offset: 1 -2; 73 visible: 0;
151 rel2.relative: 1.0 1.0; 74 offscale;
152 } 75 }
153 description { state: "visible" 0.0; 76 desc { "visible"; inherit;
154 inherit: "default" 0.0; 77 fixed: 1 0;
155 visible: 1;
156 aspect: 1.0 1.0; 78 aspect: 1.0 1.0;
157 min: 16 16; 79 min: ICMIN ICMIN;
80 visible: 1;
81 }
82 desc { "icononly"; inherit;
83 fixed: 0 0;
84 align: 0.5 0.5;
85 rel2.relative: 1.0 1.0;
86 rel2.offset: -5 -5;
87 rel2.to_x: "";
88 visible: 1;
158 } 89 }
159 } 90 }
160 part { name: "sizer_content"; type: TEXT; mouse_events: 0; 91 text { "sizer_content"; nomouse;
161 scale: 1; 92 scale: 1;
162 description { state: "default" 0.0; 93 desc { "default";
163 fixed: 1 1;
164 visible: 0; 94 visible: 0;
165 text { font: FN; size: 10; 95 text { font: FN; size: 10;
166 min: 0 0; 96 min: 0 0;
167 text_class: "radio_text"; 97 text_class: "button_text";
168 } 98 }
169 } 99 }
170 description { state: "visible" 0.0; 100 desc { "visible"; inherit;
171 inherit: "default" 0.0; 101 rel.to: "efl.content";
172 rel1.to: "efl.content";
173 rel2.to: "efl.content";
174 text { 102 text {
175 min: 1 1; 103 min: 1 1;
176 ellipsis: -1; 104 ellipsis: -1;
177 text: "M"; 105 text: SPACER_TEXT;
178 } 106 }
179 } 107 }
180 description { state: "icononly" 0.0; 108 desc { "icononly"; inherit;
181 inherit: "default" 0.0; 109 rel.to: "efl.content";
182 rel1.to: "efl.content";
183 rel2.to: "efl.content";
184 text { 110 text {
185 min: 1 1; 111 min: 1 1;
186 ellipsis: -1; 112 ellipsis: -1;
187 text: "M"; 113 text: SPACER_TEXT;
188 } 114 }
189 } 115 }
190 } 116 }
191 part { name: "efl.text"; type: TEXT; mouse_events: 0; 117 part { name: "base"; type: RECT;
192 effect: SHADOW BOTTOM; 118 scale: 1;
119 description { state: "default";
120 align: 0.0 0.5;
121 min: 13 13;
122 max: 13 13;
123 rel1.offset: 4 4;
124 rel2.relative: 0.0 1.0;
125 rel2.offset: 4 -5;
126 aspect: 1.0 1.0; aspect_preference: VERTICAL;
127 offscale;
128 visible: 0;
129 offscale;
130 }
131 desc { "pressed"; inherit;
132 }
133 desc { "disabled"; inherit;
134 }
135 }
136 part { name: "ck_check";
193 scale: 1; 137 scale: 1;
194 required;
195 description { state: "default" 0.0; 138 description { state: "default" 0.0;
196 rel1.offset: 2 2; 139 fixed: 1 1;
197 rel1.to_x: "efl.content"; 140 rel.to: "base";
141 image.normal: "i-radio";
142 min: 15 15;
143 max: 15 15;
144 color: 0 0 0 64;
145 }
146 description { state: "pressed" 0.0;
147 inherit: "default" 0.0;
148 color: 255 255 255 255;
149 }
150 description { state: "selected" 0.0;
151 inherit: "default" 0.0;
152 color: 160 160 160 255;
153 }
154 desc { "disabled"; inherit;
155 color: 0 0 0 16;
156 }
157 }
158 text { "efl.text"; nomouse;
159 required;
160 scale: 1;
161 desc { "default";
162 fixed: 0 1;
163 color: 160 160 160 255;
164 rel1.offset: 0 4;
198 rel1.relative: 1.0 0.0; 165 rel1.relative: 1.0 0.0;
199 rel2.offset: -3 -3; 166 rel1.to_x: "efl.content";
200 color: FN_COL_DEFAULT; 167 rel2.offset: -5 -5;
201 color_class: "radio_text";
202 text { font: FN; size: 10; 168 text { font: FN; size: 10;
203 min: 0 0; 169 align: 0.0 0.5;
204 align: 0.0 0.5; 170 min: 0 0;
205 text_class: "radio";
206 } 171 }
172 visible: 0;
173 offscale;
207 } 174 }
208 description { state: "disabled" 0.0; 175 desc { "visible"; inherit;
209 inherit: "default" 0.0; 176 fixed: 0 0;
210 color_class: "radio_text_disabled"; 177 rel1.offset: 4 4;
211 color3: 255 255 255 255; 178 text.min: 1 1;
179 text.ellipsis: -1;
180 visible: 1;
212 } 181 }
213 description { state: "visible" 0.0; 182 desc { "pressed_visible"; inherit;
214 inherit: "default" 0.0; 183 fixed: 0 0;
184 color: 255 255 255 255;
185 rel1.offset: 4 4;
186 text.min: 1 1;
187 text.ellipsis: -1;
215 visible: 1; 188 visible: 1;
189 }
190 desc { "textonly"; inherit;
191 fixed: 0 0;
216 text.min: 1 1; 192 text.min: 1 1;
217 text.ellipsis: -1; 193 text.ellipsis: -1;
194 visible: 1;
218 } 195 }
219 description { state: "disabled_visible" 0.0; 196 desc { "pressed_textonly"; inherit;
220 inherit: "default" 0.0; 197 fixed: 0 0;
221 color_class: "radio_text_disabled"; 198 color: 255 255 255 255;
222 color3: 255 255 255 255; 199 text.min: 1 1;
200 text.ellipsis: -1;
223 visible: 1; 201 visible: 1;
202 }
203 desc { "disabled_visible"; inherit;
204 fixed: 0 0;
205 color: 96 96 96 255;
206 rel1.offset: 4 4;
207 text.min: 1 1;
208 text.ellipsis: -1;
209 visible: 1;
210 }
211 desc { "disabled_textonly"; inherit;
212 fixed: 0 0;
213 color: 96 96 96 255;
224 text.min: 1 1; 214 text.min: 1 1;
225 text.ellipsis: -1; 215 text.ellipsis: -1;
216 visible: 1;
226 } 217 }
227 } 218 }
228 part { name: "event"; type: RECT; 219 rect { "event";
229 description { state: "default" 0.0; 220 ignore_flags: ON_HOLD;
221 desc { "default";
230 color: 0 0 0 0; 222 color: 0 0 0 0;
231 } 223 }
232 description { state: "disabled" 0.0; 224 desc { "disabled"; inherit;
233 inherit: "default" 0.0;
234 visible: 0; 225 visible: 0;
235 } 226 }
236 } 227 }
237 } 228 }
238 programs { 229 programs {
239 EFL_UI_CLICKABLE_PART_BIND(event) 230 EFL_UI_CLICKABLE_PART_BIND(event)
240 program { 231 program { signal: "efl,state,selected"; source: "efl";
241 signal: "efl,state,selected"; source: "efl";
242 action: STATE_SET "selected" 0.0;
243 target: "indicator";
244 }
245 program {
246 signal: "efl,state,unselected"; source: "efl";
247 action: STATE_SET "default" 0.0;
248 target: "indicator";
249 }
250 program {
251 signal: "efl,text,set"; source: "efl";
252 script { 232 script {
253 new m = get_int(btmode); 233 new m = get_int(sel) | SELECTED;
254 m |= LABEL; set_int(btmode, m); 234 set_int(sel, m);
255 eval_mode(m); 235 eval_sel(m);
256 } 236 }
257 } 237 }
258 program { 238 program { signal: "efl,state,unselected"; source: "efl";
259 signal: "efl,text,unset"; source: "efl";
260 script { 239 script {
261 new m = get_int(btmode); 240 new m = get_int(sel) & ~SELECTED;
262 m &= ~LABEL; set_int(btmode, m); 241 set_int(sel, m);
263 eval_mode(m); 242 eval_sel(m);
264 } 243 }
265 } 244 }
266 program { 245 program { signal: "efl,text,set"; source: "efl";
267 signal: "efl,content,set"; source: "efl"; 246 script { flag_set(LABEL); }
268 script {
269 new m = get_int(btmode);
270 m |= ICON; set_int(btmode, m);
271 eval_mode(m);
272 }
273 } 247 }
274 program { 248 program { signal: "efl,text,unset"; source: "efl";
275 signal: "efl,content,unset"; source: "efl"; 249 script { flag_unset(LABEL); }
276 script {
277 new m = get_int(btmode);
278 m &= ~ICON; set_int(btmode, m);
279 eval_mode(m);
280 }
281 } 250 }
282 program { 251 program { signal: "efl,content,set"; source: "efl";
283 signal: "efl,state,disabled"; source: "efl"; 252 script { flag_set(ICON); }
284 script {
285 new m = get_int(btmode);
286 m |= DISABLE; set_int(btmode, m);
287 eval_mode(m);
288 }
289 } 253 }
290 program { 254 program { signal: "efl,content,unset"; source: "efl";
291 signal: "efl,state,enabled"; source: "efl"; 255 script { flag_unset(ICON); }
292 script { 256 }
293 new m = get_int(btmode); 257 program { signal: "efl,state,disabled"; source: "efl";
294 m &= ~DISABLE; set_int(btmode, m); 258 script { flag_set(DISABLE); }
295 eval_mode(m); 259 }
296 } 260 program { signal: "efl,state,enabled"; source: "efl";
261 script { flag_unset(DISABLE); }
262 }
263 program { signal: "efl,state,disabled"; source: "efl";
264 action: STATE_SET "disabled" 0.0;
265 target: "ck_check";
266 }
267 program { signal: "efl,state,enabled"; source: "efl";
268 action: STATE_SET "default" 0.0;
269 target: "ck_check";
297 } 270 }
298 } 271 }
299#undef ICON
300#undef LABEL
301#undef MASK
302#undef DISABLE
303} 272}
diff --git a/data/elementary/themes/edc/gadman.edc b/data/elementary/themes/edc/gadman.edc
index 251c9d66db..3d3a89d9ab 100644
--- a/data/elementary/themes/edc/gadman.edc
+++ b/data/elementary/themes/edc/gadman.edc
@@ -1,3 +1,5 @@
1// FIXME: FLAT: improve for flat
2
1group { name: "e/gadman/popup"; 3group { name: "e/gadman/popup";
2 parts { 4 parts {
3 part { name: "bg"; type: RECT; 5 part { name: "bg"; type: RECT;
@@ -51,51 +53,43 @@ group { name: "e/gadman/full_bg";
51 } 53 }
52 } 54 }
53 } 55 }
54 programs { 56 programs {
55 program { 57 program { signal: "e,state,visibility,show"; source: "e";
56 signal: "e,state,visibility,show"; source: "e";
57 action: STATE_SET "visible" 0.0; 58 action: STATE_SET "visible" 0.0;
58 transition: DECELERATE 0.4 USE_DURATION_FACTOR 1; 59 transition: DECELERATE 0.4 USE_DURATION_FACTOR 1;
59 target: "bg"; 60 target: "bg";
60 } 61 }
61 program { 62 program { signal: "e,state,visibility,show,now"; source: "e";
62 signal: "e,state,visibility,show,now"; source: "e";
63 action: STATE_SET "visible" 0.0; 63 action: STATE_SET "visible" 0.0;
64 target: "bg"; 64 target: "bg";
65 } 65 }
66 program { 66 program { signal: "e,state,visibility,hide"; source: "e";
67 signal: "e,state,visibility,hide"; source: "e";
68 action: STATE_SET "default" 0.0; 67 action: STATE_SET "default" 0.0;
69 transition: DECELERATE 0.4 USE_DURATION_FACTOR 1; 68 transition: DECELERATE 0.4 USE_DURATION_FACTOR 1;
70 target: "bg"; 69 target: "bg";
71 after: "hide_stop"; 70 after: "hide_stop";
72 } 71 }
73 program { 72 program { signal: "e,state,visibility,hide,now"; source: "e";
74 signal: "e,state,visibility,hide,now"; source: "e";
75 action: STATE_SET "default" 0.0; 73 action: STATE_SET "default" 0.0;
76 target: "bg"; 74 target: "bg";
77 after: "hide_stop"; 75 after: "hide_stop";
78 } 76 }
79 program { 77 program { signal: "e,state,visibility,show,custom"; source: "e";
80 signal: "e,state,visibility,show,custom"; source: "e";
81 action: STATE_SET "visible" 0.0; 78 action: STATE_SET "visible" 0.0;
82 transition: DECELERATE 0.4 USE_DURATION_FACTOR 1; 79 transition: DECELERATE 0.4 USE_DURATION_FACTOR 1;
83 target: "custom_bg"; 80 target: "custom_bg";
84 } 81 }
85 program { 82 program { signal: "e,state,visibility,show,custom,now"; source: "e";
86 signal: "e,state,visibility,show,custom,now"; source: "e";
87 action: STATE_SET "visible" 0.0; 83 action: STATE_SET "visible" 0.0;
88 target: "custom_bg"; 84 target: "custom_bg";
89 } 85 }
90 program { 86 program { signal: "e,state,visibility,hide,custom"; source: "e";
91 signal: "e,state,visibility,hide,custom"; source: "e";
92 action: STATE_SET "default" 0.0; 87 action: STATE_SET "default" 0.0;
93 transition: DECELERATE 0.4 USE_DURATION_FACTOR 1; 88 transition: DECELERATE 0.4 USE_DURATION_FACTOR 1;
94 target: "custom_bg"; 89 target: "custom_bg";
95 after: "hide_stop"; 90 after: "hide_stop";
96 } 91 }
97 program { 92 program { signal: "e,state,visibility,hide,custom,now"; source: "e";
98 signal: "e,state,visibility,hide,custom,now"; source: "e";
99 action: STATE_SET "default" 0.0; 93 action: STATE_SET "default" 0.0;
100 target: "custom_bg"; 94 target: "custom_bg";
101 after: "hide_stop"; 95 after: "hide_stop";
@@ -328,13 +322,13 @@ group { name: "e/gadman/control";
328 visible: 0; 322 visible: 0;
329 } 323 }
330 } 324 }
331 part { name: "resizeh1"; type: RECT; 325 part { name: "resizev1"; type: RECT;
332 description { state: "default" 0.0; 326 description { state: "default" 0.0;
333 rel1.to: "base"; 327 rel1.to: "base";
334 rel2.to: "base"; 328 rel2.to: "base";
335 rel2.relative: 0.5 1.0; 329 rel2.relative: 1.0 0.5;
336 align: 0.0 0.5; 330 align: 0.5 0.0;
337 max: 7 99999; 331 max: 99999 7;
338 color: 0 0 0 0; 332 color: 0 0 0 0;
339 } 333 }
340 description { state: "off" 0.0; 334 description { state: "off" 0.0;
@@ -342,13 +336,13 @@ group { name: "e/gadman/control";
342 visible: 0; 336 visible: 0;
343 } 337 }
344 } 338 }
345 part { name: "resizeh2"; type: RECT; 339 part { name: "resizev2"; type: RECT;
346 description { state: "default" 0.0; 340 description { state: "default" 0.0;
347 rel1.to: "base"; 341 rel1.to: "base";
348 rel2.to: "base"; 342 rel2.to: "base";
349 rel1.relative: 0.5 0.0; 343 rel1.relative: 0.0 0.5;
350 align: 1.0 0.5; 344 align: 0.5 1.0;
351 max: 7 99999; 345 max: 99999 7;
352 color: 0 0 0 0; 346 color: 0 0 0 0;
353 } 347 }
354 description { state: "off" 0.0; 348 description { state: "off" 0.0;
@@ -356,13 +350,13 @@ group { name: "e/gadman/control";
356 visible: 0; 350 visible: 0;
357 } 351 }
358 } 352 }
359 part { name: "resizev1"; type: RECT; 353 part { name: "resizeh1"; type: RECT;
360 description { state: "default" 0.0; 354 description { state: "default" 0.0;
361 rel1.to: "base"; 355 rel1.to: "base";
362 rel2.to: "base"; 356 rel2.to: "base";
363 rel2.relative: 1.0 0.5; 357 rel2.relative: 0.5 1.0;
364 align: 0.5 0.0; 358 align: 0.0 0.5;
365 max: 99999 7; 359 max: 7 99999;
366 color: 0 0 0 0; 360 color: 0 0 0 0;
367 } 361 }
368 description { state: "off" 0.0; 362 description { state: "off" 0.0;
@@ -370,13 +364,13 @@ group { name: "e/gadman/control";
370 visible: 0; 364 visible: 0;
371 } 365 }
372 } 366 }
373 part { name: "resizev2"; type: RECT; 367 part { name: "resizeh2"; type: RECT;
374 description { state: "default" 0.0; 368 description { state: "default" 0.0;
375 rel1.to: "base"; 369 rel1.to: "base";
376 rel2.to: "base"; 370 rel2.to: "base";
377 rel1.relative: 0.0 0.5; 371 rel1.relative: 0.5 0.0;
378 align: 0.5 1.0; 372 align: 1.0 0.5;
379 max: 99999 7; 373 max: 7 99999;
380 color: 0 0 0 0; 374 color: 0 0 0 0;
381 } 375 }
382 description { state: "off" 0.0; 376 description { state: "off" 0.0;
@@ -386,47 +380,39 @@ group { name: "e/gadman/control";
386 } 380 }
387 } 381 }
388 programs { 382 programs {
389 program { 383 program { signal: "e,state,hsize,on"; source: "e";
390 signal: "e,state,hsize,on"; source: "e";
391 action: STATE_SET "default" 0.0; 384 action: STATE_SET "default" 0.0;
392 target: "resizeh1"; 385 target: "resizeh1";
393 target: "resizeh2"; 386 target: "resizeh2";
394 } 387 }
395 program { 388 program { signal: "e,state,hsize,off"; source: "e";
396 signal: "e,state,hsize,off"; source: "e";
397 action: STATE_SET "off" 0.0; 389 action: STATE_SET "off" 0.0;
398 target: "resizeh1"; 390 target: "resizeh1";
399 target: "resizeh2"; 391 target: "resizeh2";
400 } 392 }
401 program { 393 program { signal: "e,state,vsize,on"; source: "e";
402 signal: "e,state,vsize,on"; source: "e";
403 action: STATE_SET "default" 0.0; 394 action: STATE_SET "default" 0.0;
404 target: "resizev1"; 395 target: "resizev1";
405 target: "resizev2"; 396 target: "resizev2";
406 } 397 }
407 program { 398 program { signal: "e,state,vsize,off"; source: "e";
408 signal: "e,state,vsize,off"; source: "e";
409 action: STATE_SET "off" 0.0; 399 action: STATE_SET "off" 0.0;
410 target: "resizev1"; 400 target: "resizev1";
411 target: "resizev2"; 401 target: "resizev2";
412 } 402 }
413 program { 403 program { signal: "e,state,move,on"; source: "e";
414 signal: "e,state,move,on"; source: "e";
415 action: STATE_SET "default" 0.0; 404 action: STATE_SET "default" 0.0;
416 target: "move"; 405 target: "move";
417 } 406 }
418 program { 407 program { signal: "e,state,move,off"; source: "e";
419 signal: "e,state,move,off"; source: "e";
420 action: STATE_SET "off" 0.0; 408 action: STATE_SET "off" 0.0;
421 target: "move"; 409 target: "move";
422 } 410 }
423 program { 411 program { signal: "e,state,focused"; source: "e";
424 signal: "e,state,focused"; source: "e";
425 action: STATE_SET "active" 0.0; 412 action: STATE_SET "active" 0.0;
426 target: "base"; 413 target: "base";
427 } 414 }
428 program { 415 program { signal: "e,state,unfocused"; source: "e";
429 signal: "e,state,unfocused"; source: "e";
430 action: STATE_SET "default" 0.0; 416 action: STATE_SET "default" 0.0;
431 target: "base"; 417 target: "base";
432 } 418 }
@@ -451,8 +437,7 @@ group { name: "e/gadman/control";
451 target: _DST2; \ 437 target: _DST2; \
452 after: _NAME"1"; \ 438 after: _NAME"1"; \
453 } \ 439 } \
454 program { \ 440 program { signal: "mouse,out"; source: _SRC; \
455 signal: "mouse,out"; source: _SRC; \
456 action: ACTION_STOP; \ 441 action: ACTION_STOP; \
457 target: _NAME"0"; \ 442 target: _NAME"0"; \
458 target: _NAME"1"; \ 443 target: _NAME"1"; \
@@ -468,25 +453,22 @@ group { name: "e/gadman/control";
468 ARROWPULSE("pulse2", "resizev2", "av20", "av21") 453 ARROWPULSE("pulse2", "resizev2", "av20", "av21")
469 ARROWPULSE("pulse3", "resizeh1", "ah10", "ah11") 454 ARROWPULSE("pulse3", "resizeh1", "ah10", "ah11")
470 ARROWPULSE("pulse4", "resizeh2", "ah20", "ah21") 455 ARROWPULSE("pulse4", "resizeh2", "ah20", "ah21")
471#undef ARROWPULSE 456#undef ARROWPULSE
472#define PROGSET(_SRC, _ACT) \ 457#define PROGSET(_SRC, _ACT) \
473 program { \ 458 program { signal: "mouse,down,1"; source: _SRC; \
474 signal: "mouse,down,1"; source: _SRC; \
475 action: SIGNAL_EMIT "e,action,"_ACT",start" ""; \ 459 action: SIGNAL_EMIT "e,action,"_ACT",start" ""; \
476 } \ 460 } \
477 program { \ 461 program { signal: "mouse,up,1"; source: _SRC; \
478 signal: "mouse,up,1"; source: _SRC; \
479 action: SIGNAL_EMIT "e,action,"_ACT",stop" ""; \ 462 action: SIGNAL_EMIT "e,action,"_ACT",stop" ""; \
480 } \ 463 } \
481 program { \ 464 program { signal: "mouse,move"; source: _SRC; \
482 signal: "mouse,move"; source: _SRC; \
483 action: SIGNAL_EMIT "e,action,"_ACT",go" ""; \ 465 action: SIGNAL_EMIT "e,action,"_ACT",go" ""; \
484 } 466 }
485 PROGSET("move", "move") 467 PROGSET("move", "move")
486 PROGSET("resizeh1", "resize,left")
487 PROGSET("resizeh2", "resize,right")
488 PROGSET("resizev1", "resize,up") 468 PROGSET("resizev1", "resize,up")
489 PROGSET("resizev2", "resize,down") 469 PROGSET("resizev2", "resize,down")
470 PROGSET("resizeh1", "resize,left")
471 PROGSET("resizeh2", "resize,right")
490#undef PROGSET 472#undef PROGSET
491 } 473 }
492} 474}