forked from enlightenment/efl
theme: Add fade-in/out for block regions (popup & notify)
Those are a bit faster than the content transitions. I believe the popup transition time should be reduced. 500ms is way too long for such animations.
This commit is contained in:
parent
09aee47f58
commit
8fb3fc166f
|
@ -1,14 +1,39 @@
|
|||
group { name: "elm/notify/block_events/default";
|
||||
data.item: "hide_finished_signal" "on";
|
||||
parts {
|
||||
part { name: "block_events"; type: RECT;
|
||||
description { state: "default" 0.0;
|
||||
color: 0 0 0 64;
|
||||
desc { state: "default";
|
||||
color: 0 0 0 0;
|
||||
}
|
||||
desc { "visible";
|
||||
color: 0 0 0 64; /* FIXME: color_class */
|
||||
}
|
||||
}
|
||||
program {
|
||||
signal: "mouse,clicked,1"; source: "block_events";
|
||||
action: SIGNAL_EMIT "elm,action,click" "elm";
|
||||
}
|
||||
program {
|
||||
signal: "show"; source: "*";
|
||||
action: STATE_SET "visible";
|
||||
targets: "block_events";
|
||||
transition: DECELERATE 0.3;
|
||||
}
|
||||
program {
|
||||
signal: "hide"; source: "";
|
||||
action: STATE_SET "default" 0.0;
|
||||
target: "block_events";
|
||||
}
|
||||
program {
|
||||
signal: "elm,state,hide"; source: "elm";
|
||||
action: STATE_SET "default" 0.0;
|
||||
target: "block_events";
|
||||
transition: DECELERATE 0.3;
|
||||
after: "hide_finish";
|
||||
}
|
||||
program { name: "hide_finish";
|
||||
action: SIGNAL_EMIT "elm,action,hide,finished" "elm";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -1,13 +1,8 @@
|
|||
group { name: "elm/notify/block_events/popup/default";
|
||||
parts {
|
||||
part { name: "base"; type: RECT;
|
||||
description { state: "default" 0.0;
|
||||
color: 0 0 0 128;
|
||||
}
|
||||
}
|
||||
program {
|
||||
signal: "mouse,clicked,1"; source: "base";
|
||||
action: SIGNAL_EMIT "elm,action,click" "elm";
|
||||
inherit: "elm/notify/block_events/default";
|
||||
parts.part { "block_events";
|
||||
desc { "visible";
|
||||
color: 0 0 0 128; /* FIXME: color_class */
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue