notify: animate on hide
authorJean-Philippe Andre <jp.andre@samsung.com>
Wed, 21 Oct 2015 08:23:10 +0000 (17:23 +0900)
committerJean-Philippe Andre <jp.andre@samsung.com>
Wed, 4 Nov 2015 08:24:53 +0000 (17:24 +0900)
There was all the necessary code, except that the default
theme did not implement properly the signal & required data.

There is still a problem though, as the "timeout" smart callback
will be called at the start of the animation, so it's not possible
for an app to hide() or del() at this point (that would get
rid of the animation). But there's no other callback after
the animation ends.

elementary_test -to Notify > "Bottom" illustrates this issue.

data/themes/edc/elm/notify.edc

index 14f9ec151dfe47d8455366f92c343e1897716cbf..533ecc75afdb384937da8cca8eeff017f363f48f 100644 (file)
@@ -14,6 +14,7 @@ group { name: "elm/notify/block_events/default";
 
 group { name: "elm/notify/top/default";
    images.image: "darken_rounded_square.png" COMP;
+   data.item: "hide_finished_signal" "on";
    parts {
       part { name: "clip"; type: RECT;
          description { state: "default" 0.0;
@@ -65,7 +66,7 @@ group { name: "elm/notify/top/default";
          target: "base";
       }
       program {
-         signal: "elm,hide"; source: "elm";
+         signal: "elm,state,hide"; source: "elm";
          action: STATE_SET "default" 0.0;
          target: "clip";
          target: "base";