Elm pager : new style : fade_translucide. The background of the panel is translucide

SVN revision: 43345
This commit is contained in:
Jonathan Atton 2009-10-30 12:00:18 +00:00
parent 1895a9ec7d
commit 4981bf693c
2 changed files with 326 additions and 130 deletions

View File

@ -15570,143 +15570,338 @@ collections {
} }
} }
} }
group { name: "elm/pager/base/fade"; group { name: "elm/pager/base/fade";
data.item: "onshow" "raise"; data.item: "onshow" "raise";
// other options // other options
// data.item: "onhide" "lower"; // data.item: "onhide" "lower";
// data.item: "onshow" "lower"; // data.item: "onshow" "lower";
images { images {
image: "frame_1.png" COMP; image: "frame_1.png" COMP;
image: "frame_2.png" COMP; image: "frame_2.png" COMP;
image: "dia_grad.png" COMP; image: "dia_grad.png" COMP;
} }
parts { parts {
part { name: "clip"; part { name: "clip_base";
type: RECT; type: RECT;
mouse_events: 0; mouse_events: 0;
description { state: "default" 0.0; description { state: "default" 0.0;
rel1 { rel1 {
to: "base"; to: "base";
offset: -9999 -9999; offset: -9999 -9999;
}
rel2 {
to: "base";
offset: 9999 9999;
}
color: 255 255 255 120;
} }
rel2 { description { state: "visible" 0.0;
to: "base"; inherit: "default" 0.0;
offset: 9999 9999;
} }
color: 255 255 255 255; description { state: "hidden" 0.0;
} inherit: "default" 0.0;
description { state: "visible" 0.0; color: 255 255 255 0;
inherit: "default" 0.0; visible: 0;
}
description { state: "hidden" 0.0;
inherit: "default" 0.0;
color: 255 255 255 0;
visible: 0;
}
}
part { name: "base0";
mouse_events: 0;
clip_to: "clip";
description { state: "default" 0.0;
image.normal: "dia_grad.png";
rel1.to: "over";
rel2.to: "over";
fill {
smooth: 0;
size {
relative: 0.0 1.0;
offset: 64 0;
}
}
}
}
part { name: "base";
mouse_events: 0;
clip_to: "clip";
description { state: "default" 0.0;
image {
normal: "frame_2.png";
border: 5 5 32 26;
middle: 0;
}
fill.smooth : 0;
}
}
part { name: "over";
mouse_events: 0;
clip_to: "clip";
description { state: "default" 0.0;
rel1 {
to: "base";
offset: 4 4;
} }
rel2 { }
to: "base"; part { name: "clip";
offset: -5 -5; type: RECT;
mouse_events: 0;
description { state: "default" 0.0;
rel1 {
to: "base";
offset: -9999 -9999;
}
rel2 {
to: "base";
offset: 9999 9999;
}
color: 255 255 255 255;
} }
image { description { state: "visible" 0.0;
normal: "frame_1.png"; inherit: "default" 0.0;
border: 2 2 28 22;
middle: 0;
}
fill.smooth : 0;
}
}
part { name: "elm.swallow.content";
type: SWALLOW;
clip_to: "clip";
description { state: "default" 0.0;
rel1 {
to: "base";
offset: 8 8;
} }
rel2 { description { state: "hidden" 0.0;
to: "base"; inherit: "default" 0.0;
offset: -9 -9; color: 255 255 255 0;
visible: 0;
} }
} }
} part { name: "base0";
} mouse_events: 0;
programs { clip_to: "clip_base";
program { name: "show_start"; description { state: "default" 0.0;
signal: "elm,action,show"; image.normal: "dia_grad.png";
source: "elm"; rel1.to: "over";
action: STATE_SET "hidden" 0.0; rel2.to: "over";
target: "clip"; fill {
after: "show_start2"; smooth: 0;
} size {
program { name: "show_start2"; relative: 0.0 1.0;
action: STATE_SET "visible" 0.0; offset: 64 0;
transition: DECELERATE 0.5; }
target: "clip"; }
after: "show_end"; }
} }
program { name: "show_end"; part { name: "base";
action: SIGNAL_EMIT "elm,action,show,finished" ""; mouse_events: 0;
} clip_to: "clip_base";
program { name: "hide_start"; description { state: "default" 0.0;
signal: "elm,action,hide"; image {
source: "elm"; normal: "frame_2.png";
action: STATE_SET "visible" 0.0; border: 5 5 32 26;
target: "clip"; middle: 0;
after: "hide_start2"; }
} fill.smooth : 0;
program { name: "hide_start2"; }
action: STATE_SET "hidden" 0.0; }
transition: DECELERATE 0.5; part { name: "over";
target: "clip"; mouse_events: 0;
after: "hide_end"; clip_to: "clip";
} description { state: "default" 0.0;
program { name: "hide_end"; rel1 {
action: SIGNAL_EMIT "elm,action,hide,finished" ""; to: "base";
} offset: 4 4;
program { name: "reset"; }
signal: "elm,action,reset"; rel2 {
source: "elm"; to: "base";
action: STATE_SET "default" 0.0; offset: -5 -5;
target: "clip"; }
} image {
} normal: "frame_1.png";
border: 2 2 28 22;
middle: 0;
}
fill.smooth : 0;
}
}
part { name: "elm.swallow.content";
type: SWALLOW;
clip_to: "clip";
description { state: "default" 0.0;
rel1 {
to: "base";
offset: 8 8;
}
rel2 {
to: "base";
offset: -9 -9;
}
}
}
}
programs {
program { name: "show_start";
signal: "elm,action,show";
source: "elm";
action: STATE_SET "hidden" 0.0;
target: "clip";
target: "clip_base";
after: "show_start2";
}
program { name: "show_start2";
action: STATE_SET "visible" 0.0;
transition: DECELERATE 0.5;
target: "clip";
target: "clip_base";
after: "show_end";
}
program { name: "show_end";
action: SIGNAL_EMIT "elm,action,show,finished" "";
}
program { name: "hide_start";
signal: "elm,action,hide";
source: "elm";
action: STATE_SET "visible" 0.0;
target: "clip";
target: "clip_base";
after: "hide_start2";
}
program { name: "hide_start2";
action: STATE_SET "hidden" 0.0;
transition: DECELERATE 0.5;
target: "clip";
target: "clip_base";
after: "hide_end";
}
program { name: "hide_end";
action: SIGNAL_EMIT "elm,action,hide,finished" "";
}
program { name: "reset";
signal: "elm,action,reset";
source: "elm";
action: STATE_SET "default" 0.0;
target: "clip_base";
target: "clip";
}
}
}
group { name: "elm/pager/base/fade_translucide";
data.item: "onshow" "raise";
// other options
// data.item: "onhide" "lower";
// data.item: "onshow" "lower";
images {
image: "frame_1.png" COMP;
image: "frame_2.png" COMP;
image: "dia_grad.png" COMP;
}
parts {
part { name: "clip_base";
type: RECT;
mouse_events: 0;
description { state: "default" 0.0;
rel1 {
to: "base";
offset: -9999 -9999;
}
rel2 {
to: "base";
offset: 9999 9999;
}
color: 255 255 255 120;
}
description { state: "visible" 0.0;
inherit: "default" 0.0;
}
description { state: "hidden" 0.0;
inherit: "default" 0.0;
color: 255 255 255 0;
visible: 0;
}
}
part { name: "clip";
type: RECT;
mouse_events: 0;
description { state: "default" 0.0;
rel1 {
to: "base";
offset: -9999 -9999;
}
rel2 {
to: "base";
offset: 9999 9999;
}
color: 255 255 255 255;
}
description { state: "visible" 0.0;
inherit: "default" 0.0;
}
description { state: "hidden" 0.0;
inherit: "default" 0.0;
color: 255 255 255 0;
visible: 0;
}
}
part { name: "base0";
mouse_events: 0;
clip_to: "clip_base";
description { state: "default" 0.0;
image.normal: "dia_grad.png";
rel1.to: "over";
rel2.to: "over";
fill {
smooth: 0;
size {
relative: 0.0 1.0;
offset: 64 0;
}
}
}
}
part { name: "base";
mouse_events: 0;
clip_to: "clip_base";
description { state: "default" 0.0;
image {
normal: "frame_2.png";
border: 5 5 32 26;
middle: 0;
}
fill.smooth : 0;
}
}
part { name: "over";
mouse_events: 0;
clip_to: "clip";
description { state: "default" 0.0;
rel1 {
to: "base";
offset: 4 4;
}
rel2 {
to: "base";
offset: -5 -5;
}
image {
normal: "frame_1.png";
border: 2 2 28 22;
middle: 0;
}
fill.smooth : 0;
}
}
part { name: "elm.swallow.content";
type: SWALLOW;
clip_to: "clip";
description { state: "default" 0.0;
rel1 {
to: "base";
offset: 8 8;
}
rel2 {
to: "base";
offset: -9 -9;
}
}
}
}
programs {
program { name: "show_start";
signal: "elm,action,show";
source: "elm";
action: STATE_SET "hidden" 0.0;
target: "clip";
target: "clip_base";
after: "show_start2";
}
program { name: "show_start2";
action: STATE_SET "visible" 0.0;
transition: DECELERATE 0.5;
target: "clip";
target: "clip_base";
after: "show_end";
}
program { name: "show_end";
action: SIGNAL_EMIT "elm,action,show,finished" "";
}
program { name: "hide_start";
signal: "elm,action,hide";
source: "elm";
action: STATE_SET "visible" 0.0;
target: "clip";
target: "clip_base";
after: "hide_start2";
}
program { name: "hide_start2";
action: STATE_SET "hidden" 0.0;
transition: DECELERATE 0.5;
target: "clip";
target: "clip_base";
after: "hide_end";
}
program { name: "hide_end";
action: SIGNAL_EMIT "elm,action,hide,finished" "";
}
program { name: "reset";
signal: "elm,action,reset";
source: "elm";
action: STATE_SET "default" 0.0;
target: "clip_base";
target: "clip";
}
}
} }

View File

@ -843,6 +843,7 @@ extern "C" {
/* available item styles: /* available item styles:
* default * default
* fade * fade
* fade_translucide
*/ */
/* smart callbacks called: /* smart callbacks called:
*/ */