aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2016-07-04 18:01:40 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2016-07-04 18:10:38 +0900
commit8fb3fc166f2e518ec5ed4a0405eb4ded18227255 (patch)
tree0788b75946ab03447c1633057db3f339cf779bc8
parentelm: test_glview - allow window to close (diff)
downloadefl-8fb3fc166f2e518ec5ed4a0405eb4ded18227255.tar.gz
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.
-rw-r--r--data/elementary/themes/edc/elm/notify.edc29
-rw-r--r--data/elementary/themes/edc/elm/popup.edc13
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 3c8448b351..b6e8b99704 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 32433bed33..a551d4c602 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 */
}
}
}