summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2014-05-30 12:45:57 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2014-05-30 12:45:57 +0900
commitad834e18165abcd0929f97a784b9060c6ebcad88 (patch)
tree18f9b84c5d00cdd744eae56468c5b88968ade22b
parent2a8e20c31a827dfe66a5de4accec902555b5dec4 (diff)
theme - support new ibar icon menu signals for focus, screen etc.
-rw-r--r--data/themes/edc/ibar-ibox.edc60
1 files changed, 53 insertions, 7 deletions
diff --git a/data/themes/edc/ibar-ibox.edc b/data/themes/edc/ibar-ibox.edc
index 27befda09..996103c91 100644
--- a/data/themes/edc/ibar-ibox.edc
+++ b/data/themes/edc/ibar-ibox.edc
@@ -243,7 +243,34 @@ group { name: "e/modules/ibar/menu";
243group { name: "e/modules/ibar/menu/item"; 243group { name: "e/modules/ibar/menu/item";
244 images.image: "glow_small.png" COMP; 244 images.image: "glow_small.png" COMP;
245 images.image: "win_shadow.png" COMP; 245 images.image: "win_shadow.png" COMP;
246 images.image: "mini_box_glow.png" COMP;
246 parts { 247 parts {
248 part { name: "base";
249 description { state: "default";
250 rel1.offset: -6 -6;
251 rel2.offset: 5 5;
252 image.normal: "mini_box_glow.png";
253 image.border: 7 7 7 7;
254 color: 255 255 255 80;
255 visible: 0;
256 }
257 description { state: "focused";
258 inherit: "default" 0.0;
259 visible: 1;
260 }
261 }
262 part { name: "clip"; type: RECT;
263 description { state: "default";
264 }
265 description { state: "otherdesk";
266 inherit: "default" 0.0;
267 color: 255 255 255 160;
268 }
269 description { state: "otherscreen";
270 inherit: "default" 0.0;
271 color: 255 255 255 80;
272 }
273 }
247 part { name: "icon"; type: SPACER; 274 part { name: "icon"; type: SPACER;
248 description { state: "default"; 275 description { state: "default";
249 rel1.offset: 2 2; 276 rel1.offset: 2 2;
@@ -255,6 +282,7 @@ group { name: "e/modules/ibar/menu/item";
255 } 282 }
256 } 283 }
257 part { name: "shadow"; mouse_events: 0; 284 part { name: "shadow"; mouse_events: 0;
285 clip_to: "clip";
258 description { state: "default" 0.0; 286 description { state: "default" 0.0;
259 image.normal: "win_shadow.png"; 287 image.normal: "win_shadow.png";
260 image.border: 14 14 14 14; 288 image.border: 14 14 14 14;
@@ -267,6 +295,7 @@ group { name: "e/modules/ibar/menu/item";
267 } 295 }
268 } 296 }
269 part { name: "glow"; mouse_events: 0; 297 part { name: "glow"; mouse_events: 0;
298 clip_to: "clip";
270 description { state: "default" 0.0; 299 description { state: "default" 0.0;
271 rel1.to: "e.swallow.icon"; 300 rel1.to: "e.swallow.icon";
272 rel2.to: "e.swallow.icon"; 301 rel2.to: "e.swallow.icon";
@@ -290,21 +319,16 @@ group { name: "e/modules/ibar/menu/item";
290 rel1.to: "icon"; 319 rel1.to: "icon";
291 rel2.to: "icon"; 320 rel2.to: "icon";
292 } 321 }
293 description { state: "focus";
294 inherit: "default";
295 rel1.offset: -4 -4;
296 rel2.offset: 3 3;
297 }
298 } 322 }
299 part { name: "e.text.title"; type: TEXT; mouse_events: 0; 323 part { name: "e.text.title"; type: TEXT; mouse_events: 0;
300 effect: SHADOW BOTTOM; 324 effect: SHADOW BOTTOM;
301 scale: 1; 325 scale: 1;
326 clip_to: "clip";
302 description { state: "default" 0.0; 327 description { state: "default" 0.0;
303 rel1.to_x: "icon"; 328 rel1.to_x: "icon";
304 rel1.relative: 1.0 0.0; 329 rel1.relative: 1.0 0.0;
305 rel1.offset: 3 0; 330 rel1.offset: 3 0;
306 rel2.offset: -3 -3; 331 rel2.offset: -3 -3;
307 color: FN_COL_DEFAULT;
308 align: 0.0 0.0; 332 align: 0.0 0.0;
309 color_class: "menu_item"; 333 color_class: "menu_item";
310 min: 128 0; 334 min: 128 0;
@@ -323,13 +347,16 @@ group { name: "e/modules/ibar/menu/item";
323 part { name: "title2"; type: TEXT; mouse_events: 0; 347 part { name: "title2"; type: TEXT; mouse_events: 0;
324 effect: GLOW; 348 effect: GLOW;
325 scale: 1; 349 scale: 1;
350 clip_to: "clip";
326 description { state: "default" 0.0; 351 description { state: "default" 0.0;
327 rel1.offset: -2 -3; 352 rel1.offset: -2 -3;
328 rel1.to: "e.text.title"; 353 rel1.to: "e.text.title";
329 rel2.offset: 2 1; 354 rel2.offset: 2 1;
330 rel2.to: "e.text.title"; 355 rel2.to: "e.text.title";
331 color: FN_COL_HIGHLIGHT;
332 color_class: "menu_item_active"; 356 color_class: "menu_item_active";
357 color: 255 255 255 0;
358 color2: 255 255 255 0;
359 color3: 255 255 255 0;
333 min: 128 0; 360 min: 128 0;
334 text { font: FNBD; size: 10; 361 text { font: FNBD; size: 10;
335 text_source: "e.text.title"; 362 text_source: "e.text.title";
@@ -341,10 +368,14 @@ group { name: "e/modules/ibar/menu/item";
341 } 368 }
342 description { state: "focus" 0.0; 369 description { state: "focus" 0.0;
343 inherit: "default" 0.0; 370 inherit: "default" 0.0;
371 color: 255 255 255 255;
372 color2: 255 255 255 255;
373 color3: 255 255 255 255;
344 visible: 1; 374 visible: 1;
345 } 375 }
346 } 376 }
347 part { name: "icon_clip"; type: RECT; 377 part { name: "icon_clip"; type: RECT;
378 clip_to: "clip";
348 description { state: "default"; 379 description { state: "default";
349 color: 255 255 255 200; 380 color: 255 255 255 200;
350 rel1.offset: -9999 -9999; 381 rel1.offset: -9999 -9999;
@@ -382,6 +413,21 @@ group { name: "e/modules/ibar/menu/item";
382 target: "glow"; 413 target: "glow";
383 transition: DECELERATE 0.2; 414 transition: DECELERATE 0.2;
384 } 415 }
416 program {
417 signal: "e,state,focused"; source: "e";
418 action: STATE_SET "focused" 0.0;
419 target: "base";
420 }
421 program {
422 signal: "e,state,otherdesk"; source: "e";
423 action: STATE_SET "otherdesk" 0.0;
424 target: "clip";
425 }
426 program {
427 signal: "e,state,otherscreen"; source: "e";
428 action: STATE_SET "otherscreen" 0.0;
429 target: "clip";
430 }
385 } 431 }
386} 432}
387 433