summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2015-06-08 12:35:54 -0400
committerMike Blumenkrantz <zmike@osg.samsung.com>2015-06-08 14:54:47 -0400
commit9d8e54d3938f7fa50d811dcf44dcb060ffa4eb61 (patch)
tree4db2d01e1879b3560bc9af1e734e63980bfe6e60
parentd19669b752dc91f326f6503b4675fedf6b4694a5 (diff)
shelf: use constant rects for eventing
-rw-r--r--data/themes/edc/shelf.edc50
1 files changed, 34 insertions, 16 deletions
diff --git a/data/themes/edc/shelf.edc b/data/themes/edc/shelf.edc
index a58343f91..13e84c398 100644
--- a/data/themes/edc/shelf.edc
+++ b/data/themes/edc/shelf.edc
@@ -1,4 +1,4 @@
1group { name: "e/shelf/default/base"; 1group { name: "e/shelf/default/base"; nomouse;
2 alias: "e/shelf/alternate/base"; 2 alias: "e/shelf/alternate/base";
3 data { 3 data {
4 /* this tells e the shelf is shaped, not rectangular */ 4 /* this tells e the shelf is shaped, not rectangular */
@@ -19,6 +19,9 @@ group { name: "e/shelf/default/base";
19 images.image: "holes_horiz.png" COMP; 19 images.image: "holes_horiz.png" COMP;
20 images.image: "shine.png" COMP; 20 images.image: "shine.png" COMP;
21 parts { 21 parts {
22 rect { "mouse"; mouse;
23 desc { color: 0 0 0 0; }
24 }
22 part { name: "bg"; 25 part { name: "bg";
23 description { state: "default" 0.0; 26 description { state: "default" 0.0;
24 image.normal: "vgrad_med.png"; 27 image.normal: "vgrad_med.png";
@@ -33,7 +36,7 @@ group { name: "e/shelf/default/base";
33 color_class: "shelf_base"; 36 color_class: "shelf_base";
34 } 37 }
35 } 38 }
36 part { name: "bevel"; mouse_events: 0; 39 part { name: "bevel";
37 description { state: "default" 0.0; 40 description { state: "default" 0.0;
38 image.normal: "bevel_out.png"; 41 image.normal: "bevel_out.png";
39 image.border: 1 1 1 1; 42 image.border: 1 1 1 1;
@@ -41,7 +44,7 @@ group { name: "e/shelf/default/base";
41 fill.smooth: 0; 44 fill.smooth: 0;
42 } 45 }
43 } 46 }
44 part { name: "dots_start"; mouse_events: 0; 47 part { name: "dots_start";
45 description { state: "default" 0.0; 48 description { state: "default" 0.0;
46 image.normal: "holes_vert.png"; 49 image.normal: "holes_vert.png";
47 rel1.offset: 2 2; 50 rel1.offset: 2 2;
@@ -57,7 +60,7 @@ group { name: "e/shelf/default/base";
57 FIXED_SIZE(14, 4) 60 FIXED_SIZE(14, 4)
58 } 61 }
59 } 62 }
60 part { name: "dots_end"; mouse_events: 0; 63 part { name: "dots_end";
61 description { state: "default" 0.0; 64 description { state: "default" 0.0;
62 image.normal: "holes_vert.png"; 65 image.normal: "holes_vert.png";
63 rel1.relative: 1.0 0.0; 66 rel1.relative: 1.0 0.0;
@@ -73,7 +76,7 @@ group { name: "e/shelf/default/base";
73 FIXED_SIZE(14, 4) 76 FIXED_SIZE(14, 4)
74 } 77 }
75 } 78 }
76 part { name: "e.swallow.content"; type: SWALLOW; 79 part { name: "e.swallow.content"; type: SWALLOW; mouse;
77 description { state: "default" 0.0; 80 description { state: "default" 0.0;
78 rel1.offset: 1 0; 81 rel1.offset: 1 0;
79 rel1.relative: 1.0 0.0; 82 rel1.relative: 1.0 0.0;
@@ -91,7 +94,7 @@ group { name: "e/shelf/default/base";
91 rel2.relative: 1.0 0.0; 94 rel2.relative: 1.0 0.0;
92 } 95 }
93 } 96 }
94 part { name: "shine"; mouse_events: 0; 97 part { name: "shine";
95 description { state: "default" 0.0; 98 description { state: "default" 0.0;
96 image.normal: "shine.png"; 99 image.normal: "shine.png";
97 rel1.offset: 0 -2; 100 rel1.offset: 0 -2;
@@ -100,6 +103,9 @@ group { name: "e/shelf/default/base";
100 FIXED_SIZE(69, 5) 103 FIXED_SIZE(69, 5)
101 } 104 }
102 } 105 }
106 rect { "events"; repeat; mouse;
107 desc { color: 0 0 0 0; }
108 }
103 programs { 109 programs {
104#define ORIENT_SATE(_ORIENT, _STATE) \ 110#define ORIENT_SATE(_ORIENT, _STATE) \
105 program { \ 111 program { \
@@ -127,19 +133,22 @@ group { name: "e/shelf/default/base";
127 } 133 }
128} 134}
129 135
130group { name: "e/shelf/default/inset"; 136group { name: "e/shelf/default/inset"; nomouse;
131 alias: "e/shelf/alternate/inset"; 137 alias: "e/shelf/alternate/inset";
132 alias: "e/shelf/invisible/inset"; 138 alias: "e/shelf/invisible/inset";
133 alias: "e/shelf/translucent/inset"; 139 alias: "e/shelf/translucent/inset";
134 images.image: "horiz_bar_inset.png" COMP; 140 images.image: "horiz_bar_inset.png" COMP;
135 images.image: "vert_bar_inset.png" COMP; 141 images.image: "vert_bar_inset.png" COMP;
136 parts { 142 parts {
143 rect { "mouse"; mouse;
144 desc { color: 0 0 0 0; }
145 }
137 part { name: "base"; type: RECT; 146 part { name: "base"; type: RECT;
138 description { state: "default" 0.0; 147 description { state: "default" 0.0;
139 color: 0 0 0 0; 148 color: 0 0 0 0;
140 } 149 }
141 } 150 }
142 part { name: "clip"; type: RECT; mouse_events: 0; 151 part { name: "clip"; type: RECT;
143 description { state: "default" 0.0; 152 description { state: "default" 0.0;
144 rel1.offset: 3 1; 153 rel1.offset: 3 1;
145 rel2.offset: -4 -2; 154 rel2.offset: -4 -2;
@@ -151,7 +160,7 @@ group { name: "e/shelf/default/inset";
151 color: 255 255 255 255; 160 color: 255 255 255 255;
152 } 161 }
153 } 162 }
154 part { name: "e.swallow.content"; type: SWALLOW; 163 part { name: "e.swallow.content"; type: SWALLOW; mouse;
155 clip_to: "clip"; 164 clip_to: "clip";
156 description { state: "default" 0.0; 165 description { state: "default" 0.0;
157 rel1.offset: 4 1; 166 rel1.offset: 4 1;
@@ -162,7 +171,7 @@ group { name: "e/shelf/default/inset";
162 rel2.offset: -2 -5; 171 rel2.offset: -2 -5;
163 } 172 }
164 } 173 }
165 part { name: "inset"; mouse_events: 0; 174 part { name: "inset";
166 description { state: "default" 0.0; 175 description { state: "default" 0.0;
167 rel1.offset: 2 0; 176 rel1.offset: 2 0;
168 rel2.offset: -3 -1; 177 rel2.offset: -3 -1;
@@ -180,6 +189,9 @@ group { name: "e/shelf/default/inset";
180 fill.smooth: 0; 189 fill.smooth: 0;
181 } 190 }
182 } 191 }
192 rect { "events"; repeat; mouse;
193 desc { color: 0 0 0 0; }
194 }
183 } 195 }
184 programs { 196 programs {
185#define ORIENT_SATE(_ORIENT, _STATE) \ 197#define ORIENT_SATE(_ORIENT, _STATE) \
@@ -206,7 +218,7 @@ group { name: "e/shelf/default/inset";
206 } 218 }
207} 219}
208 220
209group { name: "e/shelf/invisible/base"; 221group { name: "e/shelf/invisible/base"; nomouse;
210 inherit: "e/shelf/default/base"; 222 inherit: "e/shelf/default/base";
211 data { 223 data {
212 item: "shaped" "1"; 224 item: "shaped" "1";
@@ -230,7 +242,7 @@ group { name: "e/shelf/invisible/base";
230 visible: 0; 242 visible: 0;
231 } 243 }
232 } 244 }
233 part { name: "dots_start"; mouse_events: 1; 245 part { name: "dots_start";
234 description { state: "default" 0.0; 246 description { state: "default" 0.0;
235 rel1.offset: 0 0; 247 rel1.offset: 0 0;
236 rel2.offset: -1 -1; 248 rel2.offset: -1 -1;
@@ -265,7 +277,7 @@ group { name: "e/shelf/invisible/base";
265 } 277 }
266} 278}
267 279
268group { name: "e/shelf/translucent/base"; 280group { name: "e/shelf/translucent/base"; nomouse;
269 inherit: "e/shelf/default/base"; 281 inherit: "e/shelf/default/base";
270 data { 282 data {
271 item: "shaped" "1"; 283 item: "shaped" "1";
@@ -292,27 +304,33 @@ group { name: "e/shelf/translucent/base";
292 } 304 }
293} 305}
294 306
295group { name: "e/shelf/default/plain"; 307group { name: "e/shelf/default/plain"; nomouse;
296 alias: "e/shelf/alternate/plain"; 308 alias: "e/shelf/alternate/plain";
297 alias: "e/shelf/invisible/plain"; 309 alias: "e/shelf/invisible/plain";
298 alias: "e/shelf/translucent/plain"; 310 alias: "e/shelf/translucent/plain";
299 parts { 311 parts {
312 rect { "mouse"; mouse;
313 desc { color: 0 0 0 0; }
314 }
300 part { name: "base"; type: RECT; 315 part { name: "base"; type: RECT;
301 description { state: "default" 0.0; 316 description { state: "default" 0.0;
302 color: 0 0 0 0; 317 color: 0 0 0 0;
303 } 318 }
304 } 319 }
305 part { name: "clip"; type: RECT; mouse_events: 0; 320 part { name: "clip"; type: RECT;
306 description { state: "default" 0.0; 321 description { state: "default" 0.0;
307 color: 255 255 255 255; 322 color: 255 255 255 255;
308 } 323 }
309 } 324 }
310 part { name: "e.swallow.content"; type: SWALLOW; 325 part { name: "e.swallow.content"; type: SWALLOW; mouse;
311 clip_to: "clip"; 326 clip_to: "clip";
312 description { state: "default" 0.0; 327 description { state: "default" 0.0;
313 rel1.offset: 1 1; 328 rel1.offset: 1 1;
314 rel2.offset: -2 -2; 329 rel2.offset: -2 -2;
315 } 330 }
316 } 331 }
332 rect { "events"; repeat; mouse;
333 desc { color: 0 0 0 0; }
334 }
317 } 335 }
318} 336}