jpeg pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=8fb3fc166f2e518ec5ed4a0405eb4ded18227255

commit 8fb3fc166f2e518ec5ed4a0405eb4ded18227255
Author: Jean-Philippe Andre <[email protected]>
Date:   Mon Jul 4 18:01:40 2016 +0900

    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.
---
 data/elementary/themes/edc/elm/notify.edc | 29 +++++++++++++++++++++++++++--
 data/elementary/themes/edc/elm/popup.edc  | 13 ++++---------
 2 files changed, 31 insertions(+), 11 deletions(-)

diff --git a/data/elementary/themes/edc/elm/notify.edc 
b/data/elementary/themes/edc/elm/notify.edc
index 3c8448b..b6e8b99 100644
--- a/data/elementary/themes/edc/elm/notify.edc
+++ b/data/elementary/themes/edc/elm/notify.edc
@@ -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";
+      }
    }
 }
 
diff --git a/data/elementary/themes/edc/elm/popup.edc 
b/data/elementary/themes/edc/elm/popup.edc
index 32433be..a551d4c 100644
--- a/data/elementary/themes/edc/elm/popup.edc
+++ b/data/elementary/themes/edc/elm/popup.edc
@@ -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 */
       }
    }
 }

-- 


Reply via email to