From 9119141b76efdb3ae49bde988b3ff53bf5f89ba6 Mon Sep 17 00:00:00 2001 From: Carsten Haitzler Date: Mon, 26 Nov 2012 10:08:02 +0000 Subject: [PATCH] finish up gadman theme bits. SVN revision: 79687 --- data/themes/edc/gadman.edc | 348 +++++++++++++++++++++++++++++++++++++ 1 file changed, 348 insertions(+) diff --git a/data/themes/edc/gadman.edc b/data/themes/edc/gadman.edc index 332a30077..5234a817d 100644 --- a/data/themes/edc/gadman.edc +++ b/data/themes/edc/gadman.edc @@ -136,6 +136,10 @@ group { name: "e/gadman/frame"; group { name: "e/gadman/control"; images.image: "outline_glow.png" COMP; images.image: "diagonal_stripes.png" COMP; + images.image: "sym_up_glow_normal.png" COMP; + images.image: "sym_down_glow_normal.png" COMP; + images.image: "sym_left_glow_normal.png" COMP; + images.image: "sym_right_glow_normal.png" COMP; parts { part { name: "base"; mouse_events: 0; description { state: "default" 0.0; @@ -143,6 +147,11 @@ group { name: "e/gadman/control"; image.border: 4 4 4 4; image.middle: 0; fill.smooth: 0; + color: 255 255 255 255; + } + description { state: "active" 0.0; + inherit: "default" 0.0; + color: 255 255 255 255; } } part { name: "pat"; mouse_events: 0; @@ -153,8 +162,347 @@ group { name: "e/gadman/control"; rel2.to: "base"; image.normal: "diagonal_stripes.png"; TILED_PATTERN(240, 240) + color: 255 255 255 25; + } + } + part { name: "av10"; mouse_events: 0; + description { state: "default" 0.0; + align: 0.5 1.0; + rel1.to: "resizev1"; + rel2.relative: 1.0 0.0; + rel2.to: "resizev1"; + image.normal: "sym_up_glow_normal.png"; + visible: 0; + FIXED_SIZE(15, 15) + } + description { state: "pulse0" 0.0; + inherit: "default" 0.0; + visible: 1; + } + description { state: "pulse1" 0.0; + inherit: "default" 0.0; + visible: 1; + rel2.relative: 1.0 -5.0; + color: 255 255 255 0; + } + } + part { name: "av11"; mouse_events: 0; + description { state: "default" 0.0; + align: 0.5 0.0; + rel1.to: "resizev1"; + rel1.relative: 0.0 1.0; + rel2.to: "resizev1"; + image.normal: "sym_down_glow_normal.png"; + visible: 0; + FIXED_SIZE(15, 15) + } + description { state: "pulse0" 0.0; + inherit: "default" 0.0; + visible: 1; + } + description { state: "pulse1" 0.0; + inherit: "default" 0.0; + visible: 1; + rel1.relative: 0.0 6.0; + color: 255 255 255 0; + } + } + part { name: "av20"; mouse_events: 0; + description { state: "default" 0.0; + align: 0.5 1.0; + rel1.to: "resizev2"; + rel2.relative: 1.0 0.0; + rel2.to: "resizev2"; + image.normal: "sym_up_glow_normal.png"; + visible: 0; + FIXED_SIZE(15, 15) + } + description { state: "pulse0" 0.0; + inherit: "default" 0.0; + visible: 1; + } + description { state: "pulse1" 0.0; + inherit: "default" 0.0; + visible: 1; + rel2.relative: 1.0 -5.0; + color: 255 255 255 0; + } + } + part { name: "av21"; mouse_events: 0; + description { state: "default" 0.0; + align: 0.5 0.0; + rel1.to: "resizev2"; + rel1.relative: 0.0 1.0; + rel2.to: "resizev2"; + image.normal: "sym_down_glow_normal.png"; + visible: 0; + FIXED_SIZE(15, 15) + } + description { state: "pulse0" 0.0; + inherit: "default" 0.0; + visible: 1; + } + description { state: "pulse1" 0.0; + inherit: "default" 0.0; + visible: 1; + rel1.relative: 0.0 6.0; + color: 255 255 255 0; + } + } + part { name: "ah10"; mouse_events: 0; + description { state: "default" 0.0; + align: 1.0 0.5; + rel1.to: "resizeh1"; + rel2.relative: 0.0 1.0; + rel2.to: "resizeh1"; + image.normal: "sym_left_glow_normal.png"; + visible: 0; + FIXED_SIZE(15, 15) + } + description { state: "pulse0" 0.0; + inherit: "default" 0.0; + visible: 1; + } + description { state: "pulse1" 0.0; + inherit: "default" 0.0; + visible: 1; + rel2.relative: -5.0 1.0; + color: 255 255 255 0; + } + } + part { name: "ah11"; mouse_events: 0; + description { state: "default" 0.0; + align: 0.0 0.5; + rel1.to: "resizeh1"; + rel1.relative: 1.0 0.0; + rel2.to: "resizeh1"; + image.normal: "sym_right_glow_normal.png"; + visible: 0; + FIXED_SIZE(15, 15) + } + description { state: "pulse0" 0.0; + inherit: "default" 0.0; + visible: 1; + } + description { state: "pulse1" 0.0; + inherit: "default" 0.0; + visible: 1; + rel1.relative: 6.0 0.0; + color: 255 255 255 0; + } + } + part { name: "ah20"; mouse_events: 0; + description { state: "default" 0.0; + align: 1.0 0.5; + rel1.to: "resizeh2"; + rel2.relative: 0.0 1.0; + rel2.to: "resizeh2"; + image.normal: "sym_left_glow_normal.png"; + visible: 0; + FIXED_SIZE(15, 15) + } + description { state: "pulse0" 0.0; + inherit: "default" 0.0; + visible: 1; + } + description { state: "pulse1" 0.0; + inherit: "default" 0.0; + visible: 1; + rel2.relative: -5.0 1.0; + color: 255 255 255 0; + } + } + part { name: "ah21"; mouse_events: 0; + description { state: "default" 0.0; + align: 0.0 0.5; + rel1.to: "resizeh2"; + rel1.relative: 1.0 0.0; + rel2.to: "resizeh2"; + image.normal: "sym_right_glow_normal.png"; + visible: 0; + FIXED_SIZE(15, 15) + } + description { state: "pulse0" 0.0; + inherit: "default" 0.0; + visible: 1; + } + description { state: "pulse1" 0.0; + inherit: "default" 0.0; + visible: 1; + rel1.relative: 6.0 0.0; + color: 255 255 255 0; + } + } + part { name: "move"; type: RECT; + description { state: "default" 0.0; + rel1.to: "base"; + rel2.to: "base"; + color: 0 0 0 0; + } + description { state: "off" 0.0; + inherit: "default" 0.0; + visible: 0; + } + } + part { name: "resizeh1"; type: RECT; + description { state: "default" 0.0; + rel1.to: "base"; + rel2.to: "base"; + rel2.relative: 0.5 1.0; + align: 0.0 0.5; + max: 7 99999; + color: 0 0 0 0; + } + description { state: "off" 0.0; + inherit: "default" 0.0; + visible: 0; + } + } + part { name: "resizeh2"; type: RECT; + description { state: "default" 0.0; + rel1.to: "base"; + rel2.to: "base"; + rel1.relative: 0.5 0.0; + align: 1.0 0.5; + max: 7 99999; + color: 0 0 0 0; + } + description { state: "off" 0.0; + inherit: "default" 0.0; + visible: 0; + } + } + part { name: "resizev1"; type: RECT; + description { state: "default" 0.0; + rel1.to: "base"; + rel2.to: "base"; + rel2.relative: 1.0 0.5; + align: 0.5 0.0; + max: 99999 7; + color: 0 0 0 0; + } + description { state: "off" 0.0; + inherit: "default" 0.0; + visible: 0; + } + } + part { name: "resizev2"; type: RECT; + description { state: "default" 0.0; + rel1.to: "base"; + rel2.to: "base"; + rel1.relative: 0.0 0.5; + align: 0.5 1.0; + max: 99999 7; + color: 0 0 0 0; + } + description { state: "off" 0.0; + inherit: "default" 0.0; visible: 0; } } } + programs { + program { + signal: "e,state,hsize,on"; source: "e"; + action: STATE_SET "default" 0.0; + target: "resizeh1"; + target: "resizeh2"; + } + program { + signal: "e,state,hsize,off"; source: "e"; + action: STATE_SET "off" 0.0; + target: "resizeh1"; + target: "resizeh2"; + } + program { + signal: "e,state,vsize,on"; source: "e"; + action: STATE_SET "default" 0.0; + target: "resizev1"; + target: "resizev2"; + } + program { + signal: "e,state,vsize,off"; source: "e"; + action: STATE_SET "off" 0.0; + target: "resizev1"; + target: "resizev2"; + } + program { + signal: "e,state,move,on"; source: "e"; + action: STATE_SET "default" 0.0; + target: "move"; + } + program { + signal: "e,state,move,off"; source: "e"; + action: STATE_SET "off" 0.0; + target: "move"; + } + program { + signal: "e,state,focused"; source: "e"; + action: STATE_SET "active" 0.0; + target: "base"; + } + program { + signal: "e,state,unfocused"; source: "e"; + action: STATE_SET "default" 0.0; + target: "base"; + } +#define ARROWPULSE(_NAME, _SRC, _DST1, _DST2) \ + program { name: _NAME"0"; \ + signal: "mouse,in"; source: _SRC; \ + action: STATE_SET "pulse0" 0.0; \ + target: _DST1; \ + target: _DST2; \ + after: _NAME"1"; \ + } \ + program { name: _NAME"1"; \ + action: STATE_SET "pulse1" 0.0; \ + transition: DECELERATE 0.5; \ + target: _DST1; \ + target: _DST2; \ + after: _NAME"2"; \ + } \ + program { name: _NAME"2"; \ + action: STATE_SET "pulse0" 0.0; \ + target: _DST1; \ + target: _DST2; \ + after: _NAME"1"; \ + } \ + program { \ + signal: "mouse,out"; source: _SRC; \ + action: ACTION_STOP; \ + target: _NAME"0"; \ + target: _NAME"1"; \ + target: _NAME"2"; \ + after: _NAME"3"; \ + } \ + program { name: _NAME"3"; \ + action: STATE_SET "default" 0.0; \ + target: _DST1; \ + target: _DST2; \ + } + ARROWPULSE("pulse1", "resizev1", "av10", "av11") + ARROWPULSE("pulse2", "resizev2", "av20", "av21") + ARROWPULSE("pulse3", "resizeh1", "ah10", "ah11") + ARROWPULSE("pulse4", "resizeh2", "ah20", "ah21") +#undef ARROWPULSE +#define PROGSET(_SRC, _ACT) \ + program { \ + signal: "mouse,down,1"; source: _SRC; \ + action: SIGNAL_EMIT "e,action,"_ACT",start" ""; \ + } \ + program { \ + signal: "mouse,up,1"; source: _SRC; \ + action: SIGNAL_EMIT "e,action,"_ACT",stop" ""; \ + } \ + program { \ + signal: "mouse,move"; source: _SRC; \ + action: SIGNAL_EMIT "e,action,"_ACT",go" ""; \ + } + PROGSET("move", "move") + PROGSET("resizeh1", "resize,left") + PROGSET("resizeh2", "resize,right") + PROGSET("resizev1", "resize,up") + PROGSET("resizev2", "resize,down") +#undef PROGSET + } }